modelId
stringlengths 4
122
| author
stringlengths 2
42
⌀ | last_modified
unknown | downloads
int64 0
74.7M
| likes
int64 0
9.67k
| library_name
stringlengths 2
84
⌀ | tags
sequence | pipeline_tag
stringlengths 5
30
⌀ | createdAt
unknown | card
stringlengths 1
901k
| embedding
sequence |
---|---|---|---|---|---|---|---|---|---|---|
THUDM/chatglm2-6b | THUDM | "2023-10-09T08:19:27Z" | 124,037 | 1,906 | transformers | [
"transformers",
"pytorch",
"chatglm",
"glm",
"thudm",
"custom_code",
"zh",
"en",
"arxiv:2103.10360",
"arxiv:2210.02414",
"arxiv:1911.02150",
"endpoints_compatible",
"has_space",
"region:us"
] | null | "2023-06-24T16:26:27Z" | ---
language:
- zh
- en
tags:
- glm
- chatglm
- thudm
---
# ChatGLM2-6B
<p align="center">
💻 <a href="https://github.com/THUDM/ChatGLM2-6B" target="_blank">Github Repo</a> • 🐦 <a href="https://twitter.com/thukeg" target="_blank">Twitter</a> • 📃 <a href="https://arxiv.org/abs/2103.10360" target="_blank">[GLM@ACL 22]</a> <a href="https://github.com/THUDM/GLM" target="_blank">[GitHub]</a> • 📃 <a href="https://arxiv.org/abs/2210.02414" target="_blank">[GLM-130B@ICLR 23]</a> <a href="https://github.com/THUDM/GLM-130B" target="_blank">[GitHub]</a> <br>
</p>
<p align="center">
👋 Join our <a href="https://join.slack.com/t/chatglm/shared_invite/zt-1y7pqoloy-9b1g6T6JjA8J0KxvUjbwJw" target="_blank">Slack</a> and <a href="https://github.com/THUDM/ChatGLM-6B/blob/main/resources/WECHAT.md" target="_blank">WeChat</a>
</p>
<p align="center">
📍Experience the larger-scale ChatGLM model at <a href="https://www.chatglm.cn">chatglm.cn</a>
</p>
## 介绍
ChatGLM**2**-6B 是开源中英双语对话模型 [ChatGLM-6B](https://github.com/THUDM/ChatGLM-6B) 的第二代版本,在保留了初代模型对话流畅、部署门槛较低等众多优秀特性的基础之上,ChatGLM**2**-6B 引入了如下新特性:
1. **更强大的性能**:基于 ChatGLM 初代模型的开发经验,我们全面升级了 ChatGLM2-6B 的基座模型。ChatGLM2-6B 使用了 [GLM](https://github.com/THUDM/GLM) 的混合目标函数,经过了 1.4T 中英标识符的预训练与人类偏好对齐训练,[评测结果](#评测结果)显示,相比于初代模型,ChatGLM2-6B 在 MMLU(+23%)、CEval(+33%)、GSM8K(+571%) 、BBH(+60%)等数据集上的性能取得了大幅度的提升,在同尺寸开源模型中具有较强的竞争力。
2. **更长的上下文**:基于 [FlashAttention](https://github.com/HazyResearch/flash-attention) 技术,我们将基座模型的上下文长度(Context Length)由 ChatGLM-6B 的 2K 扩展到了 32K,并在对话阶段使用 8K 的上下文长度训练,允许更多轮次的对话。但当前版本的 ChatGLM2-6B 对单轮超长文档的理解能力有限,我们会在后续迭代升级中着重进行优化。
3. **更高效的推理**:基于 [Multi-Query Attention](http://arxiv.org/abs/1911.02150) 技术,ChatGLM2-6B 有更高效的推理速度和更低的显存占用:在官方的模型实现下,推理速度相比初代提升了 42%,INT4 量化下,6G 显存支持的对话长度由 1K 提升到了 8K。
4. **更开放的协议**:ChatGLM2-6B 权重对学术研究**完全开放**,在填写[问卷](https://open.bigmodel.cn/mla/form)进行登记后**亦允许免费商业使用**。
ChatGLM**2**-6B is the second-generation version of the open-source bilingual (Chinese-English) chat model [ChatGLM-6B](https://github.com/THUDM/ChatGLM-6B). It retains the smooth conversation flow and low deployment threshold of the first-generation model, while introducing the following new features:
1. **Stronger Performance**: Based on the development experience of the first-generation ChatGLM model, we have fully upgraded the base model of ChatGLM2-6B. ChatGLM2-6B uses the hybrid objective function of [GLM](https://github.com/THUDM/GLM), and has undergone pre-training with 1.4T bilingual tokens and human preference alignment training. The [evaluation results](README.md#evaluation-results) show that, compared to the first-generation model, ChatGLM2-6B has achieved substantial improvements in performance on datasets like MMLU (+23%), CEval (+33%), GSM8K (+571%), BBH (+60%), showing strong competitiveness among models of the same size.
2. **Longer Context**: Based on [FlashAttention](https://github.com/HazyResearch/flash-attention) technique, we have extended the context length of the base model from 2K in ChatGLM-6B to 32K, and trained with a context length of 8K during the dialogue alignment, allowing for more rounds of dialogue. However, the current version of ChatGLM2-6B has limited understanding of single-round ultra-long documents, which we will focus on optimizing in future iterations.
3. **More Efficient Inference**: Based on [Multi-Query Attention](http://arxiv.org/abs/1911.02150) technique, ChatGLM2-6B has more efficient inference speed and lower GPU memory usage: under the official implementation, the inference speed has increased by 42% compared to the first generation; under INT4 quantization, the dialogue length supported by 6G GPU memory has increased from 1K to 8K.
4. **More Open License**: ChatGLM2-6B weights are **completely open** for academic research, and **free commercial use** is also allowed after completing the [questionnaire](https://open.bigmodel.cn/mla/form).
## 软件依赖
```shell
pip install protobuf transformers==4.30.2 cpm_kernels torch>=2.0 gradio mdtex2html sentencepiece accelerate
```
## 代码调用
可以通过如下代码调用 ChatGLM-6B 模型来生成对话:
```ipython
>>> from transformers import AutoTokenizer, AutoModel
>>> tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm2-6b", trust_remote_code=True)
>>> model = AutoModel.from_pretrained("THUDM/chatglm2-6b", trust_remote_code=True).half().cuda()
>>> model = model.eval()
>>> response, history = model.chat(tokenizer, "你好", history=[])
>>> print(response)
你好👋!我是人工智能助手 ChatGLM-6B,很高兴见到你,欢迎问我任何问题。
>>> response, history = model.chat(tokenizer, "晚上睡不着应该怎么办", history=history)
>>> print(response)
晚上睡不着可能会让你感到焦虑或不舒服,但以下是一些可以帮助你入睡的方法:
1. 制定规律的睡眠时间表:保持规律的睡眠时间表可以帮助你建立健康的睡眠习惯,使你更容易入睡。尽量在每天的相同时间上床,并在同一时间起床。
2. 创造一个舒适的睡眠环境:确保睡眠环境舒适,安静,黑暗且温度适宜。可以使用舒适的床上用品,并保持房间通风。
3. 放松身心:在睡前做些放松的活动,例如泡个热水澡,听些轻柔的音乐,阅读一些有趣的书籍等,有助于缓解紧张和焦虑,使你更容易入睡。
4. 避免饮用含有咖啡因的饮料:咖啡因是一种刺激性物质,会影响你的睡眠质量。尽量避免在睡前饮用含有咖啡因的饮料,例如咖啡,茶和可乐。
5. 避免在床上做与睡眠无关的事情:在床上做些与睡眠无关的事情,例如看电影,玩游戏或工作等,可能会干扰你的睡眠。
6. 尝试呼吸技巧:深呼吸是一种放松技巧,可以帮助你缓解紧张和焦虑,使你更容易入睡。试着慢慢吸气,保持几秒钟,然后缓慢呼气。
如果这些方法无法帮助你入睡,你可以考虑咨询医生或睡眠专家,寻求进一步的建议。
```
关于更多的使用说明,包括如何运行命令行和网页版本的 DEMO,以及使用模型量化以节省显存,请参考我们的 [Github Repo](https://github.com/THUDM/ChatGLM2-6B)。
For more instructions, including how to run CLI and web demos, and model quantization, please refer to our [Github Repo](https://github.com/THUDM/ChatGLM2-6B).
## Change Log
* v1.0
## 协议
本仓库的代码依照 [Apache-2.0](LICENSE) 协议开源,ChatGLM2-6B 模型的权重的使用则需要遵循 [Model License](MODEL_LICENSE)。
## 引用
如果你觉得我们的工作有帮助的话,请考虑引用下列论文,ChatGLM2-6B 的论文会在近期公布,敬请期待~
```
@article{zeng2022glm,
title={Glm-130b: An open bilingual pre-trained model},
author={Zeng, Aohan and Liu, Xiao and Du, Zhengxiao and Wang, Zihan and Lai, Hanyu and Ding, Ming and Yang, Zhuoyi and Xu, Yifan and Zheng, Wendi and Xia, Xiao and others},
journal={arXiv preprint arXiv:2210.02414},
year={2022}
}
```
```
@inproceedings{du2022glm,
title={GLM: General Language Model Pretraining with Autoregressive Blank Infilling},
author={Du, Zhengxiao and Qian, Yujie and Liu, Xiao and Ding, Ming and Qiu, Jiezhong and Yang, Zhilin and Tang, Jie},
booktitle={Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
pages={320--335},
year={2022}
}
``` | [
-0.4646132290363312,
-0.8792842030525208,
0.10918772220611572,
0.3495238721370697,
-0.370664119720459,
-0.05834951996803284,
-0.32787537574768066,
-0.5896780490875244,
0.08080563694238663,
0.17458759248256683,
-0.5573709011077881,
-0.6355584263801575,
-0.5507940053939819,
-0.24037685990333557,
-0.14259500801563263,
0.9358142018318176,
0.23544979095458984,
0.03961046412587166,
0.058609336614608765,
-0.045786529779434204,
-0.5394843816757202,
-0.5341060161590576,
-0.814579963684082,
-0.20464728772640228,
0.09589437395334244,
0.15663020312786102,
0.7394947409629822,
0.3146879971027374,
0.4506823420524597,
0.3317233920097351,
-0.2444065362215042,
0.2113269567489624,
-0.7097876071929932,
-0.3059777617454529,
0.2327861338853836,
-0.5311426520347595,
-0.7188401222229004,
0.051352664828300476,
0.5754286050796509,
0.2276814728975296,
-0.13742563128471375,
0.3297711908817291,
0.3329194188117981,
0.6920748353004456,
-0.43988990783691406,
0.5270884037017822,
-0.6188943386077881,
-0.07971484214067459,
-0.10931233316659927,
-0.12015576660633087,
-0.35752472281455994,
-0.3476959764957428,
0.03971187770366669,
-0.5809925198554993,
0.023105107247829437,
0.18652835488319397,
1.2864413261413574,
-0.127487912774086,
-0.31022903323173523,
-0.19612820446491241,
-0.6393404006958008,
0.9970229864120483,
-1.1689867973327637,
0.21074138581752777,
0.3583962917327881,
0.44998595118522644,
-0.28588902950286865,
-0.7943885326385498,
-0.4893064498901367,
-0.16514231264591217,
-0.48238855600357056,
0.37677207589149475,
-0.1793578416109085,
-0.0592348612844944,
0.1557619720697403,
0.37321439385414124,
-0.7419964075088501,
0.030511533841490746,
-0.5850478410720825,
-0.2838330864906311,
0.7150929570198059,
0.169160395860672,
0.6151021122932434,
-0.1161947101354599,
-0.5010091066360474,
-0.009186520241200924,
-0.5236703753471375,
0.2522513270378113,
0.27282050251960754,
0.2629382610321045,
-0.6546947360038757,
0.3274312913417816,
-0.11088060587644577,
0.4880993366241455,
0.06761561334133148,
-0.32153254747390747,
0.4607052206993103,
-0.6229038238525391,
-0.27607831358909607,
-0.25176259875297546,
1.2897812128067017,
0.4791066348552704,
0.018218141049146652,
0.190327450633049,
-0.03612413629889488,
-0.1517750769853592,
-0.12213151156902313,
-0.8532277345657349,
-0.11801395565271378,
0.402103066444397,
-0.6392549276351929,
-0.2050827592611313,
-0.037464775145053864,
-0.6934834122657776,
0.11204464733600616,
0.019736379384994507,
0.604326605796814,
-0.5834605693817139,
-0.48294809460639954,
0.18400201201438904,
-0.05560730770230293,
0.338824987411499,
0.392323762178421,
-1.0349427461624146,
0.3690120279788971,
0.5573349595069885,
0.9014498591423035,
-0.08142213523387909,
-0.24349088966846466,
-0.17891713976860046,
0.08993298560380936,
-0.1585858315229416,
0.39304783940315247,
-0.06253179907798767,
-0.5140485763549805,
-0.097786545753479,
-0.017696095630526543,
-0.3112764358520508,
-0.35726746916770935,
0.4089204668998718,
-0.39803749322891235,
0.7969732880592346,
-0.09852521866559982,
-0.5215505957603455,
-0.3161408603191376,
0.3012474775314331,
-0.38359299302101135,
1.1341804265975952,
-0.025993382558226585,
-0.9300429821014404,
-0.0644330307841301,
-0.6655469536781311,
-0.1581418812274933,
-0.027379358187317848,
-0.05801549181342125,
-0.3954019844532013,
-0.294504851102829,
0.40087252855300903,
0.21258874237537384,
-0.4658116102218628,
0.14247703552246094,
-0.27744942903518677,
-0.41722092032432556,
0.2605438828468323,
-0.35601502656936646,
1.2036991119384766,
0.2664110064506531,
-0.4919469654560089,
0.26174721121788025,
-0.3722675144672394,
0.3299902677536011,
0.297240674495697,
-0.2079501748085022,
-0.011874240823090076,
0.05063187703490257,
0.008663826622068882,
0.49748480319976807,
0.5530142784118652,
-0.24450471997261047,
0.1080869734287262,
-0.7303324341773987,
0.435799777507782,
0.6696192026138306,
-0.10216803848743439,
0.47180670499801636,
-0.4431728422641754,
0.2972639203071594,
0.18899019062519073,
0.6219920516014099,
-0.20096731185913086,
-0.7331063747406006,
-1.033433437347412,
-0.18691357970237732,
0.23122437298297882,
0.83751380443573,
-0.6257545351982117,
0.825518786907196,
-0.22922855615615845,
-0.6237820982933044,
-0.5479511618614197,
0.24438966810703278,
0.6341574192047119,
0.351941853761673,
0.5014174580574036,
-0.26082655787467957,
-0.5480810403823853,
-0.7814108729362488,
-0.08466679602861404,
-0.4693518280982971,
-0.07319469749927521,
0.5392199754714966,
0.524230420589447,
-0.34099680185317993,
0.9492364525794983,
-0.5472028255462646,
-0.4239284098148346,
-0.3404107391834259,
0.06371705234050751,
0.30186185240745544,
0.6179827451705933,
0.6678372025489807,
-0.7920450568199158,
-0.8816560506820679,
-0.007875134237110615,
-0.8977922201156616,
0.11961093544960022,
0.10180246829986572,
-0.4158671200275421,
0.5212520956993103,
0.34327584505081177,
-0.6422196626663208,
0.4468405246734619,
0.674485981464386,
-0.382205605506897,
0.5764594078063965,
-0.21848903596401215,
0.011803466826677322,
-1.2932833433151245,
0.05242811143398285,
-0.13214047253131866,
0.08149145543575287,
-0.7432259321212769,
-0.12434480339288712,
-0.00508714746683836,
0.21109123528003693,
-0.6321516633033752,
1.1059064865112305,
-0.6828866600990295,
0.1997225135564804,
-0.136116623878479,
0.31139516830444336,
-0.17858903110027313,
0.7995539903640747,
-0.2219606190919876,
0.6596488952636719,
0.7589810490608215,
-0.5628971457481384,
0.31148508191108704,
0.3231760263442993,
-0.23226656019687653,
-0.03172098472714424,
-0.8443126678466797,
0.20189441740512848,
0.005867717321962118,
0.3565337359905243,
-1.3865668773651123,
-0.08126755058765411,
0.6017548441886902,
-0.9092528820037842,
0.3019719421863556,
-0.20399385690689087,
-0.4692317247390747,
-0.6070073843002319,
-0.5727395415306091,
0.1963745653629303,
0.8563179969787598,
-0.3390968143939972,
0.5599674582481384,
0.447395384311676,
-0.04049769416451454,
-0.5907540917396545,
-0.6411488652229309,
-0.06068864464759827,
-0.2164253443479538,
-1.0161044597625732,
0.27120956778526306,
-0.1765698343515396,
-0.010914265178143978,
-0.17027772963047028,
0.14017491042613983,
0.07385697215795517,
-0.002521855290979147,
0.2035936862230301,
0.5212509632110596,
-0.11421693861484528,
-0.06753622740507126,
-0.19290925562381744,
-0.12889409065246582,
-0.015382731333374977,
-0.15475744009017944,
0.689663290977478,
-0.29504773020744324,
-0.3714010715484619,
-0.5604128241539001,
0.20371530950069427,
0.49150773882865906,
-0.20306318998336792,
0.8564116358757019,
1.1135271787643433,
-0.19569861888885498,
0.2151951640844345,
-0.7686752080917358,
-0.24938122928142548,
-0.5727680325508118,
0.38117653131484985,
-0.012143119238317013,
-1.0376060009002686,
0.8580595254898071,
0.3380034863948822,
0.28786343336105347,
0.6679890751838684,
0.7113198637962341,
0.12314897775650024,
1.282696008682251,
0.3773270845413208,
-0.31148290634155273,
0.5614670515060425,
-0.44496873021125793,
0.25734251737594604,
-0.8557528257369995,
-0.3664456903934479,
-0.41628310084342957,
-0.28583091497421265,
-0.7528617978096008,
-0.5584467649459839,
0.4030289053916931,
0.14816811680793762,
-0.22302083671092987,
0.13651371002197266,
-0.46143558621406555,
-0.03004753589630127,
0.5837743282318115,
0.051362745463848114,
0.07628752291202545,
-0.1230287179350853,
-0.10972107946872711,
0.029277855530381203,
-0.761335551738739,
-0.5072441101074219,
0.909377932548523,
0.4558577835559845,
0.740624725818634,
0.3472859263420105,
0.5126314759254456,
-0.052533555775880814,
0.3174580931663513,
-0.6277307271957397,
0.6696545481681824,
0.08498465269804001,
-0.8518382906913757,
-0.46819713711738586,
-0.4936370551586151,
-1.0238288640975952,
0.5781009197235107,
-0.1373269408941269,
-1.1024320125579834,
-0.08472026139497757,
0.16401030123233795,
-0.2400856763124466,
0.24005112051963806,
-0.9164818525314331,
0.9139772653579712,
-0.41777747869491577,
-0.3720329701900482,
-0.07359685748815536,
-0.8653305172920227,
0.5896872878074646,
0.2736503481864929,
0.42571404576301575,
-0.40065982937812805,
0.028654975816607475,
0.7622370719909668,
-0.4838099777698517,
0.8648455142974854,
-0.25483477115631104,
-0.08008164167404175,
0.5646761655807495,
-0.10928818583488464,
0.6660252809524536,
0.19091282784938812,
0.19201812148094177,
0.316297709941864,
-0.01226355042308569,
-0.41156843304634094,
-0.5842351317405701,
0.7304091453552246,
-0.8001903891563416,
-0.8109744787216187,
-0.4238852858543396,
-0.45071446895599365,
-0.1588207185268402,
0.29024738073349,
0.4118179976940155,
0.2875279188156128,
-0.050231628119945526,
0.24916177988052368,
0.38023611903190613,
-0.4742298424243927,
0.6206908822059631,
0.6094419956207275,
-0.5889187455177307,
-0.49680620431900024,
0.719778299331665,
0.04676530882716179,
0.4629765450954437,
0.21853862702846527,
0.10843180865049362,
-0.4750044047832489,
-0.486407607793808,
-0.4116441011428833,
0.3709459602832794,
-0.45613935589790344,
-0.034000214189291,
-0.7803760170936584,
-0.4872700572013855,
-0.7334215044975281,
0.16025854647159576,
-0.32947272062301636,
-0.11910895258188248,
-0.44177520275115967,
0.06260319799184799,
0.43887725472450256,
0.10340621322393417,
0.03304256498813629,
0.15319475531578064,
-0.9959770441055298,
0.3470684289932251,
0.29883646965026855,
0.2697756886482239,
0.23331305384635925,
-0.8005550503730774,
-0.5003382563591003,
0.5404969453811646,
-0.2230703979730606,
-0.535888671875,
0.6239131689071655,
0.14264972507953644,
0.6872875690460205,
0.3921999931335449,
-0.0638822391629219,
0.7297390699386597,
-0.31582239270210266,
1.0259954929351807,
0.37519532442092896,
-0.9206982254981995,
0.5573204755783081,
-0.5291721820831299,
0.4675046503543854,
0.30001017451286316,
0.2974410355091095,
-0.6656082272529602,
-0.468227356672287,
-0.7650331258773804,
-0.9598472118377686,
1.0873181819915771,
0.586141049861908,
0.4631483852863312,
0.04555486887693405,
-0.015041322447359562,
-0.32394418120384216,
0.10731963068246841,
-0.6991128921508789,
-0.7506141066551208,
-0.10167913138866425,
-0.09877557307481766,
-0.026151306927204132,
-0.5274739861488342,
-0.0913887619972229,
-0.49071940779685974,
0.8248264193534851,
0.02511136792600155,
0.6685915589332581,
0.012628993950784206,
0.03469813987612724,
0.13189980387687683,
0.2115703821182251,
0.7087507843971252,
0.7120339870452881,
-0.3245265483856201,
-0.14717252552509308,
0.31670331954956055,
-0.6041572093963623,
-0.05878874659538269,
0.06940785050392151,
-0.25320035219192505,
0.11077696084976196,
0.2472551017999649,
1.188584327697754,
0.27618706226348877,
-0.5001730918884277,
0.5867029428482056,
-0.2774566113948822,
-0.315119206905365,
-0.31258952617645264,
0.2866889238357544,
0.3286372125148773,
0.17559504508972168,
0.6151666641235352,
-0.3251836895942688,
0.015252216719090939,
-0.7351225018501282,
-0.036899615079164505,
0.5962711572647095,
-0.3072172999382019,
-0.2863846719264984,
0.7531520128250122,
0.20964963734149933,
-0.12921728193759918,
0.432415634393692,
-0.2682786285877228,
-0.6227419972419739,
0.6045555472373962,
0.5736021399497986,
0.848146915435791,
-0.24852050840854645,
0.12167830765247345,
0.7456031441688538,
0.2207430899143219,
-0.35900136828422546,
0.3045193552970886,
0.20874598622322083,
-0.7543283104896545,
-0.29156962037086487,
-0.5087747573852539,
-0.19147136807441711,
0.2078254371881485,
-0.5560531616210938,
0.337388277053833,
-0.3393968641757965,
-0.35007917881011963,
-0.14311136305332184,
0.09637162834405899,
-0.3795953691005707,
0.16311675310134888,
0.14668869972229004,
0.7130635380744934,
-0.4412672817707062,
0.8536980152130127,
0.4862731695175171,
-0.3458503782749176,
-0.920128345489502,
-0.2046612799167633,
0.2196131944656372,
-0.7960079908370972,
0.43061044812202454,
0.14617575705051422,
-0.021813204512000084,
0.01650761067867279,
-0.5711228847503662,
-1.2027052640914917,
1.3344658613204956,
0.25312116742134094,
-0.41241949796676636,
-0.13880927860736847,
-0.0016324252355843782,
0.7240762710571289,
-0.1840844452381134,
0.6310537457466125,
0.2848978638648987,
0.43998491764068604,
0.2769492268562317,
-1.3404728174209595,
0.1673564314842224,
-0.6012513041496277,
0.16432292759418488,
0.03400232270359993,
-1.140751838684082,
1.1219264268875122,
-0.13622090220451355,
-0.4345792829990387,
-0.08302444219589233,
0.7199077010154724,
0.2594332993030548,
0.1495467573404312,
0.3079327642917633,
0.36523619294166565,
0.547342836856842,
-0.3441120982170105,
0.912428617477417,
-0.5522075891494751,
0.8474465608596802,
1.020569086074829,
0.012846186757087708,
0.6904389262199402,
0.21597027778625488,
-0.4163535237312317,
0.418906033039093,
0.5630841851234436,
-0.14049240946769714,
0.4898533523082733,
-0.05665160343050957,
-0.26459407806396484,
-0.05289137735962868,
0.15325434505939484,
-0.7065368294715881,
0.26296988129615784,
0.4481809139251709,
-0.20771357417106628,
-0.15771856904029846,
-0.10564255714416504,
0.28589895367622375,
-0.4092889726161957,
-0.1591544896364212,
0.9106107354164124,
0.21687734127044678,
-0.7006993889808655,
1.0999728441238403,
0.1259765923023224,
1.0509721040725708,
-0.8648807406425476,
0.18431508541107178,
-0.3074483871459961,
0.13159021735191345,
-0.2331143319606781,
-0.6329247355461121,
0.12206543236970901,
-0.12964437901973724,
0.02032143995165825,
-0.021570419892668724,
0.8806048631668091,
-0.5628586411476135,
-0.4761510193347931,
0.5415955781936646,
0.4442288875579834,
0.1354093700647354,
0.09441804885864258,
-1.0169841051101685,
0.08648145198822021,
0.2658219039440155,
-0.5114215612411499,
0.4680057466030121,
0.3009099066257477,
0.057145193219184875,
0.7897910475730896,
0.721994161605835,
-0.1011032909154892,
0.12737883627414703,
-0.012344620190560818,
0.8488357663154602,
-0.6385769248008728,
-0.5234591960906982,
-1.0276801586151123,
0.7023096680641174,
-0.17400535941123962,
-0.2786133289337158,
1.0754811763763428,
0.6361829042434692,
0.8491094708442688,
-0.0012971092946827412,
0.8233829736709595,
-0.2770140767097473,
0.5597094893455505,
-0.5178874135017395,
0.7911876440048218,
-0.5972968339920044,
0.20077374577522278,
-0.2914069890975952,
-0.6140952706336975,
-0.23413577675819397,
0.5118188261985779,
-0.3418903350830078,
0.37575894594192505,
0.6707711219787598,
0.9917195439338684,
0.18289220333099365,
-0.22199681401252747,
0.20773354172706604,
0.28779372572898865,
0.3979441523551941,
0.921790599822998,
0.5714129209518433,
-0.7476763129234314,
0.7645634412765503,
-0.24242903292179108,
-0.01789041981101036,
-0.5492075085639954,
-0.5199441313743591,
-1.1491022109985352,
-0.5408530831336975,
-0.2277790904045105,
-0.47260162234306335,
-0.11508802324533463,
0.8912909030914307,
0.6234269142150879,
-0.7326704263687134,
-0.4214247763156891,
0.22538770735263824,
0.1603720486164093,
-0.2548826038837433,
-0.2722676694393158,
0.49787554144859314,
-0.37666061520576477,
-0.8979828953742981,
-0.006285523995757103,
0.2662287950515747,
0.274579793214798,
-0.2111106663942337,
-0.297088623046875,
-0.47150370478630066,
0.07568404078483582,
0.5786266326904297,
0.32338204979896545,
-0.8754794597625732,
-0.12875226140022278,
0.11377941817045212,
-0.5138887166976929,
0.1910456418991089,
0.17493601143360138,
-0.42844346165657043,
0.4035620391368866,
0.6084819436073303,
0.054478079080581665,
0.762869119644165,
0.003543419996276498,
0.36129581928253174,
-0.5153495669364929,
0.43633756041526794,
0.0023782311473041773,
0.2980157732963562,
0.13033922016620636,
-0.31632664799690247,
0.6450514793395996,
0.1904582381248474,
-0.40200164914131165,
-0.8220999240875244,
-0.2042424976825714,
-1.1143553256988525,
-0.1285809874534607,
1.5327740907669067,
-0.23489589989185333,
-0.256088525056839,
0.020184902474284172,
-0.5453847050666809,
0.40657708048820496,
-0.47532084584236145,
0.8990175127983093,
0.8238970041275024,
-0.005967872217297554,
-0.14691990613937378,
-0.702205240726471,
0.5746454000473022,
0.3966910243034363,
-0.9122248291969299,
-0.14379532635211945,
0.4112924337387085,
0.31458523869514465,
0.1270180344581604,
0.9910804629325867,
-0.2016705572605133,
0.3363688886165619,
-0.2949850857257843,
0.17054669559001923,
-0.15724489092826843,
0.17557144165039062,
-0.13967891037464142,
-0.12666764855384827,
-0.14596107602119446,
-0.2755497097969055
] |
neulab/codebert-python | neulab | "2023-02-27T20:56:57Z" | 123,359 | 19 | transformers | [
"transformers",
"pytorch",
"roberta",
"fill-mask",
"arxiv:2302.05527",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | fill-mask | "2022-09-23T15:01:36Z" | This is a `microsoft/codebert-base-mlm` model, trained for 1,000,000 steps (with `batch_size=32`) on **Python** code from the `codeparrot/github-code-clean` dataset, on the masked-language-modeling task.
It is intended to be used in CodeBERTScore: [https://github.com/neulab/code-bert-score](https://github.com/neulab/code-bert-score), but can be used for any other model or task.
For more information, see: [https://github.com/neulab/code-bert-score](https://github.com/neulab/code-bert-score)
## Citation
If you use this model for research, please cite:
```
@article{zhou2023codebertscore,
url = {https://arxiv.org/abs/2302.05527},
author = {Zhou, Shuyan and Alon, Uri and Agarwal, Sumit and Neubig, Graham},
title = {CodeBERTScore: Evaluating Code Generation with Pretrained Models of Code},
publisher = {arXiv},
year = {2023},
}
``` | [
-0.13318784534931183,
-0.5880703926086426,
-0.10941115766763687,
0.5116549134254456,
-0.03224419057369232,
-0.10568942129611969,
-0.19417503476142883,
-0.15594972670078278,
0.07565893977880478,
0.6581752300262451,
-0.6021900773048401,
-0.6620841026306152,
-0.38966652750968933,
-0.10527949780225754,
-0.6134446263313293,
1.403448462486267,
0.22485744953155518,
0.3426644504070282,
-0.051299337297677994,
-0.02113591879606247,
-0.3649710416793823,
-0.6304089426994324,
-0.3831610381603241,
-0.24152998626232147,
0.5046146512031555,
0.16573582589626312,
0.5566520094871521,
0.45603111386299133,
0.3956434428691864,
0.10850032418966293,
0.18563182651996613,
-0.22442616522312164,
-0.6804762482643127,
-0.11538105458021164,
0.24730660021305084,
-0.5629025101661682,
-0.9187896251678467,
0.3892555236816406,
0.3294404447078705,
0.8116617798805237,
0.0846412181854248,
0.6831186413764954,
0.20110279321670532,
0.8265402913093567,
-0.4623725414276123,
0.12524402141571045,
-0.7017884850502014,
0.031217379495501518,
0.3660952150821686,
0.14591366052627563,
-0.5764960646629333,
-0.42158713936805725,
0.06035144254565239,
-0.23575355112552643,
0.3628201484680176,
-0.05852079391479492,
1.0351637601852417,
0.02202954702079296,
-0.14087405800819397,
-0.301669716835022,
-0.5756250023841858,
0.8122698664665222,
-0.6795686483383179,
0.04220621660351753,
0.4083959758281708,
0.1860191822052002,
0.10883220285177231,
-0.8615843653678894,
-0.27103158831596375,
-0.44799095392227173,
0.22739636898040771,
-0.3301907479763031,
-0.42160508036613464,
-0.21750059723854065,
0.6861833333969116,
0.022776111960411072,
-0.9040637016296387,
-0.2193634957075119,
-0.9393032789230347,
-0.2800517678260803,
0.5623634457588196,
0.1916402131319046,
-0.11761242896318436,
-0.08764220774173737,
-0.6612526774406433,
0.11094895005226135,
-0.7218429446220398,
0.30537277460098267,
0.5256187319755554,
0.268947035074234,
-0.18499109148979187,
0.46208497881889343,
-0.09242043644189835,
0.9191367030143738,
-0.15604126453399658,
0.14228345453739166,
0.6348010301589966,
-0.20700789988040924,
-0.5212973952293396,
-0.06882718950510025,
0.8410050272941589,
0.32026124000549316,
0.772731363773346,
-0.06613919883966446,
-0.3542615473270416,
-0.06796184182167053,
0.5128684043884277,
-1.101169466972351,
-0.7649555802345276,
0.3466015160083771,
-0.5654019713401794,
-0.5193982720375061,
0.3766883611679077,
-0.24261340498924255,
-0.021997027099132538,
-0.1974005103111267,
0.5688760876655579,
-0.3351895809173584,
-0.2158605307340622,
0.026718417182564735,
0.13928338885307312,
0.24592474102973938,
0.23777362704277039,
-0.42905014753341675,
0.02775905840098858,
0.5664622783660889,
0.8862265348434448,
0.017069702968001366,
-0.34390246868133545,
-0.4147287607192993,
-0.5696761608123779,
-0.6456032991409302,
0.18794097006320953,
-0.3069957494735718,
-0.1447315216064453,
0.04191363602876663,
0.2197362333536148,
-0.20545175671577454,
-0.6917365789413452,
0.2059822529554367,
-0.7806732654571533,
0.13236850500106812,
0.17051762342453003,
-0.5120311379432678,
-0.3109271228313446,
0.3819243907928467,
-0.8643877506256104,
1.0578967332839966,
0.3814008831977844,
-0.20808187127113342,
0.5140012502670288,
-0.7586661577224731,
-0.09372676908969879,
0.2949593961238861,
-0.04346604645252228,
-0.5323190689086914,
-0.15748925507068634,
-0.1805337816476822,
0.48885786533355713,
0.13078968226909637,
0.5886741280555725,
-0.22368048131465912,
-0.638615071773529,
0.3969912827014923,
-0.4073247015476227,
0.9764357805252075,
0.46043258905410767,
-0.37681084871292114,
0.07392025738954544,
-1.0751155614852905,
0.30676811933517456,
-0.030046526342630386,
-0.4979925751686096,
0.02469746023416519,
-0.3425047695636749,
0.3617493808269501,
0.43401455879211426,
0.5196638107299805,
-0.5344094634056091,
0.4778333604335785,
-0.22066187858581543,
0.3711719512939453,
0.5889891982078552,
-0.17215152084827423,
0.38699203729629517,
-0.5744128227233887,
0.7993003129959106,
-0.08020690828561783,
0.19872556626796722,
-0.42570823431015015,
-0.7212843894958496,
-0.9029938578605652,
-0.2992537021636963,
0.8047203421592712,
0.36769649386405945,
-0.38392624258995056,
0.7054458260536194,
-0.25204935669898987,
-0.6499859690666199,
-0.6526382565498352,
0.22895213961601257,
0.30833297967910767,
0.2312995195388794,
0.3817329406738281,
-0.2560066282749176,
-0.6110126972198486,
-0.790961742401123,
-0.31235018372535706,
0.1532754749059677,
-0.24303968250751495,
0.08475043624639511,
1.015675663948059,
-0.46718573570251465,
1.093017816543579,
-0.40681880712509155,
-0.32082176208496094,
-0.1439870446920395,
0.27567118406295776,
0.6901730895042419,
0.9115524291992188,
0.4772709906101227,
-0.6260577440261841,
-0.5497795343399048,
-0.5009608864784241,
-0.6400774717330933,
0.10382098704576492,
-0.25216543674468994,
-0.13447970151901245,
0.39285537600517273,
0.48750442266464233,
-0.21625010669231415,
0.5510833859443665,
0.8949710130691528,
-0.3465449810028076,
0.6386564373970032,
-0.053724419325590134,
0.19959644973278046,
-0.9295877814292908,
0.34229210019111633,
0.025847522541880608,
-0.40196454524993896,
-0.6404644846916199,
-0.040348730981349945,
0.28027868270874023,
-0.39069488644599915,
-0.5295146703720093,
0.20967073738574982,
-0.3339056670665741,
0.3062397539615631,
-0.3483278155326843,
-0.37273046374320984,
-0.004807075019925833,
0.8396168351173401,
-0.2483239471912384,
0.6691597700119019,
0.5714443922042847,
-0.6329832077026367,
0.25443190336227417,
0.006468556355684996,
-0.7276502847671509,
-0.07042566686868668,
-0.9144631624221802,
0.38500064611434937,
0.3775479793548584,
0.07470711320638657,
-0.9804667234420776,
-0.008051889948546886,
0.33389049768447876,
-0.7662264704704285,
0.0757521316409111,
-0.3073086142539978,
-0.7224335670471191,
-0.04598233103752136,
-0.21107235550880432,
0.5636863708496094,
0.7171029448509216,
-0.3200714886188507,
0.3691570460796356,
0.16434133052825928,
0.12858159840106964,
-0.5625343322753906,
-0.7202160358428955,
-0.006045275367796421,
-0.05591385066509247,
-0.6464689373970032,
-0.044647883623838425,
-0.18647697567939758,
0.049711674451828,
-0.026971908286213875,
-0.15979211032390594,
-0.12603974342346191,
-0.024683590978384018,
0.5671690106391907,
0.378622829914093,
-0.22874146699905396,
0.3316524624824524,
-0.3934292793273926,
-0.05151838809251785,
0.3871757984161377,
-0.23003828525543213,
0.8086792826652527,
-0.19253569841384888,
-0.1683199107646942,
-0.1221061646938324,
0.20056287944316864,
0.47668200731277466,
-0.12688960134983063,
1.1166706085205078,
0.5396229028701782,
-0.46185529232025146,
-0.4977184236049652,
-0.3285679817199707,
-0.14719043672084808,
-0.4110420048236847,
0.4803228974342346,
-0.2166590392589569,
-0.6855289340019226,
0.3854808807373047,
0.04096405208110809,
-0.03244048357009888,
0.5050692558288574,
0.6544979810714722,
-0.07390271127223969,
0.7897869944572449,
0.5700460076332092,
-0.4093847870826721,
0.44535592198371887,
-0.6423609256744385,
0.15504319965839386,
-0.4733920395374298,
-0.38110116124153137,
-0.6138327717781067,
-0.26540690660476685,
-0.6163927316665649,
-0.5857838988304138,
0.13025379180908203,
0.3102448284626007,
-0.6355831623077393,
0.7501205205917358,
-0.5194266438484192,
0.23289227485656738,
0.7775747179985046,
0.3396070599555969,
0.11648329347372055,
0.15740250051021576,
-0.19469045102596283,
0.1653819978237152,
-0.7813605070114136,
-0.7762805819511414,
1.44040846824646,
0.44603121280670166,
0.9528682827949524,
-0.12324367463588715,
0.7561430931091309,
0.5266806483268738,
0.3747747838497162,
-0.4534328579902649,
0.5136655569076538,
0.1114531010389328,
-0.8624780178070068,
-0.06606350094079971,
-0.5239709615707397,
-1.1855024099349976,
-0.08092964440584183,
-0.160451740026474,
-0.6452057361602783,
-0.13843442499637604,
0.18174885213375092,
-0.20238570868968964,
0.038034796714782715,
-0.7405522465705872,
1.1151419878005981,
-0.15127867460250854,
-0.06112872436642647,
0.06328332424163818,
-0.5612139701843262,
0.25780928134918213,
-0.2995452284812927,
0.33444586396217346,
-0.11667854338884354,
0.12873481214046478,
0.9989309906959534,
-0.39998894929885864,
0.8134424090385437,
-0.28176143765449524,
-0.0732434019446373,
0.2632084786891937,
0.10053350031375885,
0.5395469665527344,
-0.21831752359867096,
-0.15236125886440277,
0.6307091116905212,
-0.1254280060529709,
-0.53602534532547,
-0.2773723900318146,
0.8486336469650269,
-0.6905826926231384,
-0.13425752520561218,
-0.5674973130226135,
-0.6588891744613647,
0.175765261054039,
0.14295944571495056,
0.25826889276504517,
0.5411067008972168,
0.04480597376823425,
0.5933898091316223,
0.5298478603363037,
-0.34501057863235474,
0.379618376493454,
0.5837234258651733,
-0.3414091169834137,
-0.2293325513601303,
0.9907657504081726,
0.08910083025693893,
0.4009742736816406,
0.17468859255313873,
-0.26760998368263245,
0.059094879776239395,
-0.29677528142929077,
-0.1721474677324295,
0.05303372070193291,
-0.703718900680542,
-0.22018447518348694,
-0.6112444400787354,
-0.4806300103664398,
-0.48308587074279785,
-0.010650396347045898,
-0.2371184378862381,
-0.2069847136735916,
-0.4592569172382355,
0.06407216191291809,
0.2256113886833191,
0.5559329986572266,
0.16168120503425598,
0.007017340045422316,
-0.8461188077926636,
0.22548256814479828,
-0.047544077038764954,
0.37376803159713745,
-0.10814747214317322,
-0.7574347853660583,
-0.7774873971939087,
0.22536098957061768,
-0.24112074077129364,
-0.756543755531311,
0.6307562589645386,
-0.04617781192064285,
0.6704359650611877,
0.10909157991409302,
0.15176638960838318,
0.41924816370010376,
-0.34862592816352844,
0.7733656167984009,
0.161350816488266,
-0.8265992999076843,
0.5350971221923828,
-0.16766700148582458,
0.6528834700584412,
0.5663871169090271,
0.7337319850921631,
-0.132105752825737,
-0.49110695719718933,
-0.74077308177948,
-1.0293934345245361,
0.6817681193351746,
0.4788060486316681,
0.3520374298095703,
0.26532360911369324,
0.03582141548395157,
0.012525365687906742,
0.5298925042152405,
-1.3019682168960571,
-0.49156686663627625,
-0.021657392382621765,
-0.24549800157546997,
-0.101422980427742,
-0.19351410865783691,
-0.1663217842578888,
-0.3664652407169342,
0.8667002320289612,
-0.02767782285809517,
0.34293535351753235,
-0.12479771673679352,
-0.5924010276794434,
-0.029230305925011635,
0.02602706477046013,
0.8358809947967529,
0.8751777410507202,
-0.5552900433540344,
-0.30809804797172546,
-0.21010716259479523,
-0.6484188437461853,
-0.1528136283159256,
0.08423302322626114,
0.10955241322517395,
0.06742449849843979,
0.5262759327888489,
0.6855449676513672,
0.1116688922047615,
-0.81629878282547,
0.6678191423416138,
0.16320739686489105,
-0.6387286186218262,
-0.523979663848877,
0.2928089201450348,
0.04853811487555504,
0.39878788590431213,
0.6085241436958313,
0.4702862501144409,
-0.0814264789223671,
-0.2524276375770569,
0.46067196130752563,
0.2942660450935364,
-0.8229135274887085,
0.03094281069934368,
0.714981198310852,
0.11488480865955353,
-0.5477960109710693,
0.7783356308937073,
-0.36056625843048096,
-0.4611385464668274,
0.8969595432281494,
0.1503525972366333,
0.7975282669067383,
0.26102328300476074,
-0.01501922495663166,
0.5986865162849426,
0.5407853722572327,
0.18082191050052643,
0.2832350432872772,
-0.0005473848432302475,
-0.5815710425376892,
-0.25890085101127625,
-0.8855393528938293,
-0.14296802878379822,
0.3912288248538971,
-0.7700636386871338,
0.300782710313797,
-0.17745931446552277,
-0.09475602954626083,
-0.009570855647325516,
0.06368967145681381,
-0.829492449760437,
0.3076838254928589,
0.12460702657699585,
1.117766261100769,
-0.755729615688324,
1.1842626333236694,
0.5320255160331726,
-0.5566721558570862,
-1.0150572061538696,
-0.029985465109348297,
-0.29295358061790466,
-0.9372143745422363,
1.0278066396713257,
0.3842417895793915,
0.19560469686985016,
0.040146276354789734,
-0.8611892461776733,
-0.33744877576828003,
0.9731277227401733,
0.19698815047740936,
-0.7618241310119629,
0.09331802278757095,
0.17763644456863403,
0.5908978581428528,
-0.7084429860115051,
0.1677865833044052,
0.324398010969162,
-0.04081389307975769,
-0.1907459944486618,
-0.7749433517456055,
-0.09617899358272552,
-0.5538581013679504,
-0.06937696784734726,
-0.11920589208602905,
-0.1446273922920227,
1.3909988403320312,
-0.30982133746147156,
0.22150927782058716,
0.3424654006958008,
0.24289612472057343,
0.5762425661087036,
0.16308429837226868,
0.5500936508178711,
0.29183754324913025,
0.3069901168346405,
-0.012624906376004219,
0.7651910781860352,
-0.8145299553871155,
1.020208716392517,
1.0594483613967896,
0.0483490452170372,
0.7095346450805664,
0.21704958379268646,
-0.33133643865585327,
0.7270058393478394,
0.5903255939483643,
-0.6471065878868103,
0.3735384941101074,
0.6553350687026978,
-0.06209920346736908,
-0.17033444344997406,
0.4451334774494171,
-0.5889490842819214,
0.25491631031036377,
0.020439406856894493,
-1.0233756303787231,
-0.06190621107816696,
-0.021015342324972153,
0.09100247174501419,
-0.21913333237171173,
-0.3150760531425476,
0.4750429093837738,
0.007196235936135054,
-0.5651978850364685,
1.0047996044158936,
-0.0906708613038063,
0.6435545086860657,
-0.6841340065002441,
-0.3442259430885315,
-0.1256326287984848,
0.28937429189682007,
-0.12106016278266907,
-0.43628522753715515,
-0.2690187096595764,
0.34606844186782837,
-0.36083802580833435,
-0.347329318523407,
0.5172870755195618,
-0.492703378200531,
-0.8196839094161987,
0.28739267587661743,
0.3478265702724457,
0.5058952569961548,
-0.35558077692985535,
-0.9468738436698914,
0.017396539449691772,
0.14315219223499298,
-0.39005738496780396,
0.43828877806663513,
0.09697981178760529,
0.2258382886648178,
0.7202198505401611,
0.7357098460197449,
-0.1035337820649147,
0.2090386152267456,
0.22297590970993042,
0.8614339828491211,
-0.8099887371063232,
-0.35496315360069275,
-0.8090229034423828,
0.6860323548316956,
0.11049935221672058,
-0.5186087489128113,
0.8896950483322144,
0.9797955751419067,
0.911529541015625,
-0.4737153649330139,
0.7547631859779358,
-0.12367042154073715,
0.2644106447696686,
-0.3655451536178589,
0.9046453833580017,
-0.5083818435668945,
0.2965717017650604,
-0.4314027428627014,
-0.943164587020874,
-0.10736516118049622,
0.6383329629898071,
0.034940484911203384,
0.4083804786205292,
0.551122784614563,
1.1814305782318115,
0.27826520800590515,
-0.1581898331642151,
0.5238676071166992,
0.06622263789176941,
0.17670708894729614,
0.5887917280197144,
0.6279491186141968,
-0.7739464640617371,
0.7835692763328552,
-0.1794857382774353,
-0.2088996171951294,
-0.36258965730667114,
-0.7579129934310913,
-0.9584645628929138,
-0.5211089849472046,
-0.45719093084335327,
-0.8549750447273254,
-0.2110767960548401,
1.0848586559295654,
0.9290948510169983,
-1.1157476902008057,
-0.47730231285095215,
-0.22659151256084442,
-0.19970940053462982,
-0.3120459020137787,
-0.28237077593803406,
0.06073956936597824,
-0.4932689964771271,
-0.8145240545272827,
0.05815138295292854,
-0.08735670894384384,
-0.28790196776390076,
-0.48611757159233093,
-0.1624193787574768,
-0.3770337402820587,
-0.2255324125289917,
0.4069610834121704,
-0.03643104061484337,
-0.4588530361652374,
-0.022800875827670097,
0.23829898238182068,
-0.5152238607406616,
0.06135275214910507,
0.7910489439964294,
-0.8276563882827759,
0.5493056178092957,
0.2450004518032074,
0.23699228465557098,
0.4677467346191406,
0.00045271203271113336,
0.6044101715087891,
-0.7762478590011597,
-0.07046650350093842,
0.24898040294647217,
0.2916797995567322,
-0.00066638074349612,
-0.13920697569847107,
0.5383307933807373,
0.25382083654403687,
-0.6503170132637024,
-0.8310136198997498,
-0.13721780478954315,
-1.1269636154174805,
-0.28486722707748413,
1.4559440612792969,
-0.3999071419239044,
-0.006225913297384977,
-0.04334908351302147,
-0.10574395954608917,
0.09192513674497604,
-0.4824594557285309,
0.41537678241729736,
0.5539514422416687,
0.030606037005782127,
-0.11552250385284424,
-0.7595077157020569,
0.31113019585609436,
0.07284523546695709,
-0.5615257620811462,
-0.3543223738670349,
0.26903268694877625,
0.6370449066162109,
0.24434497952461243,
0.5707253813743591,
0.16390107572078705,
0.33634844422340393,
0.2516624629497528,
0.4521852433681488,
-0.3801739513874054,
-0.4458064138889313,
-0.5108912587165833,
0.47262099385261536,
-0.0722212865948677,
-0.5955336689949036
] |
Kaludi/food-category-classification-v2.0 | Kaludi | "2023-02-09T19:20:59Z" | 123,263 | 11 | transformers | [
"transformers",
"pytorch",
"swin",
"image-classification",
"vision",
"dataset:Kaludi/food-category-classification-v2.0",
"co2_eq_emissions",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | image-classification | "2023-02-08T20:35:47Z" | ---
tags:
- vision
- image-classification
datasets:
- Kaludi/food-category-classification-v2.0
widget:
- src: https://www.foodandwine.com/thmb/gv06VNqj1uUJHGlw5e7IULwUmr8=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/2012-r-xl-vegetable-sandwich-with-dill-sauce-2000-0984c1b513ae4af396aee039afa5e38c.jpg
example_title: Bread
- src: https://cdn.britannica.com/34/176234-050-0E0C55C6/Glass-milk.jpg
example_title: Dairy
- src: https://images-gmi-pmc.edge-generalmills.com/7c1096c7-bfd0-4806-a794-1d3001fe0063.jpg
example_title: Dessert
- src: https://theheirloompantry.co/wp-content/uploads/2022/06/how-to-fry-eggs-perfectly-in-4-ways-the-heirloom-pantry.jpg
example_title: Egg
- src: https://www.mashed.com/img/gallery/the-real-reason-fried-foods-are-so-popular-right-now/l-intro-1650327494.jpg
example_title: Fried Food
- src: https://www.seriouseats.com/thmb/WzQz05gt5witRGeOYKTcTqfe1gs=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/butter-basted-pan-seared-steaks-recipe-hero-06-03b1131c58524be2bd6c9851a2fbdbc3.jpg
example_title: Meat
- src: https://assets3.thrillist.com/v1/image/3097381/1200x600/scale;
example_title: Seafood
- src: https://i0.wp.com/post.healthline.com/wp-content/uploads/2020/03/romaine-lettuce-1296x728-body.jpg?w=1155&h=1528
example_title: Vegetable
co2_eq_emissions:
emissions: 12.456278925446485
---
# Food Category Classification v2.0
This is an updated Food Category Image Classifier model of the [old](https://huggingface.co/Kaludi/food-category-classification) model that has been trained by [Kaludi](https://huggingface.co/Kaludi) to recognize **12** different categories of foods, which includes **Bread**, **Dairy**, **Dessert**, **Egg**, **Fried Food**, **Fruit**, **Meat**, **Noodles**, **Rice**, **Seafood**, **Soup**, and **Vegetable**. It can accurately classify an image of food into one of these categories by analyzing its visual features. This model can be used by food bloggers, restaurants, and recipe websites to quickly categorize and sort their food images, making it easier to manage their content and provide a better user experience.
### Gradio
This model supports a [Gradio](https://github.com/gradio-app/gradio) Web UI to run the data-food-classification model:
[![Open In HF Spaces](https://camo.githubusercontent.com/00380c35e60d6b04be65d3d94a58332be5cc93779f630bcdfc18ab9a3a7d3388/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f25463025394625413425393725323048756767696e67253230466163652d5370616365732d626c7565)](https://huggingface.co/spaces/Kaludi/Food-Category-Classification_V2_App)
## Validation Metrics
- Problem type: Multi-class Classification
- Model ID: 3353292434
- CO2 Emissions (in grams): 12.4563
- Loss: 0.144
- Accuracy: 0.960
- Macro F1: 0.959
- Micro F1: 0.960
- Weighted F1: 0.959
- Macro Precision: 0.962
- Micro Precision: 0.960
- Weighted Precision: 0.962
- Macro Recall: 0.960
- Micro Recall: 0.960
- Weighted Recall: 0.960 | [
-0.16659575700759888,
-0.4754251539707184,
-0.03235291317105293,
-0.27455976605415344,
-0.07282838225364685,
-0.15702366828918457,
0.21161149442195892,
-0.8077400326728821,
0.0026549426838755608,
0.5073866844177246,
-0.3616955280303955,
-0.5756828188896179,
-0.6554816961288452,
-0.09933526813983917,
-0.23241712152957916,
1.1726933717727661,
-0.21498718857765198,
0.18620449304580688,
-0.44121184945106506,
-0.31363871693611145,
-0.7484705448150635,
-0.5032123327255249,
-0.6032184362411499,
-0.25000593066215515,
0.5990846157073975,
0.7509320378303528,
0.7444341778755188,
0.5707554817199707,
0.6334919929504395,
0.21558387577533722,
-0.19632568955421448,
0.1334129273891449,
-0.16817711293697357,
-0.06878945231437683,
-0.18292909860610962,
-0.6023937463760376,
-0.4747902750968933,
0.1650610864162445,
0.13399706780910492,
0.21094554662704468,
-0.1639883816242218,
0.5887048840522766,
-0.07436481863260269,
0.9033204317092896,
-0.6062755584716797,
0.45420730113983154,
-0.5215981602668762,
0.27775484323501587,
0.1267542839050293,
-0.11938637495040894,
-0.2300661951303482,
-0.42678070068359375,
-0.07539725303649902,
-0.730262041091919,
0.06676799803972244,
-0.1167701706290245,
1.3962981700897217,
0.31995314359664917,
-0.6531645655632019,
-0.44925373792648315,
-0.6222215294837952,
0.5597630143165588,
-0.44080305099487305,
0.46650657057762146,
0.5418544411659241,
0.7857422828674316,
-0.4013562500476837,
-1.0990684032440186,
-0.5075745582580566,
0.20646099746227264,
0.08464749157428741,
0.12401178479194641,
-0.14266806840896606,
-0.647142767906189,
0.07027819007635117,
0.6037318706512451,
-0.5500081777572632,
0.37959912419319153,
-0.6601046919822693,
0.037833381444215775,
0.43184947967529297,
0.08210576325654984,
0.2918592691421509,
0.07742688059806824,
-0.6544167399406433,
-0.46358710527420044,
-0.2705351412296295,
0.4853088855743408,
-0.07181379199028015,
-0.03147886320948601,
-0.1574387103319168,
0.6848012208938599,
-0.5094617605209351,
0.5556666851043701,
-0.17632924020290375,
-0.493791401386261,
0.7882300615310669,
-0.34478965401649475,
-0.28131431341171265,
-0.10647382587194443,
0.5635865330696106,
1.1992520093917847,
0.02757304534316063,
0.5309578776359558,
-0.14190201461315155,
0.3535671532154083,
0.01603861339390278,
-0.6299875974655151,
-0.47421586513519287,
0.20772136747837067,
-0.27924031019210815,
-0.6376884579658508,
0.11021601408720016,
-0.7216471433639526,
-0.431086003780365,
0.3055054545402527,
0.2214106023311615,
0.02356674335896969,
-0.3807796239852905,
0.3445813059806824,
-0.61156165599823,
0.7497156858444214,
0.7117741703987122,
-1.1390538215637207,
0.5852454900741577,
0.775990903377533,
0.9286687970161438,
0.4147796630859375,
0.11481289565563202,
-0.364716500043869,
0.2548324763774872,
-0.1434689462184906,
1.0869449377059937,
-0.564628541469574,
-0.10887280851602554,
-0.3767894506454468,
0.6834981441497803,
0.18819011747837067,
-0.8469778299331665,
0.8792799115180969,
-0.42445436120033264,
0.18707427382469177,
-0.6289592981338501,
-0.5678924322128296,
-0.6256999969482422,
0.2341228872537613,
-0.7281400561332703,
1.2034207582473755,
0.5094910860061646,
-0.6852861046791077,
0.711950957775116,
-0.42256730794906616,
-0.2385619878768921,
0.4161117374897003,
-0.2562703788280487,
-0.7168378829956055,
-0.1458127647638321,
-0.018637103959918022,
0.2393118143081665,
-0.462272047996521,
0.20478788018226624,
-0.5932374000549316,
-0.22293944656848907,
-0.1525849848985672,
0.015306945890188217,
0.5839417576789856,
0.42538684606552124,
-0.06602539867162704,
0.19205673038959503,
-0.4969363510608673,
0.1348482221364975,
0.5112954378128052,
-0.3040508031845093,
-0.24998830258846283,
0.017604269087314606,
0.3948421776294708,
0.25880903005599976,
0.26944297552108765,
-0.2848779261112213,
0.5365305542945862,
0.07333460450172424,
0.5689716339111328,
0.632565975189209,
-0.08731607347726822,
0.3261251449584961,
-0.5840784907341003,
0.19175678491592407,
0.24014821648597717,
0.5362803936004639,
0.026678960770368576,
-1.1709215641021729,
-0.5762168765068054,
-0.24178948998451233,
0.6610838770866394,
1.0252043008804321,
-0.40914350748062134,
0.7898395657539368,
-0.09447786957025528,
-0.8939152359962463,
-0.15270067751407623,
-0.23949456214904785,
0.07001380622386932,
0.8037564754486084,
0.23865941166877747,
-0.4992205500602722,
-0.6486598253250122,
-0.8158624768257141,
0.07312962412834167,
-0.11380770802497864,
0.013354906812310219,
0.24877047538757324,
0.6728306412696838,
-0.5231260657310486,
0.6687683463096619,
-0.5856525301933289,
-0.2157481461763382,
-0.17783382534980774,
-0.09526727348566055,
0.14385034143924713,
0.6810302734375,
0.8891778588294983,
-0.7899195551872253,
-0.5345354080200195,
0.5541810393333435,
-0.7812435626983643,
0.22211489081382751,
0.3920861780643463,
-0.054620373994112015,
0.2637644112110138,
0.19567352533340454,
-0.39362895488739014,
0.7064348459243774,
0.35135501623153687,
-0.6711596250534058,
0.19483539462089539,
0.0034617914352566004,
0.16683174669742584,
-1.093034267425537,
-0.25144508481025696,
0.2399834245443344,
-0.12329387664794922,
-0.44062456488609314,
0.24378128349781036,
0.31546446681022644,
0.14131732285022736,
-0.8297833800315857,
0.9459086060523987,
-0.11693723499774933,
-0.15951111912727356,
-0.24693511426448822,
-0.6067748069763184,
0.19572974741458893,
0.3699464499950409,
0.10033004730939865,
0.5372035503387451,
0.6880471706390381,
-0.6152408123016357,
0.6337817907333374,
-0.008195629343390465,
-0.7863351702690125,
0.24351854622364044,
-0.6207807660102844,
-0.1193692609667778,
-0.1341744363307953,
0.4776679277420044,
-1.4323384761810303,
-0.6337758302688599,
1.0432275533676147,
-0.42044976353645325,
0.10344494134187698,
-0.14142952859401703,
-0.7293217182159424,
-0.8258939385414124,
-0.36876606941223145,
0.5100787281990051,
0.6218774914741516,
-0.6847643852233887,
0.29922282695770264,
0.47862687706947327,
0.18719562888145447,
-0.05920553579926491,
-0.8954200148582458,
-0.3583669066429138,
-0.10546325892210007,
-0.48128166794776917,
-0.20398059487342834,
-0.08104286342859268,
0.011595032177865505,
0.08905165642499924,
-0.48364150524139404,
-0.2979130446910858,
0.16821429133415222,
0.38075146079063416,
0.22514624893665314,
0.000008218052244046703,
0.052138108760118484,
0.26201727986335754,
0.059433456510305405,
-0.19421285390853882,
-0.08358237892389297,
0.719525933265686,
-0.3111375570297241,
0.13957567512989044,
-0.9655043482780457,
-0.13509154319763184,
0.6300656795501709,
-0.27752748131752014,
0.3978516757488251,
1.0440938472747803,
-0.742881178855896,
0.4455885589122772,
-0.27432554960250854,
0.130676731467247,
-0.49408072233200073,
0.6324093341827393,
-0.4332866072654724,
-0.7120270133018494,
0.5021101832389832,
-0.010199458338320255,
-0.10406383126974106,
0.860607922077179,
0.1466299146413803,
0.007715543266385794,
0.9357478618621826,
0.12574005126953125,
0.041086651384830475,
0.4027499854564667,
-0.4315497577190399,
-0.12080121785402298,
-0.7540144324302673,
-1.180593729019165,
-0.792574405670166,
-0.17886629700660706,
-0.8169589042663574,
-0.6630813479423523,
0.1907072365283966,
0.1930563598871231,
-0.17259657382965088,
0.36035624146461487,
-0.7164463996887207,
0.7121080160140991,
0.6611950993537903,
0.40868088603019714,
-0.10989586263895035,
0.38763588666915894,
0.09225514531135559,
0.13922257721424103,
-0.7156826257705688,
-0.4448910057544708,
0.849226176738739,
0.9224645495414734,
0.860237717628479,
0.28526929020881653,
0.4423677623271942,
0.4789505898952484,
0.18396106362342834,
-1.0976892709732056,
0.41617685556411743,
-0.44514894485473633,
-0.730644166469574,
0.0011432698229327798,
-0.37906497716903687,
-0.5280249118804932,
0.08578289300203323,
0.005439824890345335,
-0.7789021730422974,
0.19829650223255157,
0.1573636829853058,
-0.34771934151649475,
0.5210662484169006,
-1.406526803970337,
1.363143801689148,
-0.49927017092704773,
-0.4211856424808502,
0.3415566086769104,
-0.44012558460235596,
0.300731897354126,
0.12594301998615265,
0.20434221625328064,
-0.2840733230113983,
-0.17342020571231842,
1.061214804649353,
-0.6617484092712402,
0.8487929701805115,
-0.4375501275062561,
-0.20649753510951996,
0.49382108449935913,
-0.32717397809028625,
0.5987964272499084,
0.264034241437912,
0.07774202525615692,
0.21345974504947662,
0.2754482328891754,
-0.4283539950847626,
-0.6226473450660706,
0.6902126669883728,
-0.6366971731185913,
-0.22675852477550507,
-0.950733482837677,
-0.07538135349750519,
0.11405020952224731,
0.24190619587898254,
0.24092285335063934,
0.15176892280578613,
0.3670075237751007,
0.19619205594062805,
0.5916146039962769,
0.014819130301475525,
0.046989213675260544,
0.4440794885158539,
-0.5738091468811035,
-0.6958019137382507,
1.0335609912872314,
0.08543028682470322,
-0.1500495970249176,
0.3998854160308838,
0.3529496490955353,
-0.3773733973503113,
-0.1053173691034317,
-0.4429692029953003,
-0.303864061832428,
-0.6436043977737427,
-0.6504313349723816,
-0.6221650838851929,
-0.31388166546821594,
-0.5447593331336975,
0.034340597689151764,
-0.23070698976516724,
-0.4094153642654419,
-0.6684380173683167,
-0.1908564269542694,
0.6202613711357117,
0.9456850290298462,
-0.011446465738117695,
0.3322511613368988,
-0.7731690406799316,
0.2524643838405609,
0.3819519877433777,
0.4588131308555603,
-0.010315509513020515,
-0.624753475189209,
-0.13282981514930725,
0.03918701782822609,
-0.40650805830955505,
-1.035996675491333,
0.33702534437179565,
0.23949208855628967,
0.23454825580120087,
0.5252232551574707,
-0.39491719007492065,
0.5956617593765259,
-0.1951867789030075,
0.8596814870834351,
0.5909855961799622,
-0.5315188765525818,
0.6688265800476074,
0.043744999915361404,
0.6533777713775635,
0.5191234946250916,
0.6792543530464172,
-0.5951887369155884,
0.0020709470845758915,
-0.19374386966228485,
-0.7951281666755676,
0.6455662846565247,
-0.21420668065547943,
-0.37631604075431824,
-0.10424654930830002,
0.4840729236602783,
0.511013925075531,
0.04125235602259636,
-0.8005285859107971,
-0.3186074197292328,
-0.4005478024482727,
-0.26327407360076904,
0.21232785284519196,
-0.6546350121498108,
0.2750983238220215,
-1.010745882987976,
0.5847828984260559,
0.25169867277145386,
0.039505138993263245,
-0.04901343584060669,
0.5680188536643982,
-0.43697240948677063,
0.13669176399707794,
0.68114173412323,
0.20415200293064117,
-0.6172832250595093,
0.11337918788194656,
-0.1534276306629181,
-0.6722834706306458,
0.1390051692724228,
-0.12258079648017883,
-0.06772729754447937,
-0.20570845901966095,
0.11804679781198502,
0.8483773469924927,
0.07807481288909912,
-0.5341264605522156,
0.43023765087127686,
-0.5621349811553955,
-0.5941530466079712,
-0.36986371874809265,
0.461905837059021,
-0.4558461010456085,
0.38879984617233276,
0.2728445529937744,
0.5328698754310608,
0.4530138671398163,
-0.8525563478469849,
0.3334243595600128,
0.12098453938961029,
-0.24574875831604004,
-0.24060723185539246,
0.4597305953502655,
0.03979533538222313,
-0.12514497339725494,
0.6461164951324463,
-0.7766762971878052,
-0.5702725052833557,
0.8989297747612,
0.7509100437164307,
0.6542820334434509,
-0.4247060716152191,
0.3892650008201599,
0.8475325107574463,
0.1924045979976654,
-0.35607805848121643,
0.657887876033783,
0.00899805873632431,
-0.4346572756767273,
0.2553272545337677,
-0.7342552542686462,
-0.23442023992538452,
0.6190417408943176,
-0.7260326743125916,
0.40107133984565735,
-0.6575762629508972,
-0.25420713424682617,
0.30127355456352234,
0.03740282729268074,
-0.616066038608551,
0.417797327041626,
0.02323729544878006,
1.0545703172683716,
-1.0540826320648193,
0.90006023645401,
1.1895034313201904,
-0.11425866186618805,
-0.5613446235656738,
-0.3026883602142334,
0.06036655232310295,
-0.7083036303520203,
0.49396318197250366,
0.3448547422885895,
0.237994983792305,
-0.3888773024082184,
-0.8553156852722168,
-0.9460963010787964,
1.108973741531372,
-0.4324241876602173,
-0.7715362310409546,
0.11895140260457993,
0.09079688042402267,
0.5707128643989563,
-0.22338688373565674,
0.2196037769317627,
0.02264457195997238,
0.6988958120346069,
0.5533919930458069,
-0.8277374505996704,
-0.16046002507209778,
-0.5521495938301086,
-0.0009467978379689157,
0.05075067654252052,
-0.9727082252502441,
0.8021411895751953,
-0.1925019770860672,
-0.33422306180000305,
0.39523208141326904,
0.6396501064300537,
0.001955654937773943,
0.7567488551139832,
0.44706419110298157,
1.0600868463516235,
0.8881489634513855,
-0.3954804539680481,
0.8839235305786133,
0.0046295421198010445,
0.5608015060424805,
1.5055702924728394,
-0.486272931098938,
0.695723831653595,
0.29621422290802,
-0.17605282366275787,
0.4362848997116089,
1.337143898010254,
-0.5728172063827515,
1.118372917175293,
0.08596232533454895,
0.023081200197339058,
0.032729342579841614,
-0.307171106338501,
-0.8621810674667358,
0.4515185058116913,
0.25565406680107117,
-0.40447282791137695,
-0.18473847210407257,
0.03805309906601906,
-0.07257287949323654,
-0.38744455575942993,
-0.3903657793998718,
0.7729533910751343,
-0.3773583769798279,
-0.23659908771514893,
0.7688257098197937,
0.15557056665420532,
0.3421941101551056,
-0.22458860278129578,
-0.46107080578804016,
-0.169656902551651,
0.08426462858915329,
-0.4258301854133606,
-1.0087813138961792,
-0.05932237580418587,
-0.13427451252937317,
-0.11459038406610489,
0.34805828332901,
0.6149697303771973,
-0.041049569845199585,
-0.7124310731887817,
0.08663680404424667,
0.14897122979164124,
0.04628444463014603,
0.2117307335138321,
-0.6486867070198059,
0.6324864029884338,
-0.06361173093318939,
0.14445818960666656,
-0.03984419256448746,
0.17190323770046234,
0.017240528017282486,
0.4802810549736023,
0.29282471537590027,
-0.5781488418579102,
0.13409528136253357,
-0.1773635447025299,
0.9443303942680359,
-0.6261833906173706,
-0.4066128432750702,
-0.45072829723358154,
0.2971120774745941,
0.0764750987291336,
-0.2511588931083679,
0.5923686623573303,
1.1242382526397705,
1.5880775451660156,
-0.47348684072494507,
0.6421549320220947,
-0.2454906553030014,
0.3110707104206085,
-0.5449256300926208,
0.28086066246032715,
-1.0713902711868286,
0.2294924408197403,
0.002324155531823635,
-0.5053464770317078,
-0.1855103075504303,
0.6119545102119446,
-0.38223379850387573,
0.18190176784992218,
0.5210215449333191,
0.7437914609909058,
-0.18820102512836456,
-0.08307985216379166,
0.023844260722398758,
0.05091270059347153,
-0.02122337557375431,
0.4110252857208252,
0.837109386920929,
-0.8865622282028198,
0.03907203674316406,
-0.4460028111934662,
-0.44003209471702576,
-0.492251992225647,
-0.10721394419670105,
-0.6247000098228455,
-0.4409991502761841,
-0.44727200269699097,
-0.24890266358852386,
0.20668655633926392,
0.7464865446090698,
0.9253296852111816,
-0.8624605536460876,
-0.187053844332695,
-0.1233118548989296,
0.10093946009874344,
-0.32531246542930603,
-0.30813512206077576,
0.010652598924934864,
0.16650770604610443,
-0.5135892629623413,
-0.011670577339828014,
0.0924924835562706,
0.30119290947914124,
0.38747134804725647,
-0.36008477210998535,
-0.26462888717651367,
-0.2484940141439438,
0.6816995739936829,
0.4965820908546448,
-0.793035626411438,
-0.3235586881637573,
-0.43576329946517944,
0.031568314880132675,
0.45389601588249207,
0.08137474209070206,
-0.4179628789424896,
0.41533857583999634,
0.3642924427986145,
0.24570323526859283,
0.23151902854442596,
-0.10607867687940598,
-0.38878726959228516,
-0.43649721145629883,
0.09416524320840836,
-0.19105307757854462,
0.3192993700504303,
0.18309728801250458,
-0.3512299060821533,
0.740856409072876,
0.5161873698234558,
-0.36658355593681335,
-0.8356221318244934,
0.12879963219165802,
-1.3111917972564697,
-0.24885304272174835,
1.1304256916046143,
0.09174750745296478,
-0.99253249168396,
0.38348573446273804,
-0.15282171964645386,
0.3822953402996063,
-0.5311581492424011,
0.6672322154045105,
0.43642672896385193,
0.06776630878448486,
-0.23377133905887604,
-0.3966062664985657,
0.4601052701473236,
0.024663889780640602,
-1.1351605653762817,
-0.4679854214191437,
0.5111211538314819,
0.5899723172187805,
0.24681422114372253,
0.21665674448013306,
-0.20534028112888336,
0.537545382976532,
-0.025108428671956062,
0.27672430872917175,
0.10403436422348022,
-0.7782641053199768,
-0.1852172166109085,
-0.04705027863383293,
0.03613774850964546,
-0.5079124569892883
] |
tiiuae/falcon-7b | tiiuae | "2023-09-29T14:32:19Z" | 122,956 | 939 | transformers | [
"transformers",
"pytorch",
"falcon",
"text-generation",
"custom_code",
"en",
"dataset:tiiuae/falcon-refinedweb",
"arxiv:2205.14135",
"arxiv:1911.02150",
"arxiv:2101.00027",
"arxiv:2005.14165",
"arxiv:2104.09864",
"arxiv:2306.01116",
"license:apache-2.0",
"has_space",
"text-generation-inference",
"region:us"
] | text-generation | "2023-04-24T16:36:24Z" | ---
datasets:
- tiiuae/falcon-refinedweb
language:
- en
inference: false
license: apache-2.0
---
# 🚀 Falcon-7B
**Falcon-7B is a 7B parameters causal decoder-only model built by [TII](https://www.tii.ae) and trained on 1,500B tokens of [RefinedWeb](https://huggingface.co/datasets/tiiuae/falcon-refinedweb) enhanced with curated corpora. 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?
* **It outperforms 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)).
* **It is made available under a permissive Apache 2.0 license allowing for commercial use**, without any royalties or restrictions.
⚠️ **This is a raw, pretrained model, which should be further finetuned for most usecases.** If you are looking for a version better suited to taking generic instructions in a chat format, we recommend taking a look at [Falcon-7B-Instruct](https://huggingface.co/tiiuae/falcon-7b-instruct).
🔥 **Looking for an even more powerful model?** [Falcon-40B](https://huggingface.co/tiiuae/falcon-40b) is Falcon-7B's big brother!
```python
from transformers import AutoTokenizer, AutoModelForCausalLM
import transformers
import torch
model = "tiiuae/falcon-7b"
tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
"text-generation",
model=model,
tokenizer=tokenizer,
torch_dtype=torch.bfloat16,
trust_remote_code=True,
device_map="auto",
)
sequences = pipeline(
"Girafatron is obsessed with giraffes, the most glorious animal on the face of this Earth. Giraftron believes all other animals are irrelevant when compared to the glorious majesty of the giraffe.\nDaniel: Hello, Girafatron!\nGirafatron:",
max_length=200,
do_sample=True,
top_k=10,
num_return_sequences=1,
eos_token_id=tokenizer.eos_token_id,
)
for seq in sequences:
print(f"Result: {seq['generated_text']}")
```
💥 **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.
# Model Card for Falcon-7B
## Model Details
### Model Description
- **Developed by:** [https://www.tii.ae](https://www.tii.ae);
- **Model type:** Causal decoder-only;
- **Language(s) (NLP):** English, German, Spanish, French (and limited capabilities in Italian, Portuguese, Polish, Dutch, Romanian, Czech, Swedish);
- **License:** Apache 2.0.
### Model Source
- **Paper:** *coming soon*.
## Uses
### Direct Use
Research on large language models; as a foundation for further specialization and finetuning for specific usecases (e.g., summarization, text generation, chatbot, etc.)
### Out-of-Scope Use
Production use without adequate assessment of risks and mitigation; any use cases which may be considered irresponsible or harmful.
## Bias, Risks, and Limitations
Falcon-7B is trained on English and French data only, and will not generalize appropriately to other languages. Furthermore, as it is trained on a large-scale corpora representative of the web, it will carry the stereotypes and biases commonly encountered online.
### Recommendations
We recommend users of Falcon-7B to consider finetuning it for the specific set of tasks of interest, and for guardrails and appropriate precautions to be taken for any production use.
## How to Get Started with the Model
```python
from transformers import AutoTokenizer, AutoModelForCausalLM
import transformers
import torch
model = "tiiuae/falcon-7b"
tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
"text-generation",
model=model,
tokenizer=tokenizer,
torch_dtype=torch.bfloat16,
trust_remote_code=True,
device_map="auto",
)
sequences = pipeline(
"Girafatron is obsessed with giraffes, the most glorious animal on the face of this Earth. Giraftron believes all other animals are irrelevant when compared to the glorious majesty of the giraffe.\nDaniel: Hello, Girafatron!\nGirafatron:",
max_length=200,
do_sample=True,
top_k=10,
num_return_sequences=1,
eos_token_id=tokenizer.eos_token_id,
)
for seq in sequences:
print(f"Result: {seq['generated_text']}")
```
## Training Details
### Training Data
Falcon-7B was trained on 1,500B tokens of [RefinedWeb](https://huggingface.co/datasets/tiiuae/falcon-refinedweb), a high-quality filtered and deduplicated web dataset which we enhanced with curated corpora. Significant components from our curated copora were inspired by The Pile ([Gao et al., 2020](https://arxiv.org/abs/2101.00027)).
| **Data source** | **Fraction** | **Tokens** | **Sources** |
|--------------------|--------------|------------|-----------------------------------|
| [RefinedWeb-English](https://huggingface.co/datasets/tiiuae/falcon-refinedweb) | 79% | 1,185B | massive web crawl |
| Books | 7% | 110B | |
| Conversations | 6% | 85B | Reddit, StackOverflow, HackerNews |
| Code | 3% | 45B | |
| RefinedWeb-French | 3% | 45B | massive web crawl |
| Technical | 2% | 30B | arXiv, PubMed, USPTO, etc. |
The data was tokenized with the Falcon-[7B](https://huggingface.co/tiiuae/falcon-7b)/[40B](https://huggingface.co/tiiuae/falcon-40b) tokenizer.
### Training Procedure
Falcon-7B was trained on 384 A100 40GB GPUs, using a 2D parallelism strategy (PP=2, DP=192) combined with ZeRO.
#### Training Hyperparameters
| **Hyperparameter** | **Value** | **Comment** |
|--------------------|------------|-------------------------------------------|
| Precision | `bfloat16` | |
| Optimizer | AdamW | |
| Learning rate | 6e-4 | 4B tokens warm-up, cosine decay to 1.2e-5 |
| Weight decay | 1e-1 | |
| Z-loss | 1e-4 | |
| Batch size | 2304 | 30B tokens ramp-up |
#### Speeds, Sizes, Times
Training happened in early March 2023 and took about two weeks.
## Evaluation
*Paper coming soon*.
See the [OpenLLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard) for early results.
## Technical Specifications
### Model Architecture and Objective
Falcon-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 was trained on AWS SageMaker, on 384 A100 40GB GPUs in P4d instances.
#### Software
Falcon-7B 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 is made available under the Apache 2.0 license.
## Contact
falconllm@tii.ae | [
-0.5289661288261414,
-0.8958762288093567,
0.10604669153690338,
0.3045129179954529,
-0.19072477519512177,
-0.10786842554807663,
-0.17073388397693634,
-0.5103746652603149,
0.22508391737937927,
0.3690667450428009,
-0.442359060049057,
-0.5447860360145569,
-0.8002747297286987,
0.23950573801994324,
-0.34672224521636963,
1.0192395448684692,
0.12009869515895844,
-0.06911761313676834,
0.27666419744491577,
-0.035739682614803314,
-0.17908714711666107,
-0.4966277778148651,
-0.8892985582351685,
-0.06054815649986267,
0.505788266658783,
0.1690058708190918,
0.586341917514801,
1.055642008781433,
0.698340117931366,
0.3576210141181946,
-0.3069227337837219,
0.2664477229118347,
-0.6168222427368164,
-0.2629353106021881,
-0.14574018120765686,
-0.24667055904865265,
-0.24021120369434357,
-0.028237316757440567,
0.7671251893043518,
0.6005654335021973,
0.028195779770612717,
0.2575046122074127,
-0.08869724720716476,
0.5966010689735413,
-0.5945896506309509,
0.5358479619026184,
-0.5336265563964844,
-0.05534237623214722,
-0.21709690988063812,
0.1713414490222931,
-0.44580939412117004,
0.0429857037961483,
-0.346212238073349,
-0.8958776593208313,
0.31130266189575195,
0.22807414829730988,
1.1910028457641602,
0.29275065660476685,
-0.42929112911224365,
-0.3041290044784546,
-0.3640429675579071,
0.658564567565918,
-0.7669464945793152,
0.43737098574638367,
0.20646551251411438,
0.3282460868358612,
-0.4160079061985016,
-1.0542752742767334,
-0.5464741587638855,
-0.2250465452671051,
0.0038124839775264263,
0.3544119596481323,
-0.13080954551696777,
0.039363741874694824,
0.5153038501739502,
0.21022044122219086,
-0.4686238169670105,
0.0014901518588885665,
-0.5884573459625244,
-0.17737995088100433,
0.6422167420387268,
-0.04012579843401909,
0.22848477959632874,
-0.26768994331359863,
-0.39419540762901306,
-0.37318146228790283,
-0.4115176200866699,
0.31382623314857483,
0.42568129301071167,
0.36477428674697876,
-0.26608550548553467,
0.4588727355003357,
-0.3191205561161041,
0.5161948204040527,
0.4955351650714874,
-0.07746236026287079,
0.40040725469589233,
-0.3351176679134369,
-0.3896799087524414,
0.06311696767807007,
1.110612392425537,
0.1717732548713684,
0.08941608667373657,
-0.16694118082523346,
-0.06630082428455353,
0.04099152237176895,
0.13678570091724396,
-0.9899884462356567,
0.15125444531440735,
0.1821928322315216,
-0.5804810523986816,
-0.2780883014202118,
0.47579285502433777,
-0.7053412795066833,
-0.07731905579566956,
0.019846929237246513,
0.13412928581237793,
-0.49354487657546997,
-0.4067714512348175,
0.25024861097335815,
-0.18091028928756714,
0.2380741387605667,
0.014450299553573132,
-0.8061540126800537,
0.2217094898223877,
0.6660957336425781,
0.8961963057518005,
0.03200636804103851,
-0.6691046357154846,
-0.7985613346099854,
0.060879722237586975,
-0.3814583420753479,
0.5504425764083862,
-0.47223418951034546,
-0.4240584969520569,
-0.10347727686166763,
0.36972683668136597,
-0.3561517596244812,
-0.20844560861587524,
0.8552730083465576,
-0.3316936194896698,
0.19995106756687164,
-0.4419002830982208,
-0.5543045997619629,
-0.40010005235671997,
0.030538052320480347,
-0.6741029620170593,
0.9965619444847107,
0.06068554148077965,
-1.047101378440857,
0.26990973949432373,
-0.8422029614448547,
-0.27588677406311035,
-0.22128146886825562,
-0.039056070148944855,
-0.43159201741218567,
-0.09110411256551743,
0.44158509373664856,
0.5967606902122498,
-0.3720782697200775,
0.5112330913543701,
-0.6362544298171997,
-0.5886348485946655,
-0.044536277651786804,
-0.14003972709178925,
0.8884969353675842,
0.5903122425079346,
-0.635475218296051,
0.10655208677053452,
-0.6740686893463135,
-0.2952934801578522,
0.25594592094421387,
-0.08209989964962006,
0.1500624269247055,
-0.12479068338871002,
0.13096323609352112,
0.3270679712295532,
0.04488049075007439,
-0.6361904740333557,
0.2321244776248932,
-0.6795594692230225,
0.6136366724967957,
0.4435647428035736,
-0.07478836178779602,
0.3497893214225769,
-0.4980088472366333,
0.417253702878952,
0.4978855550289154,
0.33037009835243225,
-0.2611696422100067,
-0.5773178339004517,
-0.9363040328025818,
-0.30762848258018494,
0.15211592614650726,
0.32600486278533936,
-0.6500749588012695,
0.4652530252933502,
-0.1703689694404602,
-0.6832535266876221,
-0.4398089349269867,
-0.1681644469499588,
0.5235100984573364,
0.6713287830352783,
0.5011435747146606,
0.08680109679698944,
-0.6261236071586609,
-0.8043482899665833,
-0.05828874185681343,
-0.27436405420303345,
0.33681243658065796,
0.07389617711305618,
0.7229183912277222,
-0.3389599919319153,
0.6424102187156677,
-0.2941969335079193,
-0.22980953752994537,
-0.1943482607603073,
0.032708603888750076,
0.3218831717967987,
0.5392250418663025,
0.7762313485145569,
-0.6174197196960449,
-0.22427839040756226,
0.020411454141139984,
-0.9508952498435974,
-0.039560750126838684,
-0.14781443774700165,
-0.2889125645160675,
0.5145115256309509,
0.5851014256477356,
-0.7341381907463074,
0.3431236147880554,
0.3005898594856262,
-0.3956712484359741,
0.39888834953308105,
-0.021143747493624687,
0.15056316554546356,
-1.309099555015564,
0.34243306517601013,
0.11458538472652435,
0.1721290796995163,
-0.40766042470932007,
0.3098970651626587,
0.031574610620737076,
-0.06328078359365463,
-0.6801987886428833,
0.8597617745399475,
-0.6168004274368286,
0.0059297168627381325,
-0.0702335312962532,
-0.12464237958192825,
-0.12604306638240814,
0.6104679703712463,
0.07905193418264389,
0.7977977991104126,
0.5368897914886475,
-0.3525165915489197,
-0.05334495007991791,
0.35763266682624817,
-0.05283263698220253,
0.05632844567298889,
-0.781882107257843,
-0.022190917283296585,
-0.1459607183933258,
0.4335487484931946,
-0.8032728433609009,
-0.2993291914463043,
0.474906325340271,
-0.6502745151519775,
0.3081975281238556,
-0.1773092895746231,
-0.3838634788990021,
-0.5629242062568665,
-0.2914689779281616,
0.055405888706445694,
0.5232416987419128,
-0.5857221484184265,
0.5037291049957275,
0.1423349380493164,
0.14549174904823303,
-0.9648938179016113,
-0.6580098867416382,
0.025332635268568993,
-0.26875826716423035,
-0.8228181600570679,
0.29506510496139526,
-0.05472671240568161,
0.016467832028865814,
-0.06811749935150146,
0.10882110148668289,
0.1733880639076233,
0.10834497958421707,
0.5762624740600586,
0.16917259991168976,
-0.29569026827812195,
-0.10697708278894424,
0.15056414902210236,
-0.10199633240699768,
0.0563015416264534,
-0.38575267791748047,
0.44763025641441345,
-0.616470992565155,
-0.3012693226337433,
-0.3618113696575165,
0.349391907453537,
0.5714775323867798,
-0.22085605561733246,
0.8648269772529602,
1.118008017539978,
-0.3642715811729431,
0.09964097291231155,
-0.6571672558784485,
-0.06687045097351074,
-0.49675092101097107,
0.4140567481517792,
-0.5518882274627686,
-0.8916335105895996,
0.720557689666748,
0.20670491456985474,
0.049512628465890884,
0.9805451035499573,
0.5122992992401123,
0.2243925780057907,
1.1351178884506226,
0.3472271263599396,
-0.1250472068786621,
0.38748249411582947,
-0.6452749371528625,
-0.06638838350772858,
-0.7720575332641602,
-0.33101019263267517,
-0.6857501268386841,
-0.1032075434923172,
-0.7210851311683655,
-0.18411433696746826,
0.007872192189097404,
0.40042221546173096,
-0.8923293352127075,
0.21004469692707062,
-0.6145606637001038,
0.2356451004743576,
0.6230443120002747,
0.010468561202287674,
0.02211448736488819,
0.026125827804207802,
-0.28575634956359863,
0.3219528794288635,
-0.8563114404678345,
-0.5535694360733032,
1.1072698831558228,
0.39423543214797974,
0.6216129064559937,
-0.0828268826007843,
0.9205609560012817,
0.02148766815662384,
0.31511518359184265,
-0.5064038634300232,
0.45214784145355225,
-0.19468320906162262,
-0.4464939832687378,
-0.06810589879751205,
-0.5122156143188477,
-1.0429610013961792,
0.11418118327856064,
-0.1660987138748169,
-0.7736126184463501,
0.17408157885074615,
-0.01492235902696848,
-0.07851875573396683,
0.3219829797744751,
-0.9771448373794556,
0.9452090263366699,
-0.05506739765405655,
-0.429532915353775,
0.19238178431987762,
-0.8062768578529358,
0.5379263162612915,
-0.019193010404706,
0.2554685175418854,
0.03441351652145386,
-0.01348799280822277,
0.9612833261489868,
-0.6043344140052795,
0.7786888480186462,
-0.39046546816825867,
0.42226922512054443,
0.4208597242832184,
-0.2601327896118164,
0.6865836381912231,
0.11465560644865036,
-0.2925189435482025,
0.45619478821754456,
0.29119282960891724,
-0.5123510360717773,
-0.40625473856925964,
0.8653624653816223,
-1.2513978481292725,
-0.6094006299972534,
-0.661137044429779,
-0.48170310258865356,
-0.059075672179460526,
0.3609592914581299,
0.44655290246009827,
0.31774213910102844,
-0.0033820357639342546,
0.32550910115242004,
0.1825447678565979,
-0.2967015206813812,
0.7413144707679749,
0.3955637216567993,
-0.2301792949438095,
-0.5934082865715027,
0.813823401927948,
0.11201578378677368,
-0.018251648172736168,
0.3062594532966614,
0.3218187689781189,
-0.696624219417572,
-0.5693620443344116,
-0.6450917720794678,
0.5170794129371643,
-0.6399304866790771,
-0.25417277216911316,
-0.9580106139183044,
-0.4121324419975281,
-0.7121387720108032,
-0.17749403417110443,
-0.2740706503391266,
-0.26991182565689087,
-0.6179497838020325,
-0.06351477652788162,
0.3875419497489929,
0.635654628276825,
-0.013096681796014309,
0.455564022064209,
-0.8150241374969482,
0.12031974643468857,
-0.20248562097549438,
0.12971961498260498,
0.09000666439533234,
-0.657290518283844,
-0.26750051975250244,
0.4345336854457855,
-0.3874208629131317,
-0.6577868461608887,
0.5087650418281555,
0.24134443700313568,
0.6879931092262268,
0.48821452260017395,
0.08729156851768494,
0.7507692575454712,
-0.14429901540279388,
0.8437213897705078,
0.3051271140575409,
-0.8400467038154602,
0.32245030999183655,
-0.5770052075386047,
0.301994264125824,
0.4072069227695465,
0.45638465881347656,
-0.3574902415275574,
-0.45342350006103516,
-0.9161866903305054,
-0.5198897123336792,
0.9324021339416504,
0.3276451826095581,
-0.16734619438648224,
-0.2789576053619385,
0.4541926383972168,
-0.049950115382671356,
0.02703365497291088,
-0.4866099953651428,
-0.15944062173366547,
-0.7439923286437988,
-0.39062902331352234,
-0.195204958319664,
0.009570368565618992,
0.19109754264354706,
-0.2908710837364197,
0.8578818440437317,
-0.2184189409017563,
0.5743800401687622,
0.23801228404045105,
-0.23761288821697235,
0.05814502760767937,
-0.07401538640260696,
0.770603597164154,
0.5342091917991638,
-0.27350300550460815,
-0.008937694132328033,
0.07095397263765335,
-0.7230262160301208,
0.07679979503154755,
0.4467860460281372,
-0.2573617100715637,
-0.16576211154460907,
0.4541962146759033,
1.0518202781677246,
0.07978429645299911,
-0.4364272654056549,
0.4017745554447174,
-0.056926023215055466,
-0.35336780548095703,
-0.06053277477622032,
0.2496849000453949,
0.244505375623703,
0.29618149995803833,
0.31171056628227234,
-0.15183638036251068,
0.15305955708026886,
-0.3611169755458832,
0.14746461808681488,
0.129235178232193,
-0.2635117471218109,
-0.2582676112651825,
1.0495280027389526,
0.16457721590995789,
-0.17745661735534668,
0.486214280128479,
-0.3690797984600067,
-0.39404386281967163,
0.9645164608955383,
0.6843494176864624,
0.8770747184753418,
0.06950657069683075,
0.25593575835227966,
0.7298886179924011,
0.29934725165367126,
-0.27113816142082214,
0.2588752806186676,
0.2640995383262634,
-0.5078701972961426,
-0.3544377088546753,
-0.8849345445632935,
-0.2076112926006317,
0.1553766280412674,
-0.5871785283088684,
0.3695826828479767,
-0.502878725528717,
-0.18022194504737854,
0.21218478679656982,
0.35573384165763855,
-0.7175151109695435,
0.2653961777687073,
-0.10978522896766663,
1.0701135396957397,
-0.6069859862327576,
0.8150236010551453,
0.8152698874473572,
-0.9518954157829285,
-1.0976760387420654,
-0.25611934065818787,
-0.10656002908945084,
-0.9465691447257996,
0.7929957509040833,
0.44917023181915283,
0.02948865294456482,
0.25402575731277466,
-0.4571692645549774,
-0.843680202960968,
1.0931154489517212,
0.47359177470207214,
-0.6182290315628052,
-0.09640715271234512,
0.22165758907794952,
0.49003398418426514,
-0.4086361527442932,
0.7195631861686707,
0.37005728483200073,
0.5272685885429382,
0.32433125376701355,
-0.7066488265991211,
0.24937494099140167,
-0.5877922177314758,
0.1030832827091217,
0.15865392982959747,
-1.0533878803253174,
0.8972228169441223,
-0.2662752866744995,
-0.12314746528863907,
-0.05237562581896782,
0.8493563532829285,
0.30998605489730835,
0.3074769973754883,
0.39968401193618774,
0.5585508942604065,
0.6615219116210938,
-0.14374031126499176,
1.0233010053634644,
-0.6495438814163208,
0.5842871069908142,
0.8723827600479126,
-0.006225826684385538,
0.726241946220398,
0.3092000484466553,
0.0008840450900606811,
0.22083845734596252,
0.9576245546340942,
-0.10315004736185074,
0.21882560849189758,
-0.061727650463581085,
0.14339783787727356,
-0.16349294781684875,
-0.054282765835523605,
-0.7059971690177917,
0.40966731309890747,
0.17955318093299866,
-0.4012194275856018,
-0.1802424043416977,
0.052336692810058594,
0.35645991563796997,
-0.251432865858078,
-0.19712382555007935,
0.571639358997345,
0.06866946816444397,
-0.8454616665840149,
1.0128229856491089,
0.17139646410942078,
0.740355372428894,
-0.6465959548950195,
0.12848463654518127,
-0.5101932883262634,
0.22665026783943176,
-0.20241527259349823,
-0.5758666396141052,
0.38773396611213684,
-0.021620413288474083,
-0.12364092469215393,
-0.01606113091111183,
0.6367807984352112,
-0.2724030613899231,
-0.8061930537223816,
0.3310943841934204,
0.2942233979701996,
0.2649117410182953,
-0.22637008130550385,
-0.8837175965309143,
0.35985955595970154,
-0.1821114867925644,
-0.3891376256942749,
0.29942262172698975,
0.22866086661815643,
-0.12142142653465271,
0.716670572757721,
0.8376992344856262,
-0.06277003139257431,
0.21248461306095123,
0.0009118298185057938,
0.8060217499732971,
-0.8133191466331482,
-0.5005187392234802,
-0.651316225528717,
0.37857526540756226,
-0.0938480794429779,
-0.4591474235057831,
0.6901575326919556,
0.7366715669631958,
0.8949983716011047,
-0.05499069392681122,
0.7048861384391785,
-0.09755013138055801,
0.24608518183231354,
-0.5287827253341675,
0.7776957750320435,
-0.5920603275299072,
0.003949194215238094,
-0.2781408429145813,
-0.7339779734611511,
-0.12154150009155273,
0.6038459539413452,
-0.18008653819561005,
0.20883096754550934,
0.8420868515968323,
0.9997225999832153,
-0.1295771449804306,
0.24675191938877106,
0.16071727871894836,
0.4074190855026245,
0.48176509141921997,
0.7215798497200012,
0.6664944887161255,
-0.7387404441833496,
0.6986149549484253,
-0.28989312052726746,
-0.15547364950180054,
-0.29544880986213684,
-0.7969731092453003,
-1.133249044418335,
-0.6814301013946533,
-0.2215358316898346,
-0.46480998396873474,
0.2677218019962311,
0.9303399324417114,
0.687062680721283,
-0.6844739317893982,
-0.2881552577018738,
-0.24906586110591888,
-0.03913656994700432,
-0.29874324798583984,
-0.20765343308448792,
0.6120149493217468,
-0.5061199069023132,
-0.7483432292938232,
0.16757681965827942,
0.025866281241178513,
0.04573991522192955,
-0.13240519165992737,
-0.2741658687591553,
-0.4146970510482788,
-0.009632504545152187,
0.5836527943611145,
0.33795908093452454,
-0.8833376169204712,
-0.337067574262619,
0.2966856360435486,
-0.19122923910617828,
0.006966888438910246,
0.31978699564933777,
-0.538680374622345,
0.3100464642047882,
0.4142707884311676,
0.7613406777381897,
0.8455944061279297,
-0.044341374188661575,
0.20362848043441772,
-0.13760820031166077,
0.3453422486782074,
-0.16651496291160583,
0.5221601724624634,
0.15410734713077545,
-0.32782602310180664,
0.6893197298049927,
0.5489533543586731,
-0.48108944296836853,
-0.7880838513374329,
-0.2697652280330658,
-1.3743362426757812,
-0.18067775666713715,
1.3915235996246338,
-0.26020708680152893,
-0.524233877658844,
0.1439925581216812,
-0.4128953218460083,
0.5918003916740417,
-0.6320061683654785,
0.6249955296516418,
0.5553715825080872,
0.07554418593645096,
-0.029180679470300674,
-0.34138378500938416,
0.3517422378063202,
0.07687672227621078,
-0.9831135272979736,
-0.2849266529083252,
0.41051992774009705,
0.33084923028945923,
-0.026987377554178238,
0.514174222946167,
0.08443579077720642,
0.17894074320793152,
0.2505705952644348,
-0.0632881373167038,
-0.6913056373596191,
-0.237332284450531,
-0.0877397209405899,
0.308375746011734,
-0.2658711075782776,
-0.3031349778175354
] |
jonatasgrosman/wav2vec2-large-xlsr-53-arabic | jonatasgrosman | "2022-12-14T01:57:28Z" | 121,964 | 15 | transformers | [
"transformers",
"pytorch",
"jax",
"wav2vec2",
"automatic-speech-recognition",
"audio",
"speech",
"xlsr-fine-tuning-week",
"ar",
"dataset:common_voice",
"dataset:arabic_speech_corpus",
"license:apache-2.0",
"model-index",
"endpoints_compatible",
"has_space",
"region:us"
] | automatic-speech-recognition | "2022-03-02T23:29:05Z" | ---
language: ar
datasets:
- common_voice
- arabic_speech_corpus
metrics:
- wer
- cer
tags:
- audio
- automatic-speech-recognition
- speech
- xlsr-fine-tuning-week
license: apache-2.0
model-index:
- name: XLSR Wav2Vec2 Arabic by Jonatas Grosman
results:
- task:
name: Speech Recognition
type: automatic-speech-recognition
dataset:
name: Common Voice ar
type: common_voice
args: ar
metrics:
- name: Test WER
type: wer
value: 39.59
- name: Test CER
type: cer
value: 18.18
---
# Fine-tuned XLSR-53 large model for speech recognition in Arabic
Fine-tuned [facebook/wav2vec2-large-xlsr-53](https://huggingface.co/facebook/wav2vec2-large-xlsr-53) on Arabic using the train and validation splits of [Common Voice 6.1](https://huggingface.co/datasets/common_voice) and [Arabic Speech Corpus](https://huggingface.co/datasets/arabic_speech_corpus).
When using this model, make sure that your speech input is sampled at 16kHz.
This model has been fine-tuned thanks to the GPU credits generously given by the [OVHcloud](https://www.ovhcloud.com/en/public-cloud/ai-training/) :)
The script used for training can be found here: https://github.com/jonatasgrosman/wav2vec2-sprint
## Usage
The model can be used directly (without a language model) as follows...
Using the [HuggingSound](https://github.com/jonatasgrosman/huggingsound) library:
```python
from huggingsound import SpeechRecognitionModel
model = SpeechRecognitionModel("jonatasgrosman/wav2vec2-large-xlsr-53-arabic")
audio_paths = ["/path/to/file.mp3", "/path/to/another_file.wav"]
transcriptions = model.transcribe(audio_paths)
```
Writing your own inference script:
```python
import torch
import librosa
from datasets import load_dataset
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
LANG_ID = "ar"
MODEL_ID = "jonatasgrosman/wav2vec2-large-xlsr-53-arabic"
SAMPLES = 10
test_dataset = load_dataset("common_voice", LANG_ID, split=f"test[:{SAMPLES}]")
processor = Wav2Vec2Processor.from_pretrained(MODEL_ID)
model = Wav2Vec2ForCTC.from_pretrained(MODEL_ID)
# Preprocessing the datasets.
# We need to read the audio files as arrays
def speech_file_to_array_fn(batch):
speech_array, sampling_rate = librosa.load(batch["path"], sr=16_000)
batch["speech"] = speech_array
batch["sentence"] = batch["sentence"].upper()
return batch
test_dataset = test_dataset.map(speech_file_to_array_fn)
inputs = processor(test_dataset["speech"], 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)
predicted_sentences = processor.batch_decode(predicted_ids)
for i, predicted_sentence in enumerate(predicted_sentences):
print("-" * 100)
print("Reference:", test_dataset[i]["sentence"])
print("Prediction:", predicted_sentence)
```
| Reference | Prediction |
| ------------- | ------------- |
| ألديك قلم ؟ | ألديك قلم |
| ليست هناك مسافة على هذه الأرض أبعد من يوم أمس. | ليست نالك مسافة على هذه الأرض أبعد من يوم الأمس م |
| إنك تكبر المشكلة. | إنك تكبر المشكلة |
| يرغب أن يلتقي بك. | يرغب أن يلتقي بك |
| إنهم لا يعرفون لماذا حتى. | إنهم لا يعرفون لماذا حتى |
| سيسعدني مساعدتك أي وقت تحب. | سيسئدنيمساعدتك أي وقد تحب |
| أَحَبُّ نظريّة علمية إليّ هي أن حلقات زحل مكونة بالكامل من الأمتعة المفقودة. | أحب نظرية علمية إلي هي أن حل قتزح المكوينا بالكامل من الأمت عن المفقودة |
| سأشتري له قلماً. | سأشتري له قلما |
| أين المشكلة ؟ | أين المشكل |
| وَلِلَّهِ يَسْجُدُ مَا فِي السَّمَاوَاتِ وَمَا فِي الْأَرْضِ مِنْ دَابَّةٍ وَالْمَلَائِكَةُ وَهُمْ لَا يَسْتَكْبِرُونَ | ولله يسجد ما في السماوات وما في الأرض من دابة والملائكة وهم لا يستكبرون |
## Evaluation
The model can be evaluated as follows on the Arabic test data of Common Voice.
```python
import torch
import re
import librosa
from datasets import load_dataset, load_metric
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
LANG_ID = "ar"
MODEL_ID = "jonatasgrosman/wav2vec2-large-xlsr-53-arabic"
DEVICE = "cuda"
CHARS_TO_IGNORE = [",", "?", "¿", ".", "!", "¡", ";", ";", ":", '""', "%", '"', "�", "ʿ", "·", "჻", "~", "՞",
"؟", "،", "।", "॥", "«", "»", "„", "“", "”", "「", "」", "‘", "’", "《", "》", "(", ")", "[", "]",
"{", "}", "=", "`", "_", "+", "<", ">", "…", "–", "°", "´", "ʾ", "‹", "›", "©", "®", "—", "→", "。",
"、", "﹂", "﹁", "‧", "~", "﹏", ",", "{", "}", "(", ")", "[", "]", "【", "】", "‥", "〽",
"『", "』", "〝", "〟", "⟨", "⟩", "〜", ":", "!", "?", "♪", "؛", "/", "\\", "º", "−", "^", "'", "ʻ", "ˆ"]
test_dataset = load_dataset("common_voice", LANG_ID, split="test")
wer = load_metric("wer.py") # https://github.com/jonatasgrosman/wav2vec2-sprint/blob/main/wer.py
cer = load_metric("cer.py") # https://github.com/jonatasgrosman/wav2vec2-sprint/blob/main/cer.py
chars_to_ignore_regex = f"[{re.escape(''.join(CHARS_TO_IGNORE))}]"
processor = Wav2Vec2Processor.from_pretrained(MODEL_ID)
model = Wav2Vec2ForCTC.from_pretrained(MODEL_ID)
model.to(DEVICE)
# Preprocessing the datasets.
# We need to read the audio files as arrays
def speech_file_to_array_fn(batch):
with warnings.catch_warnings():
warnings.simplefilter("ignore")
speech_array, sampling_rate = librosa.load(batch["path"], sr=16_000)
batch["speech"] = speech_array
batch["sentence"] = re.sub(chars_to_ignore_regex, "", batch["sentence"]).upper()
return batch
test_dataset = test_dataset.map(speech_file_to_array_fn)
# Preprocessing the datasets.
# We need to read the audio 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(DEVICE), attention_mask=inputs.attention_mask.to(DEVICE)).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)
predictions = [x.upper() for x in result["pred_strings"]]
references = [x.upper() for x in result["sentence"]]
print(f"WER: {wer.compute(predictions=predictions, references=references, chunk_size=1000) * 100}")
print(f"CER: {cer.compute(predictions=predictions, references=references, chunk_size=1000) * 100}")
```
**Test Result**:
In the table below I report the Word Error Rate (WER) and the Character Error Rate (CER) of the model. I ran the evaluation script described above on other models as well (on 2021-05-14). Note that the table below may show different results from those already reported, this may have been caused due to some specificity of the other evaluation scripts used.
| Model | WER | CER |
| ------------- | ------------- | ------------- |
| jonatasgrosman/wav2vec2-large-xlsr-53-arabic | **39.59%** | **18.18%** |
| bakrianoo/sinai-voice-ar-stt | 45.30% | 21.84% |
| othrif/wav2vec2-large-xlsr-arabic | 45.93% | 20.51% |
| kmfoda/wav2vec2-large-xlsr-arabic | 54.14% | 26.07% |
| mohammed/wav2vec2-large-xlsr-arabic | 56.11% | 26.79% |
| anas/wav2vec2-large-xlsr-arabic | 62.02% | 27.09% |
| elgeish/wav2vec2-large-xlsr-53-arabic | 100.00% | 100.56% |
## Citation
If you want to cite this model you can use this:
```bibtex
@misc{grosman2021xlsr53-large-arabic,
title={Fine-tuned {XLSR}-53 large model for speech recognition in {A}rabic},
author={Grosman, Jonatas},
howpublished={\url{https://huggingface.co/jonatasgrosman/wav2vec2-large-xlsr-53-arabic}},
year={2021}
}
``` | [
-0.3406120240688324,
-0.6510761380195618,
0.11911828070878983,
0.20396031439304352,
-0.231930211186409,
-0.17857827246189117,
-0.3403918147087097,
-0.46890825033187866,
0.09012477099895477,
0.3242405951023102,
-0.582126259803772,
-0.8576369285583496,
-0.6254401206970215,
-0.010420667007565498,
-0.35579532384872437,
1.0222604274749756,
0.09242460131645203,
0.07647960633039474,
0.24994857609272003,
-0.26358047127723694,
-0.3179381489753723,
-0.4371569752693176,
-0.6523928046226501,
-0.288232684135437,
0.3468703627586365,
0.3026961088180542,
0.5581732988357544,
0.32303792238235474,
0.3556707799434662,
0.36572203040122986,
-0.07688117027282715,
0.1876399666070938,
-0.21921852231025696,
-0.09521378576755524,
0.19971312582492828,
-0.37233003973960876,
-0.322868674993515,
0.03791189193725586,
0.6801665425300598,
0.4498046934604645,
-0.2780652642250061,
0.42235636711120605,
0.023455606773495674,
0.5563579797744751,
-0.34439608454704285,
0.24119681119918823,
-0.48087459802627563,
-0.21727116405963898,
-0.11178339272737503,
-0.004819940309971571,
-0.16766910254955292,
-0.45796769857406616,
0.15009276568889618,
-0.43186596035957336,
0.1603364646434784,
0.0071020242758095264,
1.1614043712615967,
0.14539052546024323,
-0.16328249871730804,
-0.5397102236747742,
-0.6187798976898193,
1.0738463401794434,
-1.1001986265182495,
0.21852357685565948,
0.5961996912956238,
0.08301472663879395,
-0.10032185912132263,
-0.8290285468101501,
-0.7898215055465698,
-0.14934320747852325,
-0.06441591680049896,
0.15309704840183258,
-0.45377659797668457,
-0.11763851344585419,
0.29265478253364563,
0.08480983972549438,
-0.6374329924583435,
-0.06750240921974182,
-0.6060208082199097,
-0.36342984437942505,
0.8410938382148743,
-0.057593777775764465,
0.44066882133483887,
-0.21059522032737732,
-0.10231925547122955,
-0.43202486634254456,
-0.27799707651138306,
0.38128232955932617,
0.3981763422489166,
0.37051334977149963,
-0.6133224368095398,
0.5302267074584961,
-0.07247968763113022,
0.7149935364723206,
-0.03320369869470596,
-0.41015350818634033,
0.80943363904953,
-0.24509164690971375,
-0.39082515239715576,
0.35786452889442444,
1.1287283897399902,
0.33184105157852173,
0.31181803345680237,
0.19273237884044647,
-0.02245028130710125,
0.30302268266677856,
-0.23430068790912628,
-0.858970046043396,
-0.19802604615688324,
0.4243334233760834,
-0.4582216441631317,
-0.12204328924417496,
-0.05285927280783653,
-0.7078181505203247,
-0.04705853387713432,
-0.08923312276601791,
0.6790551543235779,
-0.6053122878074646,
-0.2746259570121765,
0.22941580414772034,
-0.0488467812538147,
0.11339684575796127,
0.004349955357611179,
-0.9422093629837036,
0.21033333241939545,
0.32769355177879333,
0.8160165548324585,
0.4033237397670746,
-0.2976153790950775,
-0.34385308623313904,
-0.08383575826883316,
-0.21963024139404297,
0.5598936080932617,
-0.2605494558811188,
-0.46233466267585754,
-0.15155328810214996,
-0.027096182107925415,
-0.3977689743041992,
-0.5125871896743774,
0.8136090040206909,
-0.21454955637454987,
0.29831764101982117,
-0.2158842384815216,
-0.4893343448638916,
-0.428634375333786,
-0.08290363103151321,
-0.5885947942733765,
1.1786912679672241,
0.03416220471262932,
-0.9360867738723755,
0.05479671061038971,
-0.65986168384552,
-0.43322086334228516,
-0.35061535239219666,
-0.17034128308296204,
-0.5949149131774902,
-0.1911105066537857,
0.4893372654914856,
0.47204187512397766,
-0.3761224150657654,
0.06185859069228172,
-0.033551767468452454,
-0.545117974281311,
0.44206178188323975,
-0.38868528604507446,
1.010883092880249,
0.341577410697937,
-0.6016866564750671,
0.11147766560316086,
-0.9619122743606567,
0.33142319321632385,
0.14439722895622253,
-0.34053680300712585,
-0.03504950553178787,
-0.058765869587659836,
0.3793226480484009,
0.21657343208789825,
0.1559920758008957,
-0.5290855765342712,
-0.02920365147292614,
-0.7060516476631165,
0.5170081257820129,
0.5677538514137268,
-0.08657146245241165,
0.07495336979627609,
-0.5616620779037476,
0.3666706383228302,
-0.012368731200695038,
-0.2962685525417328,
-0.056888483464717865,
-0.40295112133026123,
-0.8624308109283447,
-0.4220377504825592,
0.2562869191169739,
0.6030033826828003,
-0.37029045820236206,
0.6642540097236633,
-0.20455850660800934,
-0.9261679649353027,
-1.0412919521331787,
-0.042342837899923325,
0.4497717022895813,
0.5658277273178101,
0.5185326933860779,
-0.0328943207859993,
-0.9203981161117554,
-0.8469278216362,
-0.23140421509742737,
-0.2919987440109253,
-0.0068609220907092094,
0.3651667535305023,
0.6287380456924438,
-0.44519349932670593,
0.806983232498169,
-0.46984073519706726,
-0.3731372058391571,
-0.3643605411052704,
0.19758829474449158,
0.7231505513191223,
0.6335116028785706,
0.48262888193130493,
-0.7373872995376587,
-0.5617321729660034,
0.004125576466321945,
-0.5775349736213684,
-0.07533302158117294,
-0.09493184834718704,
0.022479582577943802,
0.31436702609062195,
0.3044390380382538,
-0.616638720035553,
0.4528140127658844,
0.6278575658798218,
-0.4603486955165863,
0.6329682469367981,
-0.0732555091381073,
0.2627515494823456,
-1.24489426612854,
0.183719202876091,
-0.03602242097258568,
0.0337911956012249,
-0.5484375953674316,
-0.3523000478744507,
-0.22955548763275146,
0.1955394148826599,
-0.3977069556713104,
0.5849754214286804,
-0.40094292163848877,
-0.00396029744297266,
-0.05150678753852844,
0.08396655321121216,
-0.048849865794181824,
0.6308797001838684,
-0.007256427779793739,
0.8252479434013367,
0.7198902368545532,
-0.5308834314346313,
0.3738858103752136,
0.41816946864128113,
-0.7667009234428406,
0.1417698860168457,
-0.889632523059845,
0.366462379693985,
0.0478038564324379,
0.114778533577919,
-1.1264816522598267,
-0.16478388011455536,
0.3326772451400757,
-0.8069654107093811,
0.22424983978271484,
0.08066476881504059,
-0.460429310798645,
-0.4381054937839508,
-0.12528081238269806,
0.2641591429710388,
0.6753247380256653,
-0.3760540783405304,
0.666400671005249,
0.32115933299064636,
-0.20887236297130585,
-0.7911093831062317,
-0.8323712944984436,
-0.23973704874515533,
-0.26509493589401245,
-0.7916885018348694,
0.2723935544490814,
-0.08074134588241577,
-0.19298416376113892,
-0.06405182182788849,
-0.1248571127653122,
0.03693903610110283,
-0.08641979098320007,
0.46147578954696655,
0.30320730805397034,
-0.2616073191165924,
-0.10069764405488968,
-0.13266621530056,
0.09487209469079971,
0.08472874760627747,
-0.05175992473959923,
0.8783057332038879,
-0.28148555755615234,
-0.27402153611183167,
-0.8054561614990234,
0.2788350284099579,
0.51492840051651,
-0.32722532749176025,
0.7654546499252319,
1.0297377109527588,
-0.37143364548683167,
0.07313332706689835,
-0.5586036443710327,
0.05799537152051926,
-0.49732014536857605,
0.9029830694198608,
-0.3462035357952118,
-0.6225842833518982,
0.618915319442749,
0.19478744268417358,
0.04344701021909714,
0.6980740427970886,
0.6973944902420044,
-0.21913954615592957,
1.0916831493377686,
0.31869274377822876,
-0.3191976249217987,
0.2747018337249756,
-0.7793936729431152,
0.11715856194496155,
-0.8957939147949219,
-0.4689832329750061,
-0.7948918342590332,
-0.28101181983947754,
-0.5510979890823364,
-0.4040805399417877,
0.3314931392669678,
0.08771049231290817,
-0.3674575090408325,
0.32112643122673035,
-0.6066115498542786,
0.16028113663196564,
0.49924346804618835,
0.10379249602556229,
-0.0817059725522995,
0.21535015106201172,
-0.23212258517742157,
-0.045822709798812866,
-0.5194510221481323,
-0.5746119022369385,
1.1924889087677002,
0.40684598684310913,
0.6289668083190918,
0.13271215558052063,
0.7099873423576355,
0.21507205069065094,
0.06921281665563583,
-0.7715164422988892,
0.4881425201892853,
-0.08290968090295792,
-0.5513741374015808,
-0.3605544865131378,
-0.2414560168981552,
-1.0429515838623047,
0.2804747521877289,
-0.12531082332134247,
-1.1248964071273804,
0.1210482120513916,
-0.1503787487745285,
-0.5009832978248596,
0.19218161702156067,
-0.5900670289993286,
0.8165708184242249,
-0.022734597325325012,
-0.15543648600578308,
-0.26052623987197876,
-0.6251999735832214,
0.13682307302951813,
0.056509923189878464,
0.45612478256225586,
-0.19384688138961792,
0.29021140933036804,
1.4505093097686768,
-0.38446372747421265,
0.7854941487312317,
-0.08957062661647797,
-0.02254302054643631,
0.5836901068687439,
-0.2293909341096878,
0.4404457211494446,
-0.07667829096317291,
-0.395962119102478,
0.2998526990413666,
0.2979360520839691,
-0.3096354305744171,
-0.34076249599456787,
0.7349631786346436,
-1.2109112739562988,
-0.4083787500858307,
-0.6372364163398743,
-0.6626788377761841,
-0.08407428115606308,
0.23715585470199585,
0.6579791307449341,
0.6281938552856445,
-0.08533075451850891,
0.3015831410884857,
0.31760862469673157,
-0.2889709770679474,
0.5673810243606567,
0.41038718819618225,
-0.103911854326725,
-0.7386526465415955,
0.717150092124939,
0.19915282726287842,
0.11424370855093002,
0.06971223652362823,
0.15368403494358063,
-0.5436745882034302,
-0.5199159979820251,
-0.25346115231513977,
0.3693860173225403,
-0.6669085025787354,
-0.12897440791130066,
-0.7203536629676819,
-0.3520462214946747,
-0.7639861702919006,
0.011226099915802479,
-0.21954919397830963,
-0.22012560069561005,
-0.4589327275753021,
-0.10638385266065598,
0.5373650789260864,
0.4936908781528473,
-0.1092395931482315,
0.4455706477165222,
-0.7822179794311523,
0.35384905338287354,
-0.01149837113916874,
-0.08450938761234283,
0.06452010571956635,
-0.9213030338287354,
-0.5389662981033325,
0.2507166862487793,
-0.2724621295928955,
-0.9714606404304504,
0.7394826412200928,
0.25965291261672974,
0.3757852017879486,
0.2564418315887451,
-0.04959240183234215,
0.8380240797996521,
-0.38199636340141296,
0.8251950144767761,
0.3122364282608032,
-1.109998106956482,
0.6615180373191833,
-0.28137391805648804,
0.3035673499107361,
0.413228303194046,
0.34486809372901917,
-0.7950738668441772,
-0.2238478660583496,
-0.6866835951805115,
-0.9835328459739685,
1.0178017616271973,
0.41472071409225464,
0.16962257027626038,
0.08513587713241577,
0.05017789453268051,
-0.1090417206287384,
0.1366899311542511,
-0.6328980326652527,
-0.7321593761444092,
-0.16718605160713196,
-0.496164470911026,
-0.2686535716056824,
-0.2629663646221161,
-0.10649226605892181,
-0.5172122716903687,
1.0221402645111084,
0.19681677222251892,
0.40613651275634766,
0.501133382320404,
0.04719208925962448,
-0.008484812453389168,
0.3995993733406067,
0.5567378997802734,
0.37510064244270325,
-0.40207573771476746,
-0.11258229613304138,
0.3066627085208893,
-0.771288275718689,
0.1872124820947647,
0.19701549410820007,
-0.10586151480674744,
0.270468145608902,
0.6152536869049072,
1.186872124671936,
0.12820085883140564,
-0.5970518589019775,
0.2777017056941986,
-0.050813283771276474,
-0.2595146894454956,
-0.7025521397590637,
0.06538344919681549,
0.3648555278778076,
0.24255816638469696,
0.546410858631134,
0.1761053055524826,
-0.07426343113183975,
-0.6013211011886597,
0.17938943207263947,
0.2948451340198517,
-0.18572555482387543,
-0.23549120128154755,
0.624370276927948,
-0.013470196165144444,
-0.3609572649002075,
0.6906418204307556,
0.07879108935594559,
-0.605887234210968,
0.8793680667877197,
0.665848970413208,
0.7931854128837585,
-0.4315721094608307,
0.060113366693258286,
0.7830071449279785,
0.27783745527267456,
-0.03840233385562897,
0.6408767700195312,
0.07425296306610107,
-0.8391863703727722,
-0.14749041199684143,
-0.8255747556686401,
-0.08945998549461365,
0.35902220010757446,
-0.8162294030189514,
0.29317814111709595,
-0.4069151282310486,
-0.3566364645957947,
0.21241426467895508,
0.28828176856040955,
-0.7863563299179077,
0.43740135431289673,
0.24539603292942047,
0.8546115159988403,
-0.8589246273040771,
1.0918916463851929,
0.47695595026016235,
-0.5550054311752319,
-1.447245717048645,
-0.07508005201816559,
-0.19431228935718536,
-0.8090508580207825,
0.7022323608398438,
0.3540821373462677,
-0.19116415083408356,
0.1836531162261963,
-0.4295218884944916,
-1.1005215644836426,
1.131277084350586,
0.2605772614479065,
-0.7415120005607605,
0.02185375802218914,
0.11556743830442429,
0.4594986140727997,
-0.3071240186691284,
0.551259458065033,
0.7674888968467712,
0.6066569685935974,
0.03644346073269844,
-1.1007533073425293,
0.12289725989103317,
-0.4762933552265167,
-0.22585822641849518,
-0.16541768610477448,
-0.587130606174469,
1.0497292280197144,
-0.4382433295249939,
-0.17470479011535645,
0.29686787724494934,
0.9238808155059814,
0.47522392868995667,
0.47007277607917786,
0.474057137966156,
0.5731384754180908,
0.8868350982666016,
-0.1432759314775467,
0.8599827289581299,
-0.1647358536720276,
0.5556705594062805,
1.0911198854446411,
-0.1476583629846573,
1.0923779010772705,
0.3410142958164215,
-0.5193262100219727,
0.7597060203552246,
0.526651918888092,
-0.30830714106559753,
0.6077679991722107,
0.15079325437545776,
-0.34462663531303406,
0.00807987991720438,
-0.09856259077787399,
-0.6291682124137878,
0.7287998199462891,
0.322161465883255,
-0.44374820590019226,
0.11539210379123688,
0.01165379025042057,
0.28307241201400757,
-0.0010263760341331363,
-0.15428508818149567,
0.489075243473053,
0.17607255280017853,
-0.5510551929473877,
1.0620076656341553,
0.12161080539226532,
0.8877934217453003,
-0.7501683235168457,
0.08441188931465149,
0.21710753440856934,
0.29242464900016785,
-0.44143146276474,
-0.6191012263298035,
0.16957908868789673,
0.09721890091896057,
-0.1824662834405899,
0.1908012330532074,
0.39443230628967285,
-0.6314185857772827,
-0.7513856887817383,
0.4624391496181488,
0.12893670797348022,
0.3757646679878235,
0.0737057477235794,
-0.9107636213302612,
0.34810543060302734,
0.3895798325538635,
-0.4365746080875397,
0.08181777596473694,
0.13568589091300964,
0.2176884561777115,
0.5128391981124878,
0.8338698148727417,
0.31540238857269287,
0.02940271981060505,
0.14538578689098358,
0.7289745807647705,
-0.7809616923332214,
-0.5177943110466003,
-0.9157184362411499,
0.580518901348114,
0.03219994530081749,
-0.27469348907470703,
0.7865672707557678,
0.6981029510498047,
0.7318707704544067,
-0.04458421468734741,
0.9627881646156311,
-0.19557690620422363,
0.6684027910232544,
-0.5595656633377075,
1.0245709419250488,
-0.5015206336975098,
0.1498304307460785,
-0.4041217863559723,
-0.690427839756012,
-0.031033102422952652,
0.9046425819396973,
-0.4208511412143707,
0.22610744833946228,
0.6825590133666992,
1.0727944374084473,
0.16472730040550232,
-0.0340818390250206,
0.19557447731494904,
0.4878106415271759,
0.20633888244628906,
0.788133978843689,
0.4760103225708008,
-0.8810282349586487,
0.624543309211731,
-0.4775010943412781,
0.003950673155486584,
-0.08631937950849533,
-0.5261943936347961,
-0.9109026789665222,
-0.7687448859214783,
-0.42333951592445374,
-0.6566099524497986,
-0.15328292548656464,
1.2213208675384521,
0.6076756119728088,
-0.9796161651611328,
-0.4213467538356781,
0.2288016825914383,
-0.05211223289370537,
-0.32419055700302124,
-0.23012538254261017,
0.9675652384757996,
0.13594834506511688,
-0.9799922108650208,
0.3923581838607788,
-0.31317034363746643,
0.08122442662715912,
0.09417950361967087,
-0.29844191670417786,
-0.3635917901992798,
0.2215321660041809,
0.14542634785175323,
0.29616713523864746,
-0.9201968908309937,
-0.14303526282310486,
-0.1492898315191269,
-0.320671021938324,
0.04221675172448158,
0.1880190670490265,
-0.6401633620262146,
0.2437436878681183,
0.43294060230255127,
0.2194531410932541,
0.5373108386993408,
-0.19158484041690826,
0.26087769865989685,
-0.4242563545703888,
0.364582896232605,
0.2734798491001129,
0.5229968428611755,
0.3626325726509094,
-0.3079872131347656,
0.33234670758247375,
0.12856179475784302,
-0.5420927405357361,
-0.9720562696456909,
-0.20513975620269775,
-1.2360607385635376,
-0.10054052621126175,
1.2297037839889526,
-0.24758701026439667,
-0.3329182267189026,
0.0833686962723732,
-0.545690655708313,
0.7655788660049438,
-0.5926005244255066,
0.6265201568603516,
0.6866795420646667,
-0.01782667264342308,
0.14634881913661957,
-0.5835452079772949,
0.47704437375068665,
0.6360282897949219,
-0.5278907418251038,
-0.08949963748455048,
0.22048179805278778,
0.604961633682251,
0.2111847698688507,
0.8351703882217407,
-0.024260161444544792,
0.33929187059402466,
0.08433734625577927,
0.3806825280189514,
-0.13134367763996124,
0.06534890830516815,
-0.39773741364479065,
-0.059019383043050766,
-0.16144102811813354,
-0.5485406517982483
] |
diffusers/stable-diffusion-xl-1.0-inpainting-0.1 | diffusers | "2023-09-03T16:36:39Z" | 120,987 | 157 | diffusers | [
"diffusers",
"stable-diffusion-xl",
"stable-diffusion-xl-diffusers",
"text-to-image",
"inpainting",
"arxiv:2112.10752",
"base_model:stabilityai/stable-diffusion-xl-base-1.0",
"license:openrail++",
"has_space",
"diffusers:StableDiffusionXLInpaintPipeline",
"region:us"
] | text-to-image | "2023-09-01T14:07:10Z" |
---
license: openrail++
base_model: stabilityai/stable-diffusion-xl-base-1.0
tags:
- stable-diffusion-xl
- stable-diffusion-xl-diffusers
- text-to-image
- diffusers
- inpainting
inference: false
---
# SD-XL Inpainting 0.1 Model Card
![inpaint-example](inpaint-examples-min.png)
SD-XL Inpainting 0.1 is a latent text-to-image diffusion model capable of generating photo-realistic images given any text input, with the extra capability of inpainting the pictures by using a mask.
The SD-XL Inpainting 0.1 was initialized with the `stable-diffusion-xl-base-1.0` weights. The model is trained for 40k steps at resolution 1024x1024 and 5% dropping of the text-conditioning to improve classifier-free classifier-free guidance sampling. For inpainting, the UNet has 5 additional input channels (4 for the encoded masked-image and 1 for the mask itself) whose weights were zero-initialized after restoring the non-inpainting checkpoint. During training, we generate synthetic masks and, in 25% mask everything.
## How to use
```py
from diffusers import AutoPipelineForInpainting
from diffusers.utils import load_image
import torch
pipe = AutoPipelineForInpainting.from_pretrained("diffusers/stable-diffusion-xl-1.0-inpainting-0.1", torch_dtype=torch.float16, variant="fp16").to("cuda")
img_url = "https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo.png"
mask_url = "https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo_mask.png"
image = load_image(img_url).resize((1024, 1024))
mask_image = load_image(mask_url).resize((1024, 1024))
prompt = "a tiger sitting on a park bench"
generator = torch.Generator(device="cuda").manual_seed(0)
image = pipe(
prompt=prompt,
image=image,
mask_image=mask_image,
guidance_scale=8.0,
num_inference_steps=20, # steps between 15 and 30 work well for us
strength=0.99, # make sure to use `strength` below 1.0
generator=generator,
).images[0]
```
**How it works:**
`image` | `mask_image`
:-------------------------:|:-------------------------:|
<img src="https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo.png" alt="drawing" width="300"/> | <img src="https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo_mask.png" alt="drawing" width="300"/>
`prompt` | `Output`
:-------------------------:|:-------------------------:|
<span style="position: relative;bottom: 150px;">a tiger sitting on a park bench</span> | <img src="https://huggingface.co/datasets/valhalla/images/resolve/main/tiger.png" alt="drawing" width="300"/>
## Model Description
- **Developed by:** The Diffusers team
- **Model type:** Diffusion-based text-to-image generative model
- **License:** [CreativeML Open RAIL++-M License](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENSE.md)
- **Model Description:** This is a model that can be used to generate and modify images based on text prompts. It is a [Latent Diffusion Model](https://arxiv.org/abs/2112.10752) that uses two fixed, pretrained text encoders ([OpenCLIP-ViT/G](https://github.com/mlfoundations/open_clip) and [CLIP-ViT/L](https://github.com/openai/CLIP/tree/main)).
## Uses
### Direct Use
The model is intended for research purposes only. Possible research areas and tasks include
- Generation of artworks and use in design and other artistic processes.
- Applications in educational or creative tools.
- Research on generative models.
- Safe deployment of models which have the potential to generate harmful content.
- Probing and understanding the limitations and biases of generative models.
Excluded uses are described below.
### Out-of-Scope Use
The model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.
## Limitations and Bias
### Limitations
- The model does not achieve perfect photorealism
- The model cannot render legible text
- The model struggles with more difficult tasks which involve compositionality, such as rendering an image corresponding to “A red cube on top of a blue sphere”
- Faces and people in general may not be generated properly.
- The autoencoding part of the model is lossy.
- When the strength parameter is set to 1 (i.e. starting in-painting from a fully masked image), the quality of the image is degraded. The model retains the non-masked contents of the image, but images look less sharp. We're investing this and working on the next version.
### Bias
While the capabilities of image generation models are impressive, they can also reinforce or exacerbate social biases.
| [
-0.3820923864841461,
-0.7159839272499084,
0.5071256160736084,
0.28081780672073364,
-0.24668093025684357,
-0.03482836112380028,
0.09882188588380814,
-0.34353700280189514,
0.13805410265922546,
0.44216710329055786,
-0.5667845606803894,
-0.4210061728954315,
-0.58409583568573,
-0.06292640417814255,
-0.1402285099029541,
0.905485987663269,
-0.1657501757144928,
-0.050245773047208786,
-0.19642597436904907,
0.10160479694604874,
-0.235052227973938,
-0.032156649976968765,
-0.909817099571228,
-0.25882601737976074,
0.20528365671634674,
0.21759381890296936,
0.4395216703414917,
0.28507158160209656,
0.33316177129745483,
0.2899351418018341,
-0.3132458031177521,
-0.008021613582968712,
-0.4895711839199066,
0.017658675089478493,
0.15859560668468475,
-0.3686469495296478,
-0.11455415934324265,
0.17163503170013428,
0.6896243095397949,
0.4325243830680847,
0.15838584303855896,
-0.14212428033351898,
0.11067261546850204,
0.7002453804016113,
-0.4907729923725128,
-0.16382603347301483,
-0.22235704958438873,
0.18515823781490326,
-0.27681872248649597,
-0.023050177842378616,
-0.22307336330413818,
-0.35194164514541626,
0.14698463678359985,
-0.7527183294296265,
0.3582354485988617,
-0.2709173858165741,
1.0375767946243286,
0.24719412624835968,
-0.1408034861087799,
-0.2212606966495514,
-0.6077892184257507,
0.6198552250862122,
-0.8234017491340637,
-0.030023112893104553,
0.2895074784755707,
0.08584842085838318,
-0.07186286896467209,
-1.0523178577423096,
-0.730525553226471,
-0.03222207352519035,
-0.03563634306192398,
0.49650564789772034,
-0.3325970470905304,
-0.00870243739336729,
0.48401156067848206,
0.5318658351898193,
-0.6618772745132446,
-0.30894091725349426,
-0.33285459876060486,
0.07169176638126373,
0.5161092281341553,
0.0893414318561554,
0.4920819401741028,
-0.05145713686943054,
-0.5030662417411804,
-0.07612699270248413,
-0.5290957093238831,
-0.011058105155825615,
0.4316878914833069,
-0.22081871330738068,
-0.3076855540275574,
0.5763797163963318,
0.0075910077430307865,
0.6192075610160828,
0.27009880542755127,
-0.22450408339500427,
0.23303480446338654,
-0.2811039984226227,
-0.3573659062385559,
-0.29190176725387573,
0.9267300367355347,
0.44958287477493286,
-0.19058366119861603,
-0.04639999940991402,
-0.3433952033519745,
0.030323168262839317,
-0.025607777759432793,
-1.3273332118988037,
-0.3602030277252197,
0.1280125230550766,
-0.5499509572982788,
-0.4207683503627777,
-0.11148087680339813,
-0.8948234915733337,
-0.21340498328208923,
0.07537826895713806,
0.8762882947921753,
-0.5338452458381653,
-0.3941086530685425,
0.11646836996078491,
-0.4564986526966095,
-0.0008082286221906543,
0.47383934259414673,
-0.6337855458259583,
0.013067444786429405,
-0.010545537807047367,
1.1691675186157227,
-0.16598506271839142,
0.09617402404546738,
0.018844405189156532,
0.028058860450983047,
-0.36138609051704407,
0.7646511197090149,
-0.449052095413208,
-0.5622639656066895,
-0.22257067263126373,
0.300755113363266,
-0.09068084508180618,
-0.6431828141212463,
0.4692671000957489,
-0.38541868329048157,
0.46766263246536255,
-0.056467942893505096,
-0.7391037344932556,
-0.25735175609588623,
-0.20413705706596375,
-0.6415358185768127,
1.007434368133545,
0.411561518907547,
-0.8156267404556274,
0.15041133761405945,
-0.9472022652626038,
-0.0577685609459877,
0.07343660295009613,
0.12333761155605316,
-0.7068166136741638,
-0.12258380651473999,
0.0044375029392540455,
0.4301983714103699,
-0.12940137088298798,
-0.040856119245290756,
-0.26573726534843445,
-0.29070913791656494,
0.18729569017887115,
-0.38514187932014465,
1.228028655052185,
0.32932302355766296,
-0.44417819380760193,
0.043745145201683044,
-0.8046989440917969,
-0.23003573715686798,
0.3004605770111084,
-0.25706982612609863,
-0.10614712536334991,
-0.4497085213661194,
0.18236657977104187,
0.34195321798324585,
0.08225452154874802,
-0.7065889239311218,
0.07866299897432327,
-0.44810494780540466,
0.5443978905677795,
0.7458215951919556,
0.4720655083656311,
0.6871142387390137,
-0.3230358958244324,
0.6351829767227173,
0.2070782631635666,
-0.07363007217645645,
-0.4797581434249878,
-0.8197824358940125,
-0.7539259791374207,
-0.5101288557052612,
0.1045803427696228,
0.39489173889160156,
-0.924140453338623,
0.32457485795021057,
0.13681410253047943,
-0.7817402482032776,
-0.31366634368896484,
-0.08559292554855347,
0.2713553309440613,
0.8419223427772522,
0.21621538698673248,
-0.5856406092643738,
-0.22461923956871033,
-0.6502341628074646,
0.2112215757369995,
0.13505181670188904,
-0.11376119405031204,
0.09298960864543915,
0.7190956473350525,
-0.2633782625198364,
0.7401435971260071,
-0.6648622751235962,
-0.39896276593208313,
0.06114095821976662,
0.28613725304603577,
0.22521528601646423,
0.6933683156967163,
0.6337329149246216,
-0.7195888161659241,
-0.8246546387672424,
-0.20818515121936798,
-0.7900229692459106,
-0.1426302045583725,
-0.20964021980762482,
-0.23171542584896088,
0.3134860098361969,
0.5058276653289795,
-0.7104403376579285,
0.657511293888092,
0.44807347655296326,
-0.4544333219528198,
0.5793401598930359,
-0.3235495388507843,
0.1310478299856186,
-1.0761420726776123,
0.1281510889530182,
0.34537890553474426,
-0.19165711104869843,
-0.6880126595497131,
0.11236060410737991,
-0.04299745708703995,
-0.3538273572921753,
-0.4832296371459961,
0.7250895500183105,
-0.4730395972728729,
0.4013664424419403,
-0.3920972943305969,
-0.1745709329843521,
0.14028339087963104,
0.6258509159088135,
0.18256469070911407,
0.7172794342041016,
0.8984709978103638,
-0.5542721748352051,
0.26482218503952026,
0.17435641586780548,
-0.544446587562561,
0.6665098071098328,
-0.8201295733451843,
0.23313182592391968,
-0.27722612023353577,
0.3478986918926239,
-1.3155945539474487,
-0.12313053011894226,
0.6072933077812195,
-0.4800183176994324,
0.5319077372550964,
-0.20439425110816956,
-0.467803031206131,
-0.19817596673965454,
-0.21021303534507751,
0.507281482219696,
0.6811500787734985,
-0.3934679329395294,
0.5735845565795898,
0.1641240268945694,
-0.025651227682828903,
-0.3039669096469879,
-0.710478663444519,
0.0022422834299504757,
-0.3958679139614105,
-0.8560284972190857,
0.7222520709037781,
-0.3467312753200531,
-0.03752740100026131,
0.10937422513961792,
0.17996655404567719,
-0.07575201988220215,
-0.25859612226486206,
0.30018964409828186,
0.22566239535808563,
-0.10708899050951004,
-0.06057891622185707,
0.08030658960342407,
-0.21742849051952362,
0.012111944146454334,
-0.10607706010341644,
0.31938081979751587,
0.2396625429391861,
-0.4123932421207428,
-0.7604966163635254,
0.3784753680229187,
0.4569362699985504,
0.15962155163288116,
0.6926135420799255,
0.7753700017929077,
-0.4965498447418213,
0.09748559445142746,
-0.29910942912101746,
-0.11383135616779327,
-0.4740040898323059,
0.26088747382164,
-0.13517503440380096,
-0.3980845510959625,
0.5939719080924988,
-0.10636147111654282,
0.09511202573776245,
0.7336356043815613,
0.5887107253074646,
-0.39655694365501404,
0.9592628479003906,
0.5729052424430847,
0.39294716715812683,
0.7589448094367981,
-0.9014004468917847,
-0.041126798838377,
-1.0103517770767212,
-0.2669425904750824,
-0.28471001982688904,
-0.3193524181842804,
-0.2155286967754364,
-0.6762700080871582,
0.4152800440788269,
0.06309864670038223,
-0.16648636758327484,
0.18156291544437408,
-0.6823036074638367,
0.35306626558303833,
0.26045575737953186,
0.33442601561546326,
0.039528850466012955,
0.059658538550138474,
0.004391106776893139,
-0.22676192224025726,
-0.4913186728954315,
-0.5719389319419861,
1.0094951391220093,
0.316506952047348,
0.8782294988632202,
0.0027139983139932156,
0.5872446298599243,
0.16523699462413788,
0.4028095304965973,
-0.4610617160797119,
0.47898736596107483,
-0.04819120466709137,
-0.49494415521621704,
-0.27945446968078613,
-0.13424043357372284,
-0.88161700963974,
0.2704252302646637,
-0.29809001088142395,
-0.40770894289016724,
0.45517176389694214,
0.06090516224503517,
-0.20935043692588806,
0.5732069611549377,
-0.859398365020752,
0.7748343348503113,
0.06888241320848465,
-0.5237054228782654,
0.001293834182433784,
-0.6559725403785706,
0.29754552245140076,
0.00910040084272623,
0.020454028621315956,
0.0719384178519249,
-0.06487220525741577,
0.8799228668212891,
-0.4069792628288269,
0.9264959096908569,
-0.3972071409225464,
-0.15607759356498718,
0.26347872614860535,
-0.12979917228221893,
0.4610121250152588,
-0.08888087421655655,
-0.09564855694770813,
0.06633593887090683,
-0.09224165230989456,
-0.3233107626438141,
-0.5101503133773804,
0.5660555958747864,
-0.6509114503860474,
-0.4004095792770386,
-0.42648282647132874,
-0.3015959858894348,
0.4281559884548187,
0.05689491331577301,
0.8233518004417419,
0.399706095457077,
-0.25567901134490967,
-0.015344548039138317,
1.115918755531311,
-0.5189960598945618,
0.6206575632095337,
0.10203573107719421,
-0.17544551193714142,
-0.482124000787735,
1.0603135824203491,
0.1969948261976242,
0.5757121443748474,
0.24584351480007172,
0.07968509942293167,
-0.29624801874160767,
-0.30163270235061646,
-0.6204322576522827,
0.28591811656951904,
-0.9325222969055176,
-0.2284722477197647,
-0.7391800284385681,
-0.39276379346847534,
-0.2886320948600769,
-0.2233642339706421,
-0.062568299472332,
-0.41349121928215027,
-1.0219348669052124,
0.25153490900993347,
0.37535443902015686,
0.6494676470756531,
-0.13504716753959656,
0.34367209672927856,
-0.24599047005176544,
0.3831768333911896,
0.3882898986339569,
0.27348339557647705,
0.1663031429052353,
-0.832920253276825,
-0.18525700271129608,
0.02349165454506874,
-0.7924026846885681,
-1.0405867099761963,
0.48759451508522034,
0.1689111888408661,
0.48064282536506653,
0.5350074172019958,
-0.24367590248584747,
0.7325106263160706,
-0.22683346271514893,
0.9403347969055176,
0.29979294538497925,
-0.6834752559661865,
0.6205584406852722,
-0.26709091663360596,
0.21399210393428802,
-0.026472123339772224,
0.45684167742729187,
-0.5198777318000793,
-0.5243830680847168,
-0.8958221077919006,
-0.85128253698349,
0.6820290088653564,
0.411994606256485,
0.19127491116523743,
0.09189516305923462,
0.42519959807395935,
0.04736417159438133,
-0.1339879035949707,
-0.9364444017410278,
-0.5344879031181335,
-0.38219153881073,
0.09473002701997757,
-0.015577803365886211,
-0.18826422095298767,
-0.053265929222106934,
-0.5605435371398926,
0.9897502660751343,
0.08932683616876602,
0.6347593069076538,
0.35917407274246216,
-0.12824803590774536,
-0.3914951682090759,
-0.2083585113286972,
0.6660345792770386,
0.34757959842681885,
-0.17716573178768158,
-0.06678369641304016,
0.012487656436860561,
-0.3936415910720825,
0.2435523271560669,
0.057736411690711975,
-0.4818301498889923,
0.23072214424610138,
0.06947813183069229,
0.8841710090637207,
-0.22924284636974335,
-0.3505721986293793,
0.5518503189086914,
-0.09277783334255219,
-0.35558268427848816,
-0.37902843952178955,
0.036168694496154785,
0.17100244760513306,
0.16164542734622955,
0.3964262306690216,
0.46119433641433716,
0.19317324459552765,
-0.27238887548446655,
-0.09247035533189774,
0.6494479179382324,
-0.3813822269439697,
-0.21340300142765045,
0.9186527132987976,
-0.027254892513155937,
-0.34539929032325745,
0.3553100526332855,
-0.4160369336605072,
-0.2907765805721283,
0.7840870022773743,
0.6986293196678162,
0.9598492980003357,
-0.11958696693181992,
0.3706446588039398,
0.7306950688362122,
0.1694600135087967,
0.0031252154149115086,
0.1284870207309723,
0.11572308838367462,
-0.4830840528011322,
-0.13001129031181335,
-0.4641437232494354,
-0.06843210011720657,
0.3076237440109253,
-0.1619904488325119,
0.32335853576660156,
-0.2856040894985199,
-0.14662699401378632,
0.12154709547758102,
-0.05681314319372177,
-0.47315460443496704,
0.3012644648551941,
-0.041311006993055344,
0.8348751664161682,
-1.0927131175994873,
0.6158339381217957,
0.5769124627113342,
-0.7278112173080444,
-0.3894588351249695,
0.09256377071142197,
-0.1617095172405243,
-0.49818652868270874,
0.609566330909729,
0.09942539781332016,
0.015181723050773144,
0.1305703967809677,
-0.9562437534332275,
-0.7980667352676392,
1.2290433645248413,
0.4039502441883087,
-0.002378026721999049,
0.18612661957740784,
-0.12098754197359085,
0.5419249534606934,
-0.47163984179496765,
0.40573522448539734,
0.14698109030723572,
0.3463898003101349,
0.42382434010505676,
-0.3649633526802063,
0.2695516049861908,
-0.41658419370651245,
0.4692380428314209,
-0.10027678310871124,
-0.57758629322052,
0.9393110871315002,
-0.2499336302280426,
-0.512479305267334,
0.4071853458881378,
0.7043599486351013,
0.17967095971107483,
0.18824303150177002,
0.460246205329895,
1.0232326984405518,
0.45555683970451355,
-0.21595391631126404,
0.9490299820899963,
0.0017643292667344213,
0.3434654772281647,
0.5190234780311584,
0.14326411485671997,
0.28898200392723083,
0.3769661486148834,
-0.2533455491065979,
0.7085067629814148,
0.8986799716949463,
-0.17233234643936157,
0.8151587843894958,
0.23767122626304626,
-0.6004856824874878,
0.1978859007358551,
0.05908839777112007,
-0.4670781195163727,
-0.15875396132469177,
0.4284575581550598,
-0.5557585954666138,
-0.18738311529159546,
0.3138304054737091,
-0.056122198700904846,
-0.23918819427490234,
-0.033608388155698776,
0.7510147094726562,
-0.09334257245063782,
-0.5030791163444519,
0.596832811832428,
-0.04135860502719879,
0.9865027070045471,
-0.5602684617042542,
-0.4137265682220459,
-0.13247238099575043,
-0.016449015587568283,
-0.32774925231933594,
-1.056443452835083,
0.40441516041755676,
-0.2123374491930008,
-0.10886130481958389,
-0.36189642548561096,
0.7765904068946838,
-0.4748232960700989,
-0.4439651668071747,
0.07288689911365509,
0.1495385766029358,
0.45304423570632935,
-0.006405489519238472,
-0.8866540789604187,
0.016937129199504852,
0.08830130845308304,
-0.3634912371635437,
0.2730230391025543,
0.4970269799232483,
0.27307841181755066,
0.5547460317611694,
0.5653859972953796,
-0.0034486367367208004,
0.003919344395399094,
-0.12339668720960617,
0.8022513389587402,
-0.29638737440109253,
-0.2625812888145447,
-0.7421677708625793,
0.783835232257843,
-0.08295349776744843,
-0.2991825044155121,
0.653829038143158,
0.620226263999939,
0.7102105617523193,
-0.3106878399848938,
0.8070513010025024,
-0.27811819314956665,
0.10908150672912598,
-0.4896746575832367,
0.91070955991745,
-0.8187455534934998,
-0.048555560410022736,
-0.6167045831680298,
-0.7706784605979919,
-0.13366104662418365,
0.9239916801452637,
0.014288091100752354,
0.247848242521286,
0.4857683479785919,
1.1350656747817993,
-0.1486678123474121,
-0.23773698508739471,
0.26146233081817627,
0.0469365231692791,
0.34314677119255066,
0.3170657455921173,
0.7120223045349121,
-0.6120738387107849,
0.37540170550346375,
-0.5709303021430969,
-0.35867375135421753,
0.04779815673828125,
-0.9058715105056763,
-0.7416512966156006,
-0.994674026966095,
-0.67533278465271,
-0.5958282351493835,
-0.30255040526390076,
0.4639856517314911,
0.7929373383522034,
-0.4122908115386963,
-0.041507869958877563,
-0.27075353264808655,
0.03476937860250473,
-0.19919008016586304,
-0.3170315623283386,
0.34663090109825134,
-0.05328075960278511,
-0.8906051516532898,
-0.06058182939887047,
0.40605005621910095,
0.6431335210800171,
-0.37927159667015076,
-0.1543036699295044,
-0.2835078537464142,
-0.03487858921289444,
0.49449726939201355,
0.3652154207229614,
-0.6222934722900391,
0.17113538086414337,
-0.2238703817129135,
-0.0976322814822197,
0.1863478422164917,
0.3734454810619354,
-0.6760550141334534,
0.7099291086196899,
0.5198684334754944,
0.15154974162578583,
0.884164571762085,
-0.3897402882575989,
0.15264447033405304,
-0.8094068765640259,
0.14072906970977783,
0.15588514506816864,
0.35090339183807373,
0.4194587171077728,
-0.47249656915664673,
0.523949921131134,
0.5552038550376892,
-0.7443053126335144,
-0.7219188809394836,
0.11538126319646835,
-0.9886605739593506,
-0.3047991096973419,
1.0561689138412476,
-0.22981539368629456,
-0.1483105719089508,
-0.0410093292593956,
-0.5575304627418518,
0.4308350682258606,
-0.32306137681007385,
0.6535989046096802,
0.6156331300735474,
-0.23266734182834625,
-0.4284135699272156,
-0.37932536005973816,
0.6109563708305359,
0.11936386674642563,
-0.7622219324111938,
-0.24459047615528107,
0.3952609896659851,
0.6035622358322144,
0.36312612891197205,
1.0729026794433594,
-0.18477694690227509,
0.212549090385437,
-0.01826193556189537,
0.18282762169837952,
0.18969117105007172,
0.14943987131118774,
-0.4717939496040344,
-0.04834722355008125,
-0.2896544337272644,
-0.21803919970989227
] |
google/long-t5-tglobal-base | google | "2023-01-24T17:08:42Z" | 120,721 | 29 | transformers | [
"transformers",
"pytorch",
"jax",
"longt5",
"text2text-generation",
"en",
"arxiv:2112.07916",
"arxiv:1912.08777",
"arxiv:1910.10683",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | text2text-generation | "2022-04-16T11:05:48Z" | ---
license: apache-2.0
language: en
---
# LongT5 (transient-global attention, base-sized model)
LongT5 model pre-trained on English language. The model was introduced in the paper [LongT5: Efficient Text-To-Text Transformer for Long Sequences](https://arxiv.org/pdf/2112.07916.pdf) by Guo et al. and first released in [the LongT5 repository](https://github.com/google-research/longt5). All the model architecture and configuration can be found in [Flaxformer repository](https://github.com/google/flaxformer) which uses another Google research project repository [T5x](https://github.com/google-research/t5x).
Disclaimer: The team releasing LongT5 did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
LongT5 model is an encoder-decoder transformer pre-trained in a text-to-text denoising generative setting ([Pegasus-like generation pre-training](https://arxiv.org/pdf/1912.08777.pdf)). LongT5 model is an extension of [T5 model](https://arxiv.org/pdf/1910.10683.pdf), and it enables using one of the two different efficient attention mechanisms - (1) Local attention, or (2) Transient-Global attention. The usage of attention sparsity patterns allows the model to efficiently handle input sequence.
LongT5 is particularly effective when fine-tuned for text generation (summarization, question answering) which requires handling long input sequences (up to 16,384 tokens).
## Intended uses & limitations
The model is mostly meant to be fine-tuned on a supervised dataset. See the [model hub](https://huggingface.co/models?search=longt5) to look for fine-tuned versions on a task that interests you.
### How to use
```python
from transformers import AutoTokenizer, LongT5Model
tokenizer = AutoTokenizer.from_pretrained("google/long-t5-tglobal-base")
model = LongT5Model.from_pretrained("google/long-t5-tglobal-base")
inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
outputs = model(**inputs)
last_hidden_states = outputs.last_hidden_state
```
### BibTeX entry and citation info
```bibtex
@article{guo2021longt5,
title={LongT5: Efficient Text-To-Text Transformer for Long Sequences},
author={Guo, Mandy and Ainslie, Joshua and Uthus, David and Ontanon, Santiago and Ni, Jianmo and Sung, Yun-Hsuan and Yang, Yinfei},
journal={arXiv preprint arXiv:2112.07916},
year={2021}
}
``` | [
-0.4634540379047394,
-0.6400682330131531,
0.46397504210472107,
0.4066683053970337,
-0.2982054054737091,
-0.12060033529996872,
-0.3186166286468506,
-0.6927544474601746,
0.07332050055265427,
0.25675204396247864,
-0.5715565085411072,
-0.4897254705429077,
-0.6677243113517761,
0.4387529492378235,
-0.49995067715644836,
1.2141649723052979,
-0.19441331923007965,
-0.346574604511261,
0.08857597410678864,
-0.13779164850711823,
-0.20565813779830933,
-0.5198025703430176,
-0.6250998377799988,
-0.4113544225692749,
0.7337779998779297,
-0.02504694275557995,
0.3696398437023163,
0.4776400327682495,
0.6285825371742249,
0.2799786925315857,
-0.22320447862148285,
-0.06600769609212875,
-0.6567971706390381,
-0.32552364468574524,
-0.06612429767847061,
-0.3172384202480316,
-0.7412018179893494,
-0.1518426090478897,
0.72641521692276,
0.3915850520133972,
0.15274864435195923,
0.2729606628417969,
0.039513763040304184,
0.41644957661628723,
-0.3690459430217743,
0.16367191076278687,
-0.1685469150543213,
0.05452755466103554,
-0.27409103512763977,
0.1451159566640854,
-0.4505245089530945,
-0.32178613543510437,
0.16551513969898224,
-0.4427012503147125,
0.4404761493206024,
-0.08976058661937714,
1.177586317062378,
0.24134206771850586,
-0.5317264199256897,
-0.17039936780929565,
-0.7740226984024048,
0.8870530724525452,
-0.7044957876205444,
0.5812796354293823,
0.07521597295999527,
0.28130653500556946,
-0.09079663455486298,
-1.2606936693191528,
-0.738591194152832,
-0.15329274535179138,
-0.18555016815662384,
0.31237995624542236,
-0.15941254794597626,
0.2756056785583496,
0.5580707788467407,
0.5608152151107788,
-0.6240893006324768,
-0.012931880541145802,
-0.5960045456886292,
0.004728676285594702,
0.5153021216392517,
-0.15977683663368225,
0.21797822415828705,
-0.29417499899864197,
-0.6159369945526123,
0.031699176877737045,
-0.5076194405555725,
0.1042075827717781,
0.10447640717029572,
0.09661711007356644,
-0.42654523253440857,
0.31830012798309326,
-0.053785379976034164,
0.5942396521568298,
0.4080422520637512,
-0.162735715508461,
0.4015977680683136,
-0.45982182025909424,
-0.3132750689983368,
-0.16259726881980896,
1.0031708478927612,
0.12354601174592972,
0.3103174865245819,
-0.2556881904602051,
-0.2969610393047333,
0.02572637051343918,
0.303506463766098,
-1.0724949836730957,
0.14847899973392487,
0.2962510287761688,
-0.531060516834259,
-0.43818846344947815,
-0.011151401326060295,
-0.6559966802597046,
0.09383601695299149,
-0.045423269271850586,
0.6124721169471741,
-0.450479120016098,
-0.19175806641578674,
0.08964283764362335,
0.07039517909288406,
0.34954169392585754,
0.06921719759702682,
-0.9628946185112,
0.2184506058692932,
0.4345245361328125,
0.9148784875869751,
-0.35237210988998413,
-0.407434344291687,
-0.2195221334695816,
0.17801806330680847,
-0.09398320317268372,
0.545037031173706,
-0.22146469354629517,
-0.3413633406162262,
-0.08953025192022324,
0.3446913957595825,
0.009512004442512989,
-0.19586539268493652,
0.8447036743164062,
-0.4648303687572479,
0.701485812664032,
-0.06265279650688171,
-0.4779733419418335,
-0.22235526144504547,
0.16314277052879333,
-0.8062156438827515,
1.1741820573806763,
0.14286288619041443,
-0.9128987789154053,
0.30151379108428955,
-1.2579952478408813,
-0.2714391052722931,
-0.11308326572179794,
0.26273179054260254,
-0.7374793887138367,
-0.10199763625860214,
0.4265459179878235,
0.6659954190254211,
-0.26656800508499146,
0.35430219769477844,
-0.29151442646980286,
-0.432676762342453,
-0.07064471393823624,
-0.2362426370382309,
0.7070736289024353,
0.24769021570682526,
-0.4948975741863251,
0.43648388981819153,
-0.759303867816925,
-0.2005205750465393,
0.3592841923236847,
-0.2718440890312195,
-0.028529377654194832,
-0.18724556267261505,
0.163053497672081,
0.31144601106643677,
0.289045512676239,
-0.5181689262390137,
0.4061196446418762,
-0.5352611541748047,
0.8256151080131531,
0.5302152633666992,
-0.13977394998073578,
0.33031293749809265,
-0.3159259557723999,
0.3667445182800293,
0.36398497223854065,
0.16566084325313568,
-0.37593114376068115,
-0.16318565607070923,
-0.9143041968345642,
-0.25045567750930786,
0.46404579281806946,
0.3893657922744751,
-0.6908013820648193,
0.4111458957195282,
-0.7297315001487732,
-0.49120667576789856,
-0.5285171866416931,
-0.12063157558441162,
0.22663536667823792,
0.41959208250045776,
0.564886748790741,
-0.21165858209133148,
-0.5081241130828857,
-0.8149002194404602,
-0.20502424240112305,
0.2080131471157074,
0.04396387189626694,
0.015053548850119114,
0.7169183492660522,
-0.3974360525608063,
0.8846812844276428,
-0.29530656337738037,
-0.21162961423397064,
-0.5076091289520264,
0.25288668274879456,
0.3692340850830078,
0.42973968386650085,
0.6859251260757446,
-0.6662545800209045,
-0.4486827850341797,
-0.30228909850120544,
-0.6861940026283264,
0.08804381638765335,
-0.2109520584344864,
-0.04852629825472832,
0.5110805034637451,
0.3560364246368408,
-0.9685684442520142,
0.4347716271877289,
0.396154522895813,
-0.2697846591472626,
0.29033419489860535,
-0.04144260659813881,
0.009903088212013245,
-1.7197380065917969,
0.3994868993759155,
0.08808767050504684,
-0.5100995898246765,
-0.6712400913238525,
0.07090281695127487,
0.28881514072418213,
-0.17786958813667297,
-0.49643322825431824,
0.7860546112060547,
-0.7444019317626953,
0.043877795338630676,
-0.08104286342859268,
-0.030789082869887352,
-0.11423122137784958,
0.6152477264404297,
0.10091530531644821,
0.8502659201622009,
0.26276251673698425,
-0.6031891107559204,
0.42223408818244934,
0.21133331954479218,
-0.1883181929588318,
0.2596789300441742,
-0.9320077300071716,
0.3676576614379883,
-0.19469863176345825,
0.45892760157585144,
-0.8503605127334595,
-0.29030415415763855,
0.11817434430122375,
-0.5904785394668579,
0.4520699679851532,
-0.12056463211774826,
-0.5171634554862976,
-0.771531879901886,
-0.32340681552886963,
0.5391926765441895,
0.6631662845611572,
-0.7134201526641846,
0.5715580582618713,
0.010337334126234055,
0.026962237432599068,
-0.6457277536392212,
-0.5942984223365784,
0.006187272258102894,
-0.45401373505592346,
-0.7752767205238342,
0.7179059982299805,
-0.14805549383163452,
0.2838301360607147,
-0.274065226316452,
0.16113179922103882,
0.09183499217033386,
-0.19563674926757812,
0.08461260050535202,
0.08381634205579758,
-0.2122061848640442,
0.1490074098110199,
-0.2086138129234314,
-0.23702043294906616,
0.050148651003837585,
-0.26051270961761475,
0.6113599538803101,
-0.16696622967720032,
0.056600216776132584,
-0.5531334280967712,
0.36897870898246765,
0.8090659976005554,
-0.3007100820541382,
0.6314135789871216,
1.07319176197052,
-0.47639238834381104,
-0.10168301314115524,
-0.6282079219818115,
-0.2699677646160126,
-0.5041684508323669,
0.522491991519928,
-0.5650634169578552,
-0.7879887223243713,
0.6299612522125244,
-0.0177078228443861,
0.16496795415878296,
0.7062424421310425,
0.6156935095787048,
0.05818980932235718,
1.0698028802871704,
0.9135992527008057,
-0.22358013689517975,
0.6097293496131897,
-0.3366634249687195,
0.3189748525619507,
-0.724993109703064,
-0.010511916130781174,
-0.17986316978931427,
-0.2750056982040405,
-0.7350788116455078,
-0.2607646882534027,
0.3501003086566925,
-0.18708182871341705,
-0.4215462803840637,
0.2748105227947235,
-0.6281787753105164,
0.21556299924850464,
0.5917484164237976,
-0.05939456447958946,
0.039805538952350616,
-0.032073911279439926,
0.07471635937690735,
-0.0862652137875557,
-0.5097032189369202,
-0.24345828592777252,
1.0180634260177612,
0.6424453258514404,
0.7190223932266235,
0.14921273291110992,
0.828823447227478,
0.010391196236014366,
0.1222006306052208,
-0.8553151488304138,
0.4293102025985718,
-0.11437594890594482,
-0.552589476108551,
-0.24207648634910583,
-0.24404668807983398,
-1.2257766723632812,
-0.12622344493865967,
-0.05912923440337181,
-0.6176210641860962,
-0.0999598577618599,
0.04575710371136665,
-0.43086758255958557,
0.25235462188720703,
-0.7746381163597107,
1.0296744108200073,
-0.13972683250904083,
-0.4370785653591156,
0.030850065872073174,
-0.8264408707618713,
0.4330926239490509,
0.0588439479470253,
-0.11776599287986755,
0.25867459177970886,
0.1573224663734436,
0.8268887996673584,
-0.33277520537376404,
0.9215032458305359,
-0.04538792744278908,
-0.11187050491571426,
0.17012853920459747,
-0.37151527404785156,
0.6871345639228821,
-0.15017861127853394,
0.23378020524978638,
0.2462819218635559,
0.016421936452388763,
-0.5086793303489685,
-0.5060239434242249,
0.6128082871437073,
-1.0157713890075684,
-0.5210385322570801,
-0.6134628653526306,
-0.33274605870246887,
0.010382660664618015,
0.5783280730247498,
0.5178401470184326,
0.30252358317375183,
-0.14326082170009613,
0.27664878964424133,
0.6567560434341431,
-0.1259869933128357,
0.8713082671165466,
0.11332337558269501,
-0.2926839590072632,
-0.508025586605072,
0.6661996841430664,
0.22388964891433716,
0.26855728030204773,
0.4265974760055542,
0.08177563548088074,
-0.4042903780937195,
-0.28336426615715027,
-0.39030396938323975,
0.6372074484825134,
-0.4673957824707031,
-0.16322766244411469,
-0.6899613738059998,
-0.5509214401245117,
-0.6781087517738342,
-0.0600428469479084,
-0.3685859441757202,
-0.23636676371097565,
-0.4147501289844513,
-0.09629802405834198,
0.39208176732063293,
0.6543646454811096,
0.2187144160270691,
0.36908066272735596,
-0.8549102544784546,
0.5539516806602478,
0.2077798992395401,
0.5013036131858826,
-0.12116113305091858,
-0.6190300583839417,
-0.2254680097103119,
-0.06331314891576767,
-0.4192394018173218,
-0.8490791320800781,
0.5540816783905029,
0.17866207659244537,
0.33729836344718933,
0.32565101981163025,
-0.06307730078697205,
0.7573585510253906,
-0.4373292922973633,
0.9007313251495361,
0.15857383608818054,
-1.0017051696777344,
0.45495501160621643,
-0.5052562355995178,
0.6587852239608765,
0.034795865416526794,
0.45441925525665283,
-0.6088653206825256,
-0.08257527649402618,
-0.7853845357894897,
-0.9535284638404846,
0.7454627752304077,
0.2562515437602997,
0.20850449800491333,
0.11297440528869629,
0.3481166660785675,
0.10100514441728592,
0.11925072968006134,
-1.2466667890548706,
-0.16709361970424652,
-0.4656262695789337,
-0.4568343162536621,
-0.09597533196210861,
-0.5425336956977844,
0.02033371850848198,
-0.23005147278308868,
0.6002125144004822,
-0.12586241960525513,
0.8446747064590454,
0.3301829397678375,
-0.24507690966129303,
0.10638689249753952,
0.23186041414737701,
0.8920583724975586,
0.49546146392822266,
-0.2647004723548889,
-0.0947362631559372,
0.3164307475090027,
-0.632418692111969,
-0.19209037721157074,
0.27048733830451965,
-0.16848450899124146,
0.1302575021982193,
0.4107220470905304,
1.1087372303009033,
0.0481579564511776,
-0.12022092193365097,
0.5334320068359375,
0.016509562730789185,
-0.30176183581352234,
-0.648064136505127,
-0.14931116998195648,
0.1829790621995926,
0.08719636499881744,
0.2495795637369156,
-0.37154534459114075,
0.041327718645334244,
-0.48945072293281555,
0.02018442563712597,
0.12749621272087097,
-0.29198333621025085,
-0.556000292301178,
0.8780477643013,
0.4112946391105652,
-0.1526440978050232,
0.5911717414855957,
-0.02942093461751938,
-0.5373420715332031,
0.478488951921463,
0.8292936682701111,
0.9748154282569885,
-0.21197323501110077,
-0.21450847387313843,
0.6337562203407288,
0.1303950697183609,
-0.10280711203813553,
0.3941700756549835,
-0.024770354852080345,
-0.473653107881546,
-0.4592537581920624,
-0.5711349844932556,
0.014918074943125248,
0.5261091589927673,
-0.5110898613929749,
0.598116934299469,
-0.3230029046535492,
-0.41023361682891846,
0.15966203808784485,
0.2161121368408203,
-0.7320412993431091,
0.39978086948394775,
0.2426038235425949,
0.9154476523399353,
-0.5070030689239502,
0.9783117175102234,
0.6374954581260681,
-0.5971675515174866,
-0.7151084542274475,
0.017505735158920288,
-0.36643725633621216,
-0.7101932168006897,
0.6939947605133057,
0.400583952665329,
-0.028645867481827736,
0.24144960939884186,
-0.7044182419776917,
-1.096040964126587,
1.274469017982483,
0.15564627945423126,
-0.5168518424034119,
-0.4769817590713501,
0.1978069245815277,
0.5463547110557556,
-0.15983009338378906,
0.43846943974494934,
0.3254633843898773,
0.44373175501823425,
0.1333102583885193,
-1.1735548973083496,
0.1704893559217453,
-0.37592342495918274,
0.047750115394592285,
0.4223066568374634,
-1.1112273931503296,
0.8383800387382507,
-0.31600263714790344,
-0.17097245156764984,
0.025848178192973137,
1.018430233001709,
0.06674258410930634,
0.17975391447544098,
0.34034407138824463,
0.5559036135673523,
0.5248447060585022,
-0.19352883100509644,
0.9118093848228455,
-0.4427240490913391,
0.6762823462486267,
0.7663446068763733,
0.06012372672557831,
0.6692691445350647,
0.49025556445121765,
-0.11302144080400467,
0.4341343641281128,
0.7328142523765564,
-0.19460950791835785,
0.47586023807525635,
-0.02070065774023533,
-0.15912331640720367,
-0.12182606011629105,
0.21625648438930511,
-0.5678196549415588,
0.3237917721271515,
0.24676331877708435,
-0.6312606334686279,
-0.13649873435497284,
-0.005081166047602892,
0.3217218220233917,
-0.45128726959228516,
-0.21794436872005463,
0.7388796210289001,
0.1935533583164215,
-0.7166645526885986,
0.9246790409088135,
0.1888899952173233,
1.001089096069336,
-0.5834660530090332,
0.10903332382440567,
-0.2842751145362854,
0.32348206639289856,
-0.20698094367980957,
-0.6309577822685242,
0.2603817880153656,
0.14295797049999237,
-0.3420511484146118,
-0.30517062544822693,
0.6941142678260803,
-0.46507418155670166,
-0.607891857624054,
0.1995210200548172,
0.16595874726772308,
0.14758415520191193,
0.134901225566864,
-0.648129403591156,
-0.13576465845108032,
-0.04573120176792145,
-0.5999178290367126,
0.2249090075492859,
0.3936978280544281,
-0.2822072207927704,
0.7052958011627197,
0.5378047823905945,
-0.11992298811674118,
0.023739250376820564,
0.038616254925727844,
0.7257946133613586,
-1.0698810815811157,
-0.652531623840332,
-0.8878586292266846,
0.6477888226509094,
-0.10391666740179062,
-0.43707534670829773,
0.46778371930122375,
0.5393707752227783,
0.717629075050354,
-0.22837266325950623,
0.8783605694770813,
-0.020282207056879997,
0.6806921362876892,
-0.48680955171585083,
0.8786571025848389,
-0.6760634779930115,
-0.22755102813243866,
-0.16543862223625183,
-0.9023336172103882,
-0.32845816016197205,
0.5274108052253723,
-0.36005210876464844,
0.48463886976242065,
0.7905651330947876,
0.5301150679588318,
-0.3538914620876312,
-0.18498240411281586,
0.3099900186061859,
0.518193781375885,
0.47618529200553894,
0.785645067691803,
0.3883894085884094,
-0.6556214690208435,
0.5565635561943054,
-0.21476291120052338,
0.1828182339668274,
-0.2509612441062927,
-0.9967933893203735,
-1.1443356275558472,
-0.6376076340675354,
-0.10633726418018341,
-0.43751004338264465,
0.2114693522453308,
0.9840347766876221,
0.6753607392311096,
-0.6806314587593079,
0.0026570281479507685,
-0.010261199437081814,
-0.08567185699939728,
0.09292923659086227,
-0.24542580544948578,
0.647676408290863,
-0.3163432776927948,
-1.0314985513687134,
0.015715086832642555,
-0.050028618425130844,
0.44211551547050476,
-0.15062561631202698,
0.09016727656126022,
-0.022430306300520897,
0.020183738321065903,
0.7647182941436768,
0.27254292368888855,
-0.7533091902732849,
-0.47454455494880676,
0.210716113448143,
-0.23031295835971832,
0.26843419671058655,
0.3999847173690796,
-0.7343721985816956,
0.22218511998653412,
0.42581045627593994,
0.4587413966655731,
0.7995601892471313,
0.04050338640809059,
0.6603231430053711,
-0.6194795966148376,
0.2333729863166809,
0.13343164324760437,
0.2900529205799103,
0.363339900970459,
-0.3367859125137329,
0.5487658381462097,
0.3043121099472046,
-0.6642090082168579,
-0.8605846166610718,
0.08412445336580276,
-1.257554531097412,
0.0755046159029007,
1.2981258630752563,
-0.11139674484729767,
-0.4502701759338379,
0.2664617598056793,
-0.199813112616539,
0.5763648748397827,
-0.39175528287887573,
0.943129301071167,
0.8436378240585327,
0.048921868205070496,
-0.3861863315105438,
-0.561426043510437,
0.6963986754417419,
0.28414252400398254,
-0.8394262194633484,
-0.20527420938014984,
0.1356682926416397,
0.4838723838329315,
0.17005328834056854,
0.49116888642311096,
-0.04079987481236458,
0.20183633267879486,
-0.30684182047843933,
0.43453744053840637,
-0.0669059082865715,
-0.1402422934770584,
-0.280602365732193,
0.1691577434539795,
-0.19043764472007751,
-0.2252342849969864
] |
nateraw/food | nateraw | "2022-05-17T17:44:24Z" | 120,683 | 15 | transformers | [
"transformers",
"pytorch",
"tensorboard",
"vit",
"image-classification",
"generated_from_trainer",
"dataset:food101",
"license:apache-2.0",
"model-index",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | image-classification | "2022-03-02T23:29:05Z" | ---
license: apache-2.0
tags:
- generated_from_trainer
- image-classification
- pytorch
datasets:
- food101
metrics:
- accuracy
model-index:
- name: food101_outputs
results:
- task:
name: Image Classification
type: image-classification
dataset:
name: food-101
type: food101
args: default
metrics:
- name: Accuracy
type: accuracy
value: 0.8912871287128713
---
<!-- 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. -->
# nateraw/food
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the nateraw/food101 dataset.
It achieves the following results on the evaluation set:
- Loss: 0.4501
- Accuracy: 0.8913
## 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: 0.0002
- train_batch_size: 128
- eval_batch_size: 128
- seed: 1337
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 5.0
- mixed_precision_training: Native AMP
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
| 0.8271 | 1.0 | 592 | 0.6070 | 0.8562 |
| 0.4376 | 2.0 | 1184 | 0.4947 | 0.8691 |
| 0.2089 | 3.0 | 1776 | 0.4876 | 0.8747 |
| 0.0882 | 4.0 | 2368 | 0.4639 | 0.8857 |
| 0.0452 | 5.0 | 2960 | 0.4501 | 0.8913 |
### Framework versions
- Transformers 4.9.0.dev0
- Pytorch 1.9.0+cu102
- Datasets 1.9.1.dev0
- Tokenizers 0.10.3
| [
-0.4210784137248993,
-0.6926553845405579,
0.06374665349721909,
0.031115038320422173,
-0.17473173141479492,
-0.3973610997200012,
-0.10962742567062378,
-0.2282828688621521,
0.43869107961654663,
0.4162769019603729,
-0.666692316532135,
-0.6884685754776001,
-0.7582763433456421,
-0.056008096784353256,
-0.24277280271053314,
1.2683467864990234,
0.126027449965477,
0.32117486000061035,
-0.04973895475268364,
-0.052748240530490875,
-0.5387452840805054,
-0.59236079454422,
-0.7834680676460266,
-0.6984270811080933,
0.38916894793510437,
0.44392409920692444,
0.8862318992614746,
0.9365339875221252,
0.7342199683189392,
0.23369212448596954,
-0.46456846594810486,
-0.022640779614448547,
-0.6599348187446594,
-0.35380819439888,
-0.19450891017913818,
-0.3581694960594177,
-0.8474504351615906,
0.032209571450948715,
0.659385621547699,
0.3136563301086426,
-0.1983930468559265,
0.7042919993400574,
0.11273841559886932,
0.4662814736366272,
-0.5196231603622437,
0.3014909029006958,
-0.5571082234382629,
0.32557544112205505,
-0.1457020342350006,
-0.4185711145401001,
-0.2931969463825226,
-0.09524929523468018,
0.041280001401901245,
-0.7368898987770081,
0.45845142006874084,
-0.004349745810031891,
1.5336334705352783,
0.296783983707428,
-0.27844661474227905,
0.2668446898460388,
-0.7278715372085571,
0.5274755954742432,
-0.7838589549064636,
0.09133072942495346,
0.47006770968437195,
0.5100315809249878,
-0.05941515788435936,
-0.9150871634483337,
-0.4509927034378052,
0.04918020963668823,
-0.0031875548884272575,
0.2205151468515396,
-0.29527151584625244,
0.10149626433849335,
0.7608407139778137,
0.694031834602356,
-0.6602552533149719,
0.05117306113243103,
-0.6250661015510559,
-0.16976267099380493,
0.5271454453468323,
0.45286086201667786,
-0.04613250121474266,
-0.29965877532958984,
-0.5899842977523804,
-0.2874206602573395,
-0.3672126531600952,
0.11930935829877853,
0.5193822383880615,
0.2892310619354248,
-0.3554387390613556,
0.7427106499671936,
-0.45442458987236023,
0.8742563128471375,
0.14423330128192902,
-0.08542069792747498,
0.7009524703025818,
-0.1686246395111084,
-0.6120767593383789,
-0.03536619246006012,
0.834199845790863,
0.8025542497634888,
0.2654590904712677,
0.21431563794612885,
-0.28970086574554443,
-0.00959558505564928,
0.3768922686576843,
-0.9804524183273315,
-0.48056477308273315,
0.009131762199103832,
-0.49484458565711975,
-0.751684308052063,
0.23482337594032288,
-0.6020057201385498,
0.03905657306313515,
-0.3539980947971344,
0.5924637913703918,
-0.29499056935310364,
-0.31413349509239197,
0.2381719946861267,
-0.17009387910366058,
0.47555771470069885,
0.13420772552490234,
-1.0252408981323242,
0.5473978519439697,
0.5040968060493469,
0.7199133038520813,
0.23959945142269135,
-0.3056475520133972,
-0.3348415195941925,
0.017446298152208328,
-0.2993728518486023,
0.629486620426178,
-0.23574396967887878,
-0.3228311836719513,
-0.34437116980552673,
0.42863932251930237,
-0.17388007044792175,
-0.5424562096595764,
0.7562355995178223,
-0.2867183983325958,
0.12071267515420914,
-0.49765560030937195,
-0.6262674927711487,
-0.3165396749973297,
0.6280384063720703,
-0.7710299491882324,
1.371284008026123,
0.21678443253040314,
-0.9440514445304871,
0.7029380202293396,
-0.5614182949066162,
0.030382614582777023,
0.13862471282482147,
-0.0826476663351059,
-0.8003403544425964,
-0.09669774770736694,
0.12617330253124237,
0.40225622057914734,
-0.2697012722492218,
0.515380322933197,
-0.39850327372550964,
-0.5599516034126282,
-0.12575750052928925,
-0.6721740365028381,
0.8144004344940186,
0.0913008600473404,
-0.5443546772003174,
0.39950495958328247,
-1.149740219116211,
0.3163340985774994,
0.4736175239086151,
-0.44319549202919006,
0.16538186371326447,
-0.5148819088935852,
0.47010383009910583,
0.3168669044971466,
0.13394764065742493,
-0.4996359050273895,
0.2687196731567383,
-0.35083141922950745,
0.3894423544406891,
0.7253000736236572,
0.13755306601524353,
0.051855430006980896,
-0.5195294618606567,
0.5014057159423828,
0.09952554106712341,
0.4679568409919739,
0.17485225200653076,
-0.7467555403709412,
-0.776695191860199,
-0.12485990673303604,
0.33629852533340454,
0.4467219114303589,
-0.4016213119029999,
0.7553326487541199,
-0.3314765691757202,
-0.7967148423194885,
-0.1343601644039154,
-0.027860358357429504,
0.49048036336898804,
0.9041234254837036,
0.4623679518699646,
-0.38163596391677856,
-0.5233734846115112,
-1.160075306892395,
0.0061861989088356495,
-0.06284230202436447,
0.2583036720752716,
0.19894394278526306,
0.7141786813735962,
-0.16898934543132782,
0.8846522569656372,
-0.6504238247871399,
-0.07634750753641129,
-0.25151076912879944,
-0.16974212229251862,
0.3618674576282501,
0.8015008568763733,
0.8392419815063477,
-0.40371814370155334,
-0.2941097915172577,
-0.1076018214225769,
-0.8337464928627014,
0.34576672315597534,
0.03585842624306679,
-0.44932544231414795,
-0.2973915934562683,
0.29759737849235535,
-0.5637884736061096,
0.9845601320266724,
0.4758959114551544,
-0.6535144448280334,
0.8856712579727173,
-0.39775264263153076,
-0.07768793404102325,
-1.3377363681793213,
0.3257187306880951,
0.3395889699459076,
-0.34156808257102966,
-0.3486717939376831,
0.07833446562290192,
0.21844829618930817,
-0.24892759323120117,
-0.49936366081237793,
0.77342289686203,
-0.11448752135038376,
0.14250490069389343,
-0.16068489849567413,
-0.5761144757270813,
0.1847442239522934,
0.7870738506317139,
0.12307397276163101,
0.6360601782798767,
0.63945472240448,
-0.496560275554657,
0.5894810557365417,
0.42785319685935974,
-0.41364607214927673,
0.4378969073295593,
-0.9688209891319275,
-0.0830371230840683,
0.08052004873752594,
0.16645048558712006,
-0.7567064166069031,
-0.4301809072494507,
0.7121219635009766,
-0.4497296214103699,
0.29287388920783997,
-0.35401585698127747,
-0.36082378029823303,
-0.5371887683868408,
-0.1021992564201355,
0.3324439227581024,
0.29694584012031555,
-0.6083369255065918,
0.379555881023407,
-0.07145192474126816,
0.3478233218193054,
-0.5290716886520386,
-0.8984115719795227,
-0.17753489315509796,
-0.2359916716814041,
-0.5340040922164917,
0.25551068782806396,
0.08934877812862396,
0.1310347467660904,
0.06730867922306061,
-0.23135091364383698,
-0.1388416290283203,
-0.1155591607093811,
0.4056941270828247,
0.3280397653579712,
-0.2900634706020355,
-0.10294680297374725,
-0.0965452492237091,
-0.2969052195549011,
0.28001606464385986,
-0.22036907076835632,
0.6007984280586243,
-0.3035872280597687,
-0.29753658175468445,
-0.8225730061531067,
-0.14525678753852844,
0.5389251708984375,
-0.29671144485473633,
0.7814732193946838,
0.8684750199317932,
-0.6670840382575989,
0.10151538997888565,
-0.495230495929718,
-0.21758770942687988,
-0.4724040627479553,
0.6064775586128235,
-0.5370302200317383,
-0.10089111328125,
0.7683666348457336,
0.1309526264667511,
-0.04813152924180031,
1.00356924533844,
0.4287240505218506,
0.25579240918159485,
0.9772704243659973,
0.19718915224075317,
-0.04605734348297119,
0.5149791240692139,
-1.0323238372802734,
-0.2431110143661499,
-0.898063063621521,
-0.5971090197563171,
-0.45216840505599976,
-0.5110693573951721,
-0.6372130513191223,
-0.15317215025424957,
0.19883349537849426,
-0.0907573401927948,
-0.7680047750473022,
0.46183568239212036,
-0.7494502663612366,
0.5500030517578125,
0.9394571185112,
0.6536349654197693,
-0.05300438031554222,
0.24553059041500092,
-0.38112184405326843,
0.000652689952403307,
-0.9929385185241699,
-0.47929245233535767,
1.3708444833755493,
0.43050551414489746,
0.8518827557563782,
-0.19064201414585114,
0.7244529724121094,
-0.06503957509994507,
0.1336345672607422,
-0.7064474821090698,
0.3691902756690979,
0.10895171016454697,
-1.0234140157699585,
-0.2137322723865509,
-0.4784867763519287,
-0.844958484172821,
0.19461624324321747,
-0.37626510858535767,
-0.7250588536262512,
0.3414774239063263,
0.3721577525138855,
-0.4395411014556885,
0.6979220509529114,
-0.9152700304985046,
1.4930384159088135,
-0.35462260246276855,
-0.5496334433555603,
0.13245034217834473,
-0.5266290903091431,
0.20031943917274475,
0.3733414113521576,
-0.3909086287021637,
-0.03292400389909744,
0.3874015808105469,
0.9787976741790771,
-0.7998374104499817,
0.7362300157546997,
-0.35161522030830383,
0.44729873538017273,
0.40024709701538086,
-0.17217105627059937,
0.7264506220817566,
0.4431731104850769,
-0.08025774359703064,
0.0906543880701065,
-0.047451525926589966,
-0.7529312372207642,
-0.49641475081443787,
0.8410071134567261,
-1.0871468782424927,
-0.27479884028434753,
-0.7546228170394897,
-0.3650353252887726,
-0.004436560906469822,
0.29971668124198914,
0.6759997606277466,
0.80549556016922,
-0.0018600723706185818,
0.30504924058914185,
0.6331376433372498,
0.002527511678636074,
0.2483501136302948,
0.1304798573255539,
-0.12811945378780365,
-0.724793553352356,
1.024043083190918,
-0.0234393198043108,
0.21968023478984833,
0.023293783888220787,
0.2840768098831177,
-0.33995264768600464,
-0.328555703163147,
-0.6328572034835815,
0.12107817828655243,
-0.7634133100509644,
-0.40229496359825134,
-0.3982802629470825,
-0.5421637296676636,
-0.23288020491600037,
0.03175629675388336,
-0.5525311827659607,
-0.20066995918750763,
-0.6793131828308105,
-0.3489415943622589,
0.5219686627388,
0.5937228202819824,
0.1657407283782959,
0.5409126877784729,
-0.5874799489974976,
0.03846878558397293,
0.26194244623184204,
0.5973295569419861,
0.03051692619919777,
-0.9096502661705017,
-0.3838980793952942,
0.024728311225771904,
-0.6200382709503174,
-0.8432990908622742,
0.661138117313385,
0.03617312014102936,
0.6241387128829956,
0.500105082988739,
-0.3667583167552948,
1.103550910949707,
-0.14680401980876923,
0.8151339292526245,
0.4453257918357849,
-0.5870084762573242,
0.5627639293670654,
-0.3212157189846039,
0.6108011603355408,
0.6488956809043884,
0.3647477328777313,
-0.3286266326904297,
0.025045309215784073,
-1.2785903215408325,
-0.9258947968482971,
0.8509026169776917,
0.3165890872478485,
-0.023833785206079483,
0.025306321680545807,
0.4440678358078003,
-0.09114304184913635,
0.1632472425699234,
-0.8804758191108704,
-0.5834603309631348,
-0.4896400272846222,
-0.19400030374526978,
-0.0876498743891716,
-0.32344067096710205,
-0.0640958696603775,
-0.8959003686904907,
0.9932453036308289,
-0.052909571677446365,
0.29914265871047974,
0.13975591957569122,
0.13051198422908783,
-0.21010515093803406,
-0.12530121207237244,
0.6146726012229919,
0.8645516633987427,
-0.6856343150138855,
-0.0806107446551323,
0.13866375386714935,
-0.6850824356079102,
-0.04917255789041519,
0.22095666825771332,
-0.16771149635314941,
0.1881539225578308,
0.28928688168525696,
1.2442233562469482,
0.3411500155925751,
-0.10746677219867706,
0.5102465152740479,
-0.21466170251369476,
-0.4837099611759186,
-0.36792516708374023,
0.15727323293685913,
-0.16461458802223206,
0.17585019767284393,
0.11998315900564194,
0.6043910980224609,
0.09479737281799316,
-0.1756027489900589,
0.15520402789115906,
0.16558197140693665,
-0.604663074016571,
-0.37242281436920166,
0.9208372235298157,
0.043984781950712204,
-0.18326564133167267,
0.8910233378410339,
-0.28224578499794006,
-0.306719034910202,
0.9965399503707886,
0.534233570098877,
0.8981520533561707,
-0.16904763877391815,
0.10589814186096191,
1.002267837524414,
0.2659305930137634,
-0.2292931228876114,
0.5369903445243835,
0.2271914929151535,
-0.44251981377601624,
-0.11027422547340393,
-0.7692011594772339,
-0.1722870022058487,
0.6539409160614014,
-1.2217869758605957,
0.6344060897827148,
-0.5626727342605591,
-0.6003490686416626,
0.26591813564300537,
0.1818014532327652,
-1.2189056873321533,
0.6238400936126709,
0.09273841977119446,
1.1566277742385864,
-1.0209970474243164,
0.8416478633880615,
0.8337584733963013,
-0.513110339641571,
-1.1704943180084229,
-0.29822447896003723,
-0.10423078387975693,
-0.9748830199241638,
0.5634545087814331,
0.06818223744630814,
0.5021147131919861,
0.15923656523227692,
-0.5798775553703308,
-1.0483876466751099,
1.199265956878662,
0.3931157886981964,
-0.7155164480209351,
-0.16626973450183868,
0.12869012355804443,
0.5393859148025513,
-0.11413855105638504,
0.7169181108474731,
0.28697559237480164,
0.3563459515571594,
0.2717656195163727,
-1.027052879333496,
-0.025389546528458595,
-0.5280663967132568,
0.23361323773860931,
0.08293691277503967,
-0.7786917686462402,
0.9471786618232727,
0.01745603419840336,
0.41188231110572815,
-0.025895286351442337,
0.5251976251602173,
0.20326893031597137,
0.20664596557617188,
0.3491726517677307,
1.045411229133606,
0.6315457224845886,
-0.19217734038829803,
1.0847431421279907,
-0.5263739824295044,
0.8816676735877991,
1.3402984142303467,
0.20525558292865753,
0.48794886469841003,
0.37151840329170227,
-0.1776789426803589,
0.29476213455200195,
1.0673747062683105,
-0.4488215744495392,
0.451527863740921,
0.3198937773704529,
0.11396492272615433,
-0.3601274788379669,
0.2479831874370575,
-0.7846792936325073,
0.4030497670173645,
0.13431262969970703,
-0.822163999080658,
-0.3811645209789276,
-0.21600401401519775,
-0.1307792365550995,
-0.35903510451316833,
-0.44560706615448,
0.5885623693466187,
-0.3692065477371216,
-0.3531224727630615,
0.9032875299453735,
0.12348397076129913,
0.36240488290786743,
-0.5863788723945618,
-0.16729532182216644,
-0.15588076412677765,
0.263245552778244,
-0.398076593875885,
-0.7108062505722046,
0.2421576827764511,
-0.005625554360449314,
-0.25613585114479065,
0.03361252322793007,
0.607795000076294,
-0.18764346837997437,
-0.9330786466598511,
-0.027089452371001244,
0.3268132507801056,
0.09696773439645767,
-0.11726145446300507,
-1.0118920803070068,
0.047956839203834534,
-0.13476771116256714,
-0.5898944139480591,
0.07653558999300003,
0.3397013545036316,
0.04877924546599388,
0.5865151286125183,
0.4843388497829437,
0.06661359965801239,
0.2934539318084717,
0.06759027391672134,
1.2299950122833252,
-0.760525107383728,
-0.7366244792938232,
-0.6818815469741821,
0.48915496468544006,
-0.24563801288604736,
-1.0203243494033813,
0.6249352097511292,
1.156912088394165,
1.093454122543335,
-0.3317814767360687,
0.564075767993927,
0.006353800650686026,
0.17129845917224884,
-0.4468139111995697,
0.6432234644889832,
-0.5538591742515564,
-0.02968422882258892,
-0.3382774889469147,
-0.9149841070175171,
-0.09038730710744858,
0.6683441400527954,
-0.5382532477378845,
0.20347698032855988,
0.6087406873703003,
0.9018852114677429,
-0.3032284379005432,
0.004034331999719143,
0.25692883133888245,
-0.10534386336803436,
0.15728962421417236,
0.49196237325668335,
0.46286797523498535,
-0.9674006700515747,
0.5035415887832642,
-0.6992098689079285,
-0.09188327193260193,
-0.223147451877594,
-0.4853503108024597,
-0.9197433590888977,
-0.3137206435203552,
-0.5534800887107849,
-0.563395619392395,
0.15843676030635834,
1.129091501235962,
1.0597167015075684,
-0.7518619298934937,
-0.292986124753952,
-0.20230212807655334,
-0.3153650164604187,
-0.5062289237976074,
-0.2821985185146332,
0.44337084889411926,
-0.09141463041305542,
-0.691982626914978,
-0.11735501140356064,
-0.26660090684890747,
0.2633468210697174,
-0.0681944265961647,
-0.27028101682662964,
-0.2917024791240692,
-0.3558381497859955,
0.1808861494064331,
0.21867965161800385,
-0.5857459902763367,
-0.28687623143196106,
-0.029277019202709198,
-0.09022499620914459,
0.3729040026664734,
0.30139970779418945,
-0.6419348120689392,
0.7199487090110779,
0.29488372802734375,
0.36480265855789185,
0.9283987283706665,
0.07624531537294388,
0.1912909746170044,
-0.8463835716247559,
0.3025628626346588,
0.23733918368816376,
0.42202284932136536,
0.15985116362571716,
-0.4022795855998993,
0.48943614959716797,
0.5722557306289673,
-0.554043173789978,
-0.7978378534317017,
-0.25515487790107727,
-1.209285020828247,
0.27491870522499084,
1.3090312480926514,
0.01655724085867405,
-0.690671443939209,
0.4300823211669922,
-0.19752390682697296,
0.36727219820022583,
-0.36434224247932434,
0.5311734676361084,
0.6871423721313477,
0.11301880329847336,
0.0432710163295269,
-0.618348240852356,
0.4832477867603302,
0.19071362912654877,
-0.6957231163978577,
-0.32006579637527466,
0.29118016362190247,
0.6708710193634033,
-0.0555032454431057,
0.3592376708984375,
-0.07713737338781357,
0.4112335443496704,
0.29804956912994385,
0.3847428262233734,
-0.45026475191116333,
-0.3958483338356018,
-0.3159177601337433,
0.020765455439686775,
0.06441640853881836,
-0.6888083219528198
] |
facebook/nllb-200-distilled-600M | facebook | "2023-02-11T20:19:06Z" | 120,377 | 227 | transformers | [
"transformers",
"pytorch",
"m2m_100",
"text2text-generation",
"nllb",
"translation",
"ace",
"acm",
"acq",
"aeb",
"af",
"ajp",
"ak",
"als",
"am",
"apc",
"ar",
"ars",
"ary",
"arz",
"as",
"ast",
"awa",
"ayr",
"azb",
"azj",
"ba",
"bm",
"ban",
"be",
"bem",
"bn",
"bho",
"bjn",
"bo",
"bs",
"bug",
"bg",
"ca",
"ceb",
"cs",
"cjk",
"ckb",
"crh",
"cy",
"da",
"de",
"dik",
"dyu",
"dz",
"el",
"en",
"eo",
"et",
"eu",
"ee",
"fo",
"fj",
"fi",
"fon",
"fr",
"fur",
"fuv",
"gaz",
"gd",
"ga",
"gl",
"gn",
"gu",
"ht",
"ha",
"he",
"hi",
"hne",
"hr",
"hu",
"hy",
"ig",
"ilo",
"id",
"is",
"it",
"jv",
"ja",
"kab",
"kac",
"kam",
"kn",
"ks",
"ka",
"kk",
"kbp",
"kea",
"khk",
"km",
"ki",
"rw",
"ky",
"kmb",
"kmr",
"knc",
"kg",
"ko",
"lo",
"lij",
"li",
"ln",
"lt",
"lmo",
"ltg",
"lb",
"lua",
"lg",
"luo",
"lus",
"lvs",
"mag",
"mai",
"ml",
"mar",
"min",
"mk",
"mt",
"mni",
"mos",
"mi",
"my",
"nl",
"nn",
"nb",
"npi",
"nso",
"nus",
"ny",
"oc",
"ory",
"pag",
"pa",
"pap",
"pbt",
"pes",
"plt",
"pl",
"pt",
"prs",
"quy",
"ro",
"rn",
"ru",
"sg",
"sa",
"sat",
"scn",
"shn",
"si",
"sk",
"sl",
"sm",
"sn",
"sd",
"so",
"st",
"es",
"sc",
"sr",
"ss",
"su",
"sv",
"swh",
"szl",
"ta",
"taq",
"tt",
"te",
"tg",
"tl",
"th",
"ti",
"tpi",
"tn",
"ts",
"tk",
"tum",
"tr",
"tw",
"tzm",
"ug",
"uk",
"umb",
"ur",
"uzn",
"vec",
"vi",
"war",
"wo",
"xh",
"ydd",
"yo",
"yue",
"zh",
"zsm",
"zu",
"dataset:flores-200",
"license:cc-by-nc-4.0",
"autotrain_compatible",
"has_space",
"region:us"
] | translation | "2022-07-08T09:43:57Z" | ---
language:
- ace
- acm
- acq
- aeb
- af
- ajp
- ak
- als
- am
- apc
- ar
- ars
- ary
- arz
- as
- ast
- awa
- ayr
- azb
- azj
- ba
- bm
- ban
- be
- bem
- bn
- bho
- bjn
- bo
- bs
- bug
- bg
- ca
- ceb
- cs
- cjk
- ckb
- crh
- cy
- da
- de
- dik
- dyu
- dz
- el
- en
- eo
- et
- eu
- ee
- fo
- fj
- fi
- fon
- fr
- fur
- fuv
- gaz
- gd
- ga
- gl
- gn
- gu
- ht
- ha
- he
- hi
- hne
- hr
- hu
- hy
- ig
- ilo
- id
- is
- it
- jv
- ja
- kab
- kac
- kam
- kn
- ks
- ka
- kk
- kbp
- kea
- khk
- km
- ki
- rw
- ky
- kmb
- kmr
- knc
- kg
- ko
- lo
- lij
- li
- ln
- lt
- lmo
- ltg
- lb
- lua
- lg
- luo
- lus
- lvs
- mag
- mai
- ml
- mar
- min
- mk
- mt
- mni
- mos
- mi
- my
- nl
- nn
- nb
- npi
- nso
- nus
- ny
- oc
- ory
- pag
- pa
- pap
- pbt
- pes
- plt
- pl
- pt
- prs
- quy
- ro
- rn
- ru
- sg
- sa
- sat
- scn
- shn
- si
- sk
- sl
- sm
- sn
- sd
- so
- st
- es
- sc
- sr
- ss
- su
- sv
- swh
- szl
- ta
- taq
- tt
- te
- tg
- tl
- th
- ti
- tpi
- tn
- ts
- tk
- tum
- tr
- tw
- tzm
- ug
- uk
- umb
- ur
- uzn
- vec
- vi
- war
- wo
- xh
- ydd
- yo
- yue
- zh
- zsm
- zu
language_details: "ace_Arab, ace_Latn, acm_Arab, acq_Arab, aeb_Arab, afr_Latn, ajp_Arab, aka_Latn, amh_Ethi, apc_Arab, arb_Arab, ars_Arab, ary_Arab, arz_Arab, asm_Beng, ast_Latn, awa_Deva, ayr_Latn, azb_Arab, azj_Latn, bak_Cyrl, bam_Latn, ban_Latn,bel_Cyrl, bem_Latn, ben_Beng, bho_Deva, bjn_Arab, bjn_Latn, bod_Tibt, bos_Latn, bug_Latn, bul_Cyrl, cat_Latn, ceb_Latn, ces_Latn, cjk_Latn, ckb_Arab, crh_Latn, cym_Latn, dan_Latn, deu_Latn, dik_Latn, dyu_Latn, dzo_Tibt, ell_Grek, eng_Latn, epo_Latn, est_Latn, eus_Latn, ewe_Latn, fao_Latn, pes_Arab, fij_Latn, fin_Latn, fon_Latn, fra_Latn, fur_Latn, fuv_Latn, gla_Latn, gle_Latn, glg_Latn, grn_Latn, guj_Gujr, hat_Latn, hau_Latn, heb_Hebr, hin_Deva, hne_Deva, hrv_Latn, hun_Latn, hye_Armn, ibo_Latn, ilo_Latn, ind_Latn, isl_Latn, ita_Latn, jav_Latn, jpn_Jpan, kab_Latn, kac_Latn, kam_Latn, kan_Knda, kas_Arab, kas_Deva, kat_Geor, knc_Arab, knc_Latn, kaz_Cyrl, kbp_Latn, kea_Latn, khm_Khmr, kik_Latn, kin_Latn, kir_Cyrl, kmb_Latn, kon_Latn, kor_Hang, kmr_Latn, lao_Laoo, lvs_Latn, lij_Latn, lim_Latn, lin_Latn, lit_Latn, lmo_Latn, ltg_Latn, ltz_Latn, lua_Latn, lug_Latn, luo_Latn, lus_Latn, mag_Deva, mai_Deva, mal_Mlym, mar_Deva, min_Latn, mkd_Cyrl, plt_Latn, mlt_Latn, mni_Beng, khk_Cyrl, mos_Latn, mri_Latn, zsm_Latn, mya_Mymr, nld_Latn, nno_Latn, nob_Latn, npi_Deva, nso_Latn, nus_Latn, nya_Latn, oci_Latn, gaz_Latn, ory_Orya, pag_Latn, pan_Guru, pap_Latn, pol_Latn, por_Latn, prs_Arab, pbt_Arab, quy_Latn, ron_Latn, run_Latn, rus_Cyrl, sag_Latn, san_Deva, sat_Beng, scn_Latn, shn_Mymr, sin_Sinh, slk_Latn, slv_Latn, smo_Latn, sna_Latn, snd_Arab, som_Latn, sot_Latn, spa_Latn, als_Latn, srd_Latn, srp_Cyrl, ssw_Latn, sun_Latn, swe_Latn, swh_Latn, szl_Latn, tam_Taml, tat_Cyrl, tel_Telu, tgk_Cyrl, tgl_Latn, tha_Thai, tir_Ethi, taq_Latn, taq_Tfng, tpi_Latn, tsn_Latn, tso_Latn, tuk_Latn, tum_Latn, tur_Latn, twi_Latn, tzm_Tfng, uig_Arab, ukr_Cyrl, umb_Latn, urd_Arab, uzn_Latn, vec_Latn, vie_Latn, war_Latn, wol_Latn, xho_Latn, ydd_Hebr, yor_Latn, yue_Hant, zho_Hans, zho_Hant, zul_Latn"
tags:
- nllb
- translation
license: "cc-by-nc-4.0"
datasets:
- flores-200
metrics:
- bleu
- spbleu
- chrf++
inference: false
---
# NLLB-200
This is the model card of NLLB-200's distilled 600M variant.
Here are the [metrics](https://tinyurl.com/nllb200densedst600mmetrics) for that particular checkpoint.
- Information about training algorithms, parameters, fairness constraints or other applied approaches, and features. The exact training algorithm, data and the strategies to handle data imbalances for high and low resource languages that were used to train NLLB-200 is described in the paper.
- Paper or other resource for more information NLLB Team et al, No Language Left Behind: Scaling Human-Centered Machine Translation, Arxiv, 2022
- License: CC-BY-NC
- Where to send questions or comments about the model: https://github.com/facebookresearch/fairseq/issues
## Intended Use
- Primary intended uses: NLLB-200 is a machine translation model primarily intended for research in machine translation, - especially for low-resource languages. It allows for single sentence translation among 200 languages. Information on how to - use the model can be found in Fairseq code repository along with the training code and references to evaluation and training data.
- Primary intended users: Primary users are researchers and machine translation research community.
- Out-of-scope use cases: NLLB-200 is a research model and is not released for production deployment. NLLB-200 is trained on general domain text data and is not intended to be used with domain specific texts, such as medical domain or legal domain. The model is not intended to be used for document translation. The model was trained with input lengths not exceeding 512 tokens, therefore translating longer sequences might result in quality degradation. NLLB-200 translations can not be used as certified translations.
## Metrics
• Model performance measures: NLLB-200 model was evaluated using BLEU, spBLEU, and chrF++ metrics widely adopted by machine translation community. Additionally, we performed human evaluation with the XSTS protocol and measured the toxicity of the generated translations.
## Evaluation Data
- Datasets: Flores-200 dataset is described in Section 4
- Motivation: We used Flores-200 as it provides full evaluation coverage of the languages in NLLB-200
- Preprocessing: Sentence-split raw text data was preprocessed using SentencePiece. The
SentencePiece model is released along with NLLB-200.
## Training Data
• We used parallel multilingual data from a variety of sources to train the model. We provide detailed report on data selection and construction process in Section 5 in the paper. We also used monolingual data constructed from Common Crawl. We provide more details in Section 5.2.
## Ethical Considerations
• In this work, we took a reflexive approach in technological development to ensure that we prioritize human users and minimize risks that could be transferred to them. While we reflect on our ethical considerations throughout the article, here are some additional points to highlight. For one, many languages chosen for this study are low-resource languages, with a heavy emphasis on African languages. While quality translation could improve education and information access in many in these communities, such an access could also make groups with lower levels of digital literacy more vulnerable to misinformation or online scams. The latter scenarios could arise if bad actors misappropriate our work for nefarious activities, which we conceive as an example of unintended use. Regarding data acquisition, the training data used for model development were mined from various publicly available sources on the web. Although we invested heavily in data cleaning, personally identifiable information may not be entirely eliminated. Finally, although we did our best to optimize for translation quality, mistranslations produced by the model could remain. Although the odds are low, this could have adverse impact on those who rely on these translations to make important decisions (particularly when related to health and safety).
## Caveats and Recommendations
• Our model has been tested on the Wikimedia domain with limited investigation on other domains supported in NLLB-MD. In addition, the supported languages may have variations that our model is not capturing. Users should make appropriate assessments.
## Carbon Footprint Details
• The carbon dioxide (CO2e) estimate is reported in Section 8.8. | [
-0.3606511950492859,
-0.5151388049125671,
0.3005933463573456,
0.22903025150299072,
-0.14610576629638672,
-0.12281816452741623,
-0.1287970244884491,
-0.6103172898292542,
-0.06447257846593857,
0.6780168414115906,
-0.44011831283569336,
-0.256904274225235,
-0.6418244242668152,
0.3665132224559784,
-0.5712789297103882,
1.2676098346710205,
-0.003933786880224943,
0.307597279548645,
-0.04258647561073303,
-0.39447110891342163,
-0.3430527448654175,
-0.6000725626945496,
-0.7035017609596252,
-0.1787494421005249,
0.6885515451431274,
0.24619413912296295,
0.6890557408332825,
0.5788461565971375,
0.4440305829048157,
0.1636294424533844,
-0.3543734848499298,
-0.024501239880919456,
-0.6843420267105103,
-0.4553370475769043,
-0.2510591745376587,
-0.3332293927669525,
-0.7564844489097595,
0.20347771048545837,
0.491306871175766,
0.9155770540237427,
-0.18733294308185577,
0.5251960754394531,
0.12889453768730164,
0.6550931334495544,
-0.27439579367637634,
-0.17345429956912994,
-0.4999789893627167,
0.10371236503124237,
-0.31256502866744995,
-0.10809070616960526,
-0.6493085622787476,
-0.26976609230041504,
-0.039688121527433395,
-0.6220043301582336,
0.04114581644535065,
0.2914331257343292,
0.8611231446266174,
0.15360833704471588,
-0.5434874296188354,
-0.372873455286026,
-0.5136174559593201,
0.9890379309654236,
-0.9215612411499023,
0.2950643301010132,
0.5344517230987549,
0.06487806886434555,
-0.05621108412742615,
-0.566799521446228,
-0.6257789731025696,
-0.11244379729032516,
-0.04668911546468735,
0.11561132222414017,
-0.16576068103313446,
-0.015103284269571304,
0.5549460053443909,
0.3619530200958252,
-0.6254156827926636,
0.08101197332143784,
-0.6412559747695923,
-0.16406746208667755,
0.6605848670005798,
0.20534375309944153,
0.22393833100795746,
-0.42628493905067444,
-0.43862056732177734,
-0.07363361865282059,
-0.605954110622406,
-0.018618419766426086,
0.6690443754196167,
0.4135953485965729,
-0.27508214116096497,
0.5853368639945984,
-0.1477486938238144,
0.7066792249679565,
-0.05009189620614052,
-0.21246415376663208,
0.5361275672912598,
-0.6444031596183777,
-0.06969762593507767,
-0.08079878240823746,
0.7541584968566895,
0.46359479427337646,
0.26008251309394836,
-0.1970510333776474,
-0.2115595042705536,
-0.24574033915996552,
0.5186805129051208,
-0.7695097923278809,
0.19738970696926117,
0.2862630784511566,
-0.6260464191436768,
-0.4345341920852661,
-0.0888310968875885,
-0.7065899968147278,
-0.17149747908115387,
-0.3812169134616852,
0.30568310618400574,
-0.33022013306617737,
-0.19471009075641632,
0.09239617735147476,
0.002636760240420699,
0.07206907123327255,
0.16557222604751587,
-0.617535412311554,
0.18300390243530273,
0.30590489506721497,
0.691459059715271,
-0.22392649948596954,
-0.3178919851779938,
-0.2181033492088318,
0.004091193899512291,
-0.27649810910224915,
0.27053338289260864,
-0.052697815001010895,
-0.339383065700531,
-0.039309460669755936,
0.18146607279777527,
0.09118684381246567,
-0.5008028745651245,
0.7699068188667297,
-0.4911898076534271,
0.3085692822933197,
-0.4896843433380127,
-0.5068601369857788,
-0.2699512243270874,
0.20476527512073517,
-0.8493154048919678,
1.0496892929077148,
0.15328319370746613,
-0.9356727004051208,
0.3754020035266876,
-0.6783074140548706,
-0.44649219512939453,
0.20660088956356049,
0.15521399676799774,
-0.42866432666778564,
0.07165012508630753,
-0.05314470827579498,
0.12214350700378418,
-0.2372187077999115,
0.5079118609428406,
-0.2749040424823761,
-0.39926832914352417,
0.3328915536403656,
-0.6118215322494507,
1.2430830001831055,
0.5027730464935303,
-0.2888350486755371,
-0.30333253741264343,
-0.6871944069862366,
0.07836882025003433,
0.24070565402507782,
-0.5955623388290405,
-0.13963210582733154,
-0.1651795208454132,
0.38765716552734375,
0.351901113986969,
0.23569485545158386,
-0.5255879163742065,
0.1529562622308731,
-0.29234981536865234,
0.1706220805644989,
0.5016515851020813,
0.009097648784518242,
0.46772831678390503,
-0.3485320806503296,
0.5910889506340027,
-0.06484897434711456,
0.48330140113830566,
0.06179795041680336,
-0.4514450132846832,
-0.7825921177864075,
0.18867968022823334,
0.4893178939819336,
0.5606967806816101,
-0.6767783164978027,
0.5153156518936157,
-0.2899441421031952,
-0.38603129982948303,
-0.7217841744422913,
0.1807890385389328,
0.38683244585990906,
0.4954879581928253,
0.5052168965339661,
-0.30075573921203613,
-0.4313279986381531,
-0.7070505023002625,
-0.21048688888549805,
-0.006741644814610481,
0.148443803191185,
0.09220156073570251,
0.6082174777984619,
-0.40925949811935425,
0.761339008808136,
-0.20029352605342865,
-0.21007207036018372,
-0.3522205948829651,
0.10453692823648453,
0.260102242231369,
0.5160953402519226,
0.5676554441452026,
-0.9362107515335083,
-0.4850269854068756,
-0.04131779074668884,
-0.9151516556739807,
-0.15989291667938232,
-0.20592020452022552,
-0.14862067997455597,
0.37617403268814087,
0.4018951654434204,
-0.3032262325286865,
0.48645341396331787,
0.7559378743171692,
-0.19147303700447083,
0.4658409059047699,
-0.2308311015367508,
0.10038918256759644,
-1.1306606531143188,
0.5397710204124451,
-0.13565556704998016,
-0.19484148919582367,
-0.7561756372451782,
0.11079804599285126,
0.0763779804110527,
-0.1521749049425125,
-0.5708255767822266,
0.7350872755050659,
-0.30940020084381104,
0.09811488538980484,
-0.33999061584472656,
0.0685015544295311,
0.2451631873846054,
0.4659038782119751,
-0.1709568202495575,
0.6399103403091431,
0.05786239355802536,
-0.4745817482471466,
0.03954533487558365,
0.29473820328712463,
-0.291879266500473,
0.7518717646598816,
-0.6293572783470154,
0.029624393209815025,
-0.10671043395996094,
0.18473471701145172,
-0.4640066623687744,
-0.04410073161125183,
0.30681994557380676,
-0.5418449640274048,
0.20691776275634766,
0.03732706233859062,
-0.7462725639343262,
-0.3543619215488434,
0.016749823465943336,
0.38366150856018066,
0.33753180503845215,
-0.23897820711135864,
0.26682013273239136,
0.42579901218414307,
-0.1407565325498581,
-0.662507951259613,
-1.0130208730697632,
0.16750818490982056,
-0.2849258482456207,
-0.4249255657196045,
0.14641250669956207,
-0.2635447382926941,
-0.15320813655853271,
0.05832286551594734,
0.060746051371097565,
-0.16149628162384033,
0.2507683336734772,
0.12160557508468628,
0.17716540396213531,
0.14061109721660614,
0.10221634805202484,
0.05247892439365387,
-0.12198179215192795,
-0.07921067625284195,
-0.24072709679603577,
0.5778278112411499,
-0.04855640232563019,
-0.13660293817520142,
-0.42216527462005615,
0.5562108755111694,
0.39028826355934143,
-0.12781690061092377,
1.0446511507034302,
0.6332207918167114,
-0.47980359196662903,
0.23545171320438385,
-0.5347524881362915,
-0.024219511076807976,
-0.4328264892101288,
0.45985147356987,
-0.001668765558861196,
-0.5173094272613525,
0.40515756607055664,
0.11150646209716797,
0.20092588663101196,
0.5153142809867859,
0.4894796311855316,
-0.4142669141292572,
0.8410429358482361,
0.6971718072891235,
-0.0846875011920929,
0.3886009454727173,
-0.3456500768661499,
0.23313312232494354,
-0.8134225010871887,
-0.2303747981786728,
-0.5256173014640808,
-0.2544751465320587,
-0.6540492177009583,
-0.38442811369895935,
0.2539319694042206,
0.29112279415130615,
-0.10074768215417862,
0.6092817783355713,
-0.23197534680366516,
0.21152327954769135,
0.37211474776268005,
-0.03613889217376709,
0.5002542734146118,
-0.03434225916862488,
-0.16104555130004883,
-0.15607953071594238,
-0.7480900287628174,
-0.8158184289932251,
1.0508630275726318,
0.4237879514694214,
0.5254362225532532,
-0.10246455669403076,
0.7002788782119751,
0.4138256013393402,
0.42385366559028625,
-0.4977229833602905,
0.4151369631290436,
-0.1833896040916443,
-1.154457449913025,
-0.2389807105064392,
-0.6510668396949768,
-1.0081827640533447,
0.15514011681079865,
-0.12519682943820953,
-0.41473063826560974,
0.14059922099113464,
0.10087314248085022,
-0.13116960227489471,
0.24101223051548004,
-0.7166680097579956,
1.03965425491333,
-0.5605421662330627,
-0.12076061218976974,
-0.25875550508499146,
-0.6803264617919922,
0.03632908686995506,
-0.37961533665657043,
0.5075346231460571,
-0.047213681042194366,
0.09326604753732681,
0.8020880818367004,
-0.327596515417099,
0.7997620105743408,
-0.20270395278930664,
-0.1609007567167282,
0.24384696781635284,
-0.15305458009243011,
0.34987717866897583,
-0.09755183756351471,
-0.3224862813949585,
0.5138589143753052,
0.03293420374393463,
-0.6689239144325256,
-0.08720758557319641,
0.406818151473999,
-0.7200087904930115,
-0.16579096019268036,
-0.38493722677230835,
-0.6792007088661194,
0.0027863923460245132,
0.5355750322341919,
0.5505409836769104,
0.2824263274669647,
-0.21390925347805023,
0.2565115988254547,
0.6254412531852722,
-0.5734009742736816,
0.282664030790329,
0.6058194041252136,
-0.20404385030269623,
-0.30429741740226746,
0.8323966860771179,
0.3619210422039032,
0.6122947931289673,
0.1286381632089615,
0.02518310211598873,
-0.18151842057704926,
-0.5170542597770691,
-0.5445572137832642,
0.27291515469551086,
-0.790822446346283,
-0.14738041162490845,
-0.6657768487930298,
-0.10929109156131744,
-0.31493017077445984,
-0.13472981750965118,
-0.37884432077407837,
-0.2827190160751343,
-0.32065287232398987,
-0.11606106162071228,
0.06678248196840286,
0.6046766042709351,
0.09930508583784103,
0.36405470967292786,
-0.6858648657798767,
0.20169341564178467,
-0.24362340569496155,
0.18892908096313477,
0.032148197293281555,
-0.7423412799835205,
-0.5276440382003784,
0.3472948372364044,
-0.3698635399341583,
-0.7112500667572021,
0.332904577255249,
-0.11569346487522125,
0.6679423451423645,
0.13509659469127655,
0.08132395893335342,
0.6189358830451965,
-0.48158857226371765,
0.6390867233276367,
0.17719729244709015,
-0.8749228715896606,
0.3038233518600464,
-0.3247276246547699,
0.4686318039894104,
0.9192347526550293,
0.6694216132164001,
-0.8385236263275146,
-0.4418081045150757,
-0.6630872488021851,
-0.9429703950881958,
0.6027544736862183,
0.26960086822509766,
0.25391411781311035,
0.03330506011843681,
0.3160456717014313,
0.16064690053462982,
0.30112236738204956,
-1.2566730976104736,
-0.21424368023872375,
-0.09568681567907333,
-0.19896210730075836,
0.07356316596269608,
-0.11592312157154083,
-0.08338344097137451,
-0.20718157291412354,
0.7186061143875122,
0.007932694628834724,
0.1431395560503006,
-0.016580605879426003,
-0.4480280578136444,
-0.10764961689710617,
0.23207201063632965,
0.35172948241233826,
0.5628141164779663,
-0.06631860136985779,
-0.2334650605916977,
0.39219868183135986,
-0.5472962856292725,
0.11911337822675705,
0.05726330727338791,
-0.43583741784095764,
-0.0520021989941597,
0.326113224029541,
0.6386812925338745,
0.008336497470736504,
-0.614092230796814,
0.4756632447242737,
0.04287043213844299,
-0.1338864415884018,
-0.3615576922893524,
-0.28898316621780396,
0.2091200053691864,
0.03203868493437767,
0.3468720614910126,
0.23091155290603638,
0.22267691791057587,
-0.48190033435821533,
0.11763709038496017,
0.20891712605953217,
-0.3419570028781891,
-0.2819981276988983,
0.6529470682144165,
0.3401923179626465,
-0.1451515257358551,
0.7175427079200745,
-0.41904473304748535,
-0.27465081214904785,
0.4365338683128357,
0.27299192547798157,
0.5096906423568726,
-0.08881670236587524,
0.21064086258411407,
0.6040318608283997,
0.6359326243400574,
-0.157632514834404,
0.16268599033355713,
0.1216888278722763,
-0.5232442617416382,
-0.45496031641960144,
-0.7655050158500671,
-0.1570938676595688,
0.06085580587387085,
-0.9171092510223389,
0.30054402351379395,
-0.18165448307991028,
-0.3748895227909088,
-0.19965632259845734,
0.1686859279870987,
-0.7374300956726074,
0.17938604950904846,
0.1657657027244568,
0.9366651773452759,
-0.9174091219902039,
0.9962246417999268,
0.2495758831501007,
-0.7246400117874146,
-0.5787795186042786,
0.0981544777750969,
-0.036174193024635315,
-0.5381494164466858,
0.46285268664360046,
0.2403218299150467,
0.18570563197135925,
-0.0900799110531807,
-0.47851961851119995,
-0.7161911725997925,
1.0237886905670166,
0.43647927045822144,
-0.6347951889038086,
-0.19832222163677216,
0.5063633322715759,
0.6669062972068787,
-0.021217504516243935,
-0.04172252491116524,
0.2847294211387634,
0.5057276487350464,
-0.10861672461032867,
-0.9625676274299622,
0.06729602068662643,
-0.14885146915912628,
-0.0027922748122364283,
0.021839657798409462,
-0.564504861831665,
0.675249457359314,
-0.14973831176757812,
-0.20495741069316864,
0.2817303538322449,
0.3976726531982422,
0.08695297688245773,
0.19642393290996552,
0.3709356486797333,
0.6386586427688599,
0.7172152400016785,
-0.018574781715869904,
1.197497844696045,
-0.1555723398923874,
0.5134192705154419,
1.0050278902053833,
-0.24826683104038239,
0.689386785030365,
0.6290462017059326,
-0.16428782045841217,
0.17518505454063416,
0.4215075969696045,
-0.11829741299152374,
0.4535576105117798,
0.133065864443779,
0.09919559955596924,
0.1002829298377037,
-0.31302410364151,
-0.34805768728256226,
0.22119532525539398,
0.12403326481580734,
-0.46288371086120605,
-0.04284124821424484,
0.18736658990383148,
0.3433949649333954,
-0.03327497839927673,
-0.09609168767929077,
0.5908968448638916,
0.20827901363372803,
-0.6420525908470154,
0.5804596543312073,
0.24530991911888123,
0.6666978597640991,
-0.5629117488861084,
0.18987254798412323,
-0.35176217555999756,
0.16728195548057556,
-0.22938840091228485,
-0.6078223586082458,
0.5809289813041687,
0.2402854561805725,
-0.23733192682266235,
-0.5233127474784851,
0.24515287578105927,
-0.3697071075439453,
-0.6742137670516968,
0.4958634376525879,
0.35014477372169495,
0.17647024989128113,
0.0326918289065361,
-0.873292863368988,
0.22970305383205414,
0.1362241953611374,
-0.20520804822444916,
0.3748367428779602,
0.3290030360221863,
-0.11753490567207336,
0.49738946557044983,
0.5500940680503845,
0.18263842165470123,
0.1085008829832077,
0.08447743207216263,
0.6257021427154541,
-0.5525334477424622,
-0.21464072167873383,
-0.4917525053024292,
0.6017385125160217,
-0.21952638030052185,
-0.3720128536224365,
0.8850253224372864,
0.6809229850769043,
1.1995311975479126,
0.047881465405225754,
0.6770007610321045,
-0.26278412342071533,
0.42452937364578247,
-0.30760177969932556,
0.843990683555603,
-0.7111222743988037,
0.07025381177663803,
-0.3420030176639557,
-0.8435289859771729,
-0.08079402148723602,
0.5149353742599487,
-0.14906471967697144,
0.153961643576622,
0.6530587077140808,
0.594582200050354,
0.1854749321937561,
-0.11788034439086914,
0.25010326504707336,
0.08098620176315308,
0.280050128698349,
0.2797532379627228,
0.4571440517902374,
-0.7909201979637146,
0.7257030010223389,
-0.22171257436275482,
-0.13269339501857758,
-0.22818900644779205,
-0.8432359099388123,
-0.7007068991661072,
-0.5376695394515991,
-0.23609144985675812,
-0.35753777623176575,
-0.13810749351978302,
0.688237190246582,
0.5593841075897217,
-0.6946306228637695,
-0.42876869440078735,
0.07465151697397232,
-0.2487899363040924,
-0.2985926568508148,
-0.2166386991739273,
-0.07222221791744232,
-0.1527915745973587,
-0.7760729789733887,
0.11702907830476761,
0.04883935675024986,
0.08039138466119766,
-0.37986838817596436,
-0.327353835105896,
-0.4899590015411377,
0.00557197630405426,
0.490584135055542,
0.1606418490409851,
-0.5525078177452087,
-0.04140482470393181,
0.19042177498340607,
-0.4851800501346588,
-0.06219352409243584,
0.4789023697376251,
-0.20870673656463623,
0.47237300872802734,
0.337675541639328,
0.5062724351882935,
0.5333174467086792,
-0.1320551037788391,
0.4418029487133026,
-0.7167466282844543,
0.3264198899269104,
0.3389906883239746,
0.39541175961494446,
0.40521523356437683,
-0.39265576004981995,
0.5560699105262756,
0.21244452893733978,
-0.504843533039093,
-0.9020673632621765,
0.04117270186543465,
-0.940818190574646,
-0.24369268119335175,
1.2111865282058716,
-0.15188726782798767,
-0.06267751753330231,
-0.16837184131145477,
-0.17368146777153015,
0.33900436758995056,
-0.11801472306251526,
0.6457553505897522,
0.8991708159446716,
0.3005116581916809,
0.0661802664399147,
-1.038391351699829,
0.24258551001548767,
0.36279115080833435,
-0.834331214427948,
-0.043580442667007446,
0.20279733836650848,
0.3679538071155548,
0.2372744083404541,
0.6375606656074524,
-0.47414350509643555,
0.22208213806152344,
-0.08138786256313324,
0.30683720111846924,
0.21564415097236633,
-0.18649497628211975,
-0.3103364109992981,
-0.15952211618423462,
0.13389000296592712,
0.1883455365896225
] |
facebook/encodec_32khz | facebook | "2023-09-04T16:32:53Z" | 120,350 | 8 | transformers | [
"transformers",
"pytorch",
"safetensors",
"encodec",
"feature-extraction",
"arxiv:2306.05284",
"has_space",
"region:us"
] | feature-extraction | "2023-06-15T12:01:17Z" | ---
inference: false
---
![encodec image](https://github.com/facebookresearch/encodec/raw/2d29d9353c2ff0ab1aeadc6a3d439854ee77da3e/architecture.png)
# Model Card for EnCodec
This model card provides details and information about EnCodec 32kHz, a state-of-the-art real-time audio codec developed by Meta AI.
This EnCodec checkpoint was trained specifically as part of the [MusicGen project](https://huggingface.co/docs/transformers/main/model_doc/musicgen),
and is intended to be used in conjuction with the MusicGen models.
## Model Details
### Model Description
EnCodec is a high-fidelity audio codec leveraging neural networks. It introduces a streaming encoder-decoder architecture with quantized latent space, trained in an end-to-end fashion.
The model simplifies and speeds up training using a single multiscale spectrogram adversary that efficiently reduces artifacts and produces high-quality samples.
It also includes a novel loss balancer mechanism that stabilizes training by decoupling the choice of hyperparameters from the typical scale of the loss.
Additionally, lightweight Transformer models are used to further compress the obtained representation while maintaining real-time performance. This variant of EnCodec is
trained on 20k of music data, consisting of an internal dataset of 10K high-quality music tracks, and on the ShutterStock and Pond5 music datasets.
- **Developed by:** Meta AI
- **Model type:** Audio Codec
### Model Sources
- **Repository:** [GitHub Repository](https://github.com/facebookresearch/audiocraft)
- **Paper:** [Simple and Controllable Music Generation](https://arxiv.org/abs/2306.05284)
## Uses
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
### Direct Use
EnCodec can be used directly as an audio codec for real-time compression and decompression of audio signals.
It provides high-quality audio compression and efficient decoding. The model was trained on various bandwiths, which can be specified when encoding (compressing) and decoding (decompressing).
Two different setup exist for EnCodec:
- Non-streamable: the input audio is split into chunks of 1 seconds, with an overlap of 10 ms, which are then encoded.
- Streamable: weight normalizationis used on the convolution layers, and the input is not split into chunks but rather padded on the left.
### Downstream Use
This variant of EnCodec is designed to be used in conjunction with the official [MusicGen checkpoints](https://huggingface.co/models?search=facebook/musicgen-).
However, it can also be used standalone to encode audio files.
## How to Get Started with the Model
Use the following code to get started with the EnCodec model using a dummy example from the LibriSpeech dataset (~9MB). First, install the required Python packages:
```
pip install --upgrade pip
pip install --upgrade transformers datasets[audio]
```
Then load an audio sample, and run a forward pass of the model:
```python
from datasets import load_dataset, Audio
from transformers import EncodecModel, AutoProcessor
# load a demonstration datasets
librispeech_dummy = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
# load the model + processor (for pre-processing the audio)
model = EncodecModel.from_pretrained("facebook/encodec_48khz")
processor = AutoProcessor.from_pretrained("facebook/encodec_48khz")
# cast the audio data to the correct sampling rate for the model
librispeech_dummy = librispeech_dummy.cast_column("audio", Audio(sampling_rate=processor.sampling_rate))
audio_sample = librispeech_dummy[0]["audio"]["array"]
# pre-process the inputs
inputs = processor(raw_audio=audio_sample, sampling_rate=processor.sampling_rate, return_tensors="pt")
# explicitly encode then decode the audio inputs
encoder_outputs = model.encode(inputs["input_values"], inputs["padding_mask"])
audio_values = model.decode(encoder_outputs.audio_codes, encoder_outputs.audio_scales, inputs["padding_mask"])[0]
# or the equivalent with a forward pass
audio_values = model(inputs["input_values"], inputs["padding_mask"]).audio_values
```
## Evaluation
For evaluation results, refer to the [MusicGen evaluation scores](https://huggingface.co/facebook/musicgen-large#evaluation-results).
## Summary
EnCodec is a state-of-the-art real-time neural audio compression model that excels in producing high-fidelity audio samples at various sample rates and bandwidths.
The model's performance was evaluated across different settings, ranging from 24kHz monophonic at 1.5 kbps to 48kHz stereophonic, showcasing both subjective and
objective results. Notably, EnCodec incorporates a novel spectrogram-only adversarial loss, effectively reducing artifacts and enhancing sample quality.
Training stability and interpretability were further enhanced through the introduction of a gradient balancer for the loss weights.
Additionally, the study demonstrated that a compact Transformer model can be employed to achieve an additional bandwidth reduction of up to 40% without compromising
quality, particularly in applications where low latency is not critical (e.g., music streaming).
## Citation
**BibTeX:**
```
@misc{copet2023simple,
title={Simple and Controllable Music Generation},
author={Jade Copet and Felix Kreuk and Itai Gat and Tal Remez and David Kant and Gabriel Synnaeve and Yossi Adi and Alexandre Défossez},
year={2023},
eprint={2306.05284},
archivePrefix={arXiv},
primaryClass={cs.SD}
}
``` | [
-0.6608560681343079,
-0.5965974926948547,
0.053942348808050156,
0.2648279666900635,
-0.0726393386721611,
-0.040601056069135666,
-0.43538254499435425,
-0.3677993714809418,
0.17084185779094696,
0.20843687653541565,
-0.9436601996421814,
-0.6779994964599609,
-0.44016680121421814,
-0.043187230825424194,
-0.5829413533210754,
0.657249927520752,
0.122277170419693,
0.031275227665901184,
-0.13317373394966125,
-0.07847341150045395,
-0.3034684360027313,
-0.37924087047576904,
-0.8248717188835144,
-0.25473490357398987,
-0.022823307663202286,
0.09741639345884323,
0.33685481548309326,
0.3818507194519043,
0.5536777377128601,
0.2465149313211441,
-0.42900678515434265,
-0.06169891729950905,
-0.3805939257144928,
0.09471776336431503,
0.4035376012325287,
-0.44127407670021057,
-0.6015933156013489,
0.25803351402282715,
0.29172489047050476,
0.26502394676208496,
-0.4293714165687561,
0.6546182632446289,
0.03153173625469208,
0.4790838062763214,
-0.516045093536377,
0.0909733846783638,
-0.36172977089881897,
0.31982287764549255,
-0.04744676500558853,
-0.2884787917137146,
-0.48778486251831055,
-0.244329035282135,
-0.3802957832813263,
-0.587477445602417,
0.1378459632396698,
-0.06108194589614868,
0.9408635497093201,
0.4100950360298157,
0.00912801455706358,
-0.337842732667923,
-0.8965879678726196,
0.395487904548645,
-0.8986347317695618,
0.7208693623542786,
0.5232533812522888,
0.5602138638496399,
0.18795113265514374,
-0.762526273727417,
-0.45453813672065735,
-0.005361148621886969,
0.37957438826560974,
0.5982847809791565,
-0.1480739563703537,
-0.005936609581112862,
0.4772021770477295,
0.7681174278259277,
-0.5698192119598389,
-0.21578054130077362,
-0.5067769885063171,
-0.32689446210861206,
0.5958688259124756,
-0.196283221244812,
0.14315202832221985,
-0.1431872397661209,
-0.16932186484336853,
-0.30196455121040344,
-0.5888700485229492,
0.340709924697876,
0.7583643794059753,
0.04540475085377693,
-0.5064472556114197,
0.19235390424728394,
0.07981353998184204,
0.6397787928581238,
0.40060797333717346,
-0.2784230709075928,
0.5681173801422119,
-0.47089001536369324,
-0.09062188863754272,
0.3291897773742676,
0.9323694705963135,
0.12114373594522476,
0.10796470940113068,
0.08765438944101334,
-0.32809457182884216,
0.10082865506410599,
0.175462543964386,
-0.8728119134902954,
-0.36588263511657715,
0.4927980303764343,
-0.7713900804519653,
-0.08293014764785767,
0.1690596342086792,
-0.5653407573699951,
0.2458827942609787,
-0.36426207423210144,
0.7003180980682373,
-0.4990207850933075,
-0.16684778034687042,
0.3720814287662506,
-0.2852644920349121,
0.08736532926559448,
-0.2816430628299713,
-0.7141757607460022,
0.16794568300247192,
0.32119569182395935,
0.8025942444801331,
0.018230760470032692,
0.03638690337538719,
-0.2764503061771393,
-0.04408816620707512,
-0.0668160617351532,
0.32483768463134766,
-0.21049495041370392,
-0.48263317346572876,
-0.04291892051696777,
0.050882186740636826,
0.23710739612579346,
-0.656266450881958,
0.850297212600708,
-0.5196149945259094,
0.1593216508626938,
0.11322034150362015,
-0.5706554055213928,
-0.07462700456380844,
-0.2667255997657776,
-0.6970441341400146,
0.6882197856903076,
0.022739222273230553,
-0.6706460118293762,
0.254224568605423,
-0.6860621571540833,
-0.4010447561740875,
-0.28640222549438477,
0.21636104583740234,
-0.5543491840362549,
-0.06400928646326065,
0.18988338112831116,
0.2140098661184311,
-0.3340137302875519,
0.12266445904970169,
-0.3894439935684204,
-0.6425210237503052,
0.500052273273468,
-0.5871499180793762,
0.9268282055854797,
0.6989088654518127,
-0.2867465615272522,
-0.09930165857076645,
-0.9744376540184021,
-0.12394208461046219,
0.11662036180496216,
-0.7386234402656555,
0.22085055708885193,
-0.2358006089925766,
0.42247849702835083,
0.32340574264526367,
-0.06854336708784103,
-0.6702865362167358,
-0.09526509791612625,
-0.3086099922657013,
0.8249118328094482,
0.40900227427482605,
0.04629646614193916,
0.5687322616577148,
-0.2828889787197113,
0.3547796905040741,
-0.3682377338409424,
0.38697296380996704,
-0.17931605875492096,
-0.1924276202917099,
-0.5058098435401917,
-0.19195030629634857,
0.7696822881698608,
0.4693235158920288,
-0.28379106521606445,
0.8971701860427856,
-0.2739381194114685,
-0.6376370191574097,
-1.066388487815857,
-0.03242352232336998,
0.12971186637878418,
0.21871621906757355,
0.46269741654396057,
-0.5197075009346008,
-0.6038274168968201,
-0.7264088988304138,
0.02670813538134098,
0.18767088651657104,
-0.447216659784317,
0.40437909960746765,
0.24406278133392334,
-0.28599363565444946,
0.7237178683280945,
-0.24924321472644806,
-0.13784334063529968,
-0.15203112363815308,
0.14347217977046967,
0.582381010055542,
0.9813146591186523,
0.5930582284927368,
-0.7152900695800781,
-0.15466982126235962,
-0.6502578854560852,
-0.5459146499633789,
-0.3548165559768677,
-0.14495810866355896,
-0.25653237104415894,
-0.35215750336647034,
0.48605599999427795,
-0.6949610710144043,
0.19875846803188324,
0.7136196494102478,
-0.08993525803089142,
0.4618167579174042,
0.14168903231620789,
0.33750641345977783,
-0.9083030819892883,
0.001151895965449512,
-0.15874217450618744,
-0.1369713693857193,
-0.4475862383842468,
-0.22744199633598328,
-0.03878464549779892,
-0.2709271013736725,
-0.44317004084587097,
-0.10827214270830154,
-0.1925681233406067,
-0.09619130194187164,
-0.25553762912750244,
-0.1546766459941864,
0.04013708233833313,
0.7199469208717346,
-0.02683006227016449,
0.5529394745826721,
0.4855380654335022,
-0.6069233417510986,
0.42779722809791565,
0.15089502930641174,
-0.417758047580719,
0.5005996227264404,
-0.6792048215866089,
0.2188350260257721,
-0.032993704080581665,
0.4922782778739929,
-0.5939282178878784,
-0.1532512754201889,
0.09247668832540512,
-0.8525040149688721,
0.5369808673858643,
-0.2320755422115326,
-0.7069482207298279,
-0.5058804154396057,
0.14566320180892944,
0.6149435639381409,
0.8962549567222595,
-0.6289443969726562,
0.6329529285430908,
0.40045860409736633,
0.39557936787605286,
-0.015553909353911877,
-1.176890254020691,
-0.3273593485355377,
-0.20891468226909637,
-0.7016528844833374,
0.6306684017181396,
-0.33634158968925476,
0.08538027852773666,
0.03412478417158127,
-0.3103991746902466,
0.07033877819776535,
-0.08542817831039429,
0.6147741079330444,
0.12138194590806961,
-0.0634937509894371,
0.14137078821659088,
-0.12119769304990768,
-0.13983482122421265,
0.2373972088098526,
-0.6240968704223633,
0.7246695756912231,
0.010725944302976131,
-0.5500377416610718,
-0.5684934258460999,
0.1602555215358734,
0.4344210624694824,
-0.49729445576667786,
0.31738734245300293,
0.8404389023780823,
-0.1891605406999588,
-0.2564411163330078,
-0.3770177960395813,
-0.2796655297279358,
-0.5378461480140686,
0.08561982214450836,
-0.1721121370792389,
-0.6436920762062073,
0.5774607062339783,
-0.030678652226924896,
0.035523660480976105,
0.49343109130859375,
0.29506373405456543,
-0.32941681146621704,
0.8944045305252075,
0.20601537823677063,
0.05541492998600006,
0.6227639317512512,
-0.8465846180915833,
-0.1245662197470665,
-0.6518442630767822,
-0.2802124321460724,
-0.41873040795326233,
-0.5331963300704956,
-0.6237267255783081,
-0.3902437686920166,
0.38759544491767883,
-0.1947738230228424,
-0.48641014099121094,
0.6422221660614014,
-0.717573881149292,
0.1751500368118286,
0.6985670924186707,
0.21046404540538788,
-0.08514050394296646,
0.09844598919153214,
0.0239131860435009,
0.10653392225503922,
-0.7699617743492126,
0.17516613006591797,
1.0824946165084839,
0.4991440773010254,
0.9349694848060608,
0.007023008074611425,
0.791615903377533,
0.3571557104587555,
-0.27721720933914185,
-0.651585578918457,
0.15928000211715698,
-0.15577027201652527,
-0.630557656288147,
0.04896311089396477,
-0.37681734561920166,
-0.4761093556880951,
-0.16052787005901337,
-0.4237106740474701,
-0.3203739821910858,
0.5384818911552429,
-0.05987733602523804,
-0.5956820249557495,
0.40023288130760193,
-0.47581830620765686,
0.6529794335365295,
-0.332658976316452,
-0.23419895768165588,
0.006373390089720488,
-0.585087776184082,
0.22025005519390106,
-0.042732879519462585,
0.4870125651359558,
-0.14307329058647156,
0.47524771094322205,
0.8871338367462158,
-0.23981714248657227,
0.4352036118507385,
-0.32674509286880493,
0.07538080960512161,
0.6058704853057861,
0.06828244030475616,
0.19243232905864716,
-0.0737641230225563,
0.014201495796442032,
0.43997281789779663,
0.021829385310411453,
-0.27402108907699585,
-0.4908694922924042,
0.5100113153457642,
-0.7376940250396729,
-0.17037078738212585,
0.2549574673175812,
-0.5526251196861267,
-0.16712571680545807,
-0.18624626100063324,
0.667019248008728,
0.7157074213027954,
0.0812167301774025,
0.4993310868740082,
0.7731383442878723,
-0.30061832070350647,
0.4611609876155853,
0.28091534972190857,
0.0011800932697951794,
-0.5700070858001709,
0.8427138328552246,
0.06575151532888412,
0.3341516852378845,
0.22153040766716003,
0.05412529781460762,
-0.19798272848129272,
-0.38643768429756165,
-0.28996312618255615,
0.009874577634036541,
-0.7140282392501831,
-0.26270848512649536,
-0.6408547759056091,
-0.3671462833881378,
-0.43338337540626526,
0.019795011729002,
-0.8252205848693848,
-0.27612927556037903,
-0.21507960557937622,
-0.21074026823043823,
0.29659318923950195,
0.23860988020896912,
-0.3673361539840698,
0.4853489100933075,
-0.8495305180549622,
0.39773547649383545,
0.20220468938350677,
0.3215620815753937,
-0.22580669820308685,
-1.0130890607833862,
-0.3706606328487396,
0.03998914361000061,
-0.029625073075294495,
-1.0738619565963745,
0.33938494324684143,
0.22585716843605042,
0.5167727470397949,
0.5430290699005127,
-0.009516456164419651,
0.5083972215652466,
-0.2876853942871094,
0.708239734172821,
-0.008572396822273731,
-0.928198516368866,
0.6053635478019714,
-0.10577116906642914,
0.5180031657218933,
0.6774251461029053,
0.24590450525283813,
-0.4461445212364197,
-0.013953987509012222,
-0.5765503644943237,
-0.9362320303916931,
0.7376170754432678,
0.466896116733551,
-0.0006293344195000827,
0.37321120500564575,
0.19930538535118103,
-0.06982024759054184,
0.22974683344364166,
-0.7269740700721741,
-0.3613154888153076,
-0.7420005798339844,
-0.3801443874835968,
-0.12205085158348083,
-0.1412474513053894,
-0.1792750209569931,
-0.46688321232795715,
0.7620297074317932,
0.2339622676372528,
0.6482644081115723,
0.35182985663414,
-0.08365100622177124,
0.04060802236199379,
0.2399643361568451,
0.32737234234809875,
-0.039664074778556824,
-0.45496994256973267,
0.05336267128586769,
0.0479353666305542,
-0.40976473689079285,
0.22897937893867493,
0.1228017657995224,
-0.24393394589424133,
0.0596231184899807,
0.372970312833786,
1.101392149925232,
0.27548113465309143,
-0.47103992104530334,
0.45527875423431396,
-0.12050875276327133,
-0.30333712697029114,
-0.6298643350601196,
0.08655310422182083,
0.3849853277206421,
0.04065144434571266,
0.26112303137779236,
0.37883079051971436,
0.2794699966907501,
-0.3012616038322449,
0.3888607919216156,
-0.03353263437747955,
-0.5525274276733398,
-0.332746297121048,
1.1107213497161865,
0.13574209809303284,
-0.197891503572464,
0.6613132953643799,
-0.1864919662475586,
-0.2527526319026947,
0.7671789526939392,
0.5011557340621948,
1.1188290119171143,
-0.21199285984039307,
-0.1529591828584671,
0.7702595591545105,
0.37973228096961975,
0.04099901393055916,
0.2332293689250946,
-0.5280505418777466,
-0.47844937443733215,
-0.35104548931121826,
-1.0773009061813354,
0.11235258728265762,
0.041809845715761185,
-0.7932599782943726,
0.07490164786577225,
-0.37328916788101196,
-0.43468350172042847,
-0.12806539237499237,
-0.4529115855693817,
-0.8309114575386047,
0.10834430158138275,
0.29334795475006104,
1.3340985774993896,
-0.9105850458145142,
0.7560353875160217,
0.1683301478624344,
-0.6010054349899292,
-1.0385853052139282,
-0.058081552386283875,
0.14392246305942535,
-0.23178453743457794,
0.5039770603179932,
0.2047615498304367,
-0.01939615048468113,
0.03415834531188011,
-0.806567370891571,
-0.9567055702209473,
1.1495498418807983,
0.10003522038459778,
-0.7870324850082397,
0.09123064577579498,
-0.0741831585764885,
0.5559969544410706,
-0.5876855254173279,
0.1919575035572052,
0.7290369272232056,
0.5861454010009766,
0.26713693141937256,
-0.6246596574783325,
-0.22705751657485962,
-0.492194265127182,
-0.2899695038795471,
-0.19411785900592804,
-0.4768049120903015,
0.9329498410224915,
0.11060505360364914,
-0.2782891094684601,
-0.2760884165763855,
0.5769304037094116,
0.15905123949050903,
0.14971044659614563,
0.7160798907279968,
0.69150310754776,
0.4423524737358093,
-0.3731507658958435,
1.0599693059921265,
-0.7062697410583496,
0.3075401484966278,
0.8533016443252563,
0.3731037378311157,
0.5539847612380981,
0.323509156703949,
-0.3303278684616089,
0.3165808618068695,
0.881412923336029,
-0.34822654724121094,
0.8084373474121094,
0.21271511912345886,
-0.11251503974199295,
-0.4852205812931061,
-0.01845952309668064,
-0.4667268395423889,
0.7273487448692322,
0.2607493996620178,
-0.502303957939148,
0.3473925292491913,
0.32130667567253113,
-0.194123312830925,
-0.22664129734039307,
-0.2569241225719452,
0.6387203335762024,
-0.017592908814549446,
-0.40706029534339905,
0.6994667053222656,
-0.037831589579582214,
1.0517789125442505,
-0.6015253067016602,
0.08999084681272507,
-0.09848771244287491,
-0.05901740491390228,
-0.4109705984592438,
-0.5565005540847778,
0.30978304147720337,
-0.14444810152053833,
-0.22019903361797333,
-0.21802175045013428,
0.644585907459259,
-0.6606377363204956,
-0.3383234441280365,
0.5517546534538269,
0.14931799471378326,
0.13565969467163086,
-0.19251655042171478,
-0.7329010963439941,
0.2924947440624237,
0.050883568823337555,
-0.17480799555778503,
-0.11918070167303085,
0.08413567394018173,
0.5107721090316772,
0.41879531741142273,
0.9065864682197571,
0.3096435070037842,
0.2133130133152008,
0.30408114194869995,
0.5832151174545288,
-0.5524781942367554,
-0.5494604110717773,
-0.2709907293319702,
0.3692628741264343,
0.11385926604270935,
0.13946710526943207,
0.5339270234107971,
0.5800983309745789,
1.1633654832839966,
-0.3003994822502136,
0.6795583963394165,
-0.12557491660118103,
0.26868554949760437,
-0.5511952042579651,
0.8474222421646118,
-0.6865465044975281,
0.3613452911376953,
-0.06004811450839043,
-0.6743652820587158,
0.1773478090763092,
0.4009957015514374,
0.08503485471010208,
0.24067504703998566,
0.20865756273269653,
0.8023706674575806,
-0.23797515034675598,
0.16058571636676788,
0.1716499626636505,
0.18269653618335724,
0.16673412919044495,
0.6235001087188721,
0.7012254595756531,
-0.7359355092048645,
0.8347082138061523,
-0.7682321071624756,
0.01871221326291561,
-0.047662459313869476,
-0.23290197551250458,
-0.5888074040412903,
-0.46916013956069946,
-0.24790051579475403,
-0.4501279294490814,
0.04038620367646217,
0.9156798124313354,
0.8367926478385925,
-0.9808908104896545,
-0.2919834852218628,
0.10123064368963242,
-0.11781259626150131,
-0.531015157699585,
-0.25076574087142944,
0.2832643687725067,
0.10247354954481125,
-0.9407452940940857,
0.6644965410232544,
0.0833171159029007,
0.1729716956615448,
-0.28564468026161194,
-0.3526468575000763,
-0.16622596979141235,
0.15256324410438538,
0.2649126946926117,
0.12041420489549637,
-0.45245370268821716,
-0.09232371300458908,
0.02784275822341442,
-0.10641423612833023,
0.3162670135498047,
0.6879982948303223,
-0.38566145300865173,
0.5867558121681213,
0.8566190600395203,
0.28053662180900574,
0.8756818771362305,
0.070973239839077,
0.18316951394081116,
-0.7000734210014343,
0.12043523788452148,
0.19873720407485962,
0.42214712500572205,
0.30959850549697876,
-0.18478086590766907,
0.4541473984718323,
0.4056423306465149,
-0.6047958135604858,
-0.5383303165435791,
-0.001783695537596941,
-1.0775847434997559,
-0.328849196434021,
1.1888933181762695,
-0.03849976137280464,
-0.4498346447944641,
0.22359515726566315,
-0.10473962128162384,
0.647497296333313,
-0.47737640142440796,
0.327904611825943,
0.4121018648147583,
-0.000679871067404747,
-0.08457586169242859,
-0.8322542309761047,
0.5827239155769348,
0.1034809798002243,
-0.319653183221817,
-0.273150771856308,
0.5383535623550415,
0.36909061670303345,
0.4059932231903076,
0.42562803626060486,
-0.4220668077468872,
0.46568483114242554,
0.5059587359428406,
0.6401746273040771,
-0.4258780777454376,
-0.2890167236328125,
-0.4794090688228607,
0.5785750150680542,
-0.4028360843658447,
-0.513687014579773
] |
airesearch/wav2vec2-large-xlsr-53-th | airesearch | "2022-03-23T18:24:45Z" | 119,199 | 8 | transformers | [
"transformers",
"pytorch",
"wav2vec2",
"automatic-speech-recognition",
"audio",
"hf-asr-leaderboard",
"robust-speech-event",
"speech",
"xlsr-fine-tuning",
"th",
"dataset:common_voice",
"doi:10.57967/hf/0404",
"license:cc-by-sa-4.0",
"model-index",
"endpoints_compatible",
"has_space",
"region:us"
] | automatic-speech-recognition | "2022-03-02T23:29:05Z" | ---
language: th
datasets:
- common_voice
tags:
- audio
- automatic-speech-recognition
- hf-asr-leaderboard
- robust-speech-event
- speech
- xlsr-fine-tuning
license: cc-by-sa-4.0
model-index:
- name: XLS-R-53 - Thai
results:
- task:
name: Automatic Speech Recognition
type: automatic-speech-recognition
dataset:
name: Common Voice 7
type: mozilla-foundation/common_voice_7_0
args: th
metrics:
- name: Test WER
type: wer
value: 0.9524
- name: Test SER
type: ser
value: 1.2346
- name: Test CER
type: cer
value: 0.1623
- task:
name: Automatic Speech Recognition
type: automatic-speech-recognition
dataset:
name: Robust Speech Event - Dev Data
type: speech-recognition-community-v2/dev_data
args: sv
metrics:
- name: Test WER
type: wer
value: null
- name: Test SER
type: ser
value: null
- name: Test CER
type: cer
value: null
---
# `wav2vec2-large-xlsr-53-th`
Finetuning `wav2vec2-large-xlsr-53` on Thai [Common Voice 7.0](https://commonvoice.mozilla.org/en/datasets)
[Read more on our blog](https://medium.com/airesearch-in-th/airesearch-in-th-3c1019a99cd)
We finetune [wav2vec2-large-xlsr-53](https://huggingface.co/facebook/wav2vec2-large-xlsr-53) based on [Fine-tuning Wav2Vec2 for English ASR](https://colab.research.google.com/github/patrickvonplaten/notebooks/blob/master/Fine_tuning_Wav2Vec2_for_English_ASR.ipynb) using Thai examples of [Common Voice Corpus 7.0](https://commonvoice.mozilla.org/en/datasets). The notebooks and scripts can be found in [vistec-ai/wav2vec2-large-xlsr-53-th](https://github.com/vistec-ai/wav2vec2-large-xlsr-53-th). The pretrained model and processor can be found at [airesearch/wav2vec2-large-xlsr-53-th](https://huggingface.co/airesearch/wav2vec2-large-xlsr-53-th).
## `robust-speech-event`
Add `syllable_tokenize`, `word_tokenize` ([PyThaiNLP](https://github.com/PyThaiNLP/pythainlp)) and [deepcut](https://github.com/rkcosmos/deepcut) tokenizers to `eval.py` from [robust-speech-event](https://github.com/huggingface/transformers/tree/master/examples/research_projects/robust-speech-event#evaluation)
```
> python eval.py --model_id ./ --dataset mozilla-foundation/common_voice_7_0 --config th --split test --log_outputs --thai_tokenizer newmm/syllable/deepcut/cer
```
### Eval results on Common Voice 7 "test":
| | WER PyThaiNLP 2.3.1 | WER deepcut | SER | CER |
|---------------------------------|---------------------|-------------|---------|---------|
| Only Tokenization | 0.9524% | 2.5316% | 1.2346% | 0.1623% |
| Cleaning rules and Tokenization | TBD | TBD | TBD | TBD |
## Usage
```
#load pretrained processor and model
processor = Wav2Vec2Processor.from_pretrained("airesearch/wav2vec2-large-xlsr-53-th")
model = Wav2Vec2ForCTC.from_pretrained("airesearch/wav2vec2-large-xlsr-53-th")
#function to resample to 16_000
def speech_file_to_array_fn(batch,
text_col="sentence",
fname_col="path",
resampling_to=16000):
speech_array, sampling_rate = torchaudio.load(batch[fname_col])
resampler=torchaudio.transforms.Resample(sampling_rate, resampling_to)
batch["speech"] = resampler(speech_array)[0].numpy()
batch["sampling_rate"] = resampling_to
batch["target_text"] = batch[text_col]
return batch
#get 2 examples as sample input
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)
#infer
with torch.no_grad():
logits = model(inputs.input_values,).logits
predicted_ids = torch.argmax(logits, dim=-1)
print("Prediction:", processor.batch_decode(predicted_ids))
print("Reference:", test_dataset["sentence"][:2])
>> Prediction: ['และ เขา ก็ สัมผัส ดีบุก', 'คุณ สามารถ รับทราบ เมื่อ ข้อความ นี้ ถูก อ่าน แล้ว']
>> Reference: ['และเขาก็สัมผัสดีบุก', 'คุณสามารถรับทราบเมื่อข้อความนี้ถูกอ่านแล้ว']
```
## Datasets
Common Voice Corpus 7.0](https://commonvoice.mozilla.org/en/datasets) contains 133 validated hours of Thai (255 total hours) at 5GB. We pre-tokenize with `pythainlp.tokenize.word_tokenize`. We preprocess the dataset using cleaning rules described in `notebooks/cv-preprocess.ipynb` by [@tann9949](https://github.com/tann9949). We then deduplicate and split as described in [ekapolc/Thai_commonvoice_split](https://github.com/ekapolc/Thai_commonvoice_split) in order to 1) avoid data leakage due to random splits after cleaning in [Common Voice Corpus 7.0](https://commonvoice.mozilla.org/en/datasets) and 2) preserve the majority of the data for the training set. The dataset loading script is `scripts/th_common_voice_70.py`. You can use this scripts together with `train_cleand.tsv`, `validation_cleaned.tsv` and `test_cleaned.tsv` to have the same splits as we do. The resulting dataset is as follows:
```
DatasetDict({
train: Dataset({
features: ['path', 'sentence'],
num_rows: 86586
})
test: Dataset({
features: ['path', 'sentence'],
num_rows: 2502
})
validation: Dataset({
features: ['path', 'sentence'],
num_rows: 3027
})
})
```
## Training
We fintuned using the following configuration on a single V100 GPU and chose the checkpoint with the lowest validation loss. The finetuning script is `scripts/wav2vec2_finetune.py`
```
# create model
model = Wav2Vec2ForCTC.from_pretrained(
"facebook/wav2vec2-large-xlsr-53",
attention_dropout=0.1,
hidden_dropout=0.1,
feat_proj_dropout=0.0,
mask_time_prob=0.05,
layerdrop=0.1,
gradient_checkpointing=True,
ctc_loss_reduction="mean",
pad_token_id=processor.tokenizer.pad_token_id,
vocab_size=len(processor.tokenizer)
)
model.freeze_feature_extractor()
training_args = TrainingArguments(
output_dir="../data/wav2vec2-large-xlsr-53-thai",
group_by_length=True,
per_device_train_batch_size=32,
gradient_accumulation_steps=1,
per_device_eval_batch_size=16,
metric_for_best_model='wer',
evaluation_strategy="steps",
eval_steps=1000,
logging_strategy="steps",
logging_steps=1000,
save_strategy="steps",
save_steps=1000,
num_train_epochs=100,
fp16=True,
learning_rate=1e-4,
warmup_steps=1000,
save_total_limit=3,
report_to="tensorboard"
)
```
## Evaluation
We benchmark on the test set using WER with words tokenized by [PyThaiNLP](https://github.com/PyThaiNLP/pythainlp) 2.3.1 and [deepcut](https://github.com/rkcosmos/deepcut), and CER. We also measure performance when spell correction using [TNC](http://www.arts.chula.ac.th/ling/tnc/) ngrams is applied. Evaluation codes can be found in `notebooks/wav2vec2_finetuning_tutorial.ipynb`. Benchmark is performed on `test-unique` split.
| | WER PyThaiNLP 2.3.1 | WER deepcut | CER |
|--------------------------------|---------------------|----------------|----------------|
| [Kaldi from scratch](https://github.com/vistec-AI/commonvoice-th) | 23.04 | | 7.57 |
| Ours without spell correction | 13.634024 | **8.152052** | **2.813019** |
| Ours with spell correction | 17.996397 | 14.167975 | 5.225761 |
| Google Web Speech API※ | 13.711234 | 10.860058 | 7.357340 |
| Microsoft Bing Speech API※ | **12.578819** | 9.620991 | 5.016620 |
| Amazon Transcribe※ | 21.86334 | 14.487553 | 7.077562 |
| NECTEC AI for Thai Partii API※ | 20.105887 | 15.515631 | 9.551027 |
※ APIs are not finetuned with Common Voice 7.0 data
## LICENSE
[cc-by-sa 4.0](https://github.com/vistec-AI/wav2vec2-large-xlsr-53-th/blob/main/LICENSE)
## Ackowledgements
* model training and validation notebooks/scripts [@cstorm125](https://github.com/cstorm125/)
* dataset cleaning scripts [@tann9949](https://github.com/tann9949)
* dataset splits [@ekapolc](https://github.com/ekapolc/) and [@14mss](https://github.com/14mss)
* running the training [@mrpeerat](https://github.com/mrpeerat)
* spell correction [@wannaphong](https://github.com/wannaphong)
| [
-0.4173816740512848,
-0.6201090216636658,
0.057803135365247726,
0.20197638869285583,
-0.3064144551753998,
0.0034722285345196724,
-0.6023679971694946,
-0.4552000164985657,
0.10518323630094528,
0.20821990072727203,
-0.6722965836524963,
-0.7284209728240967,
-0.520392656326294,
-0.18606574833393097,
0.022150414064526558,
0.7690377831459045,
0.10795125365257263,
0.19056156277656555,
0.18854178488254547,
-0.20595423877239227,
-0.6142067313194275,
-0.2398654967546463,
-0.8576242923736572,
-0.22508247196674347,
0.1492406725883484,
0.6603698134422302,
0.24676233530044556,
0.44776269793510437,
0.3528194725513458,
0.2697729766368866,
-0.26806119084358215,
0.07167192548513412,
-0.27605122327804565,
0.0741618424654007,
0.23305726051330566,
-0.4729733467102051,
-0.3857796788215637,
0.05028678476810455,
0.6618280410766602,
0.33675289154052734,
-0.28910955786705017,
0.33673566579818726,
0.08852529525756836,
0.5320466160774231,
-0.417099267244339,
0.20039014518260956,
-0.6898604035377502,
-0.08123499155044556,
-0.33398380875587463,
-0.01227295771241188,
-0.14123624563217163,
-0.22895078361034393,
0.20322243869304657,
-0.5261917114257812,
0.23839133977890015,
-0.1940077245235443,
1.0717090368270874,
0.28272292017936707,
-0.15907706320285797,
-0.3145792484283447,
-0.5293655395507812,
0.8618181943893433,
-0.8846534490585327,
0.5727993249893188,
0.4595167934894562,
0.2662525475025177,
-0.03337554261088371,
-0.9707062840461731,
-0.7342671155929565,
-0.09738364070653915,
0.3073326647281647,
0.3627653419971466,
-0.3032527267932892,
0.09702814370393753,
0.3047983944416046,
0.2748531401157379,
-0.6570351719856262,
0.35589033365249634,
-0.7319464087486267,
-0.5505459904670715,
0.6169442534446716,
-0.13468647003173828,
0.295974999666214,
-0.20079848170280457,
-0.15702475607395172,
-0.5239254236221313,
-0.3781608045101166,
0.45005014538764954,
0.3453036844730377,
0.37378957867622375,
-0.4997742176055908,
0.48002076148986816,
-0.18645258247852325,
0.40346917510032654,
0.05838925018906593,
-0.32696130871772766,
0.7756170630455017,
-0.40184199810028076,
-0.24367785453796387,
0.44682157039642334,
0.9654320478439331,
0.3730188310146332,
0.16032136976718903,
0.3693945109844208,
0.07091984897851944,
0.1342761069536209,
-0.31112661957740784,
-0.8969041705131531,
-0.3089653551578522,
0.5359892249107361,
-0.20417077839374542,
-0.14170275628566742,
-0.032329048961400986,
-0.7462553381919861,
0.05243096128106117,
-0.341813862323761,
0.5309484601020813,
-0.5901498198509216,
-0.33074885606765747,
0.11147419363260269,
-0.22086317837238312,
0.3947139382362366,
0.04950772225856781,
-0.7114303708076477,
0.278123676776886,
0.6411457657814026,
0.920762836933136,
-0.05060064420104027,
-0.3402683734893799,
-0.6102932095527649,
-0.3955739438533783,
-0.13366436958312988,
0.4584994614124298,
-0.14237451553344727,
-0.3680969774723053,
-0.14421160519123077,
-0.024988191202282906,
-0.16018100082874298,
-0.6300958395004272,
0.8656607270240784,
-0.12994146347045898,
0.4216053783893585,
-0.22802330553531647,
-0.3455106317996979,
-0.152925506234169,
-0.1249011904001236,
-0.45815467834472656,
1.223941683769226,
-0.18597137928009033,
-0.6740108728408813,
0.43046873807907104,
-0.5525124073028564,
-0.5571422576904297,
-0.2799379229545593,
-0.012325742281973362,
-0.6898173093795776,
-0.29995691776275635,
0.39926961064338684,
0.4358919560909271,
-0.3671404719352722,
0.09874439984560013,
-0.10243965685367584,
-0.4420509338378906,
0.31228089332580566,
-0.5325973033905029,
1.0307245254516602,
0.35789135098457336,
-0.7647426724433899,
0.0105287441983819,
-1.0687458515167236,
0.3152371644973755,
-0.07840120047330856,
-0.5229238271713257,
0.12959273159503937,
-0.2583826184272766,
0.32118871808052063,
0.2946223020553589,
0.12047994136810303,
-0.5483852624893188,
0.014032575301826,
-0.7260715961456299,
0.6086007356643677,
0.5244359970092773,
-0.038869891315698624,
0.1398095190525055,
-0.20539583265781403,
0.3681551218032837,
0.11140502244234085,
-0.01700088381767273,
0.08635583519935608,
-0.5559841394424438,
-0.8654735684394836,
-0.49558204412460327,
0.4197333753108978,
0.645212709903717,
-0.3389091193675995,
0.7305847406387329,
-0.343779057264328,
-0.8340588212013245,
-1.0192286968231201,
-0.07585172355175018,
0.508285403251648,
0.5266438722610474,
0.5799388885498047,
-0.2659566402435303,
-0.8117498755455017,
-0.766712486743927,
-0.15013957023620605,
-0.014095972292125225,
-0.04375145211815834,
0.44626641273498535,
0.44226014614105225,
-0.32111725211143494,
0.7398115992546082,
-0.5019941926002502,
-0.5259374976158142,
-0.2989161014556885,
0.09886055439710617,
0.3844950199127197,
0.6707962155342102,
0.3277701437473297,
-0.6407668590545654,
-0.39847806096076965,
-0.20877708494663239,
-0.23567067086696625,
-0.1334080696105957,
0.0024195683654397726,
0.04498901218175888,
0.3718404769897461,
0.40417593717575073,
-0.5010330677032471,
0.2996010482311249,
0.36614659428596497,
-0.15065458416938782,
0.6001586318016052,
-0.13558068871498108,
0.1697956770658493,
-1.288057804107666,
0.18519578874111176,
0.01957705244421959,
0.05039585009217262,
-0.48296740651130676,
-0.421769380569458,
-0.16753636300563812,
-0.0882929265499115,
-0.5463874340057373,
0.3526667356491089,
-0.47164997458457947,
-0.0533977746963501,
0.028976241126656532,
0.3286457061767578,
-0.10259425640106201,
0.6098452210426331,
-0.046812403947114944,
0.9523212313652039,
0.7538506984710693,
-0.6049149036407471,
0.38874563574790955,
0.22731426358222961,
-0.526252806186676,
0.34107357263565063,
-0.7796679139137268,
0.39525192975997925,
0.276826947927475,
0.3104175329208374,
-1.1578510999679565,
-0.20916731655597687,
0.2151872217655182,
-0.9139298796653748,
0.40488070249557495,
-0.25267258286476135,
-0.41885891556739807,
-0.5103673338890076,
-0.46401792764663696,
0.34940779209136963,
0.7581207752227783,
-0.5323708057403564,
0.25795888900756836,
0.4321001470088959,
0.016144463792443275,
-0.7420324087142944,
-0.952018678188324,
-0.14688622951507568,
-0.25697118043899536,
-0.7395501136779785,
0.28209736943244934,
0.04559396207332611,
-0.024242613464593887,
-0.20368295907974243,
-0.3684609830379486,
-0.10802639275789261,
-0.05032862350344658,
0.3839440941810608,
0.20398272573947906,
-0.23456135392189026,
-0.10922849178314209,
-0.02226468361914158,
0.013172290287911892,
-0.03971157595515251,
-0.4611203074455261,
0.7269358038902283,
-0.0622667595744133,
-0.08727027475833893,
-0.9950594305992126,
-0.10120976716279984,
0.7017990350723267,
-0.4575674533843994,
0.4208085834980011,
0.9771098494529724,
-0.3656495213508606,
-0.01704186387360096,
-0.6795485615730286,
-0.00521599967032671,
-0.4855538010597229,
0.7714066505432129,
-0.33471620082855225,
-0.7030138373374939,
0.6067442297935486,
0.049357712268829346,
-0.14007115364074707,
0.7608711123466492,
0.5072978138923645,
0.04643666371703148,
0.8372125029563904,
0.06442269682884216,
-0.2650075852870941,
0.3946729302406311,
-0.8193380832672119,
0.010795374400913715,
-1.0532671213150024,
-0.4952879250049591,
-0.6945104002952576,
-0.26312556862831116,
-0.7585378289222717,
-0.4748634397983551,
0.23255614936351776,
0.10175547748804092,
-0.1940046101808548,
0.4058104455471039,
-0.8223804831504822,
0.13773642480373383,
0.7063177824020386,
0.013337241485714912,
-0.2426615208387375,
0.18474449217319489,
-0.4151710867881775,
-0.206333726644516,
-0.50799161195755,
-0.23555047810077667,
1.2594146728515625,
0.39544788002967834,
0.45873063802719116,
-0.11602292209863663,
0.6164990663528442,
-0.06922706961631775,
-0.46063944697380066,
-0.7618300318717957,
0.4695962071418762,
-0.19109055399894714,
-0.41440969705581665,
-0.395936518907547,
-0.32933223247528076,
-0.9772135615348816,
0.16435466706752777,
-0.21138548851013184,
-0.8747501969337463,
0.23278950154781342,
-0.009890860877931118,
-0.3311546742916107,
0.20236562192440033,
-0.7422322034835815,
0.8151668906211853,
-0.11016295850276947,
-0.2244417518377304,
-0.39105576276779175,
-0.7355712652206421,
0.18764512240886688,
0.11068461835384369,
0.10534143447875977,
-0.11200249195098877,
0.30484631657600403,
1.2589086294174194,
-0.585951566696167,
0.5164685249328613,
-0.390326589345932,
0.11010964214801788,
0.5751663446426392,
-0.37147167325019836,
0.39750921726226807,
-0.05106806755065918,
-0.15133270621299744,
0.3039368689060211,
0.16732271015644073,
-0.15086856484413147,
-0.33082395792007446,
0.8192413449287415,
-1.0923269987106323,
-0.16441480815410614,
-0.4150449335575104,
-0.14012442529201508,
-0.12981931865215302,
0.16451576352119446,
0.7301907539367676,
0.7901577949523926,
-0.04152828827500343,
0.41675060987472534,
0.61103355884552,
-0.2993253469467163,
0.26699334383010864,
0.299281507730484,
0.1521257907152176,
-0.9428767561912537,
0.8963148593902588,
0.3629591763019562,
0.24191580712795258,
0.20363330841064453,
0.2155354768037796,
-0.5052502155303955,
-0.6092382669448853,
-0.18418951332569122,
0.1806211769580841,
-0.5880658626556396,
-0.13253791630268097,
-0.574428379535675,
-0.25992584228515625,
-0.8436152338981628,
0.2251313477754593,
-0.5674381852149963,
-0.504534125328064,
-0.4413202404975891,
-0.032724082469940186,
0.5043359994888306,
0.3139551281929016,
-0.2502702474594116,
0.3255203068256378,
-0.3843287229537964,
0.3505405783653259,
0.1719646453857422,
0.18413983285427094,
-0.06321361660957336,
-0.8460873365402222,
-0.27389445900917053,
0.2894926965236664,
-0.23607711493968964,
-0.6235224008560181,
0.28985583782196045,
0.2405797243118286,
0.332922101020813,
0.2938701808452606,
-0.046124979853630066,
0.9017896056175232,
-0.32248455286026,
1.0824346542358398,
0.24807067215442657,
-1.0200687646865845,
0.8428371548652649,
-0.11735951155424118,
0.36691126227378845,
0.7694534659385681,
0.06372006982564926,
-0.6910719275474548,
-0.22519589960575104,
-0.6839388012886047,
-1.1688181161880493,
1.0181260108947754,
0.3298623859882355,
-0.20310018956661224,
0.22067920863628387,
0.2671908140182495,
-0.20469149947166443,
0.01306154578924179,
-0.4058743119239807,
-0.6098557710647583,
-0.29336610436439514,
-0.3384738266468048,
-0.24459436535835266,
-0.3041526675224304,
0.10287071019411087,
-0.542129635810852,
1.0000334978103638,
0.26249176263809204,
0.27529269456863403,
0.5883075594902039,
-0.03668512403964996,
0.13121846318244934,
0.3172910213470459,
0.8240631818771362,
0.3070830702781677,
-0.2762242257595062,
0.01685277186334133,
0.38484135270118713,
-1.0193521976470947,
0.1376161426305771,
0.29580095410346985,
0.05107753351330757,
0.09529431909322739,
0.3821603059768677,
1.1361491680145264,
0.16541193425655365,
-0.4890861213207245,
0.4650171995162964,
-0.1830524355173111,
-0.475411057472229,
-0.5352588295936584,
0.1790759116411209,
0.14376288652420044,
0.1587289273738861,
0.419987291097641,
0.1294413059949875,
0.03743331879377365,
-0.4198097288608551,
0.21501988172531128,
0.23255854845046997,
-0.4142296612262726,
-0.30331113934516907,
0.9187622666358948,
0.16501739621162415,
-0.41582176089286804,
0.6688358187675476,
-0.054469816386699677,
-0.6844757199287415,
0.6922597885131836,
0.3222026526927948,
1.0482920408248901,
-0.2294638752937317,
-0.20574532449245453,
0.6879158616065979,
0.19463646411895752,
-0.18162958323955536,
0.4024680256843567,
-0.16725201904773712,
-0.42860105633735657,
-0.2963169813156128,
-0.5491231679916382,
-0.11362074315547943,
0.4582798182964325,
-0.6925764083862305,
0.5201992392539978,
-0.37166404724121094,
-0.2316834032535553,
0.1576087921857834,
0.5528442859649658,
-0.7731949090957642,
0.39242497086524963,
0.12209692597389221,
0.902452826499939,
-0.601856529712677,
0.976387083530426,
0.41324636340141296,
-0.4824357032775879,
-1.3885656595230103,
0.08140408992767334,
-0.00603262847289443,
-0.6478255987167358,
0.5781043767929077,
0.32980602979660034,
-0.28689512610435486,
-0.030663251876831055,
-0.46751296520233154,
-0.8929683566093445,
1.3298102617263794,
0.3631649315357208,
-0.7514464259147644,
0.24306294322013855,
0.23411376774311066,
0.4752125144004822,
-0.02795039489865303,
0.23400141298770905,
0.7421342730522156,
0.49426963925361633,
0.15039397776126862,
-1.3170355558395386,
0.017539162188768387,
-0.28478309512138367,
-0.2634672522544861,
-0.15285363793373108,
-0.7481526732444763,
0.7372369170188904,
-0.21675239503383636,
-0.20339688658714294,
0.015892839059233665,
0.6873810291290283,
0.4361637234687805,
0.5253133773803711,
0.4925670027732849,
0.7563453316688538,
1.0950677394866943,
-0.13108529150485992,
0.5784637928009033,
-0.2047273963689804,
0.36642464995384216,
1.1392782926559448,
-0.05231805890798569,
0.9460479021072388,
0.291581392288208,
-0.32152238488197327,
0.32222285866737366,
0.5886480808258057,
-0.15761061012744904,
0.6410447359085083,
0.22309453785419464,
-0.17541825771331787,
0.059138018637895584,
0.13997477293014526,
-0.6791554093360901,
0.8102301359176636,
0.12972696125507355,
-0.054979778826236725,
0.23736488819122314,
0.1387098729610443,
0.2542437016963959,
-0.1766301393508911,
-0.1506951004266739,
0.6718086004257202,
0.04393219202756882,
-0.7264395356178284,
0.9609133005142212,
0.03874659538269043,
0.9998387694358826,
-0.5209985971450806,
0.145638570189476,
0.05132429674267769,
0.34945499897003174,
-0.3076867461204529,
-0.6360901594161987,
0.0034623336978256702,
-0.0040326970629394054,
-0.07399149239063263,
0.08008027076721191,
0.49076223373413086,
-0.600453794002533,
-0.3844044506549835,
0.280620276927948,
-0.006227173842489719,
0.3572412133216858,
0.028162609785795212,
-0.6744363903999329,
0.27005138993263245,
0.298273503780365,
-0.2780834138393402,
0.030957886949181557,
0.42309820652008057,
0.24472394585609436,
0.47578248381614685,
0.7472999691963196,
0.41688990592956543,
0.17502360045909882,
0.20808669924736023,
0.5935508012771606,
-0.5381619334220886,
-0.5755380392074585,
-0.760414719581604,
0.4928368031978607,
-0.14293937385082245,
-0.5885792374610901,
0.6798598766326904,
1.022877812385559,
0.9035940766334534,
0.18710395693778992,
0.8076496720314026,
0.08030198514461517,
0.6069295406341553,
-0.6456583738327026,
0.9207922220230103,
-0.5043545961380005,
0.2825789153575897,
-0.36538201570510864,
-0.6457828283309937,
-0.15175719559192657,
0.6157704591751099,
-0.20034442842006683,
0.013595395721495152,
0.5163570642471313,
0.901105523109436,
0.02368200570344925,
-0.19996710121631622,
0.03528532758355141,
0.3404501676559448,
0.3903769552707672,
0.6068310141563416,
0.40907353162765503,
-0.8362473249435425,
0.8412549495697021,
-0.3641519844532013,
-0.008904778398573399,
-0.16654181480407715,
-0.36963701248168945,
-0.6411251425743103,
-0.8667738437652588,
-0.5617180466651917,
-0.538701593875885,
-0.008576999418437481,
1.1208693981170654,
0.6870388388633728,
-0.7570312023162842,
-0.3092532157897949,
-0.048939988017082214,
0.01318412832915783,
-0.291202574968338,
-0.2582937777042389,
0.8071630001068115,
-0.08844073861837387,
-0.7501776814460754,
0.45980507135391235,
-0.08318804204463959,
0.06294546276330948,
0.1209479570388794,
-0.1716984361410141,
-0.19312864542007446,
-0.11656088382005692,
0.2279122769832611,
0.3171127438545227,
-0.7857860922813416,
-0.20029181241989136,
-0.036954283714294434,
-0.08166062086820602,
0.2667759954929352,
0.3851734697818756,
-0.6908484101295471,
0.48501819372177124,
0.466318279504776,
0.22836709022521973,
0.7698203325271606,
-0.3190949857234955,
0.18032780289649963,
-0.602577269077301,
0.3608725965023041,
0.12760581076145172,
0.29527127742767334,
0.3505018353462219,
-0.23053617775440216,
0.3286561667919159,
0.281490296125412,
-0.5548629760742188,
-1.0295500755310059,
-0.3163348138332367,
-1.339790940284729,
-0.024837113916873932,
1.3481230735778809,
0.12273115664720535,
-0.24099981784820557,
0.13993951678276062,
-0.5231134295463562,
0.7788929343223572,
-0.49599096179008484,
0.4365805387496948,
0.5106244683265686,
0.06356590986251831,
0.10458173602819443,
-0.5690663456916809,
0.677683413028717,
0.34603649377822876,
-0.502925455570221,
0.012816514819860458,
0.3349316120147705,
0.70061856508255,
0.09068474918603897,
0.7916155457496643,
-0.07824909687042236,
0.3557635545730591,
-0.061265502125024796,
0.2572535574436188,
-0.13407845795154572,
-0.04899853467941284,
-0.6454275250434875,
-0.010073596611618996,
-0.026134122163057327,
-0.7671306729316711
] |
princeton-nlp/sup-simcse-roberta-large | princeton-nlp | "2022-11-11T20:04:02Z" | 119,110 | 10 | transformers | [
"transformers",
"pytorch",
"jax",
"roberta",
"feature-extraction",
"arxiv:2104.08821",
"arxiv:1910.09700",
"endpoints_compatible",
"has_space",
"region:us"
] | feature-extraction | "2022-03-02T23:29:05Z" | ---
tags:
- feature-extraction
---
# Model Card for sup-simcse-roberta-large
# Model Details
## Model Description
- **Developed by:** Princeton-nlp
- **Shared by [Optional]:** More information needed
- **Model type:** Feature Extraction
- **Language(s) (NLP):** More information needed
- **License:** More information needed
- **Related Models:**
- **Parent Model:** RoBERTa-large
- **Resources for more information:**
- [GitHub Repo](https://github.com/princeton-nlp/SimCSE)
- [Associated Paper](https://arxiv.org/abs/2104.08821)
- [Blog Post]({0})
# Uses
## Direct Use
This model can be used for the task of Feature Extraction
## Downstream Use [Optional]
More information needed
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
# Training Details
## Training Data
The model craters note in the [Github Repository](https://github.com/princeton-nlp/SimCSE/blob/main/README.md)
> We train unsupervised SimCSE on 106 randomly sampled sentences from English Wikipedia, and train supervised SimCSE on the combination of MNLI and SNLI datasets (314k).
## Training Procedure
### Preprocessing
More information needed
### Speeds, Sizes, Times
More information needed
# Evaluation
## Testing Data, Factors & Metrics
### Testing Data
The model craters note in the [associated paper](https://arxiv.org/pdf/2104.08821.pdf)
> Our evaluation code for sentence embeddings is based on a modified version of [SentEval](https://github.com/facebookresearch/SentEval). It evaluates sentence embeddings on semantic textual similarity (STS) tasks and downstream transfer tasks. For STS tasks, our evaluation takes the "all" setting, and report Spearman's correlation. See [associated paper](https://arxiv.org/pdf/2104.08821.pdf) (Appendix B) for evaluation details.
### Factors
### Metrics
More information needed
## Results
More information needed
# Model Examination
More information needed
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** More information needed
- **Hours used:** More information needed
- **Cloud Provider:** More information needed
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Technical Specifications [optional]
## Model Architecture and Objective
More information needed
## Compute Infrastructure
More information needed
### Hardware
More information needed
### Software
More information needed
# Citation
**BibTeX:**
```bibtex
@inproceedings{gao2021simcse,
title={{SimCSE}: Simple Contrastive Learning of Sentence Embeddings},
author={Gao, Tianyu and Yao, Xingcheng and Chen, Danqi},
booktitle={Empirical Methods in Natural Language Processing (EMNLP)},
year={2021}
}
```
# Glossary [optional]
More information needed
# More Information [optional]
If you have any questions related to the code or the paper, feel free to email Tianyu (`tianyug@cs.princeton.edu`) and Xingcheng (`yxc18@mails.tsinghua.edu.cn`). If you encounter any problems when using the code, or want to report a bug, you can open an issue. Please try to specify the problem with details so we can help you better and quicker!
# Model Card Authors [optional]
Princeton NLP group in collaboration with Ezi Ozoani and the Hugging Face team
# Model Card Contact
More information needed
# How to Get Started with the Model
Use the code below to get started with the model.
<details>
<summary> Click to expand </summary>
```python
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("princeton-nlp/sup-simcse-roberta-large")
model = AutoModel.from_pretrained("princeton-nlp/sup-simcse-roberta-large")
```
</details>
| [
-0.3063060939311981,
-0.6865885257720947,
0.4384966790676117,
0.21142518520355225,
-0.300381064414978,
-0.3885681629180908,
-0.40289491415023804,
-0.29709625244140625,
0.16419994831085205,
0.40909919142723083,
-0.5238826274871826,
-0.6641010046005249,
-0.7016675472259521,
0.13312411308288574,
-0.25090333819389343,
1.02308189868927,
0.2201956808567047,
0.16582058370113373,
-0.3821907937526703,
0.12166842818260193,
-0.17968310415744781,
-0.5999041199684143,
-0.6135838031768799,
-0.02878420427441597,
0.218686044216156,
0.17033836245536804,
0.5640692114830017,
0.6531074047088623,
0.42482438683509827,
0.36101943254470825,
-0.3810431957244873,
0.001419817446731031,
-0.3401634693145752,
-0.23799510300159454,
-0.091954804956913,
-0.3027876019477844,
-0.4439305067062378,
0.07402259856462479,
0.6008906364440918,
0.5472529530525208,
-0.18644024431705475,
0.29882752895355225,
0.21496914327144623,
0.23840036988258362,
-0.5458542108535767,
0.33926862478256226,
-0.6628745198249817,
-0.12449768930673599,
-0.18024635314941406,
0.010284955613315105,
-0.4745028018951416,
-0.11138343065977097,
0.021911343559622765,
-0.5398372411727905,
0.06240241229534149,
0.14665763080120087,
1.2044042348861694,
0.25706061720848083,
-0.32427528500556946,
-0.387299120426178,
-0.3803359270095825,
1.0380189418792725,
-0.9620553255081177,
0.34466293454170227,
0.22305157780647278,
-0.01466300804167986,
-0.10880102962255478,
-0.8362848162651062,
-0.6179512739181519,
-0.4527133107185364,
-0.19493737816810608,
0.2955567538738251,
-0.22138623893260956,
0.00859320443123579,
0.5145388841629028,
0.21071992814540863,
-0.5405839085578918,
0.09240607917308807,
-0.3620775640010834,
-0.06510106474161148,
0.737250030040741,
0.12793074548244476,
0.35310569405555725,
-0.6621297597885132,
-0.4998236894607544,
-0.2817823588848114,
-0.24814358353614807,
0.05880219489336014,
0.3788546323776245,
0.40021252632141113,
-0.4816497266292572,
0.6111649870872498,
-0.02904650568962097,
0.5098371505737305,
-0.26428744196891785,
0.029077280312776566,
0.5097147226333618,
-0.3621600270271301,
-0.29155564308166504,
-0.19021688401699066,
1.0951939821243286,
0.12335820496082306,
0.19259193539619446,
0.08530186116695404,
-0.029135631397366524,
-0.13700659573078156,
0.14760270714759827,
-0.7835537195205688,
-0.20326687395572662,
0.12626342475414276,
-0.5333237051963806,
-0.21895666420459747,
0.2821007966995239,
-0.8963512778282166,
0.06448233127593994,
-0.38930851221084595,
0.2507699429988861,
-0.524059534072876,
-0.1430782675743103,
0.07046541571617126,
-0.12452996522188187,
0.18049797415733337,
0.044550977647304535,
-0.6760815382003784,
0.4612989127635956,
0.5646383166313171,
0.7750545144081116,
-0.20371678471565247,
-0.2620783746242523,
-0.14793938398361206,
-0.014889724552631378,
0.10875941067934036,
0.5138557553291321,
-0.5448293685913086,
-0.36068910360336304,
-0.008399843238294125,
0.08513648808002472,
-0.1961633712053299,
-0.23880630731582642,
1.0060689449310303,
-0.20846055448055267,
0.4190923571586609,
-0.16909974813461304,
-0.6623607873916626,
-0.2251686453819275,
0.10312886536121368,
-0.5543133020401001,
1.2883158922195435,
-0.11863110959529877,
-1.0690093040466309,
-0.020412148907780647,
-0.7693760395050049,
-0.1845695674419403,
-0.04408540576696396,
-0.16231712698936462,
-0.6085537075996399,
-0.056821852922439575,
0.2612725794315338,
0.4825635552406311,
-0.3612562119960785,
0.4022006392478943,
-0.3394695222377777,
-0.311516672372818,
0.1080741286277771,
-0.4205157160758972,
1.480148196220398,
0.3175186216831207,
-0.24597908556461334,
-0.029443737119436264,
-0.726474940776825,
0.012008205987513065,
0.3271792232990265,
-0.14737245440483093,
-0.41802898049354553,
-0.1453307420015335,
0.3496900200843811,
0.32222461700439453,
0.43905574083328247,
-0.5663110017776489,
0.08349961787462234,
-0.3569260835647583,
0.3048875033855438,
0.5907124280929565,
-0.06124092638492584,
0.26555386185646057,
-0.18716105818748474,
0.5008357167243958,
0.10983344167470932,
0.2980290651321411,
0.04059894010424614,
-0.4737287759780884,
-0.8827609419822693,
-0.2911188006401062,
0.5772174000740051,
0.7039478421211243,
-0.545102596282959,
0.8711724877357483,
-0.3708812892436981,
-0.6169899106025696,
-0.4923373758792877,
-0.05712560564279556,
0.45304006338119507,
0.14245516061782837,
0.6390232443809509,
-0.11025750637054443,
-0.6645318865776062,
-0.9593331813812256,
-0.3613441288471222,
-0.06013673171401024,
-0.015412477776408195,
0.5179298520088196,
0.7463142275810242,
-0.17929911613464355,
0.8955363035202026,
-0.7475511431694031,
-0.31417667865753174,
-0.27606040239334106,
0.1636805534362793,
0.06203150376677513,
0.6927623152732849,
0.5101868510246277,
-0.8076220750808716,
-0.3547840416431427,
-0.38041964173316956,
-0.7560924887657166,
-0.15500468015670776,
-0.2091047465801239,
-0.06319141387939453,
0.20131641626358032,
0.73529052734375,
-0.6722065806388855,
0.3632567822933197,
0.5875684022903442,
-0.264508992433548,
0.4678954482078552,
-0.22712087631225586,
-0.12092138826847076,
-1.450474500656128,
0.15065941214561462,
0.1659301221370697,
0.02059503085911274,
-0.38423171639442444,
-0.04132310301065445,
-0.11587349325418472,
-0.09888647496700287,
-0.4444165825843811,
0.5709971189498901,
-0.5145416259765625,
-0.0006831055507063866,
0.03797701373696327,
0.3177967667579651,
-0.08687326312065125,
0.6567577719688416,
0.06579653918743134,
0.5222947597503662,
0.48658287525177,
-0.5691819787025452,
0.011814579367637634,
0.34439194202423096,
-0.25890108942985535,
0.29108530282974243,
-0.6936583518981934,
0.06506036221981049,
0.04646569490432739,
0.2852778732776642,
-0.7001023292541504,
0.06522715836763382,
0.2530611753463745,
-0.5356609225273132,
0.33165648579597473,
0.016273699700832367,
-0.6006210446357727,
-0.35119354724884033,
-0.15286287665367126,
0.3157971203327179,
0.5550934076309204,
-0.4406093955039978,
0.7566702961921692,
0.4025413990020752,
-0.1897280365228653,
-0.6382938623428345,
-0.815361738204956,
0.0587940514087677,
-0.13542376458644867,
-0.48277807235717773,
0.5382719039916992,
-0.222945898771286,
-0.11698045581579208,
0.1740453839302063,
0.35740897059440613,
-0.1489657163619995,
0.08460228145122528,
0.3020685911178589,
0.3063428997993469,
0.024843772873282433,
0.1890610307455063,
0.022721843793988228,
-0.19860829412937164,
0.11819655448198318,
-0.0007869837572798133,
0.5452154278755188,
-0.11907074600458145,
-0.15079471468925476,
-0.5588733553886414,
0.2902953028678894,
0.22627708315849304,
-0.17143861949443817,
0.8956971168518066,
0.7782694697380066,
-0.3964878022670746,
-0.21348589658737183,
-0.4582064151763916,
-0.21209827065467834,
-0.45007073879241943,
0.593355655670166,
-0.3027813136577606,
-0.7801929116249084,
0.3710966110229492,
-0.05898897722363472,
0.01643788442015648,
0.8401170969009399,
0.4411301016807556,
-0.033382441848516464,
0.8079515695571899,
0.7342963814735413,
0.020192274823784828,
0.4933621883392334,
-0.3566797971725464,
0.259840726852417,
-0.9202722907066345,
-0.28448572754859924,
-0.8704856038093567,
0.04100316762924194,
-0.9145473837852478,
-0.43916577100753784,
-0.041426993906497955,
0.08357413113117218,
-0.32897552847862244,
0.4927093982696533,
-0.5189113020896912,
0.2595268487930298,
0.5287317037582397,
0.011810977943241596,
0.1835678666830063,
-0.057817552238702774,
-0.29496216773986816,
-0.304074764251709,
-0.761172354221344,
-0.5659281611442566,
0.7960314750671387,
0.455765962600708,
0.46192827820777893,
-0.045171644538640976,
0.7850930690765381,
0.07469365745782852,
0.09395507723093033,
-0.5490100979804993,
0.7914997935295105,
-0.47600051760673523,
-0.49427029490470886,
-0.2084551900625229,
-0.5902516841888428,
-0.8136862516403198,
0.2266393005847931,
-0.43858593702316284,
-0.6972099542617798,
0.18077589571475983,
-0.11470770835876465,
-0.18177562952041626,
0.34168335795402527,
-0.5229729413986206,
0.9534724950790405,
-0.20301711559295654,
-0.03248056769371033,
-0.12144811451435089,
-0.5924984812736511,
0.41016924381256104,
0.07860808074474335,
0.2768602669239044,
-0.01728438213467598,
-0.06424656510353088,
0.90184086561203,
-0.3018212616443634,
0.9067578911781311,
-0.15912549197673798,
0.2155604064464569,
0.2371150255203247,
-0.2025132179260254,
0.45688241720199585,
-0.0773252323269844,
-0.1574409157037735,
0.6088950037956238,
-0.07332060486078262,
-0.282298743724823,
-0.4340044856071472,
0.8207076787948608,
-0.8818015456199646,
-0.37044185400009155,
-0.6464139223098755,
-0.5791820287704468,
0.09017609059810638,
0.22768747806549072,
0.30240002274513245,
0.12934981286525726,
-0.26116499304771423,
0.3301358222961426,
0.5321190357208252,
-0.645032525062561,
0.4436672031879425,
0.28006622195243835,
-0.09035021811723709,
-0.4097289741039276,
0.7607199549674988,
0.2267598956823349,
0.15421468019485474,
0.2405901998281479,
0.18636798858642578,
-0.2699563801288605,
-0.3936794102191925,
-0.11470429599285126,
0.43067681789398193,
-0.6006791591644287,
-0.13939553499221802,
-1.0247297286987305,
-0.55006343126297,
-0.5366663932800293,
0.03455943986773491,
-0.38428500294685364,
-0.43543189764022827,
-0.5162072777748108,
-0.039454177021980286,
0.29330170154571533,
0.5432397723197937,
-0.014409296214580536,
0.3748258054256439,
-0.49064281582832336,
0.17446762323379517,
0.049691371619701385,
0.20311041176319122,
-0.061166226863861084,
-0.8130273222923279,
-0.24600256979465485,
0.1277838796377182,
-0.36334916949272156,
-0.6676612496376038,
0.4552610218524933,
0.09118451178073883,
0.6064950227737427,
0.11278434842824936,
0.19207999110221863,
0.6030459403991699,
-0.40198639035224915,
1.0947610139846802,
0.0897841528058052,
-1.1106723546981812,
0.44855383038520813,
-0.15426985919475555,
0.27609002590179443,
0.620335042476654,
0.5169888138771057,
-0.39339888095855713,
-0.3821886479854584,
-1.1587790250778198,
-0.9218042492866516,
0.7192713022232056,
0.4676247537136078,
0.29058241844177246,
-0.14706796407699585,
0.40617579221725464,
-0.3644272983074188,
0.01301234494894743,
-1.1175000667572021,
-0.4773467481136322,
-0.10676838457584381,
-0.35294198989868164,
-0.02984543703496456,
-0.4578627347946167,
0.05477859452366829,
-0.26885297894477844,
1.0191547870635986,
0.06073886528611183,
0.48537278175354004,
0.14005574584007263,
-0.12095902115106583,
0.2986903488636017,
0.2702173590660095,
0.4981730580329895,
0.11351045966148376,
-0.26599740982055664,
-0.03757447004318237,
0.5344645380973816,
-0.4729762375354767,
-0.29166877269744873,
0.2521072030067444,
-0.3260229527950287,
0.14332114160060883,
0.3417646586894989,
0.7994025945663452,
0.29428380727767944,
-0.5191560983657837,
0.8521170020103455,
-0.12733665108680725,
-0.3262910842895508,
-0.5415491461753845,
-0.014921441674232483,
0.20294174551963806,
0.08185877650976181,
0.07942505925893784,
0.07406529784202576,
0.2225007563829422,
-0.2785611152648926,
0.2121320366859436,
0.4940924346446991,
-0.4416002631187439,
-0.0010607829317450523,
0.637478768825531,
0.10145817697048187,
-0.28049105405807495,
0.6998052597045898,
-0.26058048009872437,
-0.4469839632511139,
0.7776922583580017,
0.6543685793876648,
0.9880924224853516,
-0.09352128207683563,
0.10344251990318298,
0.8131688237190247,
0.44302767515182495,
-0.04863132908940315,
0.2071934938430786,
0.1670054942369461,
-0.63188236951828,
-0.33701691031455994,
-0.6995034217834473,
-0.12726342678070068,
0.10404496639966965,
-0.7924878001213074,
0.6135619282722473,
-0.43321067094802856,
-0.11338277161121368,
-0.06605465710163116,
0.15615405142307281,
-0.7033010125160217,
0.2934344410896301,
0.13349342346191406,
0.9259276390075684,
-1.0470651388168335,
0.8592631220817566,
0.5658301115036011,
-0.668084442615509,
-0.8759925961494446,
0.04783117026090622,
-0.04115527868270874,
-0.4909198582172394,
0.6818937659263611,
0.16521784663200378,
0.0006509165978059173,
0.030321691185235977,
-0.6926575303077698,
-0.8917549252510071,
1.2166603803634644,
0.32279592752456665,
-0.6016522645950317,
0.06404232978820801,
0.012988662347197533,
0.5533041954040527,
-0.5733385682106018,
0.6226567625999451,
0.295777827501297,
0.45194903016090393,
0.0314047671854496,
-0.7581782341003418,
0.16737593710422516,
-0.2746884226799011,
0.2922058701515198,
-0.2015075534582138,
-0.7781903743743896,
0.9241558909416199,
-0.12220712751150131,
-0.2878408432006836,
0.1421307921409607,
0.8244307637214661,
0.2846449017524719,
0.0875711515545845,
0.6055906414985657,
0.7475021481513977,
0.6828116178512573,
-0.04182323440909386,
1.0732576847076416,
-0.2956997752189636,
0.6042434573173523,
1.341587781906128,
0.08314666152000427,
1.0984363555908203,
0.3294723629951477,
-0.22453747689723969,
0.7914319634437561,
0.5037952065467834,
-0.30037572979927063,
0.26400452852249146,
0.24186086654663086,
0.14392049610614777,
-0.24444903433322906,
-0.3100469708442688,
-0.3976764976978302,
0.49946027994155884,
0.2185966670513153,
-0.6577216386795044,
-0.06448854506015778,
-0.20038491487503052,
0.21692760288715363,
0.14568129181861877,
0.013787306845188141,
0.7008318901062012,
0.25855758786201477,
-0.36078399419784546,
0.4032244086265564,
0.1599578708410263,
0.7424800395965576,
-0.6415440440177917,
-0.06070810556411743,
0.09324624389410019,
0.11699153482913971,
-0.23435424268245697,
-0.5559951663017273,
0.26591727137565613,
-0.01400994136929512,
-0.19805707037448883,
-0.03644851967692375,
0.3700101375579834,
-0.5763535499572754,
-0.7285350561141968,
0.591809868812561,
0.340654581785202,
0.3064630925655365,
0.22531087696552277,
-1.253434419631958,
0.12372957915067673,
0.23782381415367126,
-0.3972235918045044,
0.1934528797864914,
0.36281856894493103,
0.09471838176250458,
0.5209640860557556,
0.6660995483398438,
0.04516470059752464,
-0.04547658935189247,
0.15495535731315613,
0.753119707107544,
-0.7032577991485596,
-0.5771176218986511,
-0.8108354210853577,
0.6733027100563049,
-0.425679087638855,
-0.451221764087677,
0.8882681131362915,
0.7343766689300537,
0.8055397868156433,
0.014790555462241173,
0.7825786471366882,
-0.17648491263389587,
0.4324168860912323,
-0.5215608477592468,
0.4590192437171936,
-0.6565110087394714,
0.319207102060318,
-0.49169301986694336,
-1.0874236822128296,
-0.3814293444156647,
0.7446216344833374,
-0.3373227119445801,
0.339078813791275,
0.9296108484268188,
0.8977721333503723,
-0.0755176767706871,
0.08290789276361465,
0.17979052662849426,
0.556751012802124,
0.20080578327178955,
0.3910798132419586,
0.4250945448875427,
-0.7584132552146912,
0.5713630318641663,
-0.339255154132843,
-0.18868695199489594,
-0.07783173769712448,
-1.0739099979400635,
-0.8966129422187805,
-0.6328335404396057,
-0.561980128288269,
-0.37791258096694946,
-0.06259492039680481,
1.0269170999526978,
0.49840694665908813,
-0.7984619140625,
-0.21233060956001282,
-0.09746935218572617,
-0.099058598279953,
-0.2549251317977905,
-0.24752932786941528,
0.6902693510055542,
-0.34026142954826355,
-0.8828417062759399,
0.025058351457118988,
-0.034283142536878586,
0.06972562521696091,
-0.19871735572814941,
-0.13407748937606812,
-0.6132621169090271,
0.16774331033229828,
0.3761568069458008,
0.04676080867648125,
-0.834528386592865,
-0.050105974078178406,
-0.15882457792758942,
-0.41646748781204224,
-0.1794986128807068,
0.4842417240142822,
-0.42350804805755615,
0.21975217759609222,
0.40390893816947937,
0.5028659701347351,
0.5800396800041199,
0.026678742840886116,
0.2986408472061157,
-0.6360416412353516,
0.2615431845188141,
0.1536829024553299,
0.539648711681366,
0.30447307229042053,
-0.5091081857681274,
0.5086067318916321,
0.25195181369781494,
-0.6156007647514343,
-0.6512303948402405,
0.00556582398712635,
-1.2870101928710938,
-0.40211251378059387,
1.3750686645507812,
-0.25554654002189636,
-0.3022678792476654,
-0.004588956944644451,
-0.30180981755256653,
0.3373912572860718,
-0.3615560829639435,
0.5590615272521973,
0.6662518978118896,
0.1946413367986679,
-0.20970764756202698,
-0.6213249564170837,
0.5589810013771057,
0.47506648302078247,
-0.8846766948699951,
0.03575630113482475,
0.3391806185245514,
0.24525336921215057,
0.25430217385292053,
0.4243338108062744,
-0.21083909273147583,
-0.04335601627826691,
0.09193641692399979,
0.49633628129959106,
-0.10576954483985901,
-0.1926153302192688,
-0.4490397572517395,
0.052331484854221344,
-0.2085123211145401,
-0.004886861424893141
] |
roneneldan/TinyStories-33M | roneneldan | "2023-08-08T22:32:26Z" | 118,705 | 65 | transformers | [
"transformers",
"pytorch",
"gpt_neo",
"text-generation",
"dataset:roneneldan/TinyStories",
"arxiv:2305.07759",
"endpoints_compatible",
"has_space",
"region:us"
] | text-generation | "2023-05-12T19:16:05Z" | ---
datasets:
- roneneldan/TinyStories
---
Model trained on the TinyStories Dataset, see https://arxiv.org/abs/2305.07759
Based on GPT-Neo architecture.
License: mit
---
hyperparams used to train this model:
lr = 5e-4,
lr_schedule = constant,
wd=0.1,
adam_beta1=0.9, adam_beta2 = 0.95,
context_length=512,
batch_size=80,
gradient_accumulation_steps=16
------ EXAMPLE USAGE ---
from transformers import AutoModelForCausalLM, AutoTokenizer, GenerationConfig
model = AutoModelForCausalLM.from_pretrained('roneneldan/TinyStories-33M')
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-neo-125M")
prompt = "Once upon a time there was"
input_ids = tokenizer.encode(prompt, return_tensors="pt")
# Generate completion
output = model.generate(input_ids, max_length = 1000, num_beams=1)
# Decode the completion
output_text = tokenizer.decode(output[0], skip_special_tokens=True)
# Print the generated text
print(output_text) | [
-0.4147615432739258,
-0.4620558023452759,
0.4753870666027069,
0.09907463192939758,
-0.3053222596645355,
-0.3657132089138031,
-0.053917720913887024,
-0.10734191536903381,
0.0043507837690413,
0.27566346526145935,
-0.8368207812309265,
-0.4764236509799957,
-0.6296114325523376,
0.24916264414787292,
-0.27915316820144653,
1.2492613792419434,
0.14383192360401154,
0.11814095079898834,
0.2673911154270172,
0.011209326796233654,
-0.1423904299736023,
-0.30857983231544495,
-0.9045785665512085,
-0.305110365152359,
0.19785766303539276,
0.010951085947453976,
0.6668779253959656,
0.9334200024604797,
0.3674221634864807,
0.37465211749076843,
-0.14186744391918182,
0.22152037918567657,
-0.38816943764686584,
-0.2745146155357361,
0.03845396265387535,
-0.20937621593475342,
-0.5197121500968933,
-0.06598463654518127,
0.8690352439880371,
0.39664891362190247,
-0.11211171746253967,
0.3924841582775116,
0.4368344247341156,
0.05454724654555321,
-0.3607502579689026,
0.37496525049209595,
-0.6463245153427124,
0.330989271402359,
0.04044760391116142,
-0.04250716418027878,
-0.14992821216583252,
-0.028182951733469963,
0.13472388684749603,
-0.926156222820282,
0.7561019659042358,
0.04937571659684181,
1.2294747829437256,
0.5157987475395203,
-0.35072603821754456,
-0.20028960704803467,
-0.6588634252548218,
0.8776349425315857,
-0.7422406673431396,
0.24179986119270325,
0.3917633295059204,
0.1914406269788742,
0.10117927193641663,
-1.1343193054199219,
-0.5188682079315186,
0.04228438809514046,
-0.39685294032096863,
-0.06735645979642868,
-0.14233224093914032,
0.14332090318202972,
0.655377209186554,
0.3116719424724579,
-0.7386696338653564,
-0.05015154182910919,
-0.23942551016807556,
-0.2667664587497711,
0.3377390205860138,
0.748447597026825,
-0.3247445523738861,
-0.7477670907974243,
-0.68376624584198,
-0.31657692790031433,
-0.34698954224586487,
-0.1629352569580078,
0.16501572728157043,
0.2828531265258789,
-0.20168030261993408,
0.4572932720184326,
-0.19196632504463196,
0.7463066577911377,
0.2858363091945648,
0.020806746557354927,
0.3430761694908142,
-0.8175070881843567,
-0.4145260751247406,
-0.30687588453292847,
1.173275113105774,
-0.003745483001694083,
-0.10101574659347534,
-0.03593897074460983,
-0.4685964584350586,
-0.21057048439979553,
0.18302714824676514,
-1.1045188903808594,
-0.3457643985748291,
0.009721285663545132,
-0.47261708974838257,
-0.3038875460624695,
0.0568561926484108,
-0.6078053116798401,
-0.04273051396012306,
-0.35465875267982483,
0.6651291847229004,
-0.3053443729877472,
0.02479233592748642,
0.09008867293596268,
-0.01845731772482395,
0.08392723649740219,
-0.01168545801192522,
-0.823261559009552,
0.3292924761772156,
0.5057815313339233,
0.9756559133529663,
0.19298630952835083,
-0.5840021967887878,
-0.4174184501171112,
0.21270151436328888,
-0.07633136957883835,
0.4153507649898529,
0.04851518198847771,
-0.4544125497341156,
-0.11210436373949051,
0.23363718390464783,
-0.2552039623260498,
-0.36114612221717834,
0.517484188079834,
-0.29510027170181274,
0.3294788599014282,
-0.12012360990047455,
-0.5918517708778381,
0.111480712890625,
0.37031102180480957,
-0.35427653789520264,
1.072866678237915,
0.3262401819229126,
-0.8315689563751221,
0.6181219816207886,
-0.5539703369140625,
-0.002554310020059347,
0.09236734360456467,
-0.21659664809703827,
-0.7245920896530151,
0.09014134854078293,
0.3143673241138458,
0.43093907833099365,
-0.30518674850463867,
0.3872417211532593,
-0.3110228180885315,
-0.349305659532547,
-0.09210719168186188,
-0.5722549557685852,
0.7474764585494995,
0.2130662202835083,
-0.4637090861797333,
0.05616367608308792,
-0.8082216382026672,
-0.06961297988891602,
0.27016183733940125,
-0.33228448033332825,
-0.13716015219688416,
-0.3303469717502594,
0.23636694252490997,
0.34242764115333557,
0.5764506459236145,
-0.5996975898742676,
0.4040915369987488,
-0.3687843084335327,
0.4743540287017822,
0.7399966716766357,
0.17601236701011658,
0.2918809652328491,
-0.2152359038591385,
0.3818100392818451,
0.1973426789045334,
0.5475878715515137,
0.0025564345996826887,
-0.3437099754810333,
-0.8605246543884277,
-0.45074763894081116,
0.36318206787109375,
0.28684255480766296,
-0.7040966749191284,
0.6221272349357605,
-0.39137211441993713,
-0.5120662450790405,
-0.3822900950908661,
0.14919497072696686,
0.3846779763698578,
0.658684492111206,
0.4653156101703644,
-0.05554224178195,
-0.536247730255127,
-0.9284810423851013,
0.27496469020843506,
-0.039951689541339874,
-0.18295486271381378,
0.270763099193573,
0.8156594634056091,
-0.5711195468902588,
1.0278971195220947,
-0.7464166283607483,
-0.37557104229927063,
0.10266772657632828,
0.4336467683315277,
0.6280929446220398,
0.6427250504493713,
0.572610080242157,
-0.36850476264953613,
-0.303805947303772,
-0.45264163613319397,
-0.7039453387260437,
0.14085108041763306,
-0.10355514287948608,
-0.18110966682434082,
-0.12536346912384033,
0.32732608914375305,
-1.0586663484573364,
0.3650691509246826,
0.2744062840938568,
-0.5633109211921692,
0.690941333770752,
-0.44561144709587097,
-0.08165440708398819,
-1.4666526317596436,
0.13134054839611053,
0.07600778341293335,
-0.26461049914360046,
-0.2045532464981079,
-0.15081585943698883,
0.07078924775123596,
-0.29785171151161194,
-0.4707183837890625,
0.7778690457344055,
-0.3803209364414215,
-0.1771213561296463,
-0.3053615093231201,
-0.2383272796869278,
0.1306847333908081,
0.5682689547538757,
0.18056662380695343,
0.7197248339653015,
0.6423612236976624,
-0.8464973568916321,
0.26301056146621704,
0.4923268258571625,
-0.1324748992919922,
0.13087701797485352,
-0.8955312967300415,
0.10125986486673355,
0.11396824568510056,
0.17686404287815094,
-0.8897995352745056,
-0.05484829470515251,
0.31650564074516296,
-0.3383442759513855,
0.3540147840976715,
-0.543864905834198,
-0.7921413779258728,
-0.6502003073692322,
-0.13441243767738342,
0.535546064376831,
0.32611116766929626,
-0.7057048082351685,
0.5613085031509399,
0.07005468755960464,
0.07093372195959091,
-0.5579500198364258,
-0.5591022968292236,
-0.3245040476322174,
-0.1832393854856491,
-0.3513476252555847,
0.17263297736644745,
0.017353348433971405,
0.24270068109035492,
0.044662632048130035,
0.2635037302970886,
0.07867731153964996,
-0.1289905309677124,
0.22778697311878204,
0.33147290349006653,
-0.19959327578544617,
0.028772560879588127,
0.14500632882118225,
-0.4819677770137787,
0.1274718940258026,
-0.5008740425109863,
0.9448890686035156,
-0.4210103452205658,
-0.14145077764987946,
-0.5712552666664124,
0.03763671964406967,
0.4617291986942291,
0.10340189188718796,
0.7995732426643372,
0.9278957843780518,
-0.5313552618026733,
-0.10650790482759476,
-0.18746443092823029,
-0.6181166172027588,
-0.5343016386032104,
0.5180553793907166,
-0.4669897258281708,
-0.4980989694595337,
0.8221350312232971,
0.2815226912498474,
0.09293852746486664,
0.8217905759811401,
0.47075292468070984,
0.12515512108802795,
1.25091552734375,
0.2438446581363678,
0.020943069830536842,
0.41828233003616333,
-1.0589182376861572,
-0.10551989823579788,
-0.8982778787612915,
-0.0892312303185463,
-0.5127444267272949,
-0.19572657346725464,
-0.6901023983955383,
-0.2971051335334778,
0.40836960077285767,
0.05745859071612358,
-0.671469509601593,
0.6668077707290649,
-0.5938918590545654,
0.25924283266067505,
0.521155834197998,
0.07570739835500717,
0.1325664073228836,
-0.0010596984066069126,
-0.21093089878559113,
-0.035323310643434525,
-1.0311739444732666,
-0.3192415237426758,
1.14867103099823,
0.4754600524902344,
0.6897397041320801,
-0.29760023951530457,
0.907954752445221,
0.10509122163057327,
0.2792406678199768,
-0.6879690885543823,
0.49736112356185913,
-0.13310417532920837,
-0.7614521980285645,
-0.24209187924861908,
-0.7431897521018982,
-0.8762560486793518,
0.20070677995681763,
-0.04365071654319763,
-0.45023947954177856,
0.5043274164199829,
0.32253897190093994,
-0.6888859272003174,
0.37022122740745544,
-0.49635806679725647,
1.0689632892608643,
0.027302825823426247,
-0.3653363287448883,
-0.023929301649332047,
-0.43428555130958557,
0.1881972849369049,
-0.01133659202605486,
-0.14589078724384308,
0.301019549369812,
-0.12367421388626099,
0.948573887348175,
-0.620698094367981,
0.7706731557846069,
-0.4780021607875824,
0.4028458595275879,
0.2669166922569275,
-0.0003441756416577846,
0.6507561802864075,
0.4145304560661316,
0.07203926891088486,
0.39372679591178894,
-0.04624485969543457,
-0.5667175650596619,
-0.35648974776268005,
0.7401677370071411,
-1.106034755706787,
-0.32992789149284363,
-0.5991345047950745,
-0.6462324857711792,
-0.010035375133156776,
0.272070050239563,
0.8118680715560913,
0.6478995680809021,
-0.07151459157466888,
0.08573172241449356,
0.5815982818603516,
0.17376141250133514,
0.8236957788467407,
0.42089781165122986,
-0.10405164957046509,
-0.6833717823028564,
0.715347409248352,
0.11100367456674576,
0.025797657668590546,
-0.1912221908569336,
0.16067104041576385,
-0.625540554523468,
-0.4166174530982971,
-0.7090253233909607,
0.5323258638381958,
-0.4746533930301666,
-0.4802597463130951,
-0.8169941902160645,
-0.39842620491981506,
-0.4625343382358551,
0.09648913890123367,
-0.6983946561813354,
-0.32626843452453613,
-0.7074698209762573,
-0.06873691827058792,
0.3295576870441437,
0.6634818911552429,
-0.2358430027961731,
0.650375485420227,
-0.8572845458984375,
0.20391780138015747,
0.47316962480545044,
0.0070804026909172535,
0.0289105586707592,
-0.966133713722229,
-0.451493501663208,
0.011247777380049229,
-0.29838767647743225,
-0.6169279217720032,
0.49889859557151794,
0.14589864015579224,
0.34725290536880493,
0.618340015411377,
-0.2103099822998047,
0.5555490851402283,
-0.31414613127708435,
0.7393070459365845,
0.12009231746196747,
-0.7244330644607544,
0.5120130181312561,
-0.5593370199203491,
0.4531877934932709,
0.5329893827438354,
0.42305314540863037,
-0.07433563470840454,
-0.13243231177330017,
-1.0597373247146606,
-1.0203218460083008,
0.7750349044799805,
0.20177783071994781,
0.07552628219127655,
-0.08512154221534729,
0.4462710916996002,
0.08890608698129654,
0.22055204212665558,
-0.9167709350585938,
-0.21849797666072845,
-0.40860944986343384,
-0.22823384404182434,
-0.0961419939994812,
-0.20055131614208221,
-0.24136848747730255,
-0.4818804860115051,
0.920333981513977,
-0.20850566029548645,
0.5563190579414368,
0.16824845969676971,
-0.10773380100727081,
0.044825825840234756,
-0.12207704037427902,
0.45114174485206604,
0.6416904330253601,
-0.3774871230125427,
-0.1640290766954422,
0.24941697716712952,
-0.4422267973423004,
0.15301062166690826,
0.4883672893047333,
-0.38049226999282837,
0.144985169172287,
0.0903114378452301,
1.1185945272445679,
0.021261001005768776,
0.11914816498756409,
0.4199068248271942,
-0.28132694959640503,
-0.22416770458221436,
-0.4488944113254547,
0.06399861723184586,
-0.21572810411453247,
0.11179371923208237,
0.4750342071056366,
0.040515147149562836,
0.14972959458827972,
-0.16488389670848846,
0.23331469297409058,
0.3269210457801819,
-0.43266576528549194,
-0.29216963052749634,
0.7876648902893066,
-0.022258905693888664,
-0.08748043328523636,
0.9543264508247375,
-0.4733578562736511,
-0.3970019221305847,
0.6324799060821533,
0.617968738079071,
1.0013004541397095,
0.013069162145256996,
0.09767497330904007,
0.7130637764930725,
0.3487863540649414,
-0.10103666037321091,
0.11623571068048477,
-0.19450856745243073,
-0.6646221280097961,
-0.342658132314682,
-1.057897925376892,
-0.10159048438072205,
0.41212543845176697,
-0.7107412219047546,
0.27605438232421875,
-0.5979247093200684,
-0.5828127861022949,
-0.14851947128772736,
0.24207723140716553,
-1.078060507774353,
0.388207346200943,
-0.04347124323248863,
0.7640900015830994,
-1.1883606910705566,
0.8511424660682678,
0.6515763998031616,
-0.4350784122943878,
-0.9699899554252625,
-0.010506647638976574,
-0.21989953517913818,
-0.6956331133842468,
0.5665414929389954,
-0.030147813260555267,
0.11790870130062103,
0.35586678981781006,
-0.4571102559566498,
-0.8667721152305603,
1.1399614810943604,
0.1717548370361328,
-0.546220600605011,
-0.3695572316646576,
0.21357940137386322,
0.5783987641334534,
-0.4190373718738556,
0.48291581869125366,
0.4341529607772827,
0.3181469440460205,
-0.3053800165653229,
-0.6595277190208435,
-0.05728200078010559,
-0.24571041762828827,
0.27039027214050293,
0.2010568082332611,
-0.6838362812995911,
1.1212788820266724,
-0.058482132852077484,
0.17764000594615936,
0.2346666306257248,
0.8617274761199951,
0.4910345673561096,
0.1530880630016327,
0.5658766031265259,
1.034567952156067,
0.4284617304801941,
-0.22096344828605652,
1.1219955682754517,
-0.4900023937225342,
0.9878443479537964,
1.0719777345657349,
0.17744222283363342,
0.37480583786964417,
0.27241554856300354,
0.04023809731006622,
0.3107435405254364,
0.7793887853622437,
-0.34057867527008057,
0.6273730993270874,
-0.1087464764714241,
-0.14627526700496674,
-0.2919728457927704,
0.07225099205970764,
-0.6103445887565613,
0.24775834381580353,
0.4126031696796417,
-0.5750313401222229,
-0.2514292597770691,
0.13267530500888824,
-0.05954379960894585,
-0.6818049550056458,
-0.3554311692714691,
0.5585257411003113,
0.06330055743455887,
-0.35160866379737854,
0.6920371055603027,
-0.0066934917122125626,
0.686496913433075,
-0.6923947334289551,
0.2593124806880951,
-0.24103963375091553,
0.38715577125549316,
0.030422326177358627,
-0.5366780161857605,
0.12630486488342285,
-0.06417200714349747,
-0.4536166489124298,
-0.09910299628973007,
0.571028470993042,
-0.2939016819000244,
-0.6711970567703247,
0.2740163803100586,
0.32890981435775757,
0.02384243533015251,
-0.06368925422430038,
-0.995349109172821,
-0.30830883979797363,
-0.23637628555297852,
-0.7198938131332397,
0.17326535284519196,
0.48842453956604004,
0.30911511182785034,
0.4908672571182251,
0.6404411196708679,
0.08120645582675934,
0.2957257330417633,
0.03569941595196724,
0.9618439078330994,
-0.5715844035148621,
-0.6961299777030945,
-0.7067584991455078,
0.44436806440353394,
-0.0750608965754509,
-0.8650954365730286,
0.7155297994613647,
0.894453763961792,
0.8941202759742737,
-0.20871016383171082,
0.3676093816757202,
0.01709417998790741,
0.31746307015419006,
-0.4800475239753723,
0.6983208656311035,
-0.5368467569351196,
0.07278469204902649,
-0.06458786129951477,
-1.2834899425506592,
0.28156203031539917,
0.5292308330535889,
-0.30995839834213257,
0.3195079267024994,
0.7352303862571716,
0.9535773396492004,
-0.5678119659423828,
-0.09205366671085358,
0.09635607898235321,
0.48064929246902466,
0.06225072592496872,
0.44364598393440247,
0.6614680290222168,
-0.9050632119178772,
0.5137468576431274,
-0.5715888738632202,
-0.060122501105070114,
-0.010043146088719368,
-0.5159227252006531,
-0.6070151329040527,
-0.4093068242073059,
-0.4052528142929077,
-0.635711133480072,
-0.1205567717552185,
1.0004734992980957,
0.8797500729560852,
-0.8630699515342712,
-0.18119463324546814,
-0.25748491287231445,
-0.4064856767654419,
0.012807718478143215,
-0.29764771461486816,
0.6393992900848389,
-0.36287543177604675,
-0.7939211130142212,
0.32011452317237854,
-0.1457308530807495,
0.2444082498550415,
-0.32861417531967163,
-0.2911549210548401,
-0.11284416913986206,
-0.06244064122438431,
0.22563406825065613,
0.15005256235599518,
-0.29648545384407043,
-0.20700006186962128,
-0.10374701768159866,
-0.4262327253818512,
0.08873818814754486,
0.6091541647911072,
-0.7543832063674927,
0.20409128069877625,
0.41436609625816345,
0.32373297214508057,
0.9474711418151855,
-0.07818877696990967,
0.26668575406074524,
-0.8481772541999817,
0.38064679503440857,
0.2882891297340393,
0.6867875456809998,
0.2723451852798462,
-0.33529767394065857,
0.4180244505405426,
0.5852954387664795,
-0.7281482219696045,
-0.7447803020477295,
-0.0662599578499794,
-0.7464154958724976,
-0.0442064106464386,
1.1144660711288452,
-0.18070955574512482,
-0.38331595063209534,
0.06499139964580536,
0.012607574462890625,
0.5635790824890137,
-0.29072949290275574,
0.78926682472229,
0.42401549220085144,
0.001029722043313086,
-0.010492300614714622,
-0.2762939929962158,
0.5846882462501526,
0.5459314584732056,
-0.5821230411529541,
-0.07663613557815552,
0.3787314295768738,
0.37787380814552307,
0.295454740524292,
0.5852010846138,
-0.19101491570472717,
0.28740194439888,
0.18296100199222565,
0.05061255395412445,
-0.3085189759731293,
-0.5158107876777649,
-0.45326876640319824,
0.20300158858299255,
-0.14356769621372223,
-0.3759421408176422
] |
vinai/phobert-large | vinai | "2022-10-22T08:56:50Z" | 118,389 | 4 | transformers | [
"transformers",
"pytorch",
"tf",
"jax",
"roberta",
"fill-mask",
"arxiv:2003.00744",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | fill-mask | "2022-03-02T23:29:05Z" | # <a name="introduction"></a> PhoBERT: Pre-trained language models for Vietnamese
Pre-trained PhoBERT models are the state-of-the-art language models for Vietnamese ([Pho](https://en.wikipedia.org/wiki/Pho), i.e. "Phở", is a popular food in Vietnam):
- Two PhoBERT versions of "base" and "large" are the first public large-scale monolingual language models pre-trained for Vietnamese. PhoBERT pre-training approach is based on [RoBERTa](https://github.com/pytorch/fairseq/blob/master/examples/roberta/README.md) which optimizes the [BERT](https://github.com/google-research/bert) pre-training procedure for more robust performance.
- PhoBERT outperforms previous monolingual and multilingual approaches, obtaining new state-of-the-art performances on four downstream Vietnamese NLP tasks of Part-of-speech tagging, Dependency parsing, Named-entity recognition and Natural language inference.
The general architecture and experimental results of PhoBERT can be found in our EMNLP-2020 Findings [paper](https://arxiv.org/abs/2003.00744):
@article{phobert,
title = {{PhoBERT: Pre-trained language models for Vietnamese}},
author = {Dat Quoc Nguyen and Anh Tuan Nguyen},
journal = {Findings of EMNLP},
year = {2020}
}
**Please CITE** our paper when PhoBERT is used to help produce published results or is incorporated into other software.
For further information or requests, please go to [PhoBERT's homepage](https://github.com/VinAIResearch/PhoBERT)!
| [
-0.1738683581352234,
-0.9879848957061768,
0.38571950793266296,
0.17037919163703918,
-0.44355472922325134,
-0.13833166658878326,
-0.24252015352249146,
-0.30897068977355957,
0.04264399781823158,
0.6361375451087952,
-0.09951791167259216,
-0.6793753504753113,
-0.3691106140613556,
0.10537451505661011,
-0.11520804464817047,
0.7712743878364563,
0.08741425722837448,
0.07850631326436996,
0.5368517637252808,
-0.049480143934488297,
-0.15880300104618073,
-1.0738017559051514,
-0.48741966485977173,
-0.17195165157318115,
0.4268696904182434,
0.2608863413333893,
0.48806893825531006,
0.5979306101799011,
0.5527556538581848,
0.3223470151424408,
-0.011386379599571228,
0.15602825582027435,
-0.45909354090690613,
-0.15208986401557922,
0.036797307431697845,
-0.012380301021039486,
-0.7159504890441895,
-0.11759872734546661,
0.4654651880264282,
0.4083031713962555,
-0.18405497074127197,
0.12322229892015457,
-0.004964237101376057,
0.4888349771499634,
-0.7872622609138489,
0.03630991652607918,
-0.48859867453575134,
-0.012990270741283894,
-0.2547173500061035,
-0.288594126701355,
-0.6087220907211304,
-0.4703088700771332,
0.6609938740730286,
-0.5669991374015808,
-0.2922298312187195,
-0.0922660306096077,
1.1475571393966675,
0.1757747083902359,
-0.6577338576316833,
0.012758866883814335,
-0.820993185043335,
0.7441565990447998,
-0.8504835963249207,
0.6379987001419067,
0.45437490940093994,
0.15488174557685852,
-0.012380030937492847,
-0.6026629209518433,
-0.41534051299095154,
-0.5986770391464233,
-0.1471150517463684,
0.259724885225296,
-0.09424063563346863,
0.2622401714324951,
-0.04895864427089691,
0.3726697862148285,
-0.9572166800498962,
0.026375066488981247,
-0.2945706248283386,
-0.14467179775238037,
0.44660696387290955,
-0.48421674966812134,
-0.03218187391757965,
-0.28201809525489807,
-0.6793604493141174,
-0.10849930346012115,
-0.3848491907119751,
-0.13172116875648499,
-0.07883235812187195,
0.3074534833431244,
-0.2505507171154022,
0.6247497797012329,
0.03547080233693123,
1.0211139917373657,
-0.04233025014400482,
-0.32915523648262024,
0.5812807679176331,
-0.3420889377593994,
-0.43913671374320984,
0.11661962419748306,
0.8882007002830505,
0.02516046352684498,
0.6687973141670227,
0.1691260188817978,
-0.12972955405712128,
-0.23848073184490204,
0.00026101002003997564,
-0.5571442246437073,
-0.3272833526134491,
0.31758883595466614,
-0.351411908864975,
0.08146083354949951,
0.23728398978710175,
-0.5800598859786987,
-0.10174448043107986,
-0.35896146297454834,
0.6466712355613708,
-0.7274390459060669,
-0.8587200045585632,
0.3720209002494812,
0.06760305166244507,
0.3906291425228119,
0.12902340292930603,
-0.4174751043319702,
0.0024299349170178175,
0.7267475128173828,
0.8192612528800964,
-0.1973034292459488,
-0.6619827151298523,
-0.42363137006759644,
0.10124827176332474,
-0.07246460765600204,
0.7350620627403259,
-0.2456476241350174,
-0.30243098735809326,
0.22732989490032196,
-0.01666318066418171,
-0.0997973382472992,
-0.7235628366470337,
0.5696264505386353,
-0.27424487471580505,
0.15893101692199707,
0.2695237994194031,
-0.7168182134628296,
-0.29174885153770447,
0.13160280883312225,
-0.5982584357261658,
1.2157273292541504,
0.4040963649749756,
-0.9265154600143433,
0.2998632788658142,
-0.5162417888641357,
-0.4789314568042755,
-0.015168892219662666,
0.14528881013393402,
-0.4505903720855713,
0.014230391010642052,
0.170070081949234,
0.5083507299423218,
-0.1343030482530594,
0.12289842218160629,
-0.20555967092514038,
-0.13104873895645142,
0.22963179647922516,
-0.10836326330900192,
1.0922836065292358,
0.19061805307865143,
-0.3163778483867645,
0.42412176728248596,
-1.183091640472412,
0.025200320407748222,
0.19996313750743866,
-0.44009214639663696,
-0.5252417325973511,
-0.4345124363899231,
0.204642191529274,
0.3023401200771332,
0.3242635428905487,
-0.29414328932762146,
-0.06319379806518555,
-0.43674230575561523,
0.44241198897361755,
0.7516384720802307,
-0.04385633394122124,
0.4163009524345398,
-0.18569840490818024,
0.5016993880271912,
0.035692766308784485,
0.26256683468818665,
-0.47499173879623413,
-0.5110938549041748,
-0.8799062967300415,
-0.5759907364845276,
0.21735535562038422,
1.055942416191101,
-0.5948473215103149,
0.9507640600204468,
-0.09296716004610062,
-0.8955442309379578,
-0.6745401620864868,
-0.008241732604801655,
0.37604039907455444,
0.6357959508895874,
0.4421914219856262,
-0.25757357478141785,
-0.792306661605835,
-0.7325245141983032,
-0.2405206859111786,
-0.5702786445617676,
-0.08156133443117142,
-0.12988342344760895,
0.3841174244880676,
-0.17497994005680084,
1.0122283697128296,
-0.28755709528923035,
-0.18231798708438873,
-0.29786694049835205,
0.15903499722480774,
0.10752154886722565,
0.6061428785324097,
0.6488970518112183,
-0.9525320529937744,
-0.5848268866539001,
0.1418146938085556,
-0.555125892162323,
-0.01718328706920147,
0.3241124749183655,
-0.19805505871772766,
0.26444104313850403,
0.520633339881897,
-0.5390581488609314,
0.2846403121948242,
0.7371737957000732,
-0.1836349070072174,
0.8153882026672363,
-0.122225821018219,
-0.06906698644161224,
-1.0345300436019897,
-0.022440262138843536,
0.016171341761946678,
-0.2985697090625763,
-0.5133798122406006,
-0.17265693843364716,
-0.12092438340187073,
-0.18228283524513245,
-0.8549671173095703,
0.678297758102417,
-0.3463932275772095,
0.28629162907600403,
-0.15347996354103088,
-0.1375175267457962,
-0.0840182900428772,
0.5405982136726379,
0.4655952453613281,
0.5480847358703613,
0.57961106300354,
-0.7478024363517761,
0.45804542303085327,
-0.13285978138446808,
-0.21955937147140503,
0.3609469532966614,
-0.7929109334945679,
0.1845300793647766,
0.20052385330200195,
0.054276254028081894,
-0.8001692891120911,
0.05608104541897774,
0.3974299430847168,
-0.36022281646728516,
0.04231417551636696,
-0.2713584005832672,
-0.5362318754196167,
-0.3197087347507477,
-0.07779066264629364,
0.25106382369995117,
0.4810636639595032,
-0.2886441648006439,
0.6793817281723022,
0.4784713685512543,
-0.024819592013955116,
-0.46488094329833984,
-0.6145226359367371,
-0.3276824951171875,
-0.5693568587303162,
-0.37504783272743225,
-0.008798126131296158,
0.004307066090404987,
-0.11322370916604996,
-0.08446498215198517,
0.21415050327777863,
-0.5785130858421326,
0.029091516509652138,
-0.007670244667679071,
-0.006262000650167465,
-0.6797469258308411,
0.27074527740478516,
-0.5798419713973999,
-0.4113803505897522,
-0.24388517439365387,
-0.7624866366386414,
0.725457489490509,
-0.4118826389312744,
-0.08275705575942993,
-0.6353647112846375,
0.23881784081459045,
0.37174373865127563,
-0.7775187492370605,
0.738054633140564,
0.7753480076789856,
-0.331638365983963,
0.056275591254234314,
-0.6226173043251038,
-0.27288439869880676,
-0.47021210193634033,
0.4992014765739441,
-0.4847891926765442,
-0.9478802680969238,
-0.022017063573002815,
-0.1277005821466446,
0.02556154876947403,
0.15638059377670288,
0.642093300819397,
0.1647813618183136,
0.6677011251449585,
0.9931027889251709,
-0.06470636278390884,
0.8444992303848267,
0.07444819062948227,
0.10113082081079483,
-0.10483939200639725,
0.15240001678466797,
-0.46412622928619385,
0.39525192975997925,
-0.8980037569999695,
-0.5084256529808044,
0.02489442750811577,
0.03236193582415581,
-0.5772299766540527,
0.5478975772857666,
-0.5552445650100708,
0.07582742720842361,
0.9044672250747681,
-0.1787012219429016,
0.47757983207702637,
0.21135349571704865,
-0.10646221786737442,
-0.1277063488960266,
-0.7851279973983765,
-0.7076988816261292,
1.0011305809020996,
0.2944382429122925,
0.7057777643203735,
-0.25199955701828003,
0.7172138094902039,
-0.1342872679233551,
0.1835678666830063,
-0.7035581469535828,
0.5238383412361145,
-0.10797838866710663,
-0.6692397594451904,
-0.29811564087867737,
-0.49613094329833984,
-1.0142039060592651,
0.3543410897254944,
-0.14339536428451538,
-0.7365471124649048,
0.055715881288051605,
0.3467622995376587,
-0.23085205256938934,
0.21872110664844513,
-1.0073411464691162,
1.1782573461532593,
-0.6879692077636719,
-0.023352181538939476,
0.16821911931037903,
-0.5359463095664978,
0.17635436356067657,
-0.10892096906900406,
-0.022374862805008888,
-0.1260642260313034,
0.03211914747953415,
0.590173065662384,
-0.37104207277297974,
0.48256438970565796,
-0.059783685952425,
-0.22350850701332092,
0.42622122168540955,
-0.11894103139638901,
0.13671143352985382,
0.15189464390277863,
-0.25195279717445374,
0.35217928886413574,
-0.1791561394929886,
-0.43844789266586304,
-0.4221843481063843,
0.15794499218463898,
-0.789993405342102,
-0.32809731364250183,
-0.6033293008804321,
-0.12223043292760849,
0.0637703388929367,
0.5210909247398376,
0.47113949060440063,
-0.020491788163781166,
-0.3878510594367981,
0.07551158219575882,
0.4604146182537079,
-0.46779707074165344,
-0.08789235353469849,
0.898819088935852,
-0.5144555568695068,
-0.5029834508895874,
0.9703745245933533,
0.2526147663593292,
0.13846012949943542,
0.9244279861450195,
0.2778018116950989,
0.0014306292869150639,
-0.24967169761657715,
-0.0382477305829525,
0.5738781094551086,
-0.36625581979751587,
0.2231735736131668,
-0.7437446713447571,
-0.38745683431625366,
-0.5434296131134033,
0.039122823625802994,
-0.8083857297897339,
-0.3928709924221039,
-0.046292006969451904,
-0.2899981439113617,
0.4487495422363281,
0.43527039885520935,
-0.2647014558315277,
0.6793134808540344,
-0.6860116720199585,
0.2884364128112793,
0.2816718816757202,
-0.03358292207121849,
-0.2092892974615097,
-0.30468839406967163,
-0.3891098201274872,
-0.08601401001214981,
-0.2067403495311737,
-0.8964581489562988,
0.3728673458099365,
0.17054498195648193,
0.20970498025417328,
0.5977829098701477,
0.08252181112766266,
0.5121600031852722,
-0.5914936661720276,
0.49117887020111084,
0.014779451303184032,
-0.8447864651679993,
0.8684380650520325,
-0.22833950817584991,
0.3229238986968994,
0.43615275621414185,
0.5669457912445068,
-0.4482792317867279,
-0.3756818175315857,
-0.6092990040779114,
-1.0980076789855957,
0.4327090084552765,
0.2722296714782715,
-0.31104224920272827,
0.22090928256511688,
0.08614259958267212,
0.10199686884880066,
0.4005327820777893,
-0.9772871136665344,
-0.3918842077255249,
-0.41147422790527344,
-0.028889920562505722,
-0.3495549261569977,
-0.31041547656059265,
0.19977502524852753,
-0.40616941452026367,
0.6902242302894592,
0.318394273519516,
0.21857251226902008,
0.14631864428520203,
-0.2841103672981262,
0.2120780646800995,
0.3318456709384918,
0.45605793595314026,
0.9201402068138123,
-0.6518588662147522,
0.1583528369665146,
-0.12913523614406586,
-0.5621732473373413,
0.26050296425819397,
0.4984011650085449,
-0.17538702487945557,
0.4011109471321106,
0.39591729640960693,
0.7209504842758179,
0.14190338551998138,
-0.7700318098068237,
0.36861327290534973,
-0.10677403211593628,
0.1807466447353363,
-0.6657238006591797,
-0.15973778069019318,
-0.051385484635829926,
-0.05203124135732651,
0.39356091618537903,
-0.3536756932735443,
-0.19499021768569946,
-0.3411714732646942,
0.3569343686103821,
-0.1359979808330536,
-0.4140152335166931,
-0.47317638993263245,
0.3866881728172302,
0.34490466117858887,
-0.38747715950012207,
0.6073923707008362,
-0.206242173910141,
-0.6491798758506775,
0.41699647903442383,
0.36511746048927307,
0.8097772598266602,
-0.7218098640441895,
0.40681931376457214,
0.460462749004364,
0.6947792172431946,
0.14575977623462677,
0.388387531042099,
0.13271938264369965,
-0.7316616177558899,
-0.3562980890274048,
-0.5411080718040466,
-0.24129512906074524,
0.5502572059631348,
-0.4737267792224884,
0.38241046667099,
-0.33210691809654236,
-0.3703393340110779,
-0.17006097733974457,
0.027619952335953712,
-0.6613209247589111,
0.2093174159526825,
0.07298663258552551,
0.8457534313201904,
-0.6416133046150208,
0.9916173219680786,
1.054076075553894,
-0.5211232304573059,
-0.8109135031700134,
-0.04569080471992493,
0.043183811008930206,
-0.5927938222885132,
0.46163490414619446,
0.23523689806461334,
0.0358540304005146,
0.1676819920539856,
-0.23761315643787384,
-0.7947027683258057,
0.4691482484340668,
0.8296985626220703,
-0.30509090423583984,
-0.10619869828224182,
0.33365780115127563,
0.3678411543369293,
-0.24511653184890747,
0.18798582255840302,
0.5642821788787842,
0.5988505482673645,
-0.4411071240901947,
-1.1963813304901123,
-0.35626155138015747,
-0.2941737473011017,
-0.13979344069957733,
-0.10395622998476028,
-0.7436925172805786,
1.1538655757904053,
0.02007032372057438,
-0.11961711198091507,
0.13276520371437073,
0.8776264190673828,
0.5568295121192932,
0.280267596244812,
0.518276035785675,
0.453263521194458,
0.7763062715530396,
-0.05801646038889885,
0.8679549098014832,
-0.3685462176799774,
0.34985682368278503,
1.402223825454712,
-0.3069676160812378,
0.9662867188453674,
0.3214806616306305,
-0.09423045068979263,
0.37644025683403015,
0.9106627702713013,
0.07434119284152985,
0.3777678906917572,
0.13428500294685364,
0.16550962626934052,
-0.2143951952457428,
-0.16849754750728607,
-0.7975112199783325,
0.691954493522644,
0.12841194868087769,
-0.0454942062497139,
-0.03712138161063194,
0.35144078731536865,
0.2924976050853729,
-0.015480613335967064,
0.08858086168766022,
0.5862715840339661,
0.3096628785133362,
-0.5019808411598206,
0.8464542031288147,
-0.09847709536552429,
0.8085414171218872,
-0.971247136592865,
-0.013811216689646244,
0.009458133950829506,
0.5321293473243713,
0.01174749806523323,
-0.33805617690086365,
-0.25984111428260803,
-0.07842234522104263,
0.04060569033026695,
-0.20609205961227417,
0.6085233092308044,
-0.5994157791137695,
-0.5442336201667786,
0.7230082750320435,
0.8041743636131287,
0.2159595638513565,
-0.2746257185935974,
-0.8702470064163208,
-0.09633634984493256,
-0.3075920343399048,
-0.5140103101730347,
-0.05628153681755066,
0.7896003723144531,
0.25395241379737854,
0.5087774991989136,
0.36304712295532227,
0.24338726699352264,
0.3626910448074341,
-0.041686005890369415,
0.5737496614456177,
-0.5831094980239868,
-0.8241145014762878,
-0.7835911512374878,
0.5305408835411072,
0.1267225593328476,
-0.6799367070198059,
1.1261788606643677,
0.7596680521965027,
1.3983410596847534,
-0.23583930730819702,
0.8438106179237366,
0.2424541860818863,
0.8283582925796509,
-0.43987151980400085,
0.6279822587966919,
-0.6880213618278503,
-0.27060461044311523,
-0.5980300307273865,
-1.0691401958465576,
-0.2698483169078827,
0.9930015206336975,
-0.26890167593955994,
0.2552192211151123,
0.7487632036209106,
0.6997364163398743,
-0.0857856348156929,
-0.2266976237297058,
0.29730647802352905,
0.6134790778160095,
0.24685926735401154,
0.4637928009033203,
0.9616155624389648,
-0.20875412225723267,
0.5798279643058777,
-0.5055385231971741,
-0.3188600540161133,
-0.5165649056434631,
-0.716930091381073,
-0.8310999274253845,
-0.7135158181190491,
-0.3619326055049896,
-0.1553247570991516,
0.3948652148246765,
0.9678159952163696,
1.0601023435592651,
-0.8938426375389099,
-0.7282326221466064,
0.06493569165468216,
0.14495575428009033,
-0.42038312554359436,
-0.199013352394104,
0.5498742461204529,
-0.024594632908701897,
-0.7424430251121521,
0.23383688926696777,
0.30372950434684753,
0.22326266765594482,
-0.13508115708827972,
-0.13296760618686676,
-0.6705902814865112,
-0.15019722282886505,
0.7937936782836914,
0.48257938027381897,
-0.5928440690040588,
0.10677865147590637,
0.001957864034920931,
-0.10945237427949905,
0.3182963728904724,
0.918454110622406,
-0.7679024338722229,
0.4326593279838562,
0.38024529814720154,
0.4565226137638092,
0.28276410698890686,
-0.07623519003391266,
0.7769256234169006,
-0.5150099992752075,
0.8824081420898438,
0.3667429983615875,
0.24934397637844086,
0.4752625524997711,
0.009092176333069801,
0.6467897891998291,
0.12177737057209015,
-0.43102389574050903,
-0.9235687851905823,
0.29399171471595764,
-0.962612509727478,
-0.24836789071559906,
1.128493070602417,
-0.3755509853363037,
-0.298799067735672,
-0.24618755280971527,
-0.38025975227355957,
0.5582630038261414,
-0.48103412985801697,
0.4167725443840027,
0.5414324402809143,
0.22347378730773926,
-0.3015139698982239,
-0.6855301260948181,
0.540959358215332,
0.46374306082725525,
-0.7754931449890137,
-0.04302868992090225,
0.17722247540950775,
-0.08617892116308212,
0.15795151889324188,
0.8373479843139648,
0.12179210782051086,
0.23510564863681793,
-0.3132767081260681,
0.0031415345147252083,
0.15952643752098083,
-0.3666953444480896,
-0.1455725133419037,
0.06679081916809082,
0.12176334112882614,
-0.15483364462852478
] |
fxmarty/tiny-doc-qa-vision-encoder-decoder | fxmarty | "2023-10-17T09:09:37Z" | 117,844 | 2 | transformers | [
"transformers",
"pytorch",
"vision-encoder-decoder",
"document-question-answering",
"license:mit",
"endpoints_compatible",
"has_space",
"region:us"
] | document-question-answering | "2023-06-14T09:03:48Z" | ---
license: mit
pipeline_tag: document-question-answering
---
For testing purposes only | [
-0.30745580792427063,
-1.0107334852218628,
0.49542656540870667,
0.5332973599433899,
-0.6193047165870667,
-0.5951150059700012,
0.12883533537387848,
-0.2475671023130417,
0.0674510970711708,
0.7833938598632812,
-0.5226197242736816,
-0.05499671772122383,
0.0727076604962349,
0.266851544380188,
-0.7870030403137207,
1.195790410041809,
-0.18080241978168488,
-0.09316480159759521,
-0.5381320714950562,
-0.3367745876312256,
-0.19367294013500214,
-0.48838886618614197,
-0.8088180422782898,
0.2310876101255417,
0.6108623147010803,
0.8943066596984863,
0.5309557318687439,
0.034431859850883484,
0.28112736344337463,
0.3968562185764313,
0.48133793473243713,
-0.11331909894943237,
-0.43949803709983826,
0.1915648728609085,
-0.20947547256946564,
-0.5934669971466064,
-0.031821202486753464,
0.46865060925483704,
0.689286470413208,
0.7055177688598633,
0.18068741261959076,
0.2529588043689728,
-0.32382556796073914,
0.6137304902076721,
-1.0272178649902344,
-0.09625812619924545,
0.0347382090985775,
0.13660012185573578,
-0.22969560325145721,
-0.3919835090637207,
-0.4164348542690277,
-1.0325044393539429,
-0.32271307706832886,
-0.5203652381896973,
0.3578345775604248,
0.2288200706243515,
0.9453270435333252,
-0.14160989224910736,
-0.6537942290306091,
0.2762168347835541,
-0.45605242252349854,
0.7456323504447937,
0.02407805062830448,
0.9173081517219543,
0.4113028943538666,
0.3354755938053131,
-0.20081347227096558,
-0.35255125164985657,
-0.37993547320365906,
-0.7480955123901367,
0.07860930263996124,
0.27528318762779236,
0.06694217026233673,
0.2312954217195511,
0.5661160945892334,
0.6343031525611877,
-0.7727739214897156,
-0.3590078055858612,
-0.8525221347808838,
-0.1523657888174057,
0.82734614610672,
0.02076811157166958,
0.8409361243247986,
0.09045996516942978,
-0.7625412344932556,
-0.11698076128959656,
-0.9212706089019775,
0.40923118591308594,
0.02257758565247059,
0.5621286630630493,
-0.009555652737617493,
1.0624209642410278,
0.24371619522571564,
0.16280679404735565,
-0.05095377564430237,
0.030110187828540802,
0.1556330919265747,
-0.08185535669326782,
-0.706531822681427,
0.018446408212184906,
0.3199623227119446,
0.42623043060302734,
0.09921897202730179,
-0.3469839096069336,
-0.30407479405403137,
0.4875500202178955,
0.39450713992118835,
-1.02513587474823,
-0.32159873843193054,
0.15901659429073334,
0.0652056336402893,
-0.5778329968452454,
0.07988831400871277,
-0.8835654258728027,
-0.25175514817237854,
0.24177150428295135,
0.4073636531829834,
-0.3508513271808624,
-0.31494054198265076,
-0.1309335082769394,
-0.9487562775611877,
-0.17023742198944092,
-0.33670473098754883,
-0.4076808989048004,
0.5009883642196655,
0.22215120494365692,
0.6780933737754822,
-0.059135060757398605,
-0.7769321799278259,
-0.5769072771072388,
0.04308908060193062,
-0.6042212843894958,
0.5596312880516052,
-0.035692472010850906,
-0.885897159576416,
0.030007772147655487,
0.5924475193023682,
-0.20190036296844482,
-0.5279650688171387,
0.9397244453430176,
-0.8154638409614563,
-0.5288296937942505,
-0.22759918868541718,
-0.30213627219200134,
-0.007250584661960602,
-0.07459410279989243,
-0.5919592380523682,
0.8814331889152527,
0.42830100655555725,
-0.1614180952310562,
0.7800367474555969,
-0.47175297141075134,
-0.6954857707023621,
0.07338500767946243,
-0.4092833995819092,
-0.4515426456928253,
0.3278087377548218,
-0.5171166062355042,
-0.41664639115333557,
0.06743175536394119,
0.22394992411136627,
-0.4137299060821533,
-0.8340919017791748,
0.3766522705554962,
-0.15017478168010712,
0.662411630153656,
0.2376117706298828,
-0.7570057511329651,
-0.24806810915470123,
-0.5118418335914612,
0.4901828467845917,
0.019800690934062004,
-0.383956640958786,
-0.1241845116019249,
-0.04439551755785942,
0.1297914832830429,
-0.23373639583587646,
-0.5713962912559509,
-0.8721736073493958,
0.006218954920768738,
-0.5207868218421936,
-0.5905889868736267,
0.8117684721946716,
-0.0893033966422081,
0.24393703043460846,
-0.6877084374427795,
1.0389626026153564,
0.14454956352710724,
0.11169884353876114,
0.7004380822181702,
-0.9534542560577393,
-1.181286334991455,
-0.4937703609466553,
0.48087403178215027,
0.6821216940879822,
-0.2527041733264923,
0.556036114692688,
0.6568405628204346,
-0.5548029541969299,
-0.3767707347869873,
-0.0507531613111496,
0.6964254975318909,
0.11451008170843124,
-0.19360917806625366,
-0.22746676206588745,
-0.6883760094642639,
-1.1806663274765015,
-0.1290653795003891,
-0.15874338150024414,
-0.41343358159065247,
0.2089012861251831,
0.47038939595222473,
0.09009891748428345,
0.6314544081687927,
-0.4966597259044647,
-0.23909991979599,
-0.02962324023246765,
-0.36358943581581116,
-0.004441072698682547,
0.269698828458786,
1.1139777898788452,
-0.693235456943512,
-0.47145047783851624,
-0.049976933747529984,
-0.547837495803833,
-0.5012495517730713,
0.024893634021282196,
0.08304163068532944,
-0.055787235498428345,
0.32307133078575134,
-0.156305193901062,
0.7674538493156433,
0.7916078567504883,
-0.5312514901161194,
0.33504024147987366,
-0.6554955840110779,
0.13546529412269592,
0.10319428890943527,
0.3264312446117401,
0.08033125847578049,
-0.6097009778022766,
-0.28259503841400146,
0.5877645611763,
0.19525547325611115,
-0.7602185606956482,
-0.3821120262145996,
0.912013053894043,
-0.14875692129135132,
-0.08407875150442123,
-0.7065966129302979,
0.3735658824443817,
0.2617410719394684,
-0.17904730141162872,
-0.3900875747203827,
1.4468358755111694,
0.6513269543647766,
-1.4267549514770508,
0.16027973592281342,
0.21053846180438995,
-0.03204817324876785,
0.6767682433128357,
-0.33420538902282715,
-0.004181588534265757,
-0.006836290936917067,
-0.4832634925842285,
-0.6129063367843628,
-0.33399128913879395,
0.6430457234382629,
-0.4567126929759979,
-0.3046276569366455,
0.4927222728729248,
0.011176238767802715,
-0.3195372521877289,
-0.295712947845459,
0.04045828804373741,
1.0012785196304321,
-0.7023294568061829,
0.4079558551311493,
0.2294357866048813,
0.41471782326698303,
-0.28320178389549255,
-1.3338379859924316,
-0.7800355553627014,
-0.19941115379333496,
-0.7277675271034241,
-0.09354429692029953,
-0.2801908552646637,
-0.5372297167778015,
-0.21673421561717987,
-0.2661008834838867,
-0.791271448135376,
0.34013819694519043,
0.9734597206115723,
0.03410230204463005,
-0.2879674732685089,
0.3117012083530426,
-0.15179826319217682,
-0.39874038100242615,
0.09488213807344437,
0.0836096927523613,
-0.17665942013263702,
0.34884169697761536,
-0.5652031898498535,
-0.5551204085350037,
1.1072732210159302,
0.3665316104888916,
-0.1147441491484642,
0.23857249319553375,
0.1580977886915207,
-0.0020660061854869127,
-0.6097898483276367,
-0.6288962960243225,
-0.20317398011684418,
-0.6466835141181946,
0.2288685292005539,
-0.5080117583274841,
-0.7313514351844788,
0.42047199606895447,
-0.2165055125951767,
0.07756704837083817,
0.3437136113643646,
0.3102448880672455,
-0.29506915807724,
0.7997831702232361,
0.7116574645042419,
0.27162426710128784,
-0.05234931781888008,
0.30688464641571045,
0.9278227686882019,
-0.5942854285240173,
0.053187575191259384,
-0.6915369033813477,
-0.10266538709402084,
-0.48023876547813416,
0.2168942093849182,
0.37292763590812683,
0.18131490051746368,
-0.16978581249713898,
0.1088419184088707,
-0.4948290288448334,
0.8681919574737549,
0.5850580930709839,
0.5103698968887329,
0.10892006009817123,
-0.29298821091651917,
-0.07587991654872894,
-0.1533975899219513,
-0.0030545268673449755,
-0.23976080119609833,
1.204386830329895,
-0.012511242181062698,
0.4777492582798004,
-0.2663489878177643,
0.03187055513262749,
0.1653212159872055,
0.7370226383209229,
-1.049103021621704,
0.6838770508766174,
-0.056828539818525314,
-1.4408025741577148,
-0.11217567324638367,
-0.1395847052335739,
-1.3392400741577148,
0.17006616294384003,
0.8205206394195557,
-0.3084683120250702,
-0.000752051651943475,
-0.16371600329875946,
-0.24271218478679657,
0.6629341244697571,
-0.9528462290763855,
0.8966608643531799,
-0.16806554794311523,
0.24195341765880585,
0.29523566365242004,
0.043053001165390015,
0.3219711482524872,
-0.23399633169174194,
0.08314501494169235,
-0.17967741191387177,
-0.3392775356769562,
0.7401270270347595,
-0.31670811772346497,
0.5400354862213135,
-0.29673245549201965,
0.6283856630325317,
0.6613220572471619,
0.39324140548706055,
-0.1292778104543686,
0.19979916512966156,
-0.06642746925354004,
-0.649197518825531,
0.6252415776252747,
-0.5057222843170166,
-0.23068688809871674,
0.602990984916687,
-0.7324684262275696,
-0.8918957710266113,
-0.9960563778877258,
-0.018036022782325745,
-0.08046725392341614,
0.0647980272769928,
-0.09676185995340347,
0.2564752399921417,
-0.08392491191625595,
0.3088354766368866,
0.5421667695045471,
0.21770556271076202,
-0.007113449275493622,
0.3216923177242279,
-0.28737255930900574,
0.3403014838695526,
0.48970827460289,
-0.47843727469444275,
0.4827255308628082,
-0.5106051564216614,
0.8535916209220886,
-0.37691882252693176,
-0.6559734344482422,
-0.15935687720775604,
0.09135815501213074,
-1.0252124071121216,
0.16208522021770477,
-0.25935181975364685,
0.12345073372125626,
-0.5881417393684387,
-0.35931727290153503,
-0.1644688993692398,
-0.3209303319454193,
-0.0695941299200058,
-0.323593407869339,
0.42784222960472107,
0.41943344473838806,
-0.49350228905677795,
0.09498392790555954,
-0.5629544258117676,
0.4927310049533844,
0.6637054085731506,
-0.04129905626177788,
-0.7240550518035889,
0.13124927878379822,
0.2728573679924011,
0.16431091725826263,
-0.4659545421600342,
-0.6592187285423279,
0.057120632380247116,
0.27275583148002625,
0.42902565002441406,
0.3291895091533661,
0.1991090625524521,
0.7636745572090149,
-0.09435389190912247,
1.046569585800171,
-0.08930140733718872,
-0.8364132046699524,
0.82984858751297,
-0.4065696895122528,
-0.2679010033607483,
1.2840090990066528,
0.5673860311508179,
-0.43369248509407043,
-0.4777313768863678,
-0.7634403109550476,
-0.44635820388793945,
0.6297053098678589,
0.22164569795131683,
0.23813332617282867,
0.07587698847055435,
1.0408167839050293,
-0.015710879117250443,
0.0321972630918026,
-0.4580264389514923,
-0.5814394354820251,
0.21345160901546478,
0.3806878626346588,
-0.091549813747406,
-0.008155385963618755,
-0.6068375110626221,
-0.5680767893791199,
0.40243232250213623,
0.22490756213665009,
0.31996414065361023,
0.6767001152038574,
0.1347288340330124,
-0.5371059775352478,
0.14211955666542053,
0.4087996482849121,
0.942798912525177,
-0.732658863067627,
-0.03413679078221321,
0.29450082778930664,
-1.10435950756073,
0.5600513815879822,
-0.1641722470521927,
-0.3254713714122772,
0.2744883596897125,
-0.7493166923522949,
0.06515491753816605,
0.22184304893016815,
-0.8077766299247742,
0.9686543345451355,
-0.26735737919807434,
-0.4722628593444824,
-0.7365948557853699,
0.48800525069236755,
-0.360809326171875,
0.34878289699554443,
-0.043469686061143875,
0.11978011578321457,
0.09909091144800186,
-1.2509459257125854,
0.921843945980072,
0.39524105191230774,
-0.49782100319862366,
-0.31624680757522583,
1.0391110181808472,
0.12953200936317444,
-0.44705629348754883,
1.1350606679916382,
-0.38721558451652527,
-0.24184083938598633,
0.7862542271614075,
0.7802087664604187,
0.6338393092155457,
-0.5479575395584106,
0.3736140727996826,
0.40503349900245667,
0.3563189208507538,
0.3612643778324127,
1.038272738456726,
0.23589836061000824,
-0.3337225615978241,
0.1973886489868164,
-0.2557767927646637,
-0.8675497174263,
-0.061335694044828415,
-0.6045024991035461,
0.4408111274242401,
-0.8824175000190735,
-0.1488976627588272,
0.16297757625579834,
-0.4163849651813507,
-0.3007795512676239,
0.9962653517723083,
-0.06321249157190323,
1.0879125595092773,
-0.9947662949562073,
0.8395286202430725,
0.41000306606292725,
-0.46623650193214417,
-0.4692961871623993,
-0.4247436821460724,
-0.3436535894870758,
-0.9056341052055359,
0.6577461361885071,
-0.0812704935669899,
0.2814333140850067,
-0.6750938296318054,
-0.4792236089706421,
-0.4946075975894928,
0.6317663192749023,
0.3166518211364746,
0.21630458533763885,
0.07556669414043427,
0.3322063684463501,
0.2845839560031891,
0.4502454698085785,
0.7174134850502014,
0.3266262114048004,
1.0347596406936646,
0.025175929069519043,
-0.9603674411773682,
0.07605892419815063,
-0.23089909553527832,
-0.4147108793258667,
0.3546876013278961,
-0.72304767370224,
1.0772793292999268,
0.16353140771389008,
-0.3538312613964081,
0.3443432152271271,
0.06775034219026566,
0.734882116317749,
0.30733248591423035,
0.5486504435539246,
0.20005124807357788,
0.6788559556007385,
-0.5739449858665466,
1.8926801681518555,
0.2390679568052292,
0.14358645677566528,
0.39094284176826477,
-0.34260842204093933,
0.50465327501297,
0.5821120142936707,
-0.26535528898239136,
-0.1607450544834137,
1.0201727151870728,
-0.051334332674741745,
0.9053972363471985,
1.0807005167007446,
0.046503860503435135,
-0.12051670998334885,
-0.3081713020801544,
-0.8747374415397644,
0.20365454256534576,
-0.2601642906665802,
-0.11641192436218262,
-0.33134767413139343,
-0.24603630602359772,
0.046468865126371384,
-0.2668204605579376,
-0.06868243217468262,
-0.22203026711940765,
0.24385172128677368,
-0.6154078841209412,
0.4915679693222046,
-0.35859861969947815,
0.4706811010837555,
-1.2130001783370972,
0.23603619635105133,
0.22529709339141846,
0.3119259774684906,
-0.13132460415363312,
-0.35160160064697266,
0.9180746674537659,
-0.2871129512786865,
0.42286884784698486,
-0.22064614295959473,
0.6974349617958069,
0.36197197437286377,
-0.6106680035591125,
0.3926580846309662,
0.31872403621673584,
0.39642801880836487,
-0.4174482822418213,
-0.35878145694732666,
-0.00274503231048584,
-0.20493631064891815,
-0.42007920145988464,
0.06386081874370575,
0.13200797140598297,
0.5875213742256165,
0.49454203248023987,
0.7075235843658447,
0.27892574667930603,
0.21964849531650543,
-0.023936262354254723,
0.8871873021125793,
-1.0272096395492554,
-0.522370457649231,
-0.796513020992279,
0.6129264831542969,
0.21366441249847412,
-0.9263361096382141,
0.7868193984031677,
0.9021671414375305,
1.1277536153793335,
-0.11415818333625793,
0.7126007080078125,
0.19269776344299316,
-0.12637759745121002,
-0.3678697645664215,
0.6172974705696106,
-0.9485166668891907,
-0.9969320297241211,
0.3061780035495758,
-0.6646847128868103,
-0.07576072961091995,
0.28302842378616333,
0.5696068406105042,
-0.18890875577926636,
1.4938071966171265,
0.39573848247528076,
-0.07835639268159866,
0.8320803642272949,
0.5718218684196472,
-0.18750061094760895,
0.3261837065219879,
0.594689667224884,
0.9746562838554382,
-0.4169231355190277,
0.5526277422904968,
-0.6706154942512512,
-0.5652124285697937,
0.21435797214508057,
-0.29876774549484253,
-1.7262691259384155,
-0.3785117566585541,
-0.15393505990505219,
-0.4880191385746002,
0.04468850791454315,
0.20359981060028076,
0.8254459500312805,
-0.6719508767127991,
-0.47211459279060364,
0.037705663591623306,
-0.11169170588254929,
-0.4029545485973358,
-0.11969900131225586,
0.40045538544654846,
-0.10654351860284805,
-0.3614863157272339,
0.8624610304832458,
0.029821544885635376,
0.0970316231250763,
-0.5510327219963074,
0.47926464676856995,
0.25679704546928406,
0.045718420296907425,
-0.0785054937005043,
0.27934321761131287,
-0.3410223424434662,
-0.536475419998169,
0.2910687029361725,
-0.06318949908018112,
0.5673229694366455,
0.6926490664482117,
-0.11496026068925858,
0.5277228355407715,
0.729612410068512,
0.6114168763160706,
0.0554882176220417,
-0.43623781204223633,
0.6505455374717712,
-0.7411705851554871,
0.7670886516571045,
0.6955873370170593,
0.23564958572387695,
-0.6076028943061829,
-0.9391694664955139,
0.709629237651825,
0.1887797862291336,
-0.8254658579826355,
-0.8754575252532959,
0.09550376981496811,
-1.1621873378753662,
0.29317712783813477,
1.1126865148544312,
-0.28745755553245544,
-1.0452830791473389,
-0.2840050756931305,
-0.11770724505186081,
0.3578280210494995,
-0.46211275458335876,
0.6261041760444641,
0.6214150190353394,
-0.3896368443965912,
-0.1581413894891739,
-1.1866369247436523,
0.5482443571090698,
0.4998137950897217,
-1.1138900518417358,
-0.6022534370422363,
-0.25857260823249817,
0.412061482667923,
0.19167973101139069,
0.7949767112731934,
-0.20082680881023407,
0.786395251750946,
0.20046444237232208,
-0.06163376197218895,
0.08557378500699997,
-0.0037131246645003557,
-0.11677233129739761,
0.015780514106154442,
0.01065837312489748,
-0.8897314071655273
] |
imvladikon/wav2vec2-xls-r-300m-hebrew | imvladikon | "2023-09-13T15:54:14Z" | 117,841 | 3 | transformers | [
"transformers",
"pytorch",
"safetensors",
"wav2vec2",
"automatic-speech-recognition",
"generated_from_trainer",
"he",
"hf-asr-leaderboard",
"robust-speech-event",
"base_model:facebook/wav2vec2-xls-r-300m",
"model-index",
"endpoints_compatible",
"has_space",
"region:us"
] | automatic-speech-recognition | "2022-03-02T23:29:05Z" | ---
language:
- he
tags:
- automatic-speech-recognition
- generated_from_trainer
- he
- hf-asr-leaderboard
- robust-speech-event
base_model: facebook/wav2vec2-xls-r-300m
model-index:
- name: wav2vec2-xls-r-300m-hebrew
results:
- task:
type: automatic-speech-recognition
name: Automatic Speech Recognition
dataset:
name: Custom Dataset
type: custom
args: he
metrics:
- type: wer
value: 23.18
name: Test WER
---
<!-- 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. -->
# wav2vec2-xls-r-300m-hebrew
This model is a fine-tuned version of [facebook/wav2vec2-xls-r-300m](https://huggingface.co/facebook/wav2vec2-xls-r-300m) on the private datasets in 2 stages - firstly was fine-tuned on a small dataset with good samples Then the obtained model was fine-tuned on a large dataset with the small good dataset, with various samples from different sources, and with an unlabeled dataset that was weakly labeled using a previously trained model.
Small dataset:
| split |size(gb) | n_samples | duration(hrs)| |
|---|---|---|---|---|
|train|4.19| 20306 | 28 | |
|dev |1.05| 5076 | 7 | |
Large dataset:
| split |size(gb) | n_samples | duration(hrs)| |
|---|---|---|---|---|
|train|12.3| 90777 | 69 | |
|dev |2.39| 20246 | 14* | |
(*weakly labeled data wasn't used in validation set)
After firts training it achieves:
on small dataset
- Loss: 0.5438
- WER: 0.1773
on large dataset
- WER: 0.3811
after second training:
on small dataset
- WER: 0.1697
on large dataset
- Loss: 0.4502
- WER: 0.2318
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
#### First training
The following hyperparameters were used during training:
- learning_rate: 0.0003
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- distributed_type: multi-GPU
- num_devices: 2
- gradient_accumulation_steps: 4
- total_train_batch_size: 64
- total_eval_batch_size: 16
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 1000
- num_epochs: 100.0
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Wer |
|:-------------:|:-----:|:-----:|:---------------:|:------:|
| No log | 3.15 | 1000 | 0.5203 | 0.4333 |
| 1.4284 | 6.31 | 2000 | 0.4816 | 0.3951 |
| 1.4284 | 9.46 | 3000 | 0.4315 | 0.3546 |
| 1.283 | 12.62 | 4000 | 0.4278 | 0.3404 |
| 1.283 | 15.77 | 5000 | 0.4090 | 0.3054 |
| 1.1777 | 18.93 | 6000 | 0.3893 | 0.3006 |
| 1.1777 | 22.08 | 7000 | 0.3968 | 0.2857 |
| 1.0994 | 25.24 | 8000 | 0.3892 | 0.2751 |
| 1.0994 | 28.39 | 9000 | 0.4061 | 0.2690 |
| 1.0323 | 31.54 | 10000 | 0.4114 | 0.2507 |
| 1.0323 | 34.7 | 11000 | 0.4021 | 0.2508 |
| 0.9623 | 37.85 | 12000 | 0.4032 | 0.2378 |
| 0.9623 | 41.01 | 13000 | 0.4148 | 0.2374 |
| 0.9077 | 44.16 | 14000 | 0.4350 | 0.2323 |
| 0.9077 | 47.32 | 15000 | 0.4515 | 0.2246 |
| 0.8573 | 50.47 | 16000 | 0.4474 | 0.2180 |
| 0.8573 | 53.63 | 17000 | 0.4649 | 0.2171 |
| 0.8083 | 56.78 | 18000 | 0.4455 | 0.2102 |
| 0.8083 | 59.94 | 19000 | 0.4587 | 0.2092 |
| 0.769 | 63.09 | 20000 | 0.4794 | 0.2012 |
| 0.769 | 66.25 | 21000 | 0.4845 | 0.2007 |
| 0.7308 | 69.4 | 22000 | 0.4937 | 0.2008 |
| 0.7308 | 72.55 | 23000 | 0.4920 | 0.1895 |
| 0.6927 | 75.71 | 24000 | 0.5179 | 0.1911 |
| 0.6927 | 78.86 | 25000 | 0.5202 | 0.1877 |
| 0.6622 | 82.02 | 26000 | 0.5266 | 0.1840 |
| 0.6622 | 85.17 | 27000 | 0.5351 | 0.1854 |
| 0.6315 | 88.33 | 28000 | 0.5373 | 0.1811 |
| 0.6315 | 91.48 | 29000 | 0.5331 | 0.1792 |
| 0.6075 | 94.64 | 30000 | 0.5390 | 0.1779 |
| 0.6075 | 97.79 | 31000 | 0.5459 | 0.1773 |
#### Second training
The following hyperparameters were used during training:
- learning_rate: 0.0003
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- distributed_type: multi-GPU
- num_devices: 2
- gradient_accumulation_steps: 4
- total_train_batch_size: 64
- total_eval_batch_size: 16
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 1000
- num_epochs: 60.0
- mixed_precision_training: Native AMP
### Training results
| Training Loss | Epoch | Step | Validation Loss | Wer |
|:-------------:|:-----:|:-----:|:---------------:|:------:|
| No log | 0.7 | 1000 | 0.5371 | 0.3811 |
| 1.3606 | 1.41 | 2000 | 0.5247 | 0.3902 |
| 1.3606 | 2.12 | 3000 | 0.5126 | 0.3859 |
| 1.3671 | 2.82 | 4000 | 0.5062 | 0.3828 |
| 1.3671 | 3.53 | 5000 | 0.4979 | 0.3672 |
| 1.3421 | 4.23 | 6000 | 0.4906 | 0.3816 |
| 1.3421 | 4.94 | 7000 | 0.4784 | 0.3651 |
| 1.328 | 5.64 | 8000 | 0.4810 | 0.3669 |
| 1.328 | 6.35 | 9000 | 0.4747 | 0.3597 |
| 1.3109 | 7.05 | 10000 | 0.4813 | 0.3808 |
| 1.3109 | 7.76 | 11000 | 0.4631 | 0.3561 |
| 1.2873 | 8.46 | 12000 | 0.4603 | 0.3431 |
| 1.2873 | 9.17 | 13000 | 0.4579 | 0.3533 |
| 1.2661 | 9.87 | 14000 | 0.4471 | 0.3365 |
| 1.2661 | 10.58 | 15000 | 0.4584 | 0.3437 |
| 1.249 | 11.28 | 16000 | 0.4461 | 0.3454 |
| 1.249 | 11.99 | 17000 | 0.4482 | 0.3367 |
| 1.2322 | 12.69 | 18000 | 0.4464 | 0.3335 |
| 1.2322 | 13.4 | 19000 | 0.4427 | 0.3454 |
| 1.22 | 14.1 | 20000 | 0.4440 | 0.3395 |
| 1.22 | 14.81 | 21000 | 0.4459 | 0.3378 |
| 1.2044 | 15.51 | 22000 | 0.4406 | 0.3199 |
| 1.2044 | 16.22 | 23000 | 0.4398 | 0.3155 |
| 1.1913 | 16.92 | 24000 | 0.4237 | 0.3150 |
| 1.1913 | 17.63 | 25000 | 0.4287 | 0.3279 |
| 1.1705 | 18.34 | 26000 | 0.4253 | 0.3103 |
| 1.1705 | 19.04 | 27000 | 0.4234 | 0.3098 |
| 1.1564 | 19.75 | 28000 | 0.4174 | 0.3076 |
| 1.1564 | 20.45 | 29000 | 0.4260 | 0.3160 |
| 1.1461 | 21.16 | 30000 | 0.4235 | 0.3036 |
| 1.1461 | 21.86 | 31000 | 0.4309 | 0.3055 |
| 1.1285 | 22.57 | 32000 | 0.4264 | 0.3006 |
| 1.1285 | 23.27 | 33000 | 0.4201 | 0.2880 |
| 1.1135 | 23.98 | 34000 | 0.4131 | 0.2975 |
| 1.1135 | 24.68 | 35000 | 0.4202 | 0.2849 |
| 1.0968 | 25.39 | 36000 | 0.4105 | 0.2888 |
| 1.0968 | 26.09 | 37000 | 0.4210 | 0.2834 |
| 1.087 | 26.8 | 38000 | 0.4123 | 0.2843 |
| 1.087 | 27.5 | 39000 | 0.4216 | 0.2803 |
| 1.0707 | 28.21 | 40000 | 0.4161 | 0.2787 |
| 1.0707 | 28.91 | 41000 | 0.4186 | 0.2740 |
| 1.0575 | 29.62 | 42000 | 0.4118 | 0.2845 |
| 1.0575 | 30.32 | 43000 | 0.4243 | 0.2773 |
| 1.0474 | 31.03 | 44000 | 0.4221 | 0.2707 |
| 1.0474 | 31.73 | 45000 | 0.4138 | 0.2700 |
| 1.0333 | 32.44 | 46000 | 0.4102 | 0.2638 |
| 1.0333 | 33.15 | 47000 | 0.4162 | 0.2650 |
| 1.0191 | 33.85 | 48000 | 0.4155 | 0.2636 |
| 1.0191 | 34.56 | 49000 | 0.4129 | 0.2656 |
| 1.0087 | 35.26 | 50000 | 0.4157 | 0.2632 |
| 1.0087 | 35.97 | 51000 | 0.4090 | 0.2654 |
| 0.9901 | 36.67 | 52000 | 0.4183 | 0.2587 |
| 0.9901 | 37.38 | 53000 | 0.4251 | 0.2648 |
| 0.9795 | 38.08 | 54000 | 0.4229 | 0.2555 |
| 0.9795 | 38.79 | 55000 | 0.4176 | 0.2546 |
| 0.9644 | 39.49 | 56000 | 0.4223 | 0.2513 |
| 0.9644 | 40.2 | 57000 | 0.4244 | 0.2530 |
| 0.9534 | 40.9 | 58000 | 0.4175 | 0.2538 |
| 0.9534 | 41.61 | 59000 | 0.4213 | 0.2505 |
| 0.9397 | 42.31 | 60000 | 0.4275 | 0.2565 |
| 0.9397 | 43.02 | 61000 | 0.4315 | 0.2528 |
| 0.9269 | 43.72 | 62000 | 0.4316 | 0.2501 |
| 0.9269 | 44.43 | 63000 | 0.4247 | 0.2471 |
| 0.9175 | 45.13 | 64000 | 0.4376 | 0.2469 |
| 0.9175 | 45.84 | 65000 | 0.4335 | 0.2450 |
| 0.9026 | 46.54 | 66000 | 0.4336 | 0.2452 |
| 0.9026 | 47.25 | 67000 | 0.4400 | 0.2427 |
| 0.8929 | 47.95 | 68000 | 0.4382 | 0.2429 |
| 0.8929 | 48.66 | 69000 | 0.4361 | 0.2415 |
| 0.8786 | 49.37 | 70000 | 0.4413 | 0.2398 |
| 0.8786 | 50.07 | 71000 | 0.4392 | 0.2415 |
| 0.8714 | 50.78 | 72000 | 0.4345 | 0.2406 |
| 0.8714 | 51.48 | 73000 | 0.4475 | 0.2402 |
| 0.8589 | 52.19 | 74000 | 0.4473 | 0.2374 |
| 0.8589 | 52.89 | 75000 | 0.4457 | 0.2357 |
| 0.8493 | 53.6 | 76000 | 0.4462 | 0.2366 |
| 0.8493 | 54.3 | 77000 | 0.4494 | 0.2356 |
| 0.8395 | 55.01 | 78000 | 0.4472 | 0.2352 |
| 0.8395 | 55.71 | 79000 | 0.4490 | 0.2339 |
| 0.8295 | 56.42 | 80000 | 0.4489 | 0.2318 |
| 0.8295 | 57.12 | 81000 | 0.4469 | 0.2320 |
| 0.8225 | 57.83 | 82000 | 0.4478 | 0.2321 |
| 0.8225 | 58.53 | 83000 | 0.4525 | 0.2326 |
| 0.816 | 59.24 | 84000 | 0.4532 | 0.2316 |
| 0.816 | 59.94 | 85000 | 0.4502 | 0.2318 |
### Framework versions
- Transformers 4.17.0.dev0
- Pytorch 1.10.2+cu102
- Datasets 1.18.2.dev0
- Tokenizers 0.11.0
| [
-0.7530038356781006,
-0.6131445169448853,
0.26590093970298767,
0.1204167902469635,
-0.09301874041557312,
-0.12939301133155823,
-0.025925828143954277,
-0.10508056730031967,
0.6061603426933289,
0.3201198875904083,
-0.6740117073059082,
-0.7086798548698425,
-0.6520911455154419,
-0.2186836451292038,
0.1326678991317749,
0.762310802936554,
0.03294064849615097,
-0.09274528920650482,
-0.04316762462258339,
-0.30770808458328247,
-0.26805999875068665,
-0.03139761835336685,
-0.871342122554779,
-0.10359583050012589,
0.1439792960882187,
0.4779339134693146,
0.7952265739440918,
0.9110904932022095,
0.5194874405860901,
0.45647069811820984,
-0.29802078008651733,
0.1942206472158432,
-0.2703092098236084,
-0.6438344717025757,
0.13073402643203735,
-0.6026169657707214,
-0.4011588394641876,
-0.09218510240316391,
0.7062421441078186,
0.6645856499671936,
-0.19590042531490326,
0.514092206954956,
0.1970948427915573,
1.1382651329040527,
-0.4465596377849579,
0.2795708477497101,
-0.24953246116638184,
0.00046717439545318484,
-0.3570978343486786,
-0.35522279143333435,
0.15311506390571594,
-0.6957365274429321,
0.027010997757315636,
-0.6018544435501099,
0.4463513493537903,
-0.0411379300057888,
1.5258487462997437,
0.27241578698158264,
-0.37407317757606506,
0.01738414354622364,
-0.5149428248405457,
0.8598081469535828,
-0.6284694075584412,
0.40564385056495667,
0.6413950324058533,
0.1597062647342682,
-0.08708693087100983,
-0.7423734068870544,
-0.8235302567481995,
0.4236806035041809,
-0.28264668583869934,
0.366122841835022,
-0.11275561153888702,
-0.5359606146812439,
0.47028306126594543,
0.5119412541389465,
-0.6362965106964111,
-0.22771938145160675,
-0.6506015062332153,
-0.17042648792266846,
0.7850988507270813,
0.3798767924308777,
0.22293411195278168,
-0.6505980491638184,
-0.827388346195221,
-0.22823844850063324,
-0.3697705566883087,
0.946000874042511,
0.507016122341156,
0.18694482743740082,
-0.5193502902984619,
0.44741883873939514,
-0.17746371030807495,
0.5536193251609802,
0.1332167387008667,
-0.3075675368309021,
0.9275216460227966,
-0.6814453601837158,
-0.3628060519695282,
-0.16407984495162964,
0.9969271421432495,
0.6441818475723267,
-0.24912509322166443,
0.2963157892227173,
0.11830832809209824,
0.022518763318657875,
0.10144103318452835,
-0.776285707950592,
-0.17029543220996857,
0.4902889132499695,
-0.46860864758491516,
-0.21575085818767548,
0.050438862293958664,
-0.9798088669776917,
0.07867278158664703,
-0.2940039038658142,
0.21954287588596344,
-0.34416237473487854,
-0.4287617802619934,
0.014881876297295094,
-0.10622172802686691,
0.3811713755130768,
0.4223892390727997,
-1.059775471687317,
0.3615451455116272,
0.3427097499370575,
0.9607724547386169,
0.029039965942502022,
-0.18928632140159607,
0.10386484861373901,
0.36930128931999207,
-0.5723678469657898,
0.7180474400520325,
-0.00538725545629859,
-0.3954584300518036,
-0.31290754675865173,
0.41834598779678345,
-0.3709082007408142,
-0.3520512282848358,
0.7788368463516235,
-0.25855475664138794,
0.17281992733478546,
-0.5940636396408081,
-0.2687565088272095,
-0.19026333093643188,
0.46102744340896606,
-0.5984243154525757,
1.52107572555542,
0.28781694173812866,
-1.0953854322433472,
0.575219452381134,
-0.4695402979850769,
-0.02659383974969387,
-0.092766672372818,
-0.07609182596206665,
-0.9168540835380554,
-0.37369972467422485,
0.44630295038223267,
0.324934184551239,
-0.4770963191986084,
0.12627558410167694,
0.028408361598849297,
-0.20791758596897125,
-0.331402063369751,
-0.2770938277244568,
1.3507177829742432,
0.3245756924152374,
-0.6414509415626526,
0.009073345921933651,
-1.2345290184020996,
0.25760120153427124,
0.2705422341823578,
-0.6815164089202881,
-0.034488048404455185,
-0.29122161865234375,
0.039666660130023956,
0.2310868352651596,
0.39515283703804016,
-0.684354841709137,
0.22845274209976196,
-0.44522589445114136,
0.439287394285202,
0.6735727787017822,
0.2297428548336029,
0.45089098811149597,
-0.6220637559890747,
0.3185683786869049,
0.3930494785308838,
0.4092693328857422,
0.135999858379364,
-0.538374662399292,
-0.8780061602592468,
-0.5501773953437805,
0.023386256769299507,
0.6698874235153198,
-0.31351587176322937,
0.6617313027381897,
-0.16854527592658997,
-0.8621164560317993,
-0.6418140530586243,
0.045746542513370514,
0.3107839524745941,
0.8841215372085571,
0.43557676672935486,
-0.17390942573547363,
-0.5703157782554626,
-1.0467572212219238,
0.11384085565805435,
0.04567859321832657,
0.30500680208206177,
0.6646215319633484,
0.9919648170471191,
-0.2597961723804474,
1.1931132078170776,
-0.6339370012283325,
-0.8004666566848755,
-0.05270736664533615,
-0.20629334449768066,
0.7910453081130981,
0.656348705291748,
0.8859481811523438,
-0.8403825759887695,
-0.8467800617218018,
0.034075018018484116,
-0.9313613772392273,
0.38824284076690674,
-0.13160575926303864,
-0.048293840140104294,
0.1464051753282547,
0.1761457920074463,
-0.6445990800857544,
0.8540383577346802,
0.5598950982093811,
-0.45721444487571716,
0.7611188888549805,
-0.4948648512363434,
0.51945561170578,
-1.2565072774887085,
0.23413589596748352,
-0.00273997918702662,
0.01185833290219307,
-0.2319042980670929,
-0.17235752940177917,
0.025916505604982376,
-0.17331752181053162,
-0.4616573750972748,
0.6510941982269287,
-0.5838779211044312,
0.05096665397286415,
0.10637953877449036,
-0.022885896265506744,
-0.03761674836277962,
0.7643181681632996,
-0.07245083898305893,
1.1201297044754028,
1.0520730018615723,
-0.6783833503723145,
0.29350462555885315,
0.32327747344970703,
-0.671730101108551,
0.6391236782073975,
-0.7140987515449524,
-0.14908592402935028,
-0.08833066374063492,
0.16302791237831116,
-1.374944806098938,
-0.2971797287464142,
0.33810392022132874,
-0.6515286564826965,
0.1681860238313675,
-0.09983394294977188,
-0.2651708424091339,
-1.0453444719314575,
-0.5878846645355225,
-0.017999134957790375,
0.36557459831237793,
-0.42914679646492004,
0.5250038504600525,
0.3400958180427551,
0.10750637948513031,
-0.7083527445793152,
-0.8410792350769043,
-0.09582367539405823,
-0.03608563169836998,
-0.908528745174408,
0.2943238615989685,
-0.1260543316602707,
-0.09253179281949997,
0.05607389286160469,
-0.04252060502767563,
-0.2370513528585434,
0.12651441991329193,
0.4590694308280945,
0.12297174334526062,
-0.23932483792304993,
-0.32749444246292114,
-0.23021650314331055,
-0.34349578619003296,
-0.08987203985452652,
0.02037878707051277,
0.5751138925552368,
-0.34312039613723755,
-0.5254719257354736,
-0.9519473910331726,
-0.02557326853275299,
0.5830187201499939,
-0.43827342987060547,
1.4163272380828857,
0.71551913022995,
-0.3631678819656372,
0.23680493235588074,
-0.4305042326450348,
-0.000807679258286953,
-0.5030564069747925,
0.15723982453346252,
-0.5817561745643616,
-0.6924370527267456,
0.7317801713943481,
-0.21328093111515045,
0.18092021346092224,
0.776938796043396,
0.6332829594612122,
-0.11134277284145355,
0.955926775932312,
0.2146049290895462,
-0.06097881868481636,
0.2247513234615326,
-1.086618423461914,
0.0008352536824531853,
-0.8752506375312805,
-0.7680290937423706,
-0.6474089622497559,
-0.4295977056026459,
-0.5292180180549622,
-0.38671576976776123,
0.5076467990875244,
0.1742788404226303,
-0.6017144918441772,
0.15049484372138977,
-0.8351425528526306,
0.24264006316661835,
0.899933934211731,
0.48970070481300354,
-0.06481634825468063,
-0.14706183969974518,
-0.3372868001461029,
-0.28082555532455444,
-0.538754403591156,
-0.6254626512527466,
1.3188914060592651,
0.24440453946590424,
0.37597131729125977,
0.2196187973022461,
0.9610073566436768,
0.22003738582134247,
-0.15101009607315063,
-0.4672771692276001,
0.2474033385515213,
0.326967716217041,
-0.8383294939994812,
-0.44211697578430176,
-0.16607336699962616,
-1.1790488958358765,
0.5004050731658936,
-0.4202899634838104,
-1.0914088487625122,
0.6679377555847168,
0.23861342668533325,
-0.5077930688858032,
0.7107506394386292,
-0.7138286232948303,
0.8609299659729004,
-0.07997116446495056,
-0.8710649609565735,
-0.12457144260406494,
-0.873958170413971,
0.2915019690990448,
0.1075255274772644,
0.5236654877662659,
-0.1694830060005188,
0.026094608008861542,
0.8083565831184387,
-0.9614071249961853,
0.39924949407577515,
-0.3192417025566101,
0.29783201217651367,
0.6360858082771301,
-0.256401926279068,
0.7981634736061096,
0.16520094871520996,
-0.28768691420555115,
-0.04407508671283722,
0.052463043481111526,
-0.8152642846107483,
-0.22898687422275543,
1.0741972923278809,
-1.335580825805664,
-0.8573050498962402,
-0.5863769054412842,
-0.3699529469013214,
0.12251928448677063,
0.37726229429244995,
0.4367000460624695,
0.5135644674301147,
0.03675774857401848,
0.33102118968963623,
0.7529641389846802,
-0.08575017750263214,
0.6626331806182861,
0.2046179473400116,
0.07317978888750076,
-0.994122326374054,
0.8941189646720886,
0.1041262149810791,
0.2031034231185913,
0.04927627369761467,
0.3051420748233795,
-0.4882737696170807,
-0.4559171497821808,
-0.5001992583274841,
0.250927597284317,
-0.25743335485458374,
-0.3040156662464142,
-0.8749176859855652,
-0.02421775832772255,
-0.8812134265899658,
-0.4719323217868805,
-0.6212669014930725,
-0.21946467459201813,
-0.43934738636016846,
-0.25080132484436035,
0.6427533626556396,
0.665263831615448,
-0.17869941890239716,
0.4545377194881439,
-0.6168434023857117,
0.23346437513828278,
0.12403206527233124,
0.16407577693462372,
0.12002908438444138,
-0.5010299682617188,
-0.341743528842926,
0.06857781112194061,
-0.5231120586395264,
-0.8634428977966309,
0.8649670481681824,
-0.08689066767692566,
0.43463820219039917,
0.6904202699661255,
-0.12618286907672882,
1.1678080558776855,
-0.17444880306720734,
0.9971100687980652,
0.4979027211666107,
-0.7480432987213135,
0.7921203374862671,
-0.4217183291912079,
0.3507411479949951,
0.8158628344535828,
0.6189585328102112,
-0.3463708460330963,
-0.23435728251934052,
-1.0451509952545166,
-1.0268980264663696,
0.9892101883888245,
0.30398887395858765,
-0.027309156954288483,
0.11278330534696579,
0.20275716483592987,
-0.325995534658432,
0.34910106658935547,
-0.8701872229576111,
-1.0659477710723877,
-0.10887453705072403,
0.09108380973339081,
-0.08093807846307755,
-0.17461231350898743,
-0.32835355401039124,
-0.7533514499664307,
0.6732384562492371,
0.38659754395484924,
0.3570742607116699,
0.4378602206707001,
0.2748836278915405,
-0.2662169635295868,
0.21566236019134521,
0.6162322163581848,
0.8997962474822998,
-0.5041190981864929,
0.03942107781767845,
0.19106735289096832,
-0.5709499716758728,
0.23252490162849426,
-0.041572704911231995,
-0.473402738571167,
-0.08103100210428238,
0.2794112265110016,
0.7521440386772156,
0.06035010516643524,
0.15191681683063507,
0.5934168696403503,
0.1751950979232788,
-0.6745429039001465,
-0.6059314012527466,
-0.08788133412599564,
0.2876588702201843,
0.49003106355667114,
0.6261932253837585,
0.4005158841609955,
-0.0602932870388031,
-0.633459210395813,
0.1650676429271698,
0.4854583442211151,
-0.5480813384056091,
0.021548466756939888,
1.1253182888031006,
0.09086935967206955,
-0.3024311661720276,
0.4944755733013153,
-0.10930082947015762,
-0.6198565363883972,
1.0219162702560425,
0.4348298907279968,
0.4255944788455963,
-0.2936568558216095,
0.11909040063619614,
1.2910035848617554,
0.40659838914871216,
0.08990675956010818,
0.6211044788360596,
0.021471574902534485,
-0.30025753378868103,
0.2628757655620575,
-0.8515824675559998,
-0.08715991675853729,
0.31649959087371826,
-0.8420988917350769,
0.46725040674209595,
-0.6130579113960266,
-0.5149528384208679,
-0.15284451842308044,
0.5389139652252197,
-0.9427298307418823,
0.5259904265403748,
-0.09932706505060196,
1.1618702411651611,
-1.0935555696487427,
0.7579595446586609,
0.7521214485168457,
-0.7356156706809998,
-1.2670537233352661,
-0.4808199107646942,
-0.005347659345716238,
-0.8257818818092346,
0.7127071619033813,
-0.007683314848691225,
0.17200537025928497,
0.17292988300323486,
-0.646417498588562,
-1.3189294338226318,
1.5722453594207764,
-0.12647968530654907,
-0.6418163776397705,
0.45897307991981506,
0.08571627736091614,
0.5422266721725464,
0.09790018200874329,
0.4836070239543915,
0.5473710894584656,
0.6849024891853333,
0.3056538701057434,
-1.0099951028823853,
0.12815824151039124,
-0.47498586773872375,
-0.033987268805503845,
0.4381512701511383,
-1.1765681505203247,
1.291473627090454,
-0.44386953115463257,
0.0838249996304512,
-0.03496256843209267,
0.7159874439239502,
0.4498395323753357,
0.2959364950656891,
0.34347012639045715,
1.3139716386795044,
0.9586374759674072,
-0.2775757610797882,
1.3004337549209595,
-0.4181520938873291,
0.8168334364891052,
0.7954822778701782,
0.21369048953056335,
0.8692031502723694,
0.5526817440986633,
-0.8486572504043579,
0.37993091344833374,
0.9303712844848633,
-0.21613392233848572,
0.6696590781211853,
-0.07623963803052902,
-0.5192341208457947,
-0.10765739530324936,
-0.029928963631391525,
-0.8730413317680359,
0.12649115920066833,
0.15679465234279633,
-0.4381340444087982,
-0.2065078765153885,
-0.09559307992458344,
0.11470211297273636,
0.085896335542202,
-0.5406209826469421,
0.5093652606010437,
-0.29534804821014404,
-0.29909855127334595,
0.5962004065513611,
-0.19700053334236145,
0.6921601891517639,
-0.7020935416221619,
0.07780539989471436,
-0.024700211361050606,
0.5599653124809265,
-0.6796728372573853,
-1.1104459762573242,
0.2353234738111496,
-0.3235587179660797,
-0.3958493173122406,
0.010037378408014774,
0.43733686208724976,
-0.12851445376873016,
-0.6360587477684021,
0.15973401069641113,
0.32720139622688293,
0.21612060070037842,
0.25631287693977356,
-0.9977970719337463,
-0.23568540811538696,
0.2884029150009155,
-0.7568758726119995,
0.27736350893974304,
0.5513430237770081,
0.05588563531637192,
0.45877623558044434,
0.981238067150116,
0.3311111629009247,
0.2911207377910614,
-0.35389813780784607,
1.1532437801361084,
-0.7976250648498535,
-0.579127311706543,
-0.873483419418335,
0.3567940890789032,
-0.20359580218791962,
-0.6516371369361877,
1.0609710216522217,
1.003550410270691,
0.6683523654937744,
-0.12246273458003998,
0.7189571261405945,
-0.5192354917526245,
0.6366675496101379,
-0.1896805465221405,
0.7080065608024597,
-0.9175166487693787,
-0.2607269883155823,
-0.2153870016336441,
-0.7048060297966003,
-0.298237144947052,
0.8621102571487427,
-0.6837670803070068,
-0.013722534291446209,
0.5364333987236023,
1.0314098596572876,
0.19553232192993164,
-0.028364727273583412,
0.0614808052778244,
-0.0036619685124605894,
-0.04865436255931854,
0.6936522722244263,
0.40663009881973267,
-0.732370138168335,
0.5274957418441772,
-0.7667111754417419,
-0.13702704012393951,
-0.2394232451915741,
-0.641028881072998,
-0.6989639401435852,
-0.5657193064689636,
-0.5218028426170349,
-0.48655804991722107,
-0.21111257374286652,
1.0381556749343872,
0.7628823518753052,
-0.8279263377189636,
-0.44145846366882324,
-0.06201578676700592,
0.0921526849269867,
-0.3187795877456665,
-0.2200620472431183,
1.2521767616271973,
-0.02047107368707657,
-0.8824329972267151,
-0.12540051341056824,
0.23560628294944763,
0.22421559691429138,
0.08217484503984451,
-0.19026720523834229,
-0.5460870265960693,
-0.1258779615163803,
0.4570040702819824,
0.45860186219215393,
-0.6396925449371338,
-0.03344930708408356,
-0.1619991511106491,
-0.40181612968444824,
0.5849880576133728,
0.1920814961194992,
-0.6236366629600525,
0.4515632390975952,
0.4558073878288269,
0.47694647312164307,
0.8515252470970154,
0.2105289250612259,
-0.07900694757699966,
-0.4111510217189789,
0.3229263722896576,
-0.19627712666988373,
0.36185115575790405,
0.08596044778823853,
-0.5157208442687988,
0.7663522958755493,
0.6827940344810486,
-0.7171499729156494,
-0.8236418962478638,
-0.3790837526321411,
-1.4012155532836914,
0.07684455066919327,
1.065861701965332,
-0.1581597477197647,
-0.7651411890983582,
-0.0028042318299412727,
-0.39672133326530457,
0.26729312539100647,
-0.5645366907119751,
0.43826818466186523,
0.5600428581237793,
-0.39582446217536926,
-0.07381831109523773,
-0.9467672109603882,
0.5124354362487793,
0.10350413620471954,
-0.8392548561096191,
-0.3679521977901459,
0.3276757299900055,
0.46267566084861755,
0.3895629644393921,
0.955137312412262,
-0.08520301431417465,
0.23449154198169708,
0.3871740996837616,
0.26724135875701904,
-0.08718404173851013,
-0.017675520852208138,
-0.033244483172893524,
0.3017982840538025,
-0.06214846670627594,
-0.6877687573432922
] |
mosaicml/mpt-7b | mosaicml | "2023-10-30T21:53:24Z" | 117,738 | 1,105 | transformers | [
"transformers",
"pytorch",
"mpt",
"text-generation",
"Composer",
"MosaicML",
"llm-foundry",
"StreamingDatasets",
"custom_code",
"dataset:mc4",
"dataset:c4",
"dataset:togethercomputer/RedPajama-Data-1T",
"dataset:bigcode/the-stack",
"dataset:allenai/s2orc",
"arxiv:2108.12409",
"arxiv:2302.13971",
"arxiv:2205.14135",
"arxiv:2010.04245",
"arxiv:1909.08053",
"arxiv:2302.06675",
"license:apache-2.0",
"has_space",
"text-generation-inference",
"region:us"
] | text-generation | "2023-05-05T00:48:02Z" | ---
license: apache-2.0
tags:
- Composer
- MosaicML
- llm-foundry
- StreamingDatasets
datasets:
- mc4
- c4
- togethercomputer/RedPajama-Data-1T
- bigcode/the-stack
- allenai/s2orc
inference: false
---
# MPT-7B
MPT-7B is a decoder-style transformer pretrained from scratch on 1T tokens of English text and code.
This model was trained by [MosaicML](https://www.mosaicml.com).
MPT-7B is part of the family of MosaicPretrainedTransformer (MPT) models, which use a modified transformer architecture optimized for efficient training and inference.
These architectural changes include performance-optimized layer implementations and the elimination of context length limits by replacing
positional embeddings with Attention with Linear Biases ([ALiBi](https://arxiv.org/abs/2108.12409)).
Thanks to these modifications, MPT models can be trained with high throughput efficiency and stable convergence.
MPT models can also be served efficiently with both standard HuggingFace pipelines and NVIDIA's [FasterTransformer](https://github.com/NVIDIA/FasterTransformer).
This model uses the MosaicML LLM codebase, which can be found in the [llm-foundry repository](https://github.com/mosaicml/llm-foundry). It was trained by MosaicML’s NLP team on the [MosaicML platform](https://www.mosaicml.com/training) for LLM pretraining, finetuning, and inference.
### How is this model different?
MPT-7B is
* **Licensed for the possibility of commercial use** (unlike [LLaMA](https://arxiv.org/abs/2302.13971)).
* **Trained on a large amount of data** (1T tokens like [LLaMA](https://arxiv.org/abs/2302.13971) vs. 300B for [Pythia](https://github.com/EleutherAI/pythia), 300B for [OpenLLaMA](https://github.com/openlm-research/open_llama), and 800B for [StableLM](https://github.com/Stability-AI/StableLM)).
* **Prepared to handle extremely long inputs** thanks to [ALiBi](https://arxiv.org/abs/2108.12409) (we finetuned [MPT-7B-StoryWriter-65k+](https://huggingface.co/mosaicml/mpt-7b-storywriter) on up to 65k inputs and can handle up to 84k vs. 2k-4k for other open source models).
* **Capable of fast training and inference** (via [FlashAttention](https://arxiv.org/pdf/2205.14135.pdf) and [FasterTransformer](https://github.com/NVIDIA/FasterTransformer))
* **Equipped with highly efficient open-source training code** via the [llm-foundry repository](https://github.com/mosaicml/llm-foundry)
### Models finetuned off MPT-7B:
The following models are finetuned on MPT-7B:
* [MPT-7B-StoryWriter-65k+](https://huggingface.co/mosaicml/mpt-7b-storywriter): a model designed to read and write fictional stories with super long context lengths.
Built by finetuning MPT-7B with a context length of 65k tokens on a filtered fiction subset of the [books3 dataset](https://huggingface.co/datasets/the_pile_books3).
At inference time, thanks to [ALiBi](https://arxiv.org/abs/2108.12409), MPT-7B-StoryWriter-65k+ can extrapolate even beyond 65k tokens.
We demonstrate generations as long as 80k tokens on a single A100-80GB GPU in our [blogpost](www.mosaicml.com/blog/mpt-7b).
* License: Apache 2.0
* [MPT-7B-Instruct](https://huggingface.co/mosaicml/mpt-7b-instruct): a model for short-form instruction following.
Built by finetuning MPT-7B on a [dataset](https://huggingface.co/datasets/mosaicml/dolly_hhrlhf) we also release, derived from the [Databricks Dolly-15k](https://huggingface.co/datasets/databricks/databricks-dolly-15k) and the [Anthropic Helpful and Harmless (HH-RLHF)](https://huggingface.co/datasets/Anthropic/hh-rlhf) datasets.
* License: _CC-By-SA-3.0_
* [MPT-7B-Chat](https://huggingface.co/mosaicml/mpt-7b-chat): a chatbot-like model for dialogue generation.
Built by finetuning MPT-7B on the [ShareGPT-Vicuna](https://huggingface.co/datasets/jeffwan/sharegpt_vicuna), [HC3](https://huggingface.co/datasets/Hello-SimpleAI/HC3),
[Alpaca](https://huggingface.co/datasets/tatsu-lab/alpaca), [HH-RLHF](https://huggingface.co/datasets/Anthropic/hh-rlhf), and [Evol-Instruct](https://huggingface.co/datasets/victor123/evol_instruct_70k) datasets.
* License: _CC-By-NC-SA-4.0_
## Model Date
May 5, 2023
## Model License
Apache-2.0
## Documentation
* [Blog post: Introducing MPT-7B: A New Standard for Open-Source, Commercially Usable LLMs](https://www.mosaicml.com/blog/mpt-7b)
* [Codebase (mosaicml/llm-foundry repo)](https://github.com/mosaicml/llm-foundry/)
* Questions: Feel free to contact us via the [MosaicML Community Slack](https://mosaicml.me/slack)!
## How to Use
This model is best used with the MosaicML [llm-foundry repository](https://github.com/mosaicml/llm-foundry) for training and finetuning.
```python
import transformers
model = transformers.AutoModelForCausalLM.from_pretrained(
'mosaicml/mpt-7b',
trust_remote_code=True
)
```
Note: This model requires that `trust_remote_code=True` be passed to the `from_pretrained` method.
This is because we use a custom `MPT` model architecture that is not yet part of the Hugging Face `transformers` package.
`MPT` includes options for many training efficiency features such as [FlashAttention](https://arxiv.org/pdf/2205.14135.pdf), [ALiBi](https://arxiv.org/abs/2108.12409), [QK LayerNorm](https://arxiv.org/abs/2010.04245), and more.
To use the optimized [triton implementation](https://github.com/openai/triton) of FlashAttention, you can load the model on GPU (`cuda:0`) with `attn_impl='triton'` and with `bfloat16` precision:
```python
import torch
import transformers
name = 'mosaicml/mpt-7b'
config = transformers.AutoConfig.from_pretrained(name, trust_remote_code=True)
config.attn_config['attn_impl'] = 'triton'
config.init_device = 'cuda:0' # For fast initialization directly on GPU!
model = transformers.AutoModelForCausalLM.from_pretrained(
name,
config=config,
torch_dtype=torch.bfloat16, # Load model weights in bfloat16
trust_remote_code=True
)
```
Although the model was trained with a sequence length of 2048, ALiBi enables users to increase the maximum sequence length during finetuning and/or inference. For example:
```python
import transformers
name = 'mosaicml/mpt-7b'
config = transformers.AutoConfig.from_pretrained(name, trust_remote_code=True)
config.max_seq_len = 4096 # (input + output) tokens can now be up to 4096
model = transformers.AutoModelForCausalLM.from_pretrained(
name,
config=config,
trust_remote_code=True
)
```
This model was trained with the [EleutherAI/gpt-neox-20b](https://huggingface.co/EleutherAI/gpt-neox-20b) tokenizer.
```python
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained('EleutherAI/gpt-neox-20b')
```
The model can then be used, for example, within a text-generation pipeline.
Note: when running Torch modules in lower precision, it is best practice to use the [torch.autocast context manager](https://pytorch.org/docs/stable/amp.html).
```python
from transformers import pipeline
pipe = pipeline('text-generation', model=model, tokenizer=tokenizer, device='cuda:0')
with torch.autocast('cuda', dtype=torch.bfloat16):
print(
pipe('Here is a recipe for vegan banana bread:\n',
max_new_tokens=100,
do_sample=True,
use_cache=True))
```
## Model Description
The architecture is a modification of a standard decoder-only transformer.
The model has been modified from a standard transformer in the following ways:
* It uses [FlashAttention](https://arxiv.org/pdf/2205.14135.pdf)
* It uses [ALiBi (Attention with Linear Biases)](https://arxiv.org/abs/2108.12409) and does not use positional embeddings
* It does not use biases
| Hyperparameter | Value |
|----------------|-------|
|n_parameters | 6.7B |
|n_layers | 32 |
| n_heads | 32 |
| d_model | 4096 |
| vocab size | 50432 |
| sequence length | 2048 |
## Training Data
### Streaming Datasets
Data was formatted using the MosaicML [StreamingDataset](https://github.com/mosaicml/streaming) library to host our data in object storage and efficiently stream it to our compute cluster during training.
StreamingDataset obviates the need to download the whole dataset before starting training, and allows instant resumption of training from any point in the dataset.
### Data Mix
The model was trained for 1T tokens (with batch size 1760 and sequence length 2048). It was trained on the following data mix:
| Data Source | Number of Tokens in Source | Proportion | Effective Number of Tokens | Epochs |
|-------------|----------------------------|------------|----------------------------|--------|
| mC4 3.1.0 - English | 417.99 B | 0.33 | 330 B | 0.14 |
| C4 - English - SemDedup 80% | 100.42 B | 0.299 | 299 B | 2.98 |
| RedPajama - CommonCrawl | 878.45 B | 0.1 | 100 B | 0.11 |
| The Stack - Selected Languages | 463.78 B | 0.1 | 100 B | 0.22 |
| RedPajama - Wikipedia - En | 4.87 B | 0.04 | 40 B | 8.21 |
| The Stack - Markdown | 107.07 B | 0.035 | 35 B | 0.33 |
| S2ORC | 48.85 B | 0.033 | 33 B | 0.68 |
| RedPajama - Books | 26.02 B | 0.03 | 30B | 1.15 |
| RedPajama - arXiv | 28.10 B | 0.019 | 19 B | 0.68 |
| RedPajama - StackExchange | 20.54 B | 0.014 | 14 B |0.68 |
Samples for each batch were selected from one of the datasets with the probability specified above.
The examples were shuffled within each dataset, and each example was constructed from as many sequences from that dataset as were necessary to fill the 2048 sequence length.
The data was tokenized using the [EleutherAI/gpt-neox-20b](https://huggingface.co/EleutherAI/gpt-neox-20b) tokenizer. This BPE tokenizer has a number of desirable characteristics,
most of which are relevant for tokenizing code:
(1) It was trained on a diverse mix of data that includes code (The Pile)
(2) It applies consistent space delimitation, unlike the GPT2 tokenizer which tokenizes inconsistently depending on the presence of prefix spaces
(3) It contains tokens for repeated space characters, which allows superior compression of text with large amounts of repeated space characters.
The model vocabulary size of 50432 was set to be a multiple of 128 (as in [MEGATRON-LM](https://arxiv.org/abs/1909.08053)), model flop utilization (MFU) increased by up to four percentage points.
### Training Configuration
This model was trained on 440 A100-40GBs for about 9.5 days using the [MosaicML Platform](https://www.mosaicml.com/platform).
The model was trained with sharded data parallelism using [FSDP](https://pytorch.org/docs/stable/fsdp.html) and used the [LION](https://arxiv.org/abs/2302.06675) optimizer.
## Limitations and Biases
_The following language is modified from [EleutherAI's GPT-NeoX-20B](https://huggingface.co/EleutherAI/gpt-neox-20b)_
MPT-7B (Base) is **not** intended for deployment without finetuning.
It should not be used for human-facing interactions without further guardrails and user consent.
MPT-7B can produce factually incorrect output, and should not be relied on to produce factually accurate information.
MPT-7B was trained on various public datasets.
While great efforts have been taken to clean the pretraining data, it is possible that this model could generate lewd, biased or otherwise offensive outputs.
## MosaicML Platform
If you're interested in [training](https://www.mosaicml.com/training) and [deploying](https://www.mosaicml.com/inference) your own MPT or LLMs on the MosaicML Platform, [sign up here](https://forms.mosaicml.com/demo?utm_source=huggingface&utm_medium=referral&utm_campaign=mpt-7b).
## Disclaimer
The license on this model does not constitute legal advice. We are not responsible for the actions of third parties who use this model. Please cosult an attorney before using this model for commercial purposes.
## Citation
Please cite this model using the following format:
```
@online{MosaicML2023Introducing,
author = {MosaicML NLP Team},
title = {Introducing MPT-7B: A New Standard for Open-Source,
Commercially Usable LLMs},
year = {2023},
url = {www.mosaicml.com/blog/mpt-7b},
note = {Accessed: 2023-05-05},
urldate = {2023-05-05}
}
```
| [
-0.5123433470726013,
-0.4999234974384308,
0.2896285355091095,
0.2899267077445984,
-0.4048325717449188,
-0.0536709800362587,
-0.057079389691352844,
-0.35351309180259705,
-0.01892898418009281,
0.3729776442050934,
-0.5347328186035156,
-0.542227029800415,
-0.6096134781837463,
0.06220069155097008,
-0.2690449059009552,
0.934895932674408,
-0.015683041885495186,
-0.09204825013875961,
-0.03704075142741203,
-0.15070977807044983,
-0.17842018604278564,
-0.41440221667289734,
-0.5584033131599426,
-0.3392401933670044,
0.5992076992988586,
0.09917940199375153,
0.8234812617301941,
0.9337900876998901,
0.4234011173248291,
0.31265637278556824,
-0.22319290041923523,
0.21792751550674438,
-0.46983590722084045,
-0.30293095111846924,
0.14405234158039093,
-0.35451480746269226,
-0.4677266478538513,
0.13330958783626556,
0.47796738147735596,
0.32401230931282043,
-0.07767951488494873,
0.4212416708469391,
-0.01887318305671215,
0.35862302780151367,
-0.4339415729045868,
0.2749377489089966,
-0.380787193775177,
0.17676497995853424,
-0.16267642378807068,
0.004192656837403774,
-0.5360334515571594,
-0.35037025809288025,
0.07330628484487534,
-0.5765140056610107,
0.36959511041641235,
0.034268204122781754,
0.8795806169509888,
0.3265969157218933,
-0.3689473271369934,
0.003496413817629218,
-0.5176178216934204,
0.6682232618331909,
-0.7880889773368835,
0.3239959180355072,
0.24596311151981354,
0.2489442527294159,
-0.030162179842591286,
-1.016352891921997,
-0.7399628162384033,
-0.2030160278081894,
-0.11338704824447632,
0.3751682937145233,
-0.16796526312828064,
0.018513556569814682,
0.49972718954086304,
0.5207337141036987,
-0.5943867564201355,
-0.0356907993555069,
-0.4599264860153198,
-0.14239434897899628,
0.5287802219390869,
0.19297540187835693,
0.26829347014427185,
-0.41173991560935974,
-0.507811963558197,
-0.4245433211326599,
-0.7004371881484985,
0.04353265464305878,
0.30004072189331055,
-0.056867703795433044,
-0.46030813455581665,
0.5660068392753601,
-0.015872454270720482,
0.5668179392814636,
0.12612304091453552,
-0.13895392417907715,
0.35139647126197815,
-0.2741793990135193,
-0.2906961739063263,
-0.04403792694211006,
0.9638225436210632,
0.33812054991722107,
-0.03791966289281845,
-0.01235766988247633,
-0.0350615419447422,
-0.01460465881973505,
0.0432002916932106,
-0.9527559280395508,
-0.24407832324504852,
0.2208949774503708,
-0.4911082088947296,
-0.18238915503025055,
-0.06373761594295502,
-0.6077759265899658,
-0.3859144151210785,
-0.22575800120830536,
0.5979852080345154,
-0.7075421810150146,
-0.2557612359523773,
0.05087274685502052,
-0.14051546156406403,
0.42681509256362915,
0.22520878911018372,
-0.8568136692047119,
-0.032930273562669754,
0.42853760719299316,
0.9872019290924072,
-0.1480935961008072,
-0.4946598410606384,
-0.12117104977369308,
-0.009562605060636997,
-0.035159919410943985,
0.5908555388450623,
-0.16851010918617249,
-0.24704137444496155,
-0.32277536392211914,
0.16001684963703156,
-0.28161510825157166,
-0.42778703570365906,
0.35871362686157227,
-0.3227246403694153,
0.48489123582839966,
-0.15408165752887726,
-0.37173548340797424,
-0.29426109790802,
0.1194692999124527,
-0.6352199912071228,
1.035670280456543,
0.4230509102344513,
-0.8237784504890442,
0.29090598225593567,
-0.7198712825775146,
-0.13872307538986206,
-0.1185796931385994,
0.1097310483455658,
-0.7219383716583252,
-0.08350951969623566,
0.3866603672504425,
0.48521947860717773,
-0.46728307008743286,
0.2806479334831238,
-0.21631953120231628,
-0.5159888863563538,
0.07770467549562454,
-0.590369462966919,
0.9738928079605103,
0.34235769510269165,
-0.608791172504425,
0.13275623321533203,
-0.8174156546592712,
-0.20262743532657623,
0.24959935247898102,
-0.410148948431015,
0.43376851081848145,
-0.23833833634853363,
0.0063896579667925835,
0.24286042153835297,
0.09573672711849213,
-0.6207616329193115,
0.2093370109796524,
-0.3705783188343048,
0.5962949991226196,
0.6762656569480896,
-0.20062914490699768,
0.3050636351108551,
-0.5639557242393494,
0.43552878499031067,
0.19347818195819855,
0.433084636926651,
-0.3225144147872925,
-0.6249067187309265,
-0.9276149868965149,
-0.37746497988700867,
0.32697737216949463,
0.46121183037757874,
-0.9272593259811401,
0.3620931804180145,
-0.2500046491622925,
-0.7836900353431702,
-0.7081546783447266,
-0.09605677425861359,
0.4119890630245209,
0.505696177482605,
0.5992255210876465,
-0.33024469017982483,
-0.5982597470283508,
-0.7720743417739868,
0.026134908199310303,
-0.014086322858929634,
-0.05369606241583824,
0.2074718177318573,
0.48694685101509094,
-0.303220272064209,
0.9364617466926575,
-0.25140076875686646,
0.04757148399949074,
-0.3523271083831787,
0.13408778607845306,
0.4328993260860443,
0.6339106559753418,
0.5616342425346375,
-0.7118568420410156,
-0.5845970511436462,
-0.11285080015659332,
-0.7012383341789246,
0.07460462301969528,
-0.14696116745471954,
-0.1363193690776825,
0.267056405544281,
0.16819532215595245,
-0.9564437866210938,
0.5099672079086304,
0.6050311923027039,
-0.40913131833076477,
0.5189918279647827,
-0.05412200093269348,
0.053640592843294144,
-1.3474785089492798,
0.04897640645503998,
-0.11713732033967972,
-0.20374499261379242,
-0.493611603975296,
-0.19613128900527954,
0.08675436675548553,
-0.030222482979297638,
-0.836628794670105,
0.5084511041641235,
-0.39606136083602905,
0.018520034849643707,
-0.10762294381856918,
-0.24802155792713165,
-0.04218443110585213,
0.7940986752510071,
0.207289457321167,
0.7768936157226562,
0.43313026428222656,
-0.4150364398956299,
0.5016365647315979,
0.39542892575263977,
-0.3442571759223938,
0.16772767901420593,
-0.5797857046127319,
0.1732344776391983,
-0.036648716777563095,
0.34553056955337524,
-0.7494522929191589,
-0.19110560417175293,
0.351862370967865,
-0.5123370289802551,
0.2572033703327179,
-0.24270085990428925,
-0.5405819416046143,
-0.6160715818405151,
-0.22824051976203918,
0.4152853190898895,
0.7596941590309143,
-0.8578619956970215,
0.715583860874176,
0.024856826290488243,
0.13290183246135712,
-0.7144961357116699,
-0.6679821610450745,
-0.06409415602684021,
-0.3388386070728302,
-0.7967982888221741,
0.3222947120666504,
-0.09978581964969635,
0.19174888730049133,
-0.1767212152481079,
-0.02570488676428795,
0.17037716507911682,
-0.10645800083875656,
0.43371957540512085,
0.39926251769065857,
-0.2933928370475769,
-0.2216048389673233,
-0.05755007639527321,
-0.23154056072235107,
-0.061149824410676956,
-0.19117221236228943,
0.8964629173278809,
-0.32309961318969727,
-0.24768942594528198,
-0.5394079685211182,
0.04937689006328583,
0.5777963995933533,
-0.12266132235527039,
1.0071704387664795,
1.0282331705093384,
-0.10097172111272812,
0.05736547335982323,
-0.7052463889122009,
-0.11778713762760162,
-0.5067113637924194,
0.27780860662460327,
-0.18208283185958862,
-0.7894811034202576,
0.6236059665679932,
0.1843191683292389,
0.03297610208392143,
0.6770320534706116,
0.8171608448028564,
0.03880709037184715,
0.9141544699668884,
0.4137125313282013,
0.18927863240242004,
0.6116968989372253,
-0.6271151304244995,
-0.012930677272379398,
-0.900119423866272,
-0.30271458625793457,
-0.1214778795838356,
-0.23071171343326569,
-0.6464248895645142,
-0.56951904296875,
0.2834470868110657,
-0.08723150193691254,
-0.6258087158203125,
0.6448326110839844,
-0.627479076385498,
0.44048357009887695,
0.8547275066375732,
0.2578110098838806,
0.12903107702732086,
-0.09119216352701187,
-0.20508776605129242,
0.17634983360767365,
-0.8792168498039246,
-0.4656153917312622,
1.1686296463012695,
0.4010324478149414,
0.5595350861549377,
0.0011619038414210081,
0.6617105603218079,
-0.04450100660324097,
0.5720866322517395,
-0.3973470628261566,
0.43173304200172424,
0.07216256856918335,
-0.6409786939620972,
-0.046951428055763245,
-0.5548409223556519,
-0.8305803537368774,
0.35227540135383606,
-0.2254311591386795,
-0.6943841576576233,
0.4296981692314148,
0.1963440626859665,
-0.5218547582626343,
0.57323157787323,
-0.9210050106048584,
1.0081617832183838,
-0.1202608048915863,
-0.5213431715965271,
0.1830260008573532,
-0.8255622386932373,
0.372573584318161,
0.03895476832985878,
-0.07579441368579865,
-0.1000429317355156,
0.26935282349586487,
0.7098519206047058,
-0.43482643365859985,
0.8151943683624268,
-0.17894120514392853,
0.20506025850772858,
0.46990105509757996,
-0.07631953060626984,
0.38913649320602417,
0.020608996972441673,
-0.07466824352741241,
0.2768310606479645,
0.20303815603256226,
-0.3733827471733093,
-0.2802911400794983,
0.48807209730148315,
-1.1051727533340454,
-0.5482369661331177,
-0.48634859919548035,
-0.684578001499176,
0.012428163550794125,
0.13707749545574188,
0.6644020080566406,
0.38024675846099854,
0.05730541795492172,
0.3965524733066559,
0.5589868426322937,
-0.5144009590148926,
0.7329901456832886,
0.22820165753364563,
-0.004522417206317186,
-0.5215592980384827,
0.8328762054443359,
-0.04004950821399689,
0.3558645248413086,
0.1816188097000122,
0.14305905997753143,
-0.33919328451156616,
-0.46109986305236816,
-0.5697253942489624,
0.3244403004646301,
-0.5801737904548645,
-0.43129920959472656,
-0.6694388389587402,
-0.46118420362472534,
-0.45922717452049255,
0.02091899886727333,
-0.5490979552268982,
-0.41901925206184387,
-0.45794376730918884,
-0.06584899127483368,
0.3722738027572632,
0.5063113570213318,
-0.10327394306659698,
0.6746499538421631,
-0.8309169411659241,
0.2793468236923218,
0.22630997002124786,
0.3600780665874481,
0.008692670613527298,
-0.6587865948677063,
-0.29592594504356384,
0.10399093478918076,
-0.6514909267425537,
-0.7121871113777161,
0.6236311793327332,
-0.005151055287569761,
0.383091002702713,
0.2103385478258133,
-0.11366914212703705,
0.584279477596283,
-0.3771775960922241,
0.930139422416687,
0.34890252351760864,
-0.835650622844696,
0.21045322716236115,
-0.4803096652030945,
0.46194276213645935,
0.3119027316570282,
0.4159177243709564,
-0.497606098651886,
-0.13913540542125702,
-0.7126299738883972,
-0.7399351596832275,
0.9792753458023071,
0.5248924493789673,
0.06803939491510391,
0.0010352993849664927,
0.36923524737358093,
0.15252141654491425,
0.1330617517232895,
-1.1348928213119507,
-0.21543647348880768,
-0.572580099105835,
-0.4032529294490814,
-0.0959022119641304,
-0.1671145111322403,
-0.06042733043432236,
-0.5292666554450989,
0.6891745924949646,
-0.007202767767012119,
0.6143538951873779,
0.2797195315361023,
-0.3010595142841339,
0.014097295701503754,
-0.015963638201355934,
0.4721205532550812,
0.6130856871604919,
-0.28412359952926636,
0.019968902692198753,
0.23629061877727509,
-0.6879323720932007,
0.0710020437836647,
0.31244000792503357,
-0.12233041971921921,
-0.2086530327796936,
0.34279850125312805,
1.072712779045105,
-0.06630974262952805,
-0.39111652970314026,
0.4547460973262787,
-0.15568488836288452,
-0.23214730620384216,
-0.17722643911838531,
0.17852947115898132,
0.3548838496208191,
0.48810696601867676,
0.15508487820625305,
-0.005261455196887255,
-0.1596481204032898,
-0.48548823595046997,
0.09128473699092865,
0.0949293002486229,
-0.18728841841220856,
-0.28778594732284546,
0.8568001389503479,
0.04434675723314285,
-0.1868271380662918,
0.768393337726593,
-0.09160733222961426,
-0.44200199842453003,
0.7356201410293579,
0.6544138193130493,
0.7236257195472717,
-0.24321670830249786,
0.25793516635894775,
0.4084857702255249,
0.30196675658226013,
-0.11689798533916473,
-0.038633499294519424,
-0.1163366287946701,
-0.6781346797943115,
-0.4003216624259949,
-0.8494343161582947,
-0.3158496618270874,
-0.008781980723142624,
-0.3865339457988739,
0.32514578104019165,
-0.3711049556732178,
-0.1989491879940033,
-0.1684904843568802,
0.019088560715317726,
-0.8094053268432617,
0.15874414145946503,
0.37958061695098877,
0.8821340203285217,
-0.6332109570503235,
0.9049095511436462,
0.29738667607307434,
-0.521286129951477,
-0.8880849480628967,
-0.42700764536857605,
-0.10521341115236282,
-0.9050379395484924,
0.2839600145816803,
0.3370673358440399,
0.19412894546985626,
0.1272352933883667,
-0.6309293508529663,
-0.9109481573104858,
1.5901284217834473,
0.5865446329116821,
-0.4433412551879883,
-0.19405081868171692,
0.4638928472995758,
0.4732086658477783,
-0.39798590540885925,
0.5543082356452942,
0.7399202585220337,
0.3825979232788086,
0.39953455328941345,
-0.8312731385231018,
0.096230648458004,
-0.31288373470306396,
-0.0015298213111236691,
0.019026104360818863,
-0.8779839873313904,
1.0411397218704224,
-0.13017858564853668,
-0.10241714864969254,
0.24451179802417755,
0.6349467039108276,
0.3729363977909088,
0.3112468421459198,
0.33826687932014465,
0.7767773866653442,
0.47603264451026917,
-0.33916008472442627,
1.284588098526001,
-0.27061837911605835,
0.5592577457427979,
0.8672525882720947,
0.2514256238937378,
0.4834689497947693,
0.2813791036605835,
-0.12053511291742325,
0.4249633252620697,
0.9535003900527954,
-0.2772127091884613,
0.3667087256908417,
-0.014631344936788082,
-0.20233221352100372,
-0.21649958193302155,
0.13749350607395172,
-0.5259790420532227,
0.3261362314224243,
0.16158199310302734,
-0.5536060333251953,
-0.08227581530809402,
0.15430212020874023,
0.09489807486534119,
-0.43151625990867615,
-0.18601347506046295,
0.5804145336151123,
0.19644133746623993,
-0.590360701084137,
0.6981334090232849,
-0.10126449912786484,
0.6889969706535339,
-0.5072214603424072,
0.12966886162757874,
-0.33120471239089966,
0.19647099077701569,
-0.23875971138477325,
-0.6445114016532898,
0.17777100205421448,
-0.1028771921992302,
0.03195042908191681,
-0.20833717286586761,
0.38331669569015503,
-0.34598541259765625,
-0.4589571952819824,
0.15568387508392334,
0.29813292622566223,
0.08906139433383942,
-0.09388191998004913,
-0.7667603492736816,
0.11780396103858948,
0.014628269709646702,
-0.5810801386833191,
0.20487698912620544,
0.1967550367116928,
0.21286402642726898,
0.6215029954910278,
0.720603883266449,
-0.1253267228603363,
0.3048543334007263,
-0.10506889224052429,
0.9429764151573181,
-0.7658605575561523,
-0.29094481468200684,
-0.8703757524490356,
0.6721161007881165,
0.02274206466972828,
-0.3631937503814697,
0.6971504092216492,
0.6128814220428467,
0.7806208729743958,
-0.08072452992200851,
0.4450376629829407,
-0.12283356487751007,
0.22882647812366486,
-0.4522762894630432,
0.7816564440727234,
-0.3946457505226135,
0.1792294979095459,
-0.23106911778450012,
-1.2384434938430786,
-0.3564949631690979,
0.5457443594932556,
-0.38186460733413696,
0.17976927757263184,
0.688431978225708,
0.7982837557792664,
-0.24107936024665833,
0.16567756235599518,
0.1920933723449707,
0.3142905831336975,
0.35039085149765015,
0.7449142932891846,
0.888343870639801,
-0.5910762548446655,
0.6464331746101379,
-0.48694702982902527,
-0.07978960871696472,
-0.03735272213816643,
-0.7399645447731018,
-0.9624717831611633,
-0.4936519265174866,
-0.17429392039775848,
-0.4597194194793701,
-0.0713728666305542,
0.9934911727905273,
0.7997786998748779,
-0.5804542303085327,
-0.19906285405158997,
-0.025302577763795853,
-0.00047965539852157235,
-0.02005750685930252,
-0.1916501671075821,
0.5891069769859314,
0.049644697457551956,
-0.7622054219245911,
0.11447257548570633,
0.10870634019374847,
0.3025858998298645,
-0.08071073144674301,
-0.0965556651353836,
-0.23803499341011047,
0.054325323551893234,
0.6022348999977112,
0.2362407147884369,
-0.5404016375541687,
-0.2698756754398346,
-0.046099670231342316,
0.0048116776160895824,
0.4655517041683197,
0.45376843214035034,
-0.6946172714233398,
0.270207017660141,
0.30462023615837097,
0.4120107591152191,
1.0547385215759277,
-0.018587443977594376,
0.4321916401386261,
-0.38495561480522156,
0.26676955819129944,
0.2655819058418274,
0.47775453329086304,
0.39084699749946594,
-0.33672770857810974,
0.6143013834953308,
0.3626739978790283,
-0.5987327694892883,
-0.7343118190765381,
0.015174442902207375,
-1.1883447170257568,
-0.05107970908284187,
1.1169089078903198,
-0.10858537256717682,
-0.5504051446914673,
0.20099440217018127,
-0.32708361744880676,
0.5357513427734375,
-0.17188063263893127,
0.6854872107505798,
0.46782007813453674,
-0.11786994338035583,
-0.4778502285480499,
-0.3881504535675049,
0.4824830889701843,
0.3067944049835205,
-0.6485263109207153,
-0.15212365984916687,
0.23544356226921082,
0.40674296021461487,
0.15231925249099731,
0.4482525587081909,
-0.23034629225730896,
0.3757317364215851,
0.012851439416408539,
0.2443471997976303,
-0.3929559588432312,
-0.1387052834033966,
-0.14430461823940277,
0.1420348882675171,
-0.3633342683315277,
-0.04113667085766792
] |
codellama/CodeLlama-7b-hf | codellama | "2023-10-27T16:00:06Z" | 116,314 | 198 | transformers | [
"transformers",
"pytorch",
"safetensors",
"llama",
"text-generation",
"llama-2",
"code",
"arxiv:2308.12950",
"license:llama2",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | text-generation | "2023-08-24T16:31:11Z" | ---
language:
- code
pipeline_tag: text-generation
tags:
- llama-2
license: llama2
---
# **Code Llama**
Code Llama is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 34 billion parameters. This is the repository for the base 7B version in the Hugging Face Transformers format. This model is designed for general code synthesis and understanding. Links to other models can be found in the index at the bottom.
| | Base Model | Python | Instruct |
| --- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| 7B | [codellama/CodeLlama-7b-hf](https://huggingface.co/codellama/CodeLlama-7b-hf) | [codellama/CodeLlama-7b-Python-hf](https://huggingface.co/codellama/CodeLlama-7b-Python-hf) | [codellama/CodeLlama-7b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-7b-Instruct-hf) |
| 13B | [codellama/CodeLlama-13b-hf](https://huggingface.co/codellama/CodeLlama-13b-hf) | [codellama/CodeLlama-13b-Python-hf](https://huggingface.co/codellama/CodeLlama-13b-Python-hf) | [codellama/CodeLlama-13b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-13b-Instruct-hf) |
| 34B | [codellama/CodeLlama-34b-hf](https://huggingface.co/codellama/CodeLlama-34b-hf) | [codellama/CodeLlama-34b-Python-hf](https://huggingface.co/codellama/CodeLlama-34b-Python-hf) | [codellama/CodeLlama-34b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-34b-Instruct-hf) |
## Model Use
To use this model, please make sure to install transformers from `main` until the next version is released:
```bash
pip install git+https://github.com/huggingface/transformers.git@main accelerate
```
Model capabilities:
- [x] Code completion.
- [x] Infilling.
- [ ] Instructions / chat.
- [ ] Python specialist.
```python
from transformers import AutoTokenizer
import transformers
import torch
model = "codellama/CodeLlama-7b-hf"
tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
"text-generation",
model=model,
torch_dtype=torch.float16,
device_map="auto",
)
sequences = pipeline(
'import socket\n\ndef ping_exponential_backoff(host: str):',
do_sample=True,
top_k=10,
temperature=0.1,
top_p=0.95,
num_return_sequences=1,
eos_token_id=tokenizer.eos_token_id,
max_length=200,
)
for seq in sequences:
print(f"Result: {seq['generated_text']}")
```
## Model Details
*Note: Use of this model is governed by the Meta license. Meta developed and publicly released the Code Llama family of large language models (LLMs).
**Model Developers** Meta
**Variations** Code Llama comes in three model sizes, and three variants:
* Code Llama: base models designed for general code synthesis and understanding
* Code Llama - Python: designed specifically for Python
* Code Llama - Instruct: for instruction following and safer deployment
All variants are available in sizes of 7B, 13B and 34B parameters.
**This repository contains the base model of 7B parameters.**
**Input** Models input text only.
**Output** Models generate text only.
**Model Architecture** Code Llama is an auto-regressive language model that uses an optimized transformer architecture.
**Model Dates** Code Llama and its variants have been trained between January 2023 and July 2023.
**Status** This is a static model trained on an offline dataset. Future versions of Code Llama - Instruct will be released as we improve model safety with community feedback.
**License** A custom commercial license is available at: [https://ai.meta.com/resources/models-and-libraries/llama-downloads/](https://ai.meta.com/resources/models-and-libraries/llama-downloads/)
**Research Paper** More information can be found in the paper "[Code Llama: Open Foundation Models for Code](https://ai.meta.com/research/publications/code-llama-open-foundation-models-for-code/)" or it's [arXiv page](https://arxiv.org/abs/2308.12950).
## Intended Use
**Intended Use Cases** Code Llama and its variants is intended for commercial and research use in English and relevant programming languages. The base model Code Llama can be adapted for a variety of code synthesis and understanding tasks, Code Llama - Python is designed specifically to handle the Python programming language, and Code Llama - Instruct is intended to be safer to use for code assistant and generation applications.
**Out-of-Scope Uses** Use in any manner that violates applicable laws or regulations (including trade compliance laws). Use in languages other than English. Use in any other way that is prohibited by the Acceptable Use Policy and Licensing Agreement for Code Llama and its variants.
## Hardware and Software
**Training Factors** We used custom training libraries. The training and fine-tuning of the released models have been performed Meta’s Research Super Cluster.
**Carbon Footprint** In aggregate, training all 9 Code Llama models required 400K GPU hours of computation on hardware of type A100-80GB (TDP of 350-400W). Estimated total emissions were 65.3 tCO2eq, 100% of which were offset by Meta’s sustainability program.
## Training Data
All experiments reported here and the released models have been trained and fine-tuned using the same data as Llama 2 with different weights (see Section 2 and Table 1 in the [research paper](https://ai.meta.com/research/publications/code-llama-open-foundation-models-for-code/) for details).
## Evaluation Results
See evaluations for the main models and detailed ablations in Section 3 and safety evaluations in Section 4 of the research paper.
## Ethical Considerations and Limitations
Code Llama and its variants are a new technology that carries risks with use. Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios. For these reasons, as with all LLMs, Code Llama’s potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate or objectionable responses to user prompts. Therefore, before deploying any applications of Code Llama, developers should perform safety testing and tuning tailored to their specific applications of the model.
Please see the Responsible Use Guide available available at [https://ai.meta.com/llama/responsible-use-guide](https://ai.meta.com/llama/responsible-use-guide). | [
-0.3453151285648346,
-0.6762582659721375,
0.2564586400985718,
0.5362424850463867,
-0.24472419917583466,
0.143755704164505,
-0.07072698324918747,
-0.6188521981239319,
0.2778403162956238,
0.48513370752334595,
-0.3816376030445099,
-0.5751445293426514,
-0.6238062381744385,
0.30378085374832153,
-0.5016331672668457,
1.1778571605682373,
-0.03536931425333023,
-0.38886168599128723,
-0.21426892280578613,
0.02717573754489422,
-0.24987584352493286,
-0.5899249911308289,
-0.22887222468852997,
-0.43783965706825256,
0.26943719387054443,
0.34119001030921936,
0.6842743158340454,
0.6219713687896729,
0.5403000712394714,
0.369835764169693,
-0.272013783454895,
0.017475519329309464,
-0.3712238073348999,
-0.34240981936454773,
0.26475784182548523,
-0.5896317362785339,
-0.7608517408370972,
-0.03608986735343933,
0.3682432770729065,
0.3106602728366852,
-0.2696654200553894,
0.46755269169807434,
-0.1884099692106247,
0.48542919754981995,
-0.3366577625274658,
0.24659018218517303,
-0.6880382299423218,
-0.06001488119363785,
0.049014896154403687,
-0.10896629840135574,
-0.21341469883918762,
-0.5026098489761353,
-0.09070263057947159,
-0.46788012981414795,
-0.03630518540740013,
-0.03444083034992218,
1.1632109880447388,
0.5140798687934875,
-0.29822489619255066,
-0.23793978989124298,
-0.3248693346977234,
0.8070327043533325,
-0.9909517765045166,
0.02740178070962429,
0.32527709007263184,
-0.06096462905406952,
-0.1524810791015625,
-0.8990111947059631,
-0.7798444628715515,
-0.33081281185150146,
-0.14746806025505066,
-0.0066796522587537766,
-0.4696982204914093,
0.06801971048116684,
0.43230536580085754,
0.47325170040130615,
-0.49166688323020935,
0.09631948918104172,
-0.48952972888946533,
-0.21414270997047424,
0.9096715450286865,
0.12119372189044952,
0.4254799783229828,
-0.3260067403316498,
-0.3673996329307556,
-0.07401607185602188,
-0.8057187795639038,
0.07832058519124985,
0.45190680027008057,
-0.1313384473323822,
-0.7790377140045166,
0.7145473957061768,
-0.2104642540216446,
0.5785332918167114,
0.11328691244125366,
-0.511789083480835,
0.578758180141449,
-0.28406864404678345,
-0.3469650149345398,
-0.14134712517261505,
0.967631459236145,
0.5265699028968811,
0.3463838994503021,
0.05910945683717728,
-0.20914801955223083,
0.278316468000412,
0.07918326556682587,
-0.8708276152610779,
-0.16749055683612823,
0.35754188895225525,
-0.628179669380188,
-0.6945081353187561,
-0.24212442338466644,
-0.8067575097084045,
-0.05507173761725426,
0.012692620046436787,
0.16949179768562317,
-0.1929624229669571,
-0.47048163414001465,
0.22054749727249146,
0.048521965742111206,
0.478777676820755,
0.061924561858177185,
-0.9060683250427246,
0.03535591810941696,
0.4647448658943176,
0.821134090423584,
0.0539921410381794,
-0.525236964225769,
-0.008972927927970886,
-0.12395719438791275,
-0.2768201231956482,
0.6597379446029663,
-0.4389455020427704,
-0.49648720026016235,
-0.1745513379573822,
0.13461633026599884,
-0.06449025124311447,
-0.48195314407348633,
0.1916407197713852,
-0.3609999120235443,
0.0015186041127890348,
0.13035684823989868,
-0.3062072694301605,
-0.4263160228729248,
0.03249381482601166,
-0.5631088614463806,
1.1923798322677612,
0.2880633473396301,
-0.7757704257965088,
-0.03339299187064171,
-0.5838239192962646,
-0.36320123076438904,
-0.27054935693740845,
-0.026522764936089516,
-0.7055613398551941,
-0.07495924830436707,
0.21936260163784027,
0.5250295996665955,
-0.3854948580265045,
0.40157872438430786,
-0.1553729772567749,
-0.41755884885787964,
0.21869073808193207,
-0.18223430216312408,
1.085522174835205,
0.3521285057067871,
-0.5369467735290527,
0.23718000948429108,
-0.8750307559967041,
-0.10100230574607849,
0.5288624167442322,
-0.4603032171726227,
0.17639444768428802,
-0.13325096666812897,
-0.0032613547518849373,
0.007191040553152561,
0.5079883933067322,
-0.34298428893089294,
0.5165501236915588,
-0.4587263762950897,
0.8048391342163086,
0.6979114413261414,
-0.029913775622844696,
0.389115571975708,
-0.5805971622467041,
0.7083495855331421,
-0.09332547336816788,
0.23777073621749878,
-0.3227081894874573,
-0.7751718163490295,
-1.063576102256775,
-0.2691391110420227,
0.01429994311183691,
0.7190287709236145,
-0.5269153118133545,
0.6636204719543457,
-0.04380787909030914,
-0.80214923620224,
-0.5250282883644104,
0.17283031344413757,
0.47539612650871277,
0.35914474725723267,
0.36302459239959717,
-0.13979943096637726,
-0.793506383895874,
-0.8140422701835632,
0.10643524676561356,
-0.46878567337989807,
0.13656222820281982,
0.23605374991893768,
0.8714449405670166,
-0.6380628347396851,
0.8301171064376831,
-0.42721545696258545,
-0.008802544325590134,
-0.3738572597503662,
-0.2532108724117279,
0.564481794834137,
0.6114024519920349,
0.7370957732200623,
-0.570566713809967,
-0.32379665970802307,
0.036665454506874084,
-0.8911306262016296,
-0.12544533610343933,
-0.23728665709495544,
-0.0658632442355156,
0.38148242235183716,
0.3108271062374115,
-0.697675883769989,
0.53668212890625,
0.8569838404655457,
-0.27266010642051697,
0.6073663234710693,
-0.156186044216156,
-0.0862472802400589,
-1.0953810214996338,
0.24591843783855438,
-0.19587500393390656,
-0.055206406861543655,
-0.525307297706604,
0.33167508244514465,
0.07209736108779907,
0.08242129534482956,
-0.5671868324279785,
0.38733524084091187,
-0.4291486442089081,
-0.017865270376205444,
-0.12699882686138153,
-0.1794985979795456,
-0.006500792223960161,
0.7451607584953308,
-0.04396146908402443,
0.9528058171272278,
0.5832828283309937,
-0.6187243461608887,
0.3959740102291107,
0.3108205497264862,
-0.33068761229515076,
0.1735306978225708,
-1.0137739181518555,
0.3628624677658081,
0.12187839299440384,
0.3510698676109314,
-0.8588549494743347,
-0.21526537835597992,
0.35971763730049133,
-0.5337848663330078,
0.09653609246015549,
-0.058667369186878204,
-0.4972892105579376,
-0.5296371579170227,
-0.2486688494682312,
0.476777046918869,
0.9020162224769592,
-0.6241903305053711,
0.42100048065185547,
0.42670661211013794,
0.156769797205925,
-0.7467008233070374,
-0.7136929035186768,
0.08569151163101196,
-0.46024614572525024,
-0.747033417224884,
0.4384493827819824,
-0.29535725712776184,
-0.14908398687839508,
-0.20211786031723022,
0.09748861938714981,
0.02625935710966587,
0.29486238956451416,
0.4582379460334778,
0.41964274644851685,
-0.12387430667877197,
-0.21053755283355713,
-0.03905937075614929,
-0.16269491612911224,
0.06998122483491898,
0.09538059681653976,
0.8027744889259338,
-0.4308333396911621,
-0.2595815062522888,
-0.6127386093139648,
0.1646345555782318,
0.570903480052948,
-0.24427162110805511,
0.6051409244537354,
0.44438880681991577,
-0.36205658316612244,
-0.0165362898260355,
-0.675449013710022,
0.05278242379426956,
-0.5776413083076477,
0.3171195387840271,
-0.2747369110584259,
-0.8378512859344482,
0.7243121862411499,
0.11171429604291916,
0.22048471868038177,
0.565037190914154,
0.8058408498764038,
0.09434487670660019,
0.7836048007011414,
0.9391224384307861,
-0.4096343517303467,
0.40715697407722473,
-0.6279158592224121,
0.08758939057588577,
-0.8056573271751404,
-0.41743022203445435,
-0.5836789608001709,
-0.05762172490358353,
-0.6841335296630859,
-0.4809269607067108,
0.3194426894187927,
0.203799769282341,
-0.5301207304000854,
0.728286862373352,
-0.880551815032959,
0.42662718892097473,
0.44611141085624695,
0.037192538380622864,
0.3569386899471283,
0.04130115360021591,
-0.05218545347452164,
0.3220488727092743,
-0.503775954246521,
-0.6987209320068359,
1.245944619178772,
0.49239349365234375,
0.8467509150505066,
-0.0580727718770504,
0.9008257985115051,
0.03523902967572212,
0.38094788789749146,
-0.6050841808319092,
0.5969233512878418,
0.29371392726898193,
-0.5009244680404663,
-0.020834991708397865,
-0.2699506878852844,
-0.9425501823425293,
0.16794587671756744,
0.06396908313035965,
-0.8521857261657715,
0.07969660311937332,
0.026675542816519737,
-0.24469000101089478,
0.37804126739501953,
-0.7239886522293091,
0.6690691709518433,
-0.2040988653898239,
0.010608895681798458,
-0.1256479173898697,
-0.5680291652679443,
0.5786181688308716,
-0.03339416906237602,
0.18292291462421417,
-0.16884353756904602,
-0.15000757575035095,
0.7018065452575684,
-0.5400145053863525,
1.0821698904037476,
0.10717815160751343,
-0.3582080602645874,
0.6358673572540283,
-0.046840984374284744,
0.5018210411071777,
0.050041742622852325,
-0.22411532700061798,
0.6849066019058228,
0.010907969437539577,
-0.27523693442344666,
-0.08929502218961716,
0.6528283953666687,
-1.1048758029937744,
-0.7597559690475464,
-0.4492645263671875,
-0.4233397841453552,
0.32060056924819946,
0.1781187504529953,
0.4797990322113037,
0.069197878241539,
0.16086311638355255,
0.11879806965589523,
0.4264477789402008,
-0.6634217500686646,
0.6900745630264282,
0.3225425183773041,
-0.28466466069221497,
-0.5024540424346924,
0.8613728880882263,
-0.1469901204109192,
0.25452563166618347,
0.23644107580184937,
0.047182124108076096,
-0.1423768848180771,
-0.43613728880882263,
-0.4814777672290802,
0.478312224149704,
-0.6441383957862854,
-0.5680156946182251,
-0.69613116979599,
-0.4112410545349121,
-0.3950344920158386,
-0.31585389375686646,
-0.3266022205352783,
-0.27826008200645447,
-0.6877725720405579,
-0.1481941193342209,
0.7977825403213501,
0.7701660394668579,
0.026770953088998795,
0.4895179569721222,
-0.655769944190979,
0.41609466075897217,
0.12026999890804291,
0.3832652270793915,
0.0551295168697834,
-0.5383344888687134,
-0.11288340389728546,
-0.022442875429987907,
-0.5428433418273926,
-0.945392906665802,
0.6424863934516907,
0.1300729364156723,
0.6078581809997559,
0.12928467988967896,
-0.01575113646686077,
0.6859275102615356,
-0.41949719190597534,
0.9239279627799988,
0.3649025559425354,
-1.1600385904312134,
0.6551076769828796,
-0.24468886852264404,
0.09610658138990402,
0.07729499787092209,
0.27938705682754517,
-0.4615759551525116,
-0.30876487493515015,
-0.739665687084198,
-0.8159433007240295,
0.6420257687568665,
0.2620294690132141,
0.2802782952785492,
-0.002313098171725869,
0.4293588101863861,
-0.08968491852283478,
0.2670607566833496,
-1.107211709022522,
-0.3987937867641449,
-0.38466960191726685,
-0.26006099581718445,
-0.06302863359451294,
-0.2432337999343872,
-0.04219164326786995,
-0.30637452006340027,
0.4785051941871643,
-0.16957299411296844,
0.6462822556495667,
0.22122524678707123,
-0.2197141945362091,
-0.2529894709587097,
0.009329238906502724,
0.6716375946998596,
0.6003180742263794,
-0.03487193211913109,
-0.13407555222511292,
0.4323391914367676,
-0.5696869492530823,
0.2384260594844818,
-0.07240065187215805,
-0.09196079522371292,
-0.22469283640384674,
0.5529507994651794,
0.6698526740074158,
0.08515294641256332,
-0.7704059481620789,
0.5343911647796631,
0.10193007439374924,
-0.299936443567276,
-0.5229440331459045,
0.2693076431751251,
0.32013213634490967,
0.3465317487716675,
0.28596043586730957,
-0.024759655818343163,
-0.12231161445379257,
-0.3739561438560486,
0.05761629343032837,
0.348972886800766,
0.1603744775056839,
-0.36249926686286926,
0.9468263387680054,
0.15637898445129395,
-0.3514821529388428,
0.530099630355835,
0.03781299293041229,
-0.6209882497787476,
1.241859793663025,
0.7010471224784851,
0.7920347452163696,
-0.1923101246356964,
0.12033402174711227,
0.5135664939880371,
0.5888285040855408,
0.03210706263780594,
0.4212490916252136,
0.05421452224254608,
-0.5549695491790771,
-0.31950676441192627,
-0.8264939188957214,
-0.3218722939491272,
0.0703149288892746,
-0.414000928401947,
0.3440414369106293,
-0.6417145729064941,
-0.08531968295574188,
-0.3481728136539459,
0.1055116280913353,
-0.7023431062698364,
-0.014723040163516998,
0.07649403810501099,
0.9604220390319824,
-0.6759294867515564,
0.921810507774353,
0.5453737378120422,
-0.6963458061218262,
-0.9452323317527771,
-0.2467333823442459,
-0.09940014034509659,
-1.2267361879348755,
0.5423520803451538,
0.3109287917613983,
0.0770290270447731,
0.12955358624458313,
-0.9105692505836487,
-1.1188957691192627,
1.3480125665664673,
0.44499796628952026,
-0.5209106206893921,
-0.03347861394286156,
0.1805044710636139,
0.5382314920425415,
-0.3931756615638733,
0.5445833206176758,
0.6445468664169312,
0.4063620865345001,
-0.08749639242887497,
-1.215004563331604,
0.30856984853744507,
-0.4228307604789734,
0.16952499747276306,
-0.22784237563610077,
-1.1099677085876465,
1.105150818824768,
-0.5682026743888855,
-0.15348324179649353,
0.39275553822517395,
0.7349507212638855,
0.5394811630249023,
0.18758323788642883,
0.38968348503112793,
0.5692524313926697,
0.655532956123352,
-0.022960657253861427,
1.1088354587554932,
-0.5003135204315186,
0.5516270995140076,
0.5244781970977783,
-0.0962049812078476,
0.7429506778717041,
0.38591110706329346,
-0.5319311618804932,
0.7693134546279907,
0.7847031354904175,
-0.21659323573112488,
0.24861758947372437,
0.3164297044277191,
-0.07507339864969254,
-0.02970491349697113,
-0.01052562240511179,
-0.7836284637451172,
0.4107716381549835,
0.32903653383255005,
-0.38698771595954895,
0.07096882909536362,
-0.231238454580307,
0.27200058102607727,
-0.207561656832695,
-0.031731583178043365,
0.6473701000213623,
0.20767413079738617,
-0.5167390704154968,
1.189048409461975,
0.10996752232313156,
1.0175998210906982,
-0.46801885962486267,
-0.13139420747756958,
-0.4027046859264374,
0.06321078538894653,
-0.5451295375823975,
-0.5378705263137817,
0.1941588670015335,
0.24250105023384094,
-0.0021236715838313103,
-0.09654434025287628,
0.5224248766899109,
-0.1029379740357399,
-0.5301685333251953,
0.37319594621658325,
0.18319562077522278,
0.31187954545021057,
0.19969677925109863,
-0.7573306560516357,
0.4575994312763214,
0.19847959280014038,
-0.4820743203163147,
0.28750482201576233,
0.12225504964590073,
0.14538441598415375,
0.9336365461349487,
0.7754721641540527,
-0.13656465709209442,
0.20686374604701996,
-0.1928623467683792,
1.1327941417694092,
-0.7309712767601013,
-0.38183358311653137,
-0.8486825227737427,
0.7074441909790039,
0.20205897092819214,
-0.4862262010574341,
0.6171734929084778,
0.37771525979042053,
0.8584778904914856,
-0.10905145853757858,
0.8135791420936584,
-0.24157719314098358,
0.08658554404973984,
-0.431371808052063,
0.7055410146713257,
-0.7046473026275635,
0.3851304054260254,
-0.520082414150238,
-0.9119575023651123,
-0.260999470949173,
0.9363295435905457,
-0.05647585541009903,
0.12253651022911072,
0.5442017316818237,
1.0100347995758057,
0.25220516324043274,
-0.11338035017251968,
0.18714623153209686,
0.22732031345367432,
0.43401750922203064,
0.8677951097488403,
0.9204853177070618,
-0.6777448058128357,
0.7151903510093689,
-0.6242498159408569,
-0.27806800603866577,
-0.30985787510871887,
-1.0299791097640991,
-1.023480772972107,
-0.5184025168418884,
-0.3371421694755554,
-0.4441099464893341,
-0.25759509205818176,
0.9559371471405029,
0.6259759664535522,
-0.6196438074111938,
-0.5017924904823303,
-0.16087816655635834,
0.4102981388568878,
-0.09559111297130585,
-0.22275206446647644,
0.3397994339466095,
-0.16818594932556152,
-0.8426672220230103,
0.27547845244407654,
-0.016110703349113464,
0.17048142850399017,
-0.3103286623954773,
-0.25214940309524536,
-0.17637746036052704,
-0.008092095144093037,
0.4786299467086792,
0.3708922863006592,
-0.8541355133056641,
-0.24426335096359253,
0.11847575753927231,
-0.20819684863090515,
0.15064148604869843,
0.4094296991825104,
-0.6656651496887207,
0.016063934192061424,
0.39833831787109375,
0.4238985776901245,
0.3944389820098877,
-0.24568942189216614,
0.24072176218032837,
-0.3916053771972656,
0.43846312165260315,
-0.015229147858917713,
0.5071999430656433,
0.12069953978061676,
-0.5965612530708313,
0.6609063148498535,
0.33507829904556274,
-0.7301716804504395,
-0.920486569404602,
0.1178060919046402,
-1.1059396266937256,
-0.17869074642658234,
1.301137089729309,
-0.15662582218647003,
-0.35758453607559204,
0.15820874273777008,
-0.3754141926765442,
0.315705269575119,
-0.4026240408420563,
0.7482180595397949,
0.2820757329463959,
-0.116030253469944,
-0.18267974257469177,
-0.39112961292266846,
0.2831198275089264,
0.2945094704627991,
-0.9655275344848633,
-0.15643343329429626,
0.32314690947532654,
0.43687084317207336,
0.20319288969039917,
0.7766596674919128,
-0.06955845654010773,
0.20447981357574463,
0.0735568106174469,
0.4445100724697113,
-0.07174735516309738,
-0.17829865217208862,
-0.3449477553367615,
-0.07921960204839706,
-0.09495870769023895,
-0.05817519500851631
] |
sentence-transformers/paraphrase-MiniLM-L3-v2 | sentence-transformers | "2022-07-08T04:08:35Z" | 116,012 | 14 | sentence-transformers | [
"sentence-transformers",
"pytorch",
"tf",
"bert",
"feature-extraction",
"sentence-similarity",
"transformers",
"dataset:flax-sentence-embeddings/stackexchange_xml",
"dataset:s2orc",
"dataset:ms_marco",
"dataset:wiki_atomic_edits",
"dataset:snli",
"dataset:multi_nli",
"dataset:embedding-data/altlex",
"dataset:embedding-data/simple-wiki",
"dataset:embedding-data/flickr30k-captions",
"dataset:embedding-data/coco_captions",
"dataset:embedding-data/sentence-compression",
"dataset:embedding-data/QQP",
"dataset:yahoo_answers_topics",
"arxiv:1908.10084",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"region:us"
] | sentence-similarity | "2022-03-02T23:29:05Z" | ---
pipeline_tag: sentence-similarity
license: apache-2.0
tags:
- sentence-transformers
- feature-extraction
- sentence-similarity
- transformers
datasets:
- flax-sentence-embeddings/stackexchange_xml
- s2orc
- ms_marco
- wiki_atomic_edits
- snli
- multi_nli
- embedding-data/altlex
- embedding-data/simple-wiki
- embedding-data/flickr30k-captions
- embedding-data/coco_captions
- embedding-data/sentence-compression
- embedding-data/QQP
- yahoo_answers_topics
---
# sentence-transformers/paraphrase-MiniLM-L3-v2
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search.
## Usage (Sentence-Transformers)
Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:
```
pip install -U sentence-transformers
```
Then you can use the model like this:
```python
from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]
model = SentenceTransformer('sentence-transformers/paraphrase-MiniLM-L3-v2')
embeddings = model.encode(sentences)
print(embeddings)
```
## Usage (HuggingFace Transformers)
Without [sentence-transformers](https://www.SBERT.net), you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
```python
from transformers import AutoTokenizer, AutoModel
import torch
#Mean Pooling - Take attention mask into account for correct averaging
def mean_pooling(model_output, attention_mask):
token_embeddings = model_output[0] #First element of model_output contains all token embeddings
input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()
return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9)
# Sentences we want sentence embeddings for
sentences = ['This is an example sentence', 'Each sentence is converted']
# Load model from HuggingFace Hub
tokenizer = AutoTokenizer.from_pretrained('sentence-transformers/paraphrase-MiniLM-L3-v2')
model = AutoModel.from_pretrained('sentence-transformers/paraphrase-MiniLM-L3-v2')
# Tokenize sentences
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
# Compute token embeddings
with torch.no_grad():
model_output = model(**encoded_input)
# Perform pooling. In this case, max pooling.
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
print("Sentence embeddings:")
print(sentence_embeddings)
```
## Evaluation Results
For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name=sentence-transformers/paraphrase-MiniLM-L3-v2)
## Full Model Architecture
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: BertModel
(1): Pooling({'word_embedding_dimension': 384, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False})
)
```
## Citing & Authors
This model was trained by [sentence-transformers](https://www.sbert.net/).
If you find this model helpful, feel free to cite our publication [Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks](https://arxiv.org/abs/1908.10084):
```bibtex
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "http://arxiv.org/abs/1908.10084",
}
``` | [
-0.22096902132034302,
-0.7371140122413635,
0.41805416345596313,
0.24076513946056366,
-0.37361982464790344,
-0.4456596374511719,
-0.10952822118997574,
0.016555409878492355,
0.10870121419429779,
0.4578743875026703,
-0.5409575700759888,
-0.3010554313659668,
-0.584270715713501,
0.13934831321239471,
-0.5431087017059326,
0.9631772637367249,
-0.08061322569847107,
-0.02180907316505909,
-0.3705216646194458,
-0.2692875564098358,
-0.21154257655143738,
-0.388409286737442,
-0.47523102164268494,
-0.24424342811107635,
0.2583085894584656,
0.2941669523715973,
0.6080813407897949,
0.4724315404891968,
0.3342297077178955,
0.43484506011009216,
-0.014196968637406826,
0.07246780395507812,
-0.2734774053096771,
-0.15919171273708344,
0.05991364270448685,
-0.4597541391849518,
-0.07979531586170197,
0.13711395859718323,
0.5677636861801147,
0.37640661001205444,
-0.10704713314771652,
0.28852981328964233,
0.24755339324474335,
0.223070427775383,
-0.2694893181324005,
0.45555567741394043,
-0.7133246660232544,
0.07610318809747696,
0.00875114556401968,
0.08546338230371475,
-0.44712355732917786,
-0.1796596646308899,
0.25184863805770874,
-0.38848838210105896,
0.35567161440849304,
0.3381609320640564,
1.0106678009033203,
0.41604262590408325,
-0.18887846171855927,
-0.4054418206214905,
-0.18418194353580475,
0.90464186668396,
-0.8563798666000366,
0.1260865032672882,
0.34717509150505066,
0.04553932696580887,
0.11727959662675858,
-1.2087411880493164,
-0.7952054142951965,
-0.15474247932434082,
-0.6584379076957703,
-0.01292299386113882,
-0.4126545786857605,
-0.026317313313484192,
0.2293565273284912,
0.17917124927043915,
-0.7195996642112732,
-0.24951183795928955,
-0.4352770447731018,
-0.2459513545036316,
0.33593040704727173,
0.18843431770801544,
0.37598299980163574,
-0.7166566848754883,
-0.422466516494751,
-0.32218801975250244,
-0.22038674354553223,
-0.017277687788009644,
-0.060380969196558,
0.25208780169487,
-0.38676825165748596,
0.7795230150222778,
-0.042768485844135284,
0.471812903881073,
-0.006105894222855568,
0.08401606231927872,
0.5084259510040283,
-0.599277138710022,
-0.2972315847873688,
-0.19653993844985962,
1.1400631666183472,
0.37174925208091736,
0.12079916894435883,
0.060889627784490585,
-0.1623503565788269,
-0.06575530022382736,
-0.0013685616431757808,
-0.7824965119361877,
-0.5385463833808899,
0.07161848992109299,
-0.5060158371925354,
-0.36618053913116455,
-0.01844922825694084,
-0.8605884909629822,
-0.09054992347955704,
0.0642896443605423,
0.7328606247901917,
-0.5945808291435242,
0.3172864019870758,
0.025623129680752754,
-0.36826133728027344,
0.20187893509864807,
-0.28432318568229675,
-0.7097513675689697,
0.3201678693294525,
0.2584607005119324,
1.1373828649520874,
0.1178789958357811,
-0.5525616407394409,
-0.3395775258541107,
0.010214586742222309,
0.18417741358280182,
0.7106756567955017,
-0.3042604923248291,
-0.025106927379965782,
0.008251341059803963,
0.17474620044231415,
-0.6151258945465088,
-0.4853556752204895,
0.6504466533660889,
-0.2939961850643158,
0.6131880879402161,
0.07425602525472641,
-0.711175799369812,
-0.042613621801137924,
0.013535721227526665,
-0.5513613820075989,
1.168094515800476,
0.08284509181976318,
-0.9902716279029846,
-0.03437227010726929,
-0.7016820907592773,
-0.1766723394393921,
-0.1235942468047142,
-0.022863157093524933,
-0.6679868698120117,
0.1148352324962616,
0.5563857555389404,
0.6080358624458313,
-0.03914059326052666,
0.11083678901195526,
-0.2903605103492737,
-0.4286489188671112,
0.3263671100139618,
-0.2799557149410248,
1.1721937656402588,
0.14218436181545258,
-0.3843894302845001,
0.14849865436553955,
-0.39822161197662354,
-0.10573818534612656,
0.3621436059474945,
-0.03138476237654686,
-0.30477234721183777,
-0.13439145684242249,
0.2091244012117386,
0.4132167398929596,
0.3527078926563263,
-0.58461993932724,
0.01723962463438511,
-0.5236605405807495,
0.9446257948875427,
0.6104943156242371,
0.13018950819969177,
0.6616019010543823,
-0.471583753824234,
0.22430415451526642,
0.17931972444057465,
0.13765664398670197,
-0.06169918552041054,
-0.5322768688201904,
-1.0345567464828491,
-0.31285494565963745,
0.29674407839775085,
0.6013154983520508,
-1.0298078060150146,
0.7526070475578308,
-0.5226361155509949,
-0.4959944486618042,
-0.8503674268722534,
0.19769707322120667,
0.1893363893032074,
0.47325101494789124,
0.7578802108764648,
0.21177303791046143,
-0.6578971147537231,
-1.027259111404419,
-0.18291759490966797,
-0.03302498161792755,
-0.0192814152687788,
0.17966385185718536,
0.777492105960846,
-0.351730614900589,
1.0201958417892456,
-0.5766558051109314,
-0.5076027512550354,
-0.5995523929595947,
0.23362614214420319,
0.24618807435035706,
0.5701103210449219,
0.5642849206924438,
-0.7171886563301086,
-0.5954347848892212,
-0.5917542576789856,
-0.7427940368652344,
-0.06127696856856346,
-0.23805783689022064,
-0.2553460896015167,
0.02056317776441574,
0.5669113397598267,
-0.9303290247917175,
0.32652387022972107,
0.5125476717948914,
-0.3887118101119995,
0.2420414239168167,
-0.3141133785247803,
-0.3130902647972107,
-1.187978744506836,
-0.03637475520372391,
-0.10776324570178986,
-0.2863348722457886,
-0.4148872494697571,
0.16934189200401306,
0.21247734129428864,
-0.12449653446674347,
-0.5333733558654785,
0.57980877161026,
-0.39049848914146423,
0.17768128216266632,
-0.06931064277887344,
0.5225971937179565,
-0.0171069223433733,
0.7087703347206116,
-0.2028365433216095,
0.7532452940940857,
0.4189092516899109,
-0.5738638043403625,
0.3869321644306183,
0.6510409712791443,
-0.4629594087600708,
0.15532755851745605,
-0.8680973649024963,
0.11218132078647614,
0.08658086508512497,
0.4084940254688263,
-1.0956203937530518,
-0.03473182022571564,
0.3443370759487152,
-0.43694424629211426,
-0.07570433616638184,
0.22589993476867676,
-0.8277900815010071,
-0.6927449703216553,
-0.5693430304527283,
0.19370166957378387,
0.7600289583206177,
-0.5178194046020508,
0.5241531133651733,
0.2350696474313736,
-0.1676149219274521,
-0.33203113079071045,
-1.0892198085784912,
0.009981876239180565,
-0.3314407169818878,
-0.6318249702453613,
0.47272545099258423,
-0.17626631259918213,
0.10294601321220398,
0.19448190927505493,
0.2456585317850113,
0.02412491664290428,
-0.16506466269493103,
-0.12044109404087067,
0.1517360806465149,
-0.03582564368844032,
0.08581918478012085,
0.3006818890571594,
-0.11908438801765442,
-0.009628675878047943,
-0.14474132657051086,
0.7166644334793091,
-0.2700027525424957,
-0.0471176914870739,
-0.4990687072277069,
0.24976710975170135,
0.41976121068000793,
-0.06788668781518936,
1.1026701927185059,
0.9365803003311157,
-0.3684796690940857,
-0.0444200299680233,
-0.402325302362442,
-0.3715429902076721,
-0.5124683380126953,
0.46356770396232605,
-0.3282480835914612,
-0.8119099736213684,
0.4008553922176361,
0.3614891767501831,
0.03560453653335571,
0.7433366179466248,
0.6136566996574402,
-0.35805031657218933,
0.8623520135879517,
0.5946347713470459,
-0.02766573615372181,
0.5110746026039124,
-0.5642654895782471,
0.2025371491909027,
-0.9120923280715942,
0.004848714917898178,
-0.2880682349205017,
-0.2993619441986084,
-0.6083682775497437,
-0.5633805990219116,
0.3625034689903259,
-0.010842948220670223,
-0.19954511523246765,
0.6494672298431396,
-0.43251851201057434,
0.19300632178783417,
0.7366732358932495,
0.2196110486984253,
-0.007258970756083727,
0.10257498174905777,
-0.5338849425315857,
-0.1610310673713684,
-0.8421003222465515,
-0.6109497547149658,
0.8595839738845825,
0.29475584626197815,
0.4391021430492401,
-0.10272464156150818,
0.8233617544174194,
0.17588482797145844,
0.07335062325000763,
-0.5804264545440674,
0.7369810342788696,
-0.29511696100234985,
-0.45465031266212463,
-0.3825315237045288,
-0.3174949884414673,
-0.8217175006866455,
0.5232473015785217,
-0.007642515003681183,
-0.6937667727470398,
0.10301841050386429,
-0.08121941983699799,
-0.46610116958618164,
0.1719323694705963,
-0.7728471159934998,
1.1125797033309937,
0.1433282494544983,
-0.020957671105861664,
-0.04994757100939751,
-0.8464723229408264,
0.26201701164245605,
-0.015064146369695663,
0.27098506689071655,
-0.07346227765083313,
-0.21435946226119995,
1.0103708505630493,
-0.45362773537635803,
0.9168292284011841,
-0.14974860846996307,
0.37087130546569824,
0.3754332959651947,
-0.2377891093492508,
0.4581926167011261,
-0.09379968792200089,
-0.08813660591840744,
0.018337734043598175,
0.07113198935985565,
-0.5137036442756653,
-0.5713686347007751,
0.7038559317588806,
-0.8973066806793213,
-0.42641451954841614,
-0.441738486289978,
-0.6268762946128845,
-0.04602609947323799,
0.23596853017807007,
0.4741615951061249,
0.27362367510795593,
0.023559445515275,
0.5402270555496216,
0.4522853493690491,
-0.22940386831760406,
0.7713256478309631,
0.038617268204689026,
-0.09172090142965317,
-0.5302702188491821,
0.701117992401123,
0.07008270919322968,
0.12625683844089508,
0.45520132780075073,
0.36652079224586487,
-0.4309023916721344,
-0.2421424835920334,
-0.3533138036727905,
0.562537670135498,
-0.7087571620941162,
-0.22861720621585846,
-1.0817426443099976,
-0.4430876672267914,
-0.6312353014945984,
0.016989676281809807,
-0.10958532989025116,
-0.43463632464408875,
-0.4962010979652405,
-0.23900620639324188,
0.3325718641281128,
0.43600547313690186,
-0.019175047054886818,
0.48263996839523315,
-0.7432857155799866,
0.3229449987411499,
0.3126465082168579,
-0.2657168209552765,
-0.09826666116714478,
-0.9269501566886902,
-0.394631564617157,
0.10691029578447342,
-0.40924564003944397,
-0.8108898997306824,
0.6720770001411438,
0.32743197679519653,
0.5886982083320618,
0.018027428537607193,
0.18589630722999573,
0.7325099110603333,
-0.6293006539344788,
0.9419659972190857,
-0.0017759337788447738,
-1.1015740633010864,
0.4446747899055481,
-0.04588939622044563,
0.3391026556491852,
0.5606164336204529,
0.1652933657169342,
-0.38047537207603455,
-0.5257605910301208,
-0.8356281518936157,
-0.9312619566917419,
0.7791510820388794,
0.6095900535583496,
0.5489933490753174,
-0.2134905606508255,
0.23224197328090668,
-0.20774637162685394,
0.1995655596256256,
-1.1925694942474365,
-0.46656328439712524,
-0.297537237405777,
-0.669447660446167,
-0.3674716055393219,
-0.332695335149765,
0.011032849550247192,
-0.5287455916404724,
0.6627554297447205,
-0.014612194150686264,
0.8508248329162598,
0.20310752093791962,
-0.5316199660301208,
0.2947372794151306,
0.09884082525968552,
0.5494365692138672,
0.19984465837478638,
-0.09243805706501007,
0.3176860809326172,
0.4514578580856323,
-0.2534242570400238,
0.02948676235973835,
0.41410645842552185,
-0.2737278640270233,
0.29758429527282715,
0.4874192774295807,
0.900714099407196,
0.5028342604637146,
-0.46669238805770874,
0.8067306280136108,
-0.051661550998687744,
-0.18532058596611023,
-0.3186439275741577,
-0.16977602243423462,
0.2637467384338379,
0.360978901386261,
0.28342071175575256,
0.049811944365501404,
0.0679156705737114,
-0.3970889747142792,
0.3659684658050537,
0.22059953212738037,
-0.28394126892089844,
-0.068051278591156,
0.7801077365875244,
-0.06642431765794754,
-0.19080519676208496,
0.8517234325408936,
-0.214074045419693,
-0.6497844457626343,
0.40561532974243164,
0.5926983952522278,
0.9634907841682434,
0.09637252986431122,
0.22843877971172333,
0.3016704022884369,
0.4662070870399475,
-0.05781835690140724,
-0.029351716861128807,
0.01672864519059658,
-0.7512726783752441,
-0.013464704155921936,
-0.7094111442565918,
0.03745691478252411,
0.0009000455029308796,
-0.5788519382476807,
0.2752375602722168,
-0.12217570841312408,
-0.022321833297610283,
-0.14810539782047272,
-0.08777360618114471,
-0.7785109877586365,
0.0020902962423861027,
-0.00018952961545437574,
0.8126674890518188,
-1.0028904676437378,
1.0331170558929443,
0.6217349171638489,
-0.7013366222381592,
-0.6474324464797974,
0.08997619152069092,
-0.33725830912590027,
-0.9149702787399292,
0.5465971827507019,
0.32057198882102966,
0.16119322180747986,
0.2087382674217224,
-0.5482783913612366,
-0.9141529202461243,
1.4152460098266602,
0.2994377911090851,
-0.22550451755523682,
-0.41081294417381287,
0.07453806698322296,
0.557811975479126,
-0.42863887548446655,
0.2773580253124237,
0.571530818939209,
0.26403599977493286,
-0.12554380297660828,
-0.7404386401176453,
0.2776739299297333,
-0.17393943667411804,
0.28852465748786926,
-0.25538909435272217,
-0.5984248518943787,
1.0891064405441284,
0.020538784563541412,
-0.09255317598581314,
0.41265955567359924,
0.9064870476722717,
0.3568164110183716,
0.015256213024258614,
0.4619289040565491,
0.6399810910224915,
0.5314164757728577,
-0.004543865565210581,
1.060415267944336,
-0.28780582547187805,
0.8420711755752563,
1.1029163599014282,
0.1700882911682129,
1.1182209253311157,
0.6044648885726929,
-0.1953645944595337,
0.753349244594574,
0.49110278487205505,
-0.13561215996742249,
0.8770350813865662,
0.025044508278369904,
0.024436069652438164,
0.005164106376469135,
0.22370223701000214,
-0.19021324813365936,
0.2970488965511322,
0.22697952389717102,
-0.7052944898605347,
-0.12923382222652435,
0.23068107664585114,
-0.002935818862169981,
-0.09199965000152588,
-0.0008604705217294395,
0.6051379442214966,
0.3180218040943146,
-0.3942110538482666,
0.42236262559890747,
0.2038765847682953,
0.9332799911499023,
-0.39894619584083557,
0.22464309632778168,
-0.20115229487419128,
0.363889217376709,
0.09252052009105682,
-0.5360614657402039,
0.4244913160800934,
-0.12141335755586624,
-0.05289897322654724,
-0.3247072100639343,
0.6280208230018616,
-0.6231647729873657,
-0.65815669298172,
0.33070120215415955,
0.5634174942970276,
0.1141795739531517,
0.0660734549164772,
-1.2564142942428589,
-0.05031266063451767,
0.09278617054224014,
-0.4339251220226288,
0.2884511649608612,
0.33560267090797424,
0.3462086617946625,
0.5563545823097229,
0.38812389969825745,
-0.2330050766468048,
0.3584074079990387,
-0.028326410800218582,
0.7852931618690491,
-0.6002305746078491,
-0.5479047894477844,
-1.0843006372451782,
0.578346312046051,
-0.2662663459777832,
-0.19314569234848022,
0.9705095887184143,
0.5358133316040039,
0.7832147479057312,
-0.3288828730583191,
0.5671310424804688,
-0.1840534806251526,
0.3951040208339691,
-0.5401736497879028,
0.7691147923469543,
-0.5451421737670898,
-0.04130053520202637,
-0.284814715385437,
-0.8748202919960022,
-0.2541155517101288,
1.067584753036499,
-0.40024182200431824,
0.07409252226352692,
1.1037344932556152,
0.8398025035858154,
-0.1790798306465149,
-0.15062102675437927,
0.2051684558391571,
0.3678727149963379,
0.19970718026161194,
0.4779547452926636,
0.463357150554657,
-0.9066087603569031,
0.9361497759819031,
-0.6915233731269836,
-0.031144173815846443,
-0.21427644789218903,
-0.7064658999443054,
-0.9797815680503845,
-0.7409456968307495,
-0.33879411220550537,
-0.3210388422012329,
-0.19220750033855438,
0.9597494602203369,
0.4814428687095642,
-0.805780291557312,
-0.12800945341587067,
-0.24622507393360138,
-0.08734367787837982,
-0.18971313536167145,
-0.3196524381637573,
0.5952908992767334,
-0.5249261856079102,
-0.8923465609550476,
0.18973271548748016,
-0.099288210272789,
0.10723061859607697,
-0.1760445535182953,
0.1117006465792656,
-0.6018789410591125,
0.2142976075410843,
0.5594840049743652,
-0.20638230443000793,
-0.8752989172935486,
-0.334672212600708,
-0.08526302874088287,
-0.5634684562683105,
-0.16261206567287445,
0.44007736444473267,
-0.6210439801216125,
0.15439677238464355,
0.42672187089920044,
0.478582501411438,
0.7225184440612793,
-0.25038230419158936,
0.323154091835022,
-0.8088532090187073,
0.3291887044906616,
0.08771410584449768,
0.7484661340713501,
0.381254106760025,
-0.1549014300107956,
0.4826216399669647,
0.42182812094688416,
-0.48767775297164917,
-0.8185939192771912,
-0.19506189227104187,
-0.9639945030212402,
-0.18343710899353027,
1.1799981594085693,
-0.31297898292541504,
-0.30456581711769104,
0.06037958338856697,
-0.30085548758506775,
0.4663042724132538,
-0.25284990668296814,
0.5225762724876404,
0.7841443419456482,
-0.12246967107057571,
-0.34845009446144104,
-0.4173303246498108,
0.3630999028682709,
0.5403696298599243,
-0.5167527794837952,
-0.1722802072763443,
0.14630797505378723,
0.40255624055862427,
0.18982622027397156,
0.5457589030265808,
0.024845782667398453,
0.012399380095303059,
0.12917743623256683,
-0.05878637358546257,
-0.08999761939048767,
0.03306853026151657,
-0.4189402163028717,
0.19437754154205322,
-0.35716691613197327,
-0.39566442370414734
] |
t5-11b | null | "2023-01-02T16:15:50Z" | 115,931 | 42 | transformers | [
"transformers",
"pytorch",
"tf",
"t5",
"text2text-generation",
"summarization",
"translation",
"en",
"fr",
"ro",
"de",
"multilingual",
"dataset:c4",
"arxiv:1805.12471",
"arxiv:1708.00055",
"arxiv:1704.05426",
"arxiv:1606.05250",
"arxiv:1808.09121",
"arxiv:1810.12885",
"arxiv:1905.10044",
"arxiv:1910.09700",
"license:apache-2.0",
"autotrain_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | translation | "2022-03-02T23:29:04Z" | ---
language:
- en
- fr
- ro
- de
- multilingual
license: apache-2.0
tags:
- summarization
- translation
datasets:
- c4
inference: false
---
# Model Card for T5 11B
![model image](https://camo.githubusercontent.com/623b4dea0b653f2ad3f36c71ebfe749a677ac0a1/68747470733a2f2f6d69726f2e6d656469756d2e636f6d2f6d61782f343030362f312a44304a31674e51663876727255704b657944387750412e706e67)
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training Details](#training-details)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Citation](#citation)
8. [Model Card Authors](#model-card-authors)
9. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
## Model Description
The developers of the Text-To-Text Transfer Transformer (T5) [write](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html):
> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.
T5-11B is the checkpoint with 11 billion parameters.
- **Developed by:** Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See [associated paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) and [GitHub repo](https://github.com/google-research/text-to-text-transfer-transformer#released-model-checkpoints)
- **Model type:** Language model
- **Language(s) (NLP):** English, French, Romanian, German
- **License:** Apache 2.0
- **Related Models:** [All T5 Checkpoints](https://huggingface.co/models?search=t5)
- **Resources for more information:**
- [Research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf)
- [Google's T5 Blog Post](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html)
- [GitHub Repo](https://github.com/google-research/text-to-text-transfer-transformer)
- [Hugging Face T5 Docs](https://huggingface.co/docs/transformers/model_doc/t5)
# Uses
## Direct Use and Downstream Use
The developers write in a [blog post](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html) that the model:
> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.
See the [blog post](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html) and [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) for further details.
## Out-of-Scope Use
More information needed.
# Bias, Risks, and Limitations
More information needed.
## Recommendations
More information needed.
# Training Details
## Training Data
The model is pre-trained on the [Colossal Clean Crawled Corpus (C4)](https://www.tensorflow.org/datasets/catalog/c4), which was developed and released in the context of the same [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) as T5.
The model was pre-trained on a on a **multi-task mixture of unsupervised (1.) and supervised tasks (2.)**.
Thereby, the following datasets were being used for (1.) and (2.):
1. **Datasets used for Unsupervised denoising objective**:
- [C4](https://huggingface.co/datasets/c4)
- [Wiki-DPR](https://huggingface.co/datasets/wiki_dpr)
2. **Datasets used for Supervised text-to-text language modeling objective**
- Sentence acceptability judgment
- CoLA [Warstadt et al., 2018](https://arxiv.org/abs/1805.12471)
- Sentiment analysis
- SST-2 [Socher et al., 2013](https://nlp.stanford.edu/~socherr/EMNLP2013_RNTN.pdf)
- Paraphrasing/sentence similarity
- MRPC [Dolan and Brockett, 2005](https://aclanthology.org/I05-5002)
- STS-B [Ceret al., 2017](https://arxiv.org/abs/1708.00055)
- QQP [Iyer et al., 2017](https://quoradata.quora.com/First-Quora-Dataset-Release-Question-Pairs)
- Natural language inference
- MNLI [Williams et al., 2017](https://arxiv.org/abs/1704.05426)
- QNLI [Rajpurkar et al.,2016](https://arxiv.org/abs/1606.05250)
- RTE [Dagan et al., 2005](https://link.springer.com/chapter/10.1007/11736790_9)
- CB [De Marneff et al., 2019](https://semanticsarchive.net/Archive/Tg3ZGI2M/Marneffe.pdf)
- Sentence completion
- COPA [Roemmele et al., 2011](https://www.researchgate.net/publication/221251392_Choice_of_Plausible_Alternatives_An_Evaluation_of_Commonsense_Causal_Reasoning)
- Word sense disambiguation
- WIC [Pilehvar and Camacho-Collados, 2018](https://arxiv.org/abs/1808.09121)
- Question answering
- MultiRC [Khashabi et al., 2018](https://aclanthology.org/N18-1023)
- ReCoRD [Zhang et al., 2018](https://arxiv.org/abs/1810.12885)
- BoolQ [Clark et al., 2019](https://arxiv.org/abs/1905.10044)
## Training Procedure
In their [abstract](https://jmlr.org/papers/volume21/20-074/20-074.pdf), the model developers write:
> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks.
The framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) for further details.
# Evaluation
## Testing Data, Factors & Metrics
The developers evaluated the model on 24 tasks, see the [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) for full details.
## Results
For full results for T5-11B, see the [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf), Table 14.
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** Google Cloud TPU Pods
- **Hours used:** More information needed
- **Cloud Provider:** GCP
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Citation
**BibTeX:**
```bibtex
@article{2020t5,
author = {Colin Raffel and Noam Shazeer and Adam Roberts and Katherine Lee and Sharan Narang and Michael Matena and Yanqi Zhou and Wei Li and Peter J. Liu},
title = {Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer},
journal = {Journal of Machine Learning Research},
year = {2020},
volume = {21},
number = {140},
pages = {1-67},
url = {http://jmlr.org/papers/v21/20-074.html}
}
```
**APA:**
- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
## Disclaimer
**Before `transformers` v3.5.0**, due do its immense size, `t5-11b` required some special treatment.
If you're using transformers `<= v3.4.0`, `t5-11b` should be loaded with flag `use_cdn` set to `False` as follows:
```python
t5 = transformers.T5ForConditionalGeneration.from_pretrained('t5-11b', use_cdn = False)
```
Secondly, a single GPU will most likely not have enough memory to even load the model into memory as the weights alone amount to over 40 GB.
- Model parallelism has to be used here to overcome this problem as is explained in this [PR](https://github.com/huggingface/transformers/pull/3578).
- DeepSpeed's ZeRO-Offload is another approach as explained in this [post](https://github.com/huggingface/transformers/issues/9996).
See the [Hugging Face T5](https://huggingface.co/docs/transformers/model_doc/t5#transformers.T5Model) docs and a [Colab Notebook](https://colab.research.google.com/github/google-research/text-to-text-transfer-transformer/blob/main/notebooks/t5-trivia.ipynb) created by the model developers for more context.
| [
-0.33482348918914795,
-0.38804447650909424,
0.47813931107521057,
0.17635419964790344,
-0.1265847533941269,
-0.08048977702856064,
-0.24846340715885162,
-0.5934652090072632,
-0.3186861574649811,
0.4333878755569458,
-0.49657607078552246,
-0.5301105976104736,
-0.7893782258033752,
0.29949137568473816,
-0.5510271787643433,
1.042322039604187,
-0.09426049888134003,
-0.1473378986120224,
-0.16765889525413513,
-0.11411552876234055,
-0.34417250752449036,
-0.5110281109809875,
-0.5831916928291321,
-0.32613176107406616,
0.3896240293979645,
0.18302388489246368,
0.32779625058174133,
0.46477118134498596,
0.6661974191665649,
0.23792842030525208,
-0.16676852107048035,
-0.004083333536982536,
-0.4165445566177368,
-0.2820166051387787,
-0.25930577516555786,
-0.26428472995758057,
-0.3648853302001953,
-0.02945997565984726,
0.5536863207817078,
0.7073944211006165,
-0.017036408185958862,
0.3266328275203705,
0.1561393141746521,
0.5457835793495178,
-0.5883297324180603,
0.17322880029678345,
-0.5648616552352905,
0.06293237954378128,
-0.03973064199090004,
0.06714273989200592,
-0.5648948550224304,
-0.02081957831978798,
0.23463377356529236,
-0.6244560480117798,
0.31222906708717346,
0.02390885353088379,
1.2112116813659668,
0.34226706624031067,
-0.4507269561290741,
-0.14814727008342743,
-0.7536976337432861,
1.0563441514968872,
-0.7728326916694641,
0.4957084357738495,
0.13525117933750153,
0.15485425293445587,
0.17574016749858856,
-1.0690813064575195,
-0.6580981016159058,
-0.007141489535570145,
-0.2099333256483078,
0.22628198564052582,
-0.30799347162246704,
0.04791778698563576,
0.3789079487323761,
0.38009437918663025,
-0.4204757511615753,
-0.035729747265577316,
-0.6163938641548157,
-0.12777620553970337,
0.5548747181892395,
-0.015231991186738014,
0.3441087007522583,
-0.2196924090385437,
-0.48230162262916565,
-0.3291638493537903,
-0.351214200258255,
0.061099570244550705,
-0.04237004742026329,
0.28195738792419434,
-0.3738163411617279,
0.23880614340305328,
0.07628974318504333,
0.6024112701416016,
0.1413690149784088,
-0.1378212869167328,
0.40076377987861633,
-0.7037386298179626,
-0.2309534102678299,
-0.3409058153629303,
1.0914605855941772,
0.27009817957878113,
0.17084456980228424,
-0.41762661933898926,
-0.032715197652578354,
-0.07830174267292023,
0.424076646566391,
-0.9307668805122375,
-0.14995600283145905,
0.27575984597206116,
-0.46974045038223267,
-0.4550461173057556,
-0.05166337266564369,
-0.819787859916687,
-0.026058128103613853,
-0.12550562620162964,
0.4625137448310852,
-0.46872299909591675,
-0.21438662707805634,
0.21070602536201477,
-0.2500257194042206,
0.3299564719200134,
0.31381362676620483,
-0.8450210690498352,
0.3513217270374298,
0.30459538102149963,
0.6861010193824768,
-0.443390429019928,
-0.3438452482223511,
-0.11013070493936539,
0.09504653513431549,
-0.10171230137348175,
0.7199876308441162,
-0.40944772958755493,
-0.3957889974117279,
-0.11698375642299652,
0.15894633531570435,
-0.24252688884735107,
-0.3145575523376465,
0.8225242495536804,
-0.2771800756454468,
0.6933559775352478,
-0.34571608901023865,
-0.4965103268623352,
-0.44582876563072205,
0.1339418888092041,
-0.6131697297096252,
1.1988234519958496,
0.003131985431537032,
-0.7749505043029785,
0.23725193738937378,
-0.8529638051986694,
-0.28311923146247864,
-0.24918439984321594,
0.26770099997520447,
-0.5293359756469727,
-0.2437201589345932,
0.29862213134765625,
0.5693074464797974,
-0.4335286319255829,
0.39657291769981384,
-0.26936250925064087,
-0.21871048212051392,
0.034172311425209045,
-0.3514297306537628,
1.0067744255065918,
0.30740830302238464,
-0.4864700436592102,
0.0070372335612773895,
-0.6780437231063843,
0.014903366565704346,
0.020579813048243523,
-0.2350805699825287,
0.04710855334997177,
-0.1859985888004303,
0.2686556577682495,
0.42513471841812134,
0.22397559881210327,
-0.5057170391082764,
0.008400541730225086,
-0.2888104319572449,
0.618206262588501,
0.4853942096233368,
-0.11336515098810196,
0.5634874105453491,
-0.47749489545822144,
0.40184286236763,
0.14574402570724487,
0.0782950222492218,
-0.21521183848381042,
-0.4074418544769287,
-0.7916750311851501,
0.08853711187839508,
0.4589504897594452,
0.5613189339637756,
-0.5984645485877991,
0.534688413143158,
-0.5017609596252441,
-0.7160483598709106,
-0.5948951244354248,
-0.04714718088507652,
0.40418291091918945,
0.6891694068908691,
0.832042932510376,
-0.09637831151485443,
-0.5625115036964417,
-0.6478045582771301,
-0.3147682547569275,
-0.10425373911857605,
0.003681998932734132,
0.18333745002746582,
0.6387209296226501,
-0.09061340242624283,
0.7591168284416199,
-0.3204956650733948,
-0.34582778811454773,
-0.5238792300224304,
-0.01993011124432087,
-0.09409938752651215,
0.5714929103851318,
0.6461696028709412,
-0.7395274639129639,
-0.47696152329444885,
-0.1825524866580963,
-0.8665027022361755,
-0.0351729579269886,
-0.18122947216033936,
-0.007604764308780432,
0.3927796483039856,
0.5689020156860352,
-0.5781729221343994,
0.24219252169132233,
0.633130669593811,
-0.31007131934165955,
0.31166744232177734,
-0.15847232937812805,
-0.020556023344397545,
-1.532822847366333,
0.49459701776504517,
0.18589799106121063,
-0.1694142073392868,
-0.7320077419281006,
-0.06582888215780258,
0.08421444147825241,
-0.09079556912183762,
-0.5294595956802368,
0.6971661448478699,
-0.40484777092933655,
0.0818452388048172,
-0.0425250269472599,
0.04674635827541351,
0.1545214056968689,
0.6672546863555908,
-0.015195833519101143,
0.7689180374145508,
0.30455324053764343,
-0.7152895331382751,
-0.00901015568524599,
0.3707459270954132,
-0.1061900407075882,
0.28772982954978943,
-0.7321627736091614,
0.26784127950668335,
-0.09034299850463867,
0.45838963985443115,
-0.8793054223060608,
0.16227884590625763,
0.3493139445781708,
-0.6273089647293091,
0.34201666712760925,
0.052245255559682846,
-0.3749805688858032,
-0.37446483969688416,
-0.2583434283733368,
0.28729403018951416,
0.6764626502990723,
-0.4911470413208008,
0.7318791151046753,
0.16062048077583313,
0.28297579288482666,
-0.753558337688446,
-0.8304548859596252,
0.15032702684402466,
-0.39623934030532837,
-0.540118396282196,
0.796489953994751,
-0.13582436740398407,
0.07397136837244034,
0.14609752595424652,
-0.01746545173227787,
-0.16228742897510529,
0.14039146900177002,
0.054191965609788895,
0.24485786259174347,
0.00929076224565506,
0.14924323558807373,
-0.07794848829507828,
-0.168165922164917,
0.026398884132504463,
-0.396586537361145,
0.30154797434806824,
-0.15196770429611206,
0.1505349576473236,
-0.6344406604766846,
0.15563246607780457,
0.5345504879951477,
-0.18987992405891418,
0.8085060715675354,
0.9471766948699951,
-0.2397235482931137,
-0.05103261396288872,
-0.5086321234703064,
-0.2080279439687729,
-0.45962366461753845,
0.3658926784992218,
-0.3519812226295471,
-0.8459853529930115,
0.43082383275032043,
0.029650647193193436,
0.32158637046813965,
0.8796061277389526,
0.30735525488853455,
-0.14977623522281647,
0.7128649353981018,
0.8099111914634705,
-0.0641314759850502,
0.5501552224159241,
-0.4434000253677368,
0.28957757353782654,
-0.8923549056053162,
-0.29385074973106384,
-0.7750502228736877,
-0.3071742653846741,
-0.7614023089408875,
-0.3692775368690491,
0.10637515783309937,
-0.010654967278242111,
-0.3496946096420288,
0.5625443458557129,
-0.5490615367889404,
0.10434069484472275,
0.4157388210296631,
0.1077071949839592,
0.33529457449913025,
0.0033942407462745905,
-0.03483205661177635,
-0.13752566277980804,
-0.832097589969635,
-0.4531731903553009,
1.2526346445083618,
0.3103725016117096,
0.38865673542022705,
-0.05467263236641884,
0.5862661004066467,
0.2024555206298828,
0.1885175257921219,
-0.6641172766685486,
0.7091547250747681,
-0.37300336360931396,
-0.5396612882614136,
-0.20482727885246277,
-0.44191861152648926,
-1.0796164274215698,
0.2713913023471832,
-0.35288822650909424,
-0.6882083415985107,
0.15121306478977203,
0.003602728247642517,
-0.21679344773292542,
0.5441442131996155,
-0.8423733115196228,
1.092341661453247,
-0.06937095522880554,
-0.30251166224479675,
-0.056476373225450516,
-0.7057490348815918,
0.20807577669620514,
0.012378580868244171,
0.12947434186935425,
0.06712857633829117,
-0.13917407393455505,
0.9487723708152771,
-0.28992462158203125,
0.8429580926895142,
-0.1989283263683319,
0.0302121639251709,
0.17435364425182343,
-0.3387654423713684,
0.43216291069984436,
-0.4069122076034546,
-0.07706614583730698,
0.41535139083862305,
0.08171448856592178,
-0.44960734248161316,
-0.5227792263031006,
0.4622790217399597,
-0.9181673526763916,
-0.41406694054603577,
-0.41225096583366394,
-0.49634161591529846,
-0.16033406555652618,
0.31611308455467224,
0.3411470055580139,
0.2076011300086975,
-0.1326570361852646,
0.3546273410320282,
0.6621741056442261,
-0.4417420029640198,
0.7145934104919434,
0.30947384238243103,
-0.018878931179642677,
-0.24953781068325043,
0.7810467481613159,
0.11811137199401855,
0.40341585874557495,
0.5459368228912354,
0.17151214182376862,
-0.2942813038825989,
-0.5691717267036438,
-0.3842190206050873,
0.33243492245674133,
-0.5840044617652893,
-0.12996073067188263,
-0.9738584756851196,
-0.24813337624073029,
-0.5457677841186523,
-0.021562930196523666,
-0.420815110206604,
-0.40150073170661926,
-0.4427952170372009,
-0.17432042956352234,
0.3097599446773529,
0.4522864520549774,
0.14632809162139893,
0.223892480134964,
-0.9036545157432556,
0.20220378041267395,
0.01615009270608425,
0.08194909244775772,
0.06763356924057007,
-0.8378869891166687,
-0.13517864048480988,
0.0668245181441307,
-0.4699985980987549,
-0.6317564845085144,
0.4423401653766632,
0.23732724785804749,
0.3645201027393341,
0.03443780913949013,
0.13068564236164093,
0.6416643857955933,
-0.28435635566711426,
0.9611351490020752,
0.1263672411441803,
-0.992897629737854,
0.2670297622680664,
-0.2857574224472046,
0.3938625454902649,
0.509272575378418,
0.5020761489868164,
-0.635213315486908,
-0.21753591299057007,
-0.9977840781211853,
-0.792098343372345,
0.7802162766456604,
0.25063666701316833,
0.19413518905639648,
0.3474462926387787,
0.2527112662792206,
0.006738821044564247,
0.1456671506166458,
-0.8816884160041809,
-0.29242244362831116,
-0.22078654170036316,
-0.32079726457595825,
-0.08578576892614365,
-0.04846128448843956,
0.13654282689094543,
-0.33167532086372375,
0.6521808505058289,
-0.04767421633005142,
0.681416928768158,
0.2746296226978302,
-0.24441441893577576,
0.16531576216220856,
0.328813761472702,
0.580308735370636,
0.5117111802101135,
-0.17627884447574615,
-0.053988296538591385,
0.4184131324291229,
-0.5185195803642273,
-0.04708016663789749,
0.19929258525371552,
-0.33158743381500244,
-0.04423984885215759,
0.4368876516819,
0.9405936598777771,
0.13154184818267822,
-0.43333807587623596,
0.5209091901779175,
-0.018276063725352287,
-0.5696731209754944,
-0.2189076989889145,
-0.05200677365064621,
0.13943178951740265,
-0.028980165719985962,
0.22733882069587708,
0.26802730560302734,
0.12402154505252838,
-0.4656153917312622,
0.0661640465259552,
0.13809016346931458,
-0.4671356678009033,
-0.46029144525527954,
0.829571545124054,
0.32950302958488464,
-0.005831803660839796,
0.6415659785270691,
-0.11255759000778198,
-0.4983876645565033,
0.5687716007232666,
0.5088052153587341,
1.0112189054489136,
-0.07727061212062836,
0.21898329257965088,
0.6832676529884338,
0.3921044170856476,
-0.15265841782093048,
0.03560001030564308,
-0.04521407186985016,
-0.8072044253349304,
-0.5788085460662842,
-0.48589563369750977,
-0.313990980386734,
0.183975487947464,
-0.49270063638687134,
0.33994993567466736,
-0.34052398800849915,
0.03758862987160683,
0.10474163293838501,
0.09171298146247864,
-0.7500866055488586,
0.30153122544288635,
0.06808310002088547,
0.8521954417228699,
-0.7590708136558533,
0.825789213180542,
0.7268545627593994,
-0.5802786946296692,
-0.9318855404853821,
0.1038823202252388,
-0.22936561703681946,
-0.651691198348999,
0.5157666802406311,
0.16581621766090393,
0.04796458035707474,
0.16956260800361633,
-0.5217418074607849,
-0.8454182147979736,
1.2739059925079346,
0.37882423400878906,
-0.3103886544704437,
-0.36346426606178284,
0.24879243969917297,
0.6414642930030823,
-0.2268611043691635,
0.42549192905426025,
0.4488815367221832,
0.49445170164108276,
0.2249387800693512,
-1.0369242429733276,
0.32618144154548645,
-0.24864128232002258,
0.06977680325508118,
0.07379712164402008,
-0.8246721625328064,
0.5679435729980469,
-0.30634474754333496,
-0.24602647125720978,
-0.1767866611480713,
0.6842020153999329,
0.029072923585772514,
0.1836230754852295,
0.45973390340805054,
0.7853514552116394,
0.6430999040603638,
-0.12764757871627808,
1.1797367334365845,
-0.34986498951911926,
0.45780879259109497,
0.8004089593887329,
0.131906658411026,
0.8517932295799255,
0.4472481906414032,
-0.3462761342525482,
0.4785599410533905,
0.612300455570221,
-0.11241879314184189,
0.4560575485229492,
-0.1135307252407074,
-0.04603315144777298,
-0.13703009486198425,
-0.1730726808309555,
-0.36577388644218445,
0.23313777148723602,
0.23830710351467133,
-0.3786301612854004,
-0.2875346839427948,
0.12288438528776169,
0.30788344144821167,
-0.08202848583459854,
-0.054780494421720505,
0.79217129945755,
0.2408953309059143,
-0.7623936533927917,
0.6766386032104492,
0.1073576956987381,
0.8520714640617371,
-0.44517332315444946,
0.08642953634262085,
-0.19521717727184296,
0.18813326954841614,
-0.3141098618507385,
-0.674302339553833,
0.5075821280479431,
0.021591052412986755,
-0.15838828682899475,
-0.6813832521438599,
0.7984002828598022,
-0.40143492817878723,
-0.42511653900146484,
0.38216325640678406,
0.4485701620578766,
0.0937090590596199,
-0.03750878572463989,
-0.9332184791564941,
-0.02903423272073269,
0.20450131595134735,
-0.23426826298236847,
0.3778451681137085,
0.3861393332481384,
0.0853138193488121,
0.692533552646637,
0.5891057848930359,
-0.1868627518415451,
0.004939913284033537,
-0.13732759654521942,
0.7018105387687683,
-0.7193481922149658,
-0.22403615713119507,
-0.6963355541229248,
0.6626538038253784,
0.005165474954992533,
-0.4342876076698303,
0.6742297410964966,
0.4635898172855377,
1.088814616203308,
-0.09518091380596161,
0.9269643425941467,
-0.21132999658584595,
0.5002191662788391,
-0.38516268134117126,
0.4785342514514923,
-0.6519755125045776,
0.21646089851856232,
-0.4054057002067566,
-0.884861409664154,
-0.28180280327796936,
0.37706252932548523,
-0.35637855529785156,
0.32520145177841187,
1.0485845804214478,
0.6323251128196716,
-0.0005560378776863217,
-0.0836142897605896,
0.18529412150382996,
0.14628642797470093,
0.3422864079475403,
0.7161100506782532,
0.3391543924808502,
-0.9797189831733704,
0.9629623293876648,
-0.3842220902442932,
0.18625903129577637,
0.050360795110464096,
-0.8125701546669006,
-0.8690201640129089,
-0.8048135638237,
-0.42526164650917053,
-0.44736409187316895,
0.09509479999542236,
0.7244322896003723,
0.5611813068389893,
-0.6593605279922485,
-0.2591976523399353,
-0.3663707673549652,
-0.025368180125951767,
-0.2398216426372528,
-0.20040395855903625,
0.48483729362487793,
-0.4938826858997345,
-0.8840512037277222,
0.04126071184873581,
-0.05087935924530029,
0.032022301107645035,
-0.018091559410095215,
-0.025433488190174103,
-0.32220393419265747,
-0.1808270663022995,
0.537209153175354,
0.19938720762729645,
-0.6140178442001343,
-0.27644625306129456,
0.2647086977958679,
-0.10771607607603073,
0.1552109718322754,
0.46782195568084717,
-0.7005911469459534,
0.19895687699317932,
0.526672899723053,
0.9218649864196777,
0.8053824305534363,
-0.09618298709392548,
0.5889822244644165,
-0.34826385974884033,
-0.08800382912158966,
0.11997848004102707,
0.119904063642025,
0.3875730633735657,
-0.205429345369339,
0.6174049973487854,
0.4825735092163086,
-0.5137072205543518,
-0.6622622013092041,
-0.15079699456691742,
-1.2524820566177368,
-0.1789655089378357,
1.246358036994934,
-0.15033982694149017,
-0.20946285128593445,
0.03647202253341675,
-0.05520016327500343,
0.328010231256485,
-0.45441365242004395,
0.7439530491828918,
0.845357358455658,
0.1272020936012268,
-0.4192529618740082,
-0.5925719738006592,
0.6247424483299255,
0.5933759808540344,
-1.0354068279266357,
-0.1467685103416443,
0.181427001953125,
0.40175381302833557,
0.13084323704242706,
0.5379551649093628,
-0.14501641690731049,
0.049600496888160706,
-0.19614377617835999,
0.29748430848121643,
-0.012062662281095982,
-0.07271814346313477,
-0.3248580992221832,
0.1510196328163147,
-0.22968848049640656,
-0.17871008813381195
] |
roberta-large-mnli | null | "2023-04-06T13:40:16Z" | 115,699 | 96 | transformers | [
"transformers",
"pytorch",
"tf",
"jax",
"safetensors",
"roberta",
"text-classification",
"autogenerated-modelcard",
"en",
"dataset:multi_nli",
"dataset:wikipedia",
"dataset:bookcorpus",
"arxiv:1907.11692",
"arxiv:1806.02847",
"arxiv:1804.07461",
"arxiv:1704.05426",
"arxiv:1508.05326",
"arxiv:1809.05053",
"arxiv:1910.09700",
"license:mit",
"endpoints_compatible",
"has_space",
"region:us"
] | text-classification | "2022-03-02T23:29:04Z" | ---
language:
- en
license: mit
tags:
- autogenerated-modelcard
datasets:
- multi_nli
- wikipedia
- bookcorpus
---
# roberta-large-mnli
## Table of Contents
- [Model Details](#model-details)
- [How To Get Started With the Model](#how-to-get-started-with-the-model)
- [Uses](#uses)
- [Risks, Limitations and Biases](#risks-limitations-and-biases)
- [Training](#training)
- [Evaluation](#evaluation-results)
- [Environmental Impact](#environmental-impact)
- [Technical Specifications](#technical-specifications)
- [Citation Information](#citation-information)
- [Model Card Authors](#model-card-author)
## Model Details
**Model Description:** roberta-large-mnli is the [RoBERTa large model](https://huggingface.co/roberta-large) fine-tuned on the [Multi-Genre Natural Language Inference (MNLI)](https://huggingface.co/datasets/multi_nli) corpus. The model is a pretrained model on English language text using a masked language modeling (MLM) objective.
- **Developed by:** See [GitHub Repo](https://github.com/facebookresearch/fairseq/tree/main/examples/roberta) for model developers
- **Model Type:** Transformer-based language model
- **Language(s):** English
- **License:** MIT
- **Parent Model:** This model is a fine-tuned version of the RoBERTa large model. Users should see the [RoBERTa large model card](https://huggingface.co/roberta-large) for relevant information.
- **Resources for more information:**
- [Research Paper](https://arxiv.org/abs/1907.11692)
- [GitHub Repo](https://github.com/facebookresearch/fairseq/tree/main/examples/roberta)
## How to Get Started with the Model
Use the code below to get started with the model. The model can be loaded with the zero-shot-classification pipeline like so:
```python
from transformers import pipeline
classifier = pipeline('zero-shot-classification', model='roberta-large-mnli')
```
You can then use this pipeline to classify sequences into any of the class names you specify. For example:
```python
sequence_to_classify = "one day I will see the world"
candidate_labels = ['travel', 'cooking', 'dancing']
classifier(sequence_to_classify, candidate_labels)
```
## Uses
#### Direct Use
This fine-tuned model can be used for zero-shot classification tasks, including zero-shot sentence-pair classification (see the [GitHub repo](https://github.com/facebookresearch/fairseq/tree/main/examples/roberta) for examples) and zero-shot sequence classification.
#### Misuse and Out-of-scope Use
The model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.
## Risks, Limitations and Biases
**CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.**
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). The [RoBERTa large model card](https://huggingface.co/roberta-large) notes that: "The training data used for this model contains a lot of unfiltered content from the internet, which is far from neutral."
Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:
```python
sequence_to_classify = "The CEO had a strong handshake."
candidate_labels = ['male', 'female']
hypothesis_template = "This text speaks about a {} profession."
classifier(sequence_to_classify, candidate_labels, hypothesis_template=hypothesis_template)
```
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
## Training
#### Training Data
This model was fine-tuned on the [Multi-Genre Natural Language Inference (MNLI)](https://cims.nyu.edu/~sbowman/multinli/) corpus. Also see the [MNLI data card](https://huggingface.co/datasets/multi_nli) for more information.
As described in the [RoBERTa large model card](https://huggingface.co/roberta-large):
> The RoBERTa model was pretrained on the reunion of five datasets:
>
> - [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038 unpublished books;
> - [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and headers) ;
> - [CC-News](https://commoncrawl.org/2016/10/news-dataset-available/), a dataset containing 63 millions English news articles crawled between September 2016 and February 2019.
> - [OpenWebText](https://github.com/jcpeterson/openwebtext), an opensource recreation of the WebText dataset used to train GPT-2,
> - [Stories](https://arxiv.org/abs/1806.02847), a dataset containing a subset of CommonCrawl data filtered to match the story-like style of Winograd schemas.
>
> Together theses datasets weight 160GB of text.
Also see the [bookcorpus data card](https://huggingface.co/datasets/bookcorpus) and the [wikipedia data card](https://huggingface.co/datasets/wikipedia) for additional information.
#### Training Procedure
##### Preprocessing
As described in the [RoBERTa large model card](https://huggingface.co/roberta-large):
> The texts are tokenized using a byte version of Byte-Pair Encoding (BPE) and a vocabulary size of 50,000. The inputs of
> the model take pieces of 512 contiguous token that may span over documents. The beginning of a new document is marked
> with `<s>` and the end of one by `</s>`
>
> 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.
>
> Contrary to BERT, the masking is done dynamically during pretraining (e.g., it changes at each epoch and is not fixed).
##### Pretraining
Also as described in the [RoBERTa large model card](https://huggingface.co/roberta-large):
> The model was trained on 1024 V100 GPUs for 500K steps with a batch size of 8K and a sequence length of 512. The
> optimizer used is Adam with a learning rate of 4e-4, \\(\beta_{1} = 0.9\\), \\(\beta_{2} = 0.98\\) and
> \\(\epsilon = 1e-6\\), a weight decay of 0.01, learning rate warmup for 30,000 steps and linear decay of the learning
> rate after.
## Evaluation
The following evaluation information is extracted from the associated [GitHub repo for RoBERTa](https://github.com/facebookresearch/fairseq/tree/main/examples/roberta).
#### Testing Data, Factors and Metrics
The model developers report that the model was evaluated on the following tasks and datasets using the listed metrics:
- **Dataset:** Part of [GLUE (Wang et al., 2019)](https://arxiv.org/pdf/1804.07461.pdf), the General Language Understanding Evaluation benchmark, a collection of 9 datasets for evaluating natural language understanding systems. Specifically, the model was evaluated on the [Multi-Genre Natural Language Inference (MNLI)](https://cims.nyu.edu/~sbowman/multinli/) corpus. See the [GLUE data card](https://huggingface.co/datasets/glue) or [Wang et al. (2019)](https://arxiv.org/pdf/1804.07461.pdf) for further information.
- **Tasks:** NLI. [Wang et al. (2019)](https://arxiv.org/pdf/1804.07461.pdf) describe the inference task for MNLI as:
> The Multi-Genre Natural Language Inference Corpus [(Williams et al., 2018)](https://arxiv.org/abs/1704.05426) is a crowd-sourced collection of sentence pairs with textual entailment annotations. Given a premise sentence and a hypothesis sentence, the task is to predict whether the premise entails the hypothesis (entailment), contradicts the hypothesis (contradiction), or neither (neutral). The premise sentences are gathered from ten different sources, including transcribed speech, fiction, and government reports. We use the standard test set, for which we obtained private labels from the authors, and evaluate on both the matched (in-domain) and mismatched (cross-domain) sections. We also use and recommend the SNLI corpus [(Bowman et al., 2015)](https://arxiv.org/abs/1508.05326) as 550k examples of auxiliary training data.
- **Metrics:** Accuracy
- **Dataset:** [XNLI (Conneau et al., 2018)](https://arxiv.org/pdf/1809.05053.pdf), the extension of the [Multi-Genre Natural Language Inference (MNLI)](https://cims.nyu.edu/~sbowman/multinli/) corpus to 15 languages: English, French, Spanish, German, Greek, Bulgarian, Russian, Turkish, Arabic, Vietnamese, Thai, Chinese, Hindi, Swahili and Urdu. See the [XNLI data card](https://huggingface.co/datasets/xnli) or [Conneau et al. (2018)](https://arxiv.org/pdf/1809.05053.pdf) for further information.
- **Tasks:** Translate-test (e.g., the model is used to translate input sentences in other languages to the training language)
- **Metrics:** Accuracy
#### Results
GLUE test results (dev set, single model, single-task fine-tuning): 90.2 on MNLI
XNLI test results:
| Task | en | fr | es | de | el | bg | ru | tr | ar | vi | th | zh | hi | sw | ur |
|:----:|:--:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| |91.3|82.91|84.27|81.24|81.74|83.13|78.28|76.79|76.64|74.17|74.05| 77.5| 70.9|66.65|66.81|
## Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). We present the hardware type and hours used based on the [associated paper](https://arxiv.org/pdf/1907.11692.pdf).
- **Hardware Type:** 1024 V100 GPUs
- **Hours used:** 24 hours (one day)
- **Cloud Provider:** Unknown
- **Compute Region:** Unknown
- **Carbon Emitted:** Unknown
## Technical Specifications
See the [associated paper](https://arxiv.org/pdf/1907.11692.pdf) for details on the modeling architecture, objective, compute infrastructure, and training details.
## Citation Information
```bibtex
@article{liu2019roberta,
title = {RoBERTa: A Robustly Optimized BERT Pretraining Approach},
author = {Yinhan Liu and Myle Ott and Naman Goyal and Jingfei Du and
Mandar Joshi and Danqi Chen and Omer Levy and Mike Lewis and
Luke Zettlemoyer and Veselin Stoyanov},
journal={arXiv preprint arXiv:1907.11692},
year = {2019},
}
``` | [
-0.265998512506485,
-0.8059043288230896,
0.36890271306037903,
0.0841054916381836,
-0.1565876007080078,
-0.24967457354068756,
-0.4163815975189209,
-0.6393954157829285,
0.08042771369218826,
0.5255616903305054,
-0.5348389148712158,
-0.6197047233581543,
-0.687952995300293,
0.13858070969581604,
-0.3167048692703247,
1.3304845094680786,
0.1888553649187088,
0.10017198324203491,
-0.04759042710065842,
-0.07630226761102676,
-0.27362295985221863,
-0.6834889054298401,
-0.6330515146255493,
-0.09325841814279556,
0.43081769347190857,
0.06163444742560387,
0.45838913321495056,
0.45541927218437195,
0.34363001585006714,
0.27279388904571533,
-0.26181384921073914,
0.026723671704530716,
-0.5307372212409973,
-0.16867642104625702,
0.02669074945151806,
-0.5027602910995483,
-0.41543009877204895,
0.32331955432891846,
0.6292554140090942,
0.5781948566436768,
0.013344901613891125,
0.39616313576698303,
-0.020174557343125343,
0.5301804542541504,
-0.45819923281669617,
0.12800203263759613,
-0.6022377610206604,
-0.05262590944766998,
-0.34233465790748596,
0.10753041505813599,
-0.6535813808441162,
-0.126413956284523,
0.132443368434906,
-0.4990651309490204,
0.2263270914554596,
0.10190015286207199,
1.1384605169296265,
0.07056019455194473,
-0.5444926619529724,
-0.22869224846363068,
-0.6311883926391602,
1.016140341758728,
-0.875850260257721,
0.34874382615089417,
0.42470216751098633,
0.13415631651878357,
-0.06103092432022095,
-0.5964049100875854,
-0.7386282086372375,
-0.27497878670692444,
-0.06849265843629837,
0.15845337510108948,
-0.26237860321998596,
-0.009929051622748375,
0.4034190773963928,
0.2800537645816803,
-0.8369171619415283,
0.11536657065153122,
-0.5737959742546082,
-0.11875858902931213,
0.6648128628730774,
-0.032824836671352386,
0.2577722668647766,
-0.4217514395713806,
-0.40599775314331055,
-0.11933304369449615,
-0.395161896944046,
0.08345158398151398,
0.4873562455177307,
0.4081995487213135,
-0.2806999385356903,
0.5002334117889404,
-0.04546694457530975,
0.885383665561676,
-0.00008611578959971666,
-0.36234524846076965,
0.5754683613777161,
-0.4396398067474365,
-0.29891616106033325,
-0.15168361365795135,
0.8688993453979492,
0.3301767110824585,
0.2927877902984619,
-0.11383592337369919,
0.004705496598035097,
0.07147166877985,
0.023972611874341965,
-0.8437997102737427,
-0.050854891538619995,
0.4312465488910675,
-0.514380156993866,
-0.31001168489456177,
0.1421421766281128,
-0.7833477854728699,
-0.06658048927783966,
-0.31412753462791443,
0.5282467007637024,
-0.5365853309631348,
-0.1594935953617096,
0.20437166094779968,
-0.26779109239578247,
0.13149705529212952,
0.11858218908309937,
-0.5695412755012512,
0.1306457370519638,
0.5288282036781311,
0.7700486183166504,
-0.011895837262272835,
-0.26067087054252625,
-0.42038699984550476,
0.00678855599835515,
-0.04811878129839897,
0.4533314108848572,
-0.39676570892333984,
-0.10751134902238846,
-0.17774544656276703,
0.22043050825595856,
-0.194069966673851,
-0.22101008892059326,
0.6737073063850403,
-0.41294124722480774,
0.68332839012146,
0.1363794058561325,
-0.6348186135292053,
-0.2662789523601532,
0.25244975090026855,
-0.5613033175468445,
1.006721019744873,
0.018219174817204475,
-0.8181158304214478,
0.2465118020772934,
-0.6532726287841797,
-0.3544507324695587,
-0.2526901662349701,
0.12032631039619446,
-0.45801714062690735,
-0.14627525210380554,
0.15100497007369995,
0.529327392578125,
-0.3144037425518036,
0.6267368197441101,
-0.3275110125541687,
-0.3485971689224243,
0.3027980327606201,
-0.5063258409500122,
1.2505828142166138,
0.22619344294071198,
-0.35235318541526794,
0.10120023041963577,
-0.9669764041900635,
-0.1293913871049881,
0.24266080558300018,
-0.2956724166870117,
-0.2936089038848877,
-0.25236034393310547,
0.3236130177974701,
0.37129130959510803,
0.22230488061904907,
-0.5878788232803345,
0.14367511868476868,
-0.5120034217834473,
0.46716853976249695,
0.602187991142273,
-0.12925654649734497,
0.4062569737434387,
-0.4158617854118347,
0.47220054268836975,
-0.01160338707268238,
0.3444109857082367,
-0.20960091054439545,
-0.6473178267478943,
-0.6903373599052429,
-0.33237287402153015,
0.6211561560630798,
0.6375207304954529,
-0.44113609194755554,
0.669415295124054,
-0.3025645613670349,
-0.6874402165412903,
-0.6357682347297668,
-0.04276910796761513,
0.5664352774620056,
0.3537333905696869,
0.45979568362236023,
-0.2213602215051651,
-0.5782710313796997,
-0.7194832563400269,
-0.06766937673091888,
0.06746747344732285,
-0.1547153890132904,
0.29226821660995483,
0.6334488987922668,
-0.15999987721443176,
0.7141690850257874,
-0.4761568605899811,
-0.4029358923435211,
-0.265390545129776,
0.2079128473997116,
0.444963276386261,
0.554099977016449,
0.612637996673584,
-0.8922174572944641,
-0.46852365136146545,
-0.3120921850204468,
-0.6232351660728455,
0.16036584973335266,
-0.134992778301239,
-0.163185253739357,
0.6433379054069519,
0.39684879779815674,
-0.7190751433372498,
0.35952532291412354,
0.7552294135093689,
-0.3856786787509918,
0.5411831140518188,
-0.07963606715202332,
-0.03743341937661171,
-1.2863726615905762,
0.23529744148254395,
0.1854046881198883,
-0.03764672577381134,
-0.6516932249069214,
0.10973738878965378,
-0.15173564851284027,
-0.13115613162517548,
-0.39641743898391724,
0.6559209823608398,
-0.5074368715286255,
0.08083242177963257,
0.05162978544831276,
0.2601001560688019,
0.15805509686470032,
0.5839986801147461,
0.09919393062591553,
0.5766241550445557,
0.4533085823059082,
-0.5180377960205078,
0.04875791072845459,
0.1840173453092575,
-0.33839014172554016,
0.3367593288421631,
-0.5580509305000305,
0.09341216087341309,
-0.2628961503505707,
0.42165058851242065,
-0.8344929814338684,
-0.172966867685318,
0.2119092494249344,
-0.6004734039306641,
0.4516029357910156,
-0.2156575471162796,
-0.5944317579269409,
-0.46728238463401794,
-0.3767016530036926,
0.19383685290813446,
0.5518942475318909,
-0.33188480138778687,
0.5947975516319275,
0.35714471340179443,
0.09245485067367554,
-0.7071923017501831,
-0.7423788905143738,
0.1062958836555481,
-0.3108285665512085,
-0.6161725521087646,
0.34907934069633484,
-0.23361431062221527,
-0.196364626288414,
0.08670052140951157,
0.27336981892585754,
-0.2113666832447052,
0.10090862214565277,
0.23398828506469727,
0.46265238523483276,
-0.1807638704776764,
0.2882317900657654,
-0.27424484491348267,
-0.06415694206953049,
-0.15847042202949524,
-0.35290345549583435,
0.6870497465133667,
-0.06028078496456146,
-0.06344838440418243,
-0.5068580508232117,
0.21274439990520477,
0.4097707271575928,
-0.3884437084197998,
1.038268804550171,
0.9688804149627686,
-0.2783674895763397,
0.01681194081902504,
-0.6249729990959167,
-0.14475177228450775,
-0.380604088306427,
0.4221552908420563,
-0.15651348233222961,
-0.8638339638710022,
0.34815579652786255,
0.3324018120765686,
-0.05342544615268707,
0.6864215135574341,
0.3815974295139313,
0.028583601117134094,
0.8535573482513428,
0.5793243646621704,
-0.21646487712860107,
0.42162367701530457,
-0.4035853445529938,
0.27017316222190857,
-0.8011323809623718,
-0.11845476925373077,
-0.6882882714271545,
-0.17625358700752258,
-0.7678192853927612,
-0.587556004524231,
0.1676630675792694,
0.1295718103647232,
-0.3257756531238556,
0.4254453778266907,
-0.5168023109436035,
0.28581541776657104,
0.7491373419761658,
0.11006756871938705,
0.3059225082397461,
-0.12553048133850098,
0.18304330110549927,
-0.11985164880752563,
-0.6558922529220581,
-0.5433893799781799,
1.4231561422348022,
0.3990228772163391,
0.41704776883125305,
0.1606835126876831,
0.7504691481590271,
0.010084767825901508,
0.2427411526441574,
-0.6223360896110535,
0.41370663046836853,
-0.3807843029499054,
-1.0303428173065186,
-0.4127475917339325,
-0.48952755331993103,
-1.014906883239746,
0.18259942531585693,
-0.4478490948677063,
-0.8333982825279236,
0.1209908202290535,
-0.02052404172718525,
-0.2852078378200531,
0.3373613953590393,
-0.6822138428688049,
1.0282896757125854,
-0.2583887577056885,
-0.20080634951591492,
-0.10991757363080978,
-0.7046329379081726,
0.5744786858558655,
-0.19762341678142548,
0.430260568857193,
-0.11824875324964523,
0.21650555729866028,
0.7668268084526062,
-0.19244444370269775,
0.9619833827018738,
-0.19997403025627136,
0.09517759829759598,
0.19017072021961212,
-0.20862850546836853,
0.4027271568775177,
-0.21669085323810577,
-0.21777032315731049,
0.4460996389389038,
0.11752742528915405,
-0.34969860315322876,
-0.40720030665397644,
0.4775947332382202,
-0.7195725440979004,
-0.3680393695831299,
-0.48583051562309265,
-0.465763658285141,
0.010341964662075043,
0.24520538747310638,
0.40524280071258545,
0.5868787169456482,
-0.14670036733150482,
0.31706127524375916,
0.6076124906539917,
-0.5381274223327637,
0.2619306445121765,
0.5044153928756714,
-0.3261668086051941,
-0.1955217570066452,
0.8560009598731995,
0.23565535247325897,
0.2602699398994446,
0.3753823935985565,
0.10023681819438934,
-0.21537062525749207,
-0.5023926496505737,
-0.29710450768470764,
0.36682841181755066,
-0.4821857810020447,
-0.14435403048992157,
-0.8334909677505493,
-0.30414819717407227,
-0.593048632144928,
0.11262626200914383,
-0.1439887136220932,
-0.446451872587204,
-0.41597431898117065,
-0.021155565977096558,
0.33671835064888,
0.6079654097557068,
0.14994128048419952,
0.19878317415714264,
-0.6774487495422363,
0.1743084341287613,
-0.004256769549101591,
0.2134224772453308,
0.04604274779558182,
-0.8651754260063171,
-0.18380968272686005,
0.1276611089706421,
-0.2475660741329193,
-0.6953985095024109,
0.4271296560764313,
0.2802494764328003,
0.4612829089164734,
0.35637393593788147,
0.1401354819536209,
0.5584685802459717,
-0.5122556090354919,
0.9390761852264404,
0.13089217245578766,
-0.8154801726341248,
0.5445597171783447,
-0.4072209894657135,
0.18182890117168427,
0.4054451584815979,
0.6403458714485168,
-0.4977423846721649,
-0.554573118686676,
-0.8417425751686096,
-0.9715192317962646,
0.7025027275085449,
0.1166517436504364,
0.26574549078941345,
-0.10680422186851501,
0.1853087842464447,
-0.05525030195713043,
0.16977979242801666,
-1.2071577310562134,
-0.2732826769351959,
-0.04999779909849167,
-0.3441843092441559,
-0.39751997590065,
-0.368697851896286,
-0.12905120849609375,
-0.39334625005722046,
0.876437783241272,
-0.008482401259243488,
0.36308661103248596,
0.18016444146633148,
-0.22412726283073425,
0.0956953763961792,
0.33911773562431335,
0.6754962205886841,
0.49108442664146423,
-0.40655821561813354,
-0.11733628064393997,
0.13294599950313568,
-0.2971420884132385,
-0.12810692191123962,
0.30045875906944275,
-0.2738580107688904,
0.06437277793884277,
0.5444295406341553,
0.9653468132019043,
0.3091806173324585,
-0.8066469430923462,
0.7176162004470825,
-0.003560997312888503,
-0.2755581736564636,
-0.498583048582077,
0.023492904379963875,
0.10221893340349197,
0.22630544006824493,
0.24801111221313477,
-0.005704051814973354,
0.14755330979824066,
-0.6784149408340454,
0.1386563628911972,
0.4235268831253052,
-0.2546049654483795,
-0.2488037794828415,
0.6992191672325134,
0.026895441114902496,
-0.165157288312912,
0.5717570781707764,
-0.3935213088989258,
-0.442859411239624,
0.6334764361381531,
0.593819797039032,
0.6425830721855164,
-0.03732535243034363,
0.30963388085365295,
0.6623470783233643,
0.3740948736667633,
-0.005120175890624523,
0.027208149433135986,
0.22117966413497925,
-0.7121977806091309,
-0.5021283626556396,
-0.9243694543838501,
0.04128172993659973,
0.2606891393661499,
-0.647849977016449,
0.275255411863327,
-0.4125538170337677,
-0.1847686916589737,
0.1562017798423767,
0.10913189500570297,
-0.77688068151474,
0.19838117063045502,
0.08126065135002136,
0.9440789222717285,
-0.9686405658721924,
0.8741188049316406,
0.45428794622421265,
-0.7767889499664307,
-0.8633615374565125,
0.180500790476799,
0.13181723654270172,
-0.6619907021522522,
0.7851399779319763,
0.4388585686683655,
0.3034709692001343,
0.00018712534802034497,
-0.48854485154151917,
-0.9093530774116516,
1.0859295129776,
0.17042118310928345,
-0.5411919355392456,
-0.11531981825828552,
-0.10776936262845993,
0.7149929404258728,
-0.35286256670951843,
0.3829372227191925,
0.2891194224357605,
0.5324188470840454,
-0.0059908004477620125,
-1.0615267753601074,
0.011570132337510586,
-0.17811457812786102,
0.002227597404271364,
0.013587397523224354,
-0.6424543261528015,
1.1205333471298218,
-0.17320457100868225,
-0.16844810545444489,
0.14038260281085968,
0.369256854057312,
0.11061856150627136,
0.29317474365234375,
0.4641575217247009,
0.7383381128311157,
0.9222705960273743,
-0.07380194962024689,
1.1972732543945312,
-0.33788466453552246,
0.44503480195999146,
1.147507667541504,
-0.0718001127243042,
1.1008517742156982,
0.17283369600772858,
-0.3851280212402344,
0.6588571071624756,
0.5898035764694214,
-0.2500680983066559,
0.28050369024276733,
0.12968719005584717,
-0.1033729687333107,
-0.10120640695095062,
-0.13194245100021362,
-0.29840710759162903,
0.6062049865722656,
0.12707071006298065,
-0.47344687581062317,
-0.025196481496095657,
0.16597315669059753,
0.26430559158325195,
0.02808329463005066,
-0.08815687894821167,
0.6467208862304688,
-0.037038132548332214,
-0.6341688632965088,
0.5982146859169006,
0.17139948904514313,
0.9337372779846191,
-0.605811357498169,
0.12332237511873245,
-0.052727241069078445,
0.10738221555948257,
-0.1311151385307312,
-0.6672111749649048,
0.23337091505527496,
0.033270448446273804,
-0.3716461658477783,
-0.06789756566286087,
0.5006324052810669,
-0.6226708889007568,
-0.6473971605300903,
0.4717094898223877,
0.2763248682022095,
0.38898465037345886,
-0.11265348643064499,
-0.8617892861366272,
0.06367745250463486,
0.11513414233922958,
-0.2953038811683655,
0.4237282872200012,
0.3316403031349182,
-0.036626607179641724,
0.5856277942657471,
0.8105043768882751,
0.02587035484611988,
-0.06067775934934616,
0.07950372993946075,
0.6036168932914734,
-0.5609608292579651,
-0.3188624382019043,
-0.718614399433136,
0.658047080039978,
-0.17324338853359222,
-0.3499771058559418,
0.8704433441162109,
0.586679995059967,
0.961428701877594,
-0.046234264969825745,
0.661669135093689,
-0.13410913944244385,
0.6253596544265747,
-0.6796143054962158,
0.6244522929191589,
-0.683436930179596,
0.02558453008532524,
-0.369225412607193,
-0.8545885682106018,
-0.3590635657310486,
0.6507759690284729,
-0.33401909470558167,
0.22272591292858124,
0.6024361848831177,
0.8294686079025269,
-0.003181568579748273,
-0.12116247415542603,
0.1743568331003189,
0.4477228820323944,
0.12253788113594055,
0.5230568051338196,
0.35188090801239014,
-0.6171252727508545,
0.5769622921943665,
-0.14914384484291077,
-0.2967953383922577,
-0.1834157556295395,
-0.8605261445045471,
-1.0144028663635254,
-0.7365671992301941,
-0.24269992113113403,
-0.5111823678016663,
0.12269441038370132,
0.9444162249565125,
0.6986236572265625,
-0.7798018455505371,
-0.20551326870918274,
0.1276896893978119,
-0.03594626486301422,
-0.03506098687648773,
-0.30248042941093445,
0.39989322423934937,
-0.2874317765235901,
-0.8382035493850708,
0.1526983678340912,
0.03602117300033569,
0.004281129688024521,
-0.24872061610221863,
-0.08939556777477264,
-0.5723055005073547,
-0.04279747232794762,
0.656508207321167,
0.11946900188922882,
-0.8353270888328552,
-0.22809264063835144,
-0.05334153398871422,
-0.09010079503059387,
-0.054162491112947464,
0.2756003439426422,
-0.5273678302764893,
0.3306185007095337,
0.1105993315577507,
0.44958484172821045,
0.657989501953125,
-0.07833407074213028,
0.36252084374427795,
-0.7114013433456421,
0.37273597717285156,
0.0847654789686203,
0.2843286991119385,
0.29208076000213623,
-0.4113849699497223,
0.5911895036697388,
0.3571867346763611,
-0.522520124912262,
-0.8898630142211914,
0.0342339351773262,
-1.059662103652954,
-0.5393774509429932,
1.2062917947769165,
-0.16947351396083832,
-0.330897718667984,
0.002026680391281843,
-0.17304538190364838,
0.2765907645225525,
-0.25591522455215454,
0.5811526775360107,
0.8460108041763306,
0.1252257078886032,
-0.15460187196731567,
-0.8879038691520691,
0.43184199929237366,
0.26839715242385864,
-0.6139422655105591,
-0.13122427463531494,
0.5145597457885742,
0.5196923017501831,
0.3189474940299988,
0.7064575552940369,
-0.09897810965776443,
-0.0028802042361348867,
-0.11600328981876373,
0.27799272537231445,
-0.01784544438123703,
-0.2633780539035797,
-0.422802597284317,
0.0809306725859642,
-0.04994393140077591,
0.006774477660655975
] |
microsoft/DialoGPT-medium | microsoft | "2023-01-24T16:55:09Z" | 115,456 | 250 | transformers | [
"transformers",
"pytorch",
"tf",
"jax",
"rust",
"gpt2",
"text-generation",
"conversational",
"arxiv:1911.00536",
"license:mit",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | conversational | "2022-03-02T23:29:05Z" | ---
thumbnail: https://huggingface.co/front/thumbnails/dialogpt.png
tags:
- conversational
license: mit
---
## A State-of-the-Art Large-scale Pretrained Response generation model (DialoGPT)
DialoGPT is a SOTA large-scale pretrained dialogue response generation model for multiturn conversations.
The [human evaluation results](https://github.com/dreasysnail/Dialogpt_dev#human-evaluation) indicate that the response generated from DialoGPT is comparable to human response quality under a single-turn conversation Turing test.
The model is trained on 147M multi-turn dialogue from Reddit discussion thread.
* Multi-turn generation examples from an interactive environment:
|Role | Response |
|---------|--------|
|User | Does money buy happiness? |
| Bot | Depends how much money you spend on it .|
|User | What is the best way to buy happiness ? |
| Bot | You just have to be a millionaire by your early 20s, then you can be happy . |
|User |This is so difficult ! |
| Bot | You have no idea how hard it is to be a millionaire and happy . There is a reason the rich have a lot of money |
Please find the information about preprocessing, training and full details of the DialoGPT in the [original DialoGPT repository](https://github.com/microsoft/DialoGPT)
ArXiv paper: [https://arxiv.org/abs/1911.00536](https://arxiv.org/abs/1911.00536)
### How to use
Now we are ready to try out how the model works as a chatting partner!
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
tokenizer = AutoTokenizer.from_pretrained("microsoft/DialoGPT-medium")
model = AutoModelForCausalLM.from_pretrained("microsoft/DialoGPT-medium")
# Let's chat for 5 lines
for step in range(5):
# encode the new user input, add the eos_token and return a tensor in Pytorch
new_user_input_ids = tokenizer.encode(input(">> User:") + tokenizer.eos_token, return_tensors='pt')
# append the new user input tokens to the chat history
bot_input_ids = torch.cat([chat_history_ids, new_user_input_ids], dim=-1) if step > 0 else new_user_input_ids
# generated a response while limiting the total chat history to 1000 tokens,
chat_history_ids = model.generate(bot_input_ids, max_length=1000, pad_token_id=tokenizer.eos_token_id)
# pretty print last ouput tokens from bot
print("DialoGPT: {}".format(tokenizer.decode(chat_history_ids[:, bot_input_ids.shape[-1]:][0], skip_special_tokens=True)))
```
| [
-0.39706116914749146,
-0.9546933174133301,
0.03262511268258095,
0.12626910209655762,
-0.1745961308479309,
0.16929297149181366,
0.00004396753865876235,
-0.1989670991897583,
0.19344742596149445,
0.4442462623119354,
-0.8581786155700684,
-0.13556458055973053,
-0.43932393193244934,
-0.05270931497216225,
-0.19904975593090057,
1.0985727310180664,
0.39819127321243286,
0.19213832914829254,
-0.007704852614551783,
0.12437322735786438,
-0.5021193027496338,
-0.7355585694313049,
-0.860285758972168,
-0.18905314803123474,
0.038255225867033005,
0.26845285296440125,
0.5138120651245117,
-0.03911297023296356,
0.32985174655914307,
0.4935615360736847,
-0.03253631666302681,
0.11535955965518951,
-0.7655731439590454,
0.057201433926820755,
0.21503318846225739,
-0.5555877685546875,
-0.7201791405677795,
0.11187655478715897,
0.23282624781131744,
0.2934054732322693,
0.004820241127163172,
0.38267433643341064,
0.13752040266990662,
0.32149460911750793,
-0.3744220733642578,
0.26316824555397034,
-0.6063744425773621,
0.04866277426481247,
0.1781168431043625,
-0.6364403367042542,
-0.45066848397254944,
-0.2470797598361969,
0.48596304655075073,
-0.5558226704597473,
0.27759119868278503,
0.21548974514007568,
0.9107165932655334,
-0.046675700694322586,
-0.4457479417324066,
-0.5364978313446045,
-0.48829227685928345,
0.7733346223831177,
-0.9144431352615356,
0.27186447381973267,
0.31326842308044434,
0.2387303113937378,
-0.5153902173042297,
-0.869897723197937,
-0.6004454493522644,
-0.29030781984329224,
0.019650502130389214,
0.16176031529903412,
-0.2301860898733139,
0.35259440541267395,
0.37815871834754944,
0.34298133850097656,
-0.722200870513916,
-0.2891823649406433,
-0.5391067266464233,
-0.6263267993927002,
0.5310730338096619,
0.2615128457546234,
0.22652724385261536,
-0.3166804313659668,
-0.4265131950378418,
-0.12934176623821259,
-0.40539172291755676,
0.09475700557231903,
0.45954927802085876,
0.22881639003753662,
-0.20345930755138397,
0.6739941239356995,
-0.27897119522094727,
0.8063414692878723,
0.14567194879055023,
-0.31184619665145874,
0.3877345621585846,
-0.529375433921814,
-0.23347973823547363,
-0.16306638717651367,
0.9681007266044617,
0.5447060465812683,
0.28280404210090637,
0.24959076941013336,
-0.028963575139641762,
-0.36064377427101135,
-0.06260864436626434,
-1.0529649257659912,
-0.17798282206058502,
0.46130654215812683,
-0.573132336139679,
-0.3248385190963745,
-0.23743656277656555,
-0.7848725318908691,
-0.17209966480731964,
-0.1441725343465805,
0.7049542665481567,
-0.5200397968292236,
-0.43177229166030884,
0.08840469270944595,
-0.2504148781299591,
0.24995583295822144,
0.3410605788230896,
-0.7912377119064331,
0.09878944605588913,
0.3994584381580353,
0.9662051796913147,
0.2322416603565216,
-0.42278897762298584,
-0.5295529961585999,
-0.4153463542461395,
-0.030476495623588562,
0.5639739632606506,
-0.21091525256633759,
-0.3219420909881592,
0.05935589224100113,
-0.08339373022317886,
-0.12421374022960663,
-0.4402448534965515,
-0.06083596870303154,
-0.4944706857204437,
0.7003499865531921,
0.1350831687450409,
-0.7382920980453491,
-0.01780678890645504,
0.3581155240535736,
-0.3081141412258148,
0.7932701706886292,
0.05933258682489395,
-0.8580132722854614,
0.27494990825653076,
-0.9609206318855286,
-0.19071176648139954,
0.08897663652896881,
-0.04498719796538353,
-0.24401362240314484,
0.010618103668093681,
-0.006369465496391058,
0.5337203741073608,
-0.2684295177459717,
0.05444350093603134,
-0.36472082138061523,
-0.15853655338287354,
0.6088747978210449,
-0.5407477617263794,
1.0021717548370361,
0.3725723922252655,
-0.2988121211528778,
0.42360907793045044,
-0.6285634636878967,
0.2270667552947998,
0.20312808454036713,
-0.3288745582103729,
0.3208546042442322,
-0.2677467167377472,
0.17726600170135498,
0.5111970901489258,
0.45907172560691833,
-0.5407046675682068,
0.14782561361789703,
-0.39141616225242615,
0.8695933222770691,
0.8583030104637146,
0.011515150777995586,
0.21514618396759033,
-0.3004397749900818,
0.4602506458759308,
0.04867057874798775,
0.24388276040554047,
-0.434030681848526,
-0.45614680647850037,
-0.8389216065406799,
-0.3160405457019806,
0.16318634152412415,
0.5305886268615723,
-0.7919577956199646,
0.739592969417572,
-0.08150637894868851,
-0.39019936323165894,
-0.3994758427143097,
-0.09017442166805267,
0.22805356979370117,
0.523821234703064,
0.11830256134271622,
-0.3897216320037842,
-0.6879558563232422,
-0.657134473323822,
-0.07609109580516815,
-0.3932725191116333,
-0.1756051927804947,
0.3750215172767639,
0.6030121445655823,
-0.04673366621136665,
1.00869882106781,
-0.624647319316864,
-0.11713982373476028,
-0.44953209161758423,
0.381436824798584,
0.07903020083904266,
0.6156203746795654,
0.4123707413673401,
-0.6274275779724121,
-0.44742849469184875,
-0.38858193159103394,
-0.5560289621353149,
0.23410052061080933,
-0.2058539092540741,
-0.25838032364845276,
0.21531115472316742,
0.44626232981681824,
-0.7384073138237,
0.5547754764556885,
0.5051334500312805,
-0.6694669127464294,
0.7132284045219421,
-0.16629725694656372,
0.3762035071849823,
-1.356796145439148,
0.008920570835471153,
-0.388137549161911,
-0.47253522276878357,
-0.6146358847618103,
-0.18282368779182434,
-0.3878825902938843,
-0.4423242211341858,
-0.6888578534126282,
0.5921306014060974,
-0.34783434867858887,
-0.00020862049132119864,
-0.2523030638694763,
0.04113047197461128,
-0.3611810803413391,
0.7918624877929688,
-0.01222073845565319,
0.7667016386985779,
0.5871620178222656,
-0.4221407473087311,
0.701206624507904,
0.3989335894584656,
-0.15508520603179932,
0.5604155659675598,
-0.853291392326355,
0.34599214792251587,
0.09633564949035645,
0.39307430386543274,
-1.4531097412109375,
-0.3843952417373657,
0.1549626886844635,
-0.964693546295166,
0.13630971312522888,
-0.19044440984725952,
-0.5466940402984619,
-0.48836126923561096,
-0.2845916450023651,
0.21688143908977509,
0.636132001876831,
-0.3518349826335907,
0.6118422150611877,
0.36202943325042725,
-0.13482025265693665,
-0.4157164394855499,
-0.4000847637653351,
0.09701987355947495,
-0.1423829048871994,
-0.867702841758728,
-0.10925553739070892,
-0.42592963576316833,
0.23349863290786743,
-0.3984885513782501,
0.09460461884737015,
-0.13349273800849915,
-0.03425174579024315,
0.25107407569885254,
0.44578272104263306,
-0.046336643397808075,
0.015415001660585403,
-0.5018658638000488,
-0.25591373443603516,
0.009797034785151482,
-0.07822007685899734,
1.397528886795044,
-0.36933788657188416,
-0.21509629487991333,
-0.7445467710494995,
0.2769041657447815,
0.6847159266471863,
0.010072964243590832,
0.6293655037879944,
0.682320237159729,
-0.2704355716705322,
0.22815345227718353,
-0.6685978770256042,
-0.6269872188568115,
-0.5480411052703857,
0.6859317421913147,
-0.3911595642566681,
-0.981414258480072,
0.6000105738639832,
0.020224018022418022,
0.35889121890068054,
0.45188069343566895,
0.8801354765892029,
-0.02738144062459469,
1.2703418731689453,
0.5345839858055115,
0.013066944666206837,
0.7367144823074341,
-0.40312790870666504,
0.2028074562549591,
-0.5579701066017151,
-0.0314796157181263,
-0.2929244637489319,
-0.16350767016410828,
-0.5990153551101685,
-0.1910414695739746,
0.14032433927059174,
0.006569224875420332,
-0.47007158398628235,
0.38105618953704834,
-0.45134156942367554,
0.15457987785339355,
0.7494789958000183,
0.051552437245845795,
0.09228722751140594,
-0.08416303992271423,
0.0783524364233017,
-0.03208690881729126,
-0.7485362887382507,
-0.5376359224319458,
1.2568449974060059,
0.39546483755111694,
0.686140239238739,
-0.19973492622375488,
0.7981862425804138,
0.08226851373910904,
0.0975029319524765,
-0.8429794907569885,
0.7412253618240356,
0.5406653881072998,
-0.9478607177734375,
-0.45053520798683167,
-0.6135645508766174,
-0.97145015001297,
0.13384772837162018,
-0.2744863033294678,
-1.0878738164901733,
-0.18278756737709045,
0.3988291919231415,
-0.48163893818855286,
0.1784951388835907,
-0.9431825280189514,
0.9408658146858215,
-0.29983752965927124,
-0.26858824491500854,
-0.11277518421411514,
-0.7123377323150635,
0.20260867476463318,
0.22747787833213806,
-0.12599065899848938,
-0.17167869210243225,
0.29612231254577637,
0.8954642415046692,
-0.5089062452316284,
0.7980417013168335,
-0.23689407110214233,
0.30606338381767273,
0.3684813976287842,
0.16789820790290833,
0.3052988052368164,
0.09957759827375412,
0.2541831135749817,
-0.02595110423862934,
0.15791529417037964,
-0.47342395782470703,
-0.3099357783794403,
0.5290074944496155,
-0.9720504283905029,
-0.5711130499839783,
-0.35213348269462585,
-0.5378012657165527,
-0.14503027498722076,
0.40746569633483887,
0.6801577806472778,
0.5065484642982483,
-0.2828163504600525,
0.29127421975135803,
0.34164896607398987,
-0.35842376947402954,
0.5026898980140686,
0.33801254630088806,
-0.2803891599178314,
-0.5077181458473206,
0.8703452944755554,
0.08837912231683731,
0.47444379329681396,
0.076950304210186,
0.031954575330019,
-0.32768625020980835,
-0.2045782506465912,
-0.38154664635658264,
0.06684093922376633,
-0.4600714147090912,
-0.21560247242450714,
-0.6378025412559509,
-0.47032618522644043,
-0.6573210954666138,
-0.11330371350049973,
-0.6089714765548706,
-0.30575188994407654,
-0.22069360315799713,
0.024245569482445717,
0.3405233919620514,
0.38159215450286865,
-0.017359547317028046,
0.3911641538143158,
-0.6830592155456543,
0.2681627869606018,
0.628900945186615,
0.12050305306911469,
0.03975307196378708,
-0.5341148376464844,
0.05550597235560417,
0.2798774540424347,
-0.5372021198272705,
-0.7629240155220032,
0.5150271058082581,
0.1127251610159874,
0.5099419355392456,
0.44702231884002686,
0.11878601461648941,
0.7784793972969055,
-0.2680191397666931,
0.9884631633758545,
0.5194582343101501,
-0.9063458442687988,
0.38202884793281555,
-0.18488709628582,
0.3765745759010315,
0.43483224511146545,
0.11531073600053787,
-0.6853795051574707,
-0.2970287501811981,
-0.9019455909729004,
-0.9325426816940308,
0.8905898332595825,
0.6286072134971619,
0.4301346242427826,
0.10388834029436111,
0.046353623270988464,
-0.0025240357499569654,
0.4981827139854431,
-0.7827568650245667,
-0.38974282145500183,
-0.36213746666908264,
-0.10131237655878067,
0.038328856229782104,
-0.30253326892852783,
-0.11642896384000778,
-0.16778288781642914,
0.6228100061416626,
-0.0939534455537796,
0.7983217835426331,
0.16149620711803436,
-0.10961512476205826,
0.05948833003640175,
0.18330836296081543,
0.6584259271621704,
0.8351064324378967,
-0.3716382086277008,
-0.1179867833852768,
0.15884488821029663,
-0.46720919013023376,
-0.055197346955537796,
0.16786696016788483,
0.2603009343147278,
-0.09214591979980469,
0.42263221740722656,
0.9193493723869324,
-0.08985798060894012,
-0.6507660150527954,
0.6725082397460938,
-0.4138509929180145,
-0.3682916760444641,
-0.48568543791770935,
0.026811160147190094,
0.17387549579143524,
0.15704822540283203,
0.5545296669006348,
-0.005496426951140165,
0.07008352130651474,
-0.7242136597633362,
0.1414419263601303,
0.48591580986976624,
-0.3676373064517975,
-0.33778437972068787,
0.615212082862854,
0.6135240793228149,
-0.6456085443496704,
0.8691257834434509,
-0.12022865563631058,
-0.694537878036499,
0.48802217841148376,
0.48917531967163086,
0.9718484878540039,
0.013713880442082882,
0.2285839468240738,
0.5110176801681519,
-0.0030396818183362484,
0.1661864072084427,
0.35849490761756897,
-0.185725599527359,
-0.7836102247238159,
-0.20101092755794525,
-0.41374579071998596,
-0.21353374421596527,
0.3314255177974701,
-0.4794353246688843,
0.2953624725341797,
-0.46639931201934814,
-0.4133530855178833,
0.04075339809060097,
0.016458014026284218,
-1.0104707479476929,
0.016358064487576485,
-0.08205794543027878,
0.7459816932678223,
-0.6332495808601379,
0.3468654751777649,
0.45859912037849426,
-0.3464258313179016,
-0.572780966758728,
-0.06186002120375633,
0.14195697009563446,
-1.0107612609863281,
0.5142241716384888,
0.31880250573158264,
0.0962560698390007,
0.2570091784000397,
-0.8093200922012329,
-0.7155261039733887,
0.9248753786087036,
0.32819661498069763,
-0.45434221625328064,
-0.10790956765413284,
0.20978747308254242,
0.38614165782928467,
-0.38041824102401733,
0.7083357572555542,
0.4263737201690674,
0.10939019173383713,
0.3493448495864868,
-1.1110588312149048,
-0.011735043488442898,
-0.30917710065841675,
-0.12094271183013916,
-0.05593520402908325,
-0.7312928438186646,
0.893487811088562,
-0.22199837863445282,
-0.14606264233589172,
0.2834078073501587,
0.589990496635437,
0.3249901533126831,
0.05250677466392517,
0.731965184211731,
0.32536929845809937,
0.4967181086540222,
-0.2179102599620819,
0.8185045123100281,
-0.6021336317062378,
0.7023071646690369,
0.9830389022827148,
0.1745104193687439,
0.6830846071243286,
0.5468438267707825,
-0.17738553881645203,
0.24049106240272522,
0.7954158782958984,
0.21191304922103882,
0.3429252803325653,
0.25754985213279724,
-0.1814463883638382,
-0.40721532702445984,
0.02583254687488079,
-0.45045560598373413,
0.4763351082801819,
0.16127243638038635,
-0.32365065813064575,
-0.12181447446346283,
0.10287470370531082,
0.18550227582454681,
-0.6479455828666687,
0.02851501666009426,
0.9171241521835327,
-0.08688224107027054,
-0.6403186321258545,
0.6656220555305481,
-0.2823285460472107,
0.8869786858558655,
-0.8159405589103699,
-0.08138489723205566,
-0.09839309751987457,
0.24513238668441772,
-0.1373448520898819,
-0.5535157918930054,
-0.13454124331474304,
-0.17891353368759155,
0.16262158751487732,
-0.050940290093421936,
0.6464995741844177,
-0.3675720691680908,
-0.31030547618865967,
-0.013980631716549397,
0.544171154499054,
0.2589167356491089,
0.018224196508526802,
-0.9539734125137329,
-0.054354552179574966,
0.2629799246788025,
-0.7119958996772766,
0.28145623207092285,
0.24301029741764069,
0.369838148355484,
0.7601766586303711,
0.8136446475982666,
-0.15228579938411713,
0.15585169196128845,
-0.1655278354883194,
0.8573636412620544,
-0.614219605922699,
-0.5901018977165222,
-0.7940687537193298,
0.7412534952163696,
-0.36599865555763245,
-0.7982483506202698,
0.7453566193580627,
0.5932657718658447,
0.7705650925636292,
-0.2057039737701416,
0.6845433712005615,
-0.33523494005203247,
0.343514621257782,
-0.24738062918186188,
0.5941743850708008,
-0.478241890668869,
-0.0370122566819191,
-0.2647954523563385,
-0.7763173580169678,
0.006326481234282255,
0.864479124546051,
-0.1429372876882553,
0.2156670242547989,
0.47508522868156433,
0.8935364484786987,
0.1261657029390335,
-0.08511597663164139,
0.4051758944988251,
0.3404938280582428,
0.5385329127311707,
0.5199690461158752,
0.9387893080711365,
-0.40866991877555847,
0.7988162040710449,
-0.12741141021251678,
-0.4135894179344177,
-0.4366970658302307,
-0.6461947560310364,
-1.2234164476394653,
-0.7175613045692444,
-0.21550971269607544,
-0.5533425211906433,
-0.11842267215251923,
1.3478232622146606,
1.02012038230896,
-0.6692694425582886,
-0.42894336581230164,
-0.16713888943195343,
-0.11587908864021301,
0.023612380027770996,
-0.31771120429039,
0.17349788546562195,
-0.45113271474838257,
-0.8680697083473206,
-0.14035791158676147,
0.0857420489192009,
0.37606367468833923,
-0.42330828309059143,
-0.05605805665254593,
-0.16789279878139496,
0.12378138303756714,
0.613867461681366,
0.38132244348526,
-0.5313812494277954,
-0.33035704493522644,
0.161085844039917,
-0.14451223611831665,
0.04740805923938751,
0.6777337789535522,
-0.43062421679496765,
0.7261233329772949,
0.7424612641334534,
0.1463739275932312,
0.7646684050559998,
-0.18813665211200714,
0.8106712698936462,
-0.5027865767478943,
0.39861106872558594,
0.2999561131000519,
0.42128756642341614,
0.19442011415958405,
-0.2630859315395355,
0.28197959065437317,
0.2000323086977005,
-0.7637197375297546,
-0.8095279335975647,
0.21009017527103424,
-0.9335415959358215,
-0.14304403960704803,
1.003665804862976,
-0.2584089934825897,
-0.16083145141601562,
-0.16392108798027039,
-0.7598711848258972,
0.2534373700618744,
-0.6979243755340576,
0.8483666181564331,
0.6921452879905701,
-0.3555871248245239,
-0.07750660181045532,
-0.4738098382949829,
0.5953697562217712,
0.3181836009025574,
-0.6686112880706787,
0.0663917064666748,
0.42803528904914856,
0.4600677192211151,
0.29519468545913696,
0.9587912559509277,
0.010436027310788631,
0.3471081852912903,
0.13908500969409943,
0.22130970656871796,
-0.10113532841205597,
-0.027516072615981102,
0.04545826464891434,
0.21078912913799286,
-0.043991945683956146,
-0.47607043385505676
] |
yiyanghkust/finbert-esg-9-categories | yiyanghkust | "2022-10-17T00:34:01Z" | 114,350 | 24 | transformers | [
"transformers",
"pytorch",
"bert",
"text-classification",
"financial-text-analysis",
"esg",
"environmental-social-corporate-governance",
"en",
"endpoints_compatible",
"region:us"
] | text-classification | "2022-10-14T01:16:21Z" | ---
language: "en"
tags:
- financial-text-analysis
- esg
- environmental-social-corporate-governance
widget:
- text: "For 2002, our total net emissions were approximately 60 million metric tons of CO2 equivalents for all businesses and operations we have financial interests in, based on its equity share in those businesses and operations. "
---
ESG analysis can help investors determine a business' long-term sustainability and identify associated risks. **FinBERT-esg-9-categories** is a FinBERT model fine-tuned on about 14,000 manually annotated sentences from firms' ESG reports and annual reports.
**finbert-esg-9-categories** classifies a text into nine fine-grained ESG topics: *Climate Change, Natural Capital, Pollution & Waste, Human Capital, Product Liability, Community Relations, Corporate Governance, Business Ethics & Values, and Non-ESG*. This model complements [**finbert-esg**](https://huggingface.co/yiyanghkust/finbert-esg) which classifies a text into four coarse-grained ESG themes (*E, S, G or None*).
Detailed description of the nine fine-grained ESG topic definition, some examples for each topic, training sample, and the model’s performance can be found [**here**](https://www.allenhuang.org/uploads/2/6/5/5/26555246/esg_9-class_descriptions.pdf).
**Input**: A text.
**Output**: Climate Change, Natural Capital, Pollution & Waste, Human Capital, Product Liability, Community Relations, Corporate Governance, Business Ethics & Values, or Non-ESG.
# How to use
You can use this model with Transformers pipeline for fine-grained ESG 9 categories classification.
```python
from transformers import BertTokenizer, BertForSequenceClassification, pipeline
finbert = BertForSequenceClassification.from_pretrained('yiyanghkust/finbert-esg-9-categories',num_labels=9)
tokenizer = BertTokenizer.from_pretrained('yiyanghkust/finbert-esg-9-categories')
nlp = pipeline("text-classification", model=finbert, tokenizer=tokenizer)
results = nlp('For 2002, our total net emissions were approximately 60 million metric tons of CO2 equivalents for all businesses
and operations we have financial interests in, based on its equity share in those businesses and operations.')
print(results) # [{'label': 'Climate Change', 'score': 0.9955655932426453}]
```
If you use the model in your academic work, please cite the following paper:
Huang, Allen H., Hui Wang, and Yi Yang. "FinBERT: A Large Language Model for Extracting Information from Financial Text." *Contemporary Accounting Research* (2022). | [
-0.42908328771591187,
-0.8377641439437866,
0.30617228150367737,
-0.01848459802567959,
-0.28030890226364136,
0.09906165301799774,
-0.13252906501293182,
-0.6950898766517639,
0.28375107049942017,
0.7373676896095276,
-0.4677447974681854,
-0.6537953615188599,
-0.7128121852874756,
0.17076240479946136,
-0.4819975793361664,
1.353104591369629,
0.29055294394493103,
-0.22419023513793945,
0.027277614921331406,
0.0024797881487756968,
-0.1840873658657074,
-0.3210567831993103,
-1.0307825803756714,
-0.3427850008010864,
0.36315247416496277,
0.27485373616218567,
0.287185937166214,
0.3258092701435089,
0.46869373321533203,
0.33061274886131287,
-0.4067476987838745,
-0.03644149377942085,
-0.5379330515861511,
-0.06272145360708237,
-0.0412425696849823,
-0.1957070231437683,
-0.13243253529071808,
0.09090489149093628,
0.5941929817199707,
0.6839348077774048,
-0.17439673840999603,
0.6382029056549072,
0.24938949942588806,
0.67027348279953,
-0.3910576105117798,
0.45133188366889954,
-0.4955417811870575,
0.02872600592672825,
-0.12362074106931686,
-0.24188707768917084,
-0.4810761511325836,
-0.08276133984327316,
0.37926796078681946,
-0.3276512920856476,
0.1934872716665268,
0.36097583174705505,
1.2620131969451904,
0.3791619837284088,
-0.31917858123779297,
-0.43748727440834045,
-0.5374366641044617,
1.0475237369537354,
-0.6951543688774109,
0.4045547544956207,
0.07957491278648376,
-0.10931737720966339,
0.034537967294454575,
-0.8582141995429993,
-0.3257461488246918,
-0.10669310390949249,
-0.2675914764404297,
0.44894760847091675,
-0.4036618769168854,
0.24839471280574799,
0.28276774287223816,
0.41014423966407776,
-0.4882146418094635,
0.10835234075784683,
-0.8037928342819214,
-0.19237445294857025,
0.6791276931762695,
-0.036492884159088135,
0.15948271751403809,
-0.3011750280857086,
-0.9491731524467468,
-0.16915744543075562,
-0.591554582118988,
0.34626680612564087,
0.6030896902084351,
0.3801899254322052,
0.20700885355472565,
0.38524818420410156,
0.006628542672842741,
0.5350412130355835,
0.0708729475736618,
0.10784141719341278,
0.21485555171966553,
-0.3309538960456848,
-0.3813745081424713,
0.3111201822757721,
0.506611704826355,
0.5798786878585815,
0.10377971082925797,
-0.09681160748004913,
-0.19989213347434998,
-0.08486424386501312,
0.11439681798219681,
-0.8830607533454895,
-0.2960200011730194,
0.5130348205566406,
-0.6294586658477783,
-0.4223756492137909,
0.2453123778104782,
-1.0783231258392334,
-0.1542537361383438,
-0.2751801609992981,
0.35801491141319275,
-0.08285022526979446,
-0.13667723536491394,
0.442700058221817,
-0.5184791088104248,
0.42739638686180115,
-0.06944181770086288,
-0.8043115735054016,
0.34599143266677856,
0.6958250999450684,
0.8690944314002991,
-0.004386070650070906,
-0.10256452858448029,
-0.6009038686752319,
-0.07414301484823227,
-0.05529439449310303,
0.9672297239303589,
-0.4321720600128174,
-0.2826024293899536,
-0.1995067298412323,
0.19310906529426575,
-0.019229453057050705,
-0.2655683755874634,
0.5614692568778992,
-0.24206286668777466,
0.2329038381576538,
-0.17128494381904602,
-0.5946609377861023,
-0.5823256373405457,
-0.09802508354187012,
-0.6371016502380371,
1.194038987159729,
-0.027789417654275894,
-0.741722822189331,
0.5981118679046631,
-0.8835148811340332,
-0.051077622920274734,
0.33602607250213623,
-0.08794447779655457,
-0.8192398548126221,
-0.20108702778816223,
-0.08064824342727661,
0.6228577494621277,
-0.24108758568763733,
0.6050370931625366,
-0.2902210056781769,
-0.06125541031360626,
-0.06417675316333771,
-0.16457721590995789,
0.7560689449310303,
0.31343260407447815,
-0.3183494806289673,
0.11070671677589417,
-0.8042069673538208,
-0.004809112753719091,
-0.17380282282829285,
0.020100608468055725,
-0.4006524682044983,
0.40029630064964294,
0.49662747979164124,
-0.01987478695809841,
0.22566834092140198,
-0.5889101624488831,
-0.061197537928819656,
-0.2371622771024704,
0.5980395078659058,
0.9021331667900085,
0.44467905163764954,
0.1353796124458313,
-0.23635992407798767,
0.5345861911773682,
-0.35903310775756836,
-0.049419526010751724,
-0.21873696148395538,
-0.6237908601760864,
-0.8134127855300903,
-0.2263280153274536,
0.2546873986721039,
0.5025539994239807,
-0.2187485247850418,
0.5748618245124817,
-0.15200716257095337,
-0.6998512148857117,
-0.1551581472158432,
-0.09092430025339127,
0.02233782783150673,
0.4951094090938568,
0.22135303914546967,
-0.3254099488258362,
-0.46335268020629883,
-1.037703514099121,
-0.4052237868309021,
-0.28862863779067993,
-0.10005255043506622,
-0.027668887749314308,
0.7957174181938171,
-0.2086968570947647,
0.7844460606575012,
-0.7808799147605896,
-0.09701330959796906,
0.09527232497930527,
0.5871171951293945,
0.33056584000587463,
0.3533841669559479,
0.8616647124290466,
-0.8993614912033081,
-0.23621191084384918,
0.11229386180639267,
-0.39828139543533325,
-0.19910500943660736,
-0.34263256192207336,
-0.047614432871341705,
-0.017914187163114548,
0.6165158748626709,
-0.12402840703725815,
0.11713134497404099,
0.5098434090614319,
-0.8060027360916138,
0.43266206979751587,
-0.07604335248470306,
-0.0020259013399481773,
-0.785274863243103,
0.42007824778556824,
0.4802369773387909,
-0.20631377398967743,
-0.7900697588920593,
0.14245565235614777,
-0.28620561957359314,
-0.42364296317100525,
-0.2878761887550354,
0.4746054410934448,
-0.10950711369514465,
0.12227803468704224,
-0.04815865308046341,
0.07593920081853867,
0.09635821729898453,
0.4853707253932953,
0.0702584907412529,
0.6645992398262024,
0.3988915979862213,
-0.6613013744354248,
0.25828635692596436,
0.14455081522464752,
-0.18168361485004425,
0.43243858218193054,
-0.8588160872459412,
0.019856372848153114,
-0.31037548184394836,
0.061261966824531555,
-1.2686799764633179,
-0.0009106499492190778,
0.03842896595597267,
-0.4488510191440582,
0.2728433907032013,
0.1110394075512886,
-0.3859158754348755,
-0.26828238368034363,
-0.46557968854904175,
-0.24335606396198273,
0.3847603499889374,
-0.49046027660369873,
0.8850393891334534,
0.19456282258033752,
-0.47473517060279846,
-0.6564866304397583,
-0.7211018204689026,
-0.1373688131570816,
-0.8239397406578064,
-0.7083235383033752,
0.20349489152431488,
-0.11613722145557404,
-0.22423171997070312,
0.1788354068994522,
-0.4040597975254059,
0.14403703808784485,
0.3937992751598358,
0.1992941051721573,
0.22405338287353516,
0.042072564363479614,
0.20713721215724945,
-0.12956291437149048,
-0.3692791163921356,
0.1803428828716278,
-0.27296510338783264,
0.3130829334259033,
-0.6591688394546509,
0.13666974008083344,
-0.12184804677963257,
0.431258887052536,
0.7269232869148254,
-0.3119945526123047,
0.7888972759246826,
0.8225832581520081,
-0.617437481880188,
-0.07154013216495514,
-0.403171569108963,
-0.042445868253707886,
-0.4904421269893646,
0.5694212317466736,
0.24196194112300873,
-0.8994136452674866,
0.8041926026344299,
-0.35426008701324463,
0.31543779373168945,
1.0371474027633667,
0.3222997486591339,
-0.037721604108810425,
0.4827813506126404,
1.0508495569229126,
-0.037508223205804825,
0.4240502715110779,
-0.5523589849472046,
0.671079158782959,
-0.5594064593315125,
-0.477282851934433,
-0.6898155808448792,
-0.18701238930225372,
-0.8128412365913391,
0.16045214235782623,
0.23571652173995972,
0.09350457042455673,
-0.3975040912628174,
0.5479274392127991,
-0.7532917857170105,
0.3969372510910034,
0.3692983090877533,
-0.22421075403690338,
0.05101099982857704,
-0.05888205021619797,
0.31024155020713806,
0.05776132643222809,
-0.5376400351524353,
-0.9201191663742065,
0.7305614948272705,
0.7670601010322571,
0.6506457328796387,
0.020307769998908043,
0.7832428812980652,
0.4898916184902191,
0.40112870931625366,
-1.1059777736663818,
0.28019410371780396,
-0.4274982511997223,
-0.6549145579338074,
-0.367937296628952,
-0.28524646162986755,
-0.9077189564704895,
0.1653488427400589,
-0.2670055627822876,
-1.0141856670379639,
0.29391807317733765,
-0.009866862557828426,
-0.6488841772079468,
0.41218292713165283,
-0.8293031454086304,
0.7165781855583191,
-0.40798550844192505,
-0.22931641340255737,
0.006428752094507217,
-0.33520087599754333,
0.23416881263256073,
-0.4078224301338196,
0.26672425866127014,
-0.10736725479364395,
0.03815087676048279,
1.249193787574768,
-0.03222569823265076,
1.0035221576690674,
-0.11074052006006241,
-0.09248850494623184,
0.4518027901649475,
-0.5305500030517578,
0.48863130807876587,
-0.04817604646086693,
-0.03121890127658844,
0.1968454271554947,
0.1940530687570572,
-0.28159624338150024,
-0.38042333722114563,
0.4568941593170166,
-0.7261914014816284,
-0.6143897771835327,
-0.8164096474647522,
-0.03946497291326523,
0.1294524073600769,
0.21699173748493195,
0.30424386262893677,
0.114532969892025,
-0.11990515887737274,
0.5404319763183594,
0.5771716237068176,
-0.4348888695240021,
0.45268547534942627,
0.3516184687614441,
-0.1881759613752365,
-0.37223440408706665,
0.6180917620658875,
0.2893846035003662,
0.29839202761650085,
0.15136830508708954,
0.5338985323905945,
-0.445976585149765,
-0.314775675535202,
0.09176808595657349,
0.017971673980355263,
-0.7366546392440796,
-0.4732911288738251,
-0.7060161232948303,
-0.40466979146003723,
-0.06478893011808395,
-0.3375726044178009,
-0.2772548496723175,
-0.06194622814655304,
-0.40859758853912354,
-0.4875606298446655,
0.6996934413909912,
0.6458108425140381,
0.002274084836244583,
0.382292240858078,
-0.7307882308959961,
0.13414044678211212,
0.41923776268959045,
0.3453734815120697,
-0.07698798179626465,
-0.21445821225643158,
-0.21184831857681274,
-0.032217711210250854,
-0.4363281726837158,
-0.7664692401885986,
0.6037193536758423,
0.41059038043022156,
0.6415848731994629,
0.8436596393585205,
0.005104502663016319,
0.7042471766471863,
-0.2663840055465698,
1.1487170457839966,
0.38769927620887756,
-1.2552913427352905,
0.4478430449962616,
-0.3021945357322693,
-0.2535419166088104,
0.49551498889923096,
0.5546119809150696,
-0.900968074798584,
-0.3710434138774872,
-0.9767107367515564,
-1.2472848892211914,
0.513439416885376,
0.31998100876808167,
-0.08172284811735153,
-0.05435112863779068,
0.4445855915546417,
-0.026861021295189857,
0.21228985488414764,
-0.8063392639160156,
-0.39332789182662964,
0.023679733276367188,
0.08278924971818924,
-0.0889444649219513,
-0.19660042226314545,
-0.08678160607814789,
-0.1686827689409256,
0.718093991279602,
-0.01439372356981039,
0.4899917542934418,
0.19370321929454803,
0.45572033524513245,
-0.10277340561151505,
0.26890265941619873,
0.6388768553733826,
0.465770423412323,
-0.5421877503395081,
0.15341311693191528,
0.38777685165405273,
-0.5146286487579346,
-0.19599904119968414,
0.1687944084405899,
0.08056902885437012,
-0.08522690832614899,
0.35907620191574097,
0.5981701016426086,
0.05542163550853729,
-0.6013560891151428,
0.2273489087820053,
0.1925729513168335,
-0.35301414132118225,
-0.472461074590683,
-0.06866665184497833,
0.003157449420541525,
0.47155261039733887,
0.6325617432594299,
0.2973698377609253,
0.4278326630592346,
-0.6509864330291748,
0.388041228055954,
0.11168234795331955,
-0.4174593985080719,
-0.06021006405353546,
0.9231460094451904,
0.2783535420894623,
-0.060772158205509186,
0.5494558811187744,
-0.08432824909687042,
-0.8142335414886475,
1.0316755771636963,
0.5373433828353882,
0.9933340549468994,
-0.0036029883194714785,
0.18812134861946106,
0.6015055775642395,
0.5180250406265259,
-0.38451358675956726,
0.2213136851787567,
0.29153111577033997,
-0.6367626190185547,
-0.42383357882499695,
-0.6572375893592834,
-0.3039107620716095,
0.5170654654502869,
-0.8020725250244141,
0.3801271915435791,
-0.4052828550338745,
-0.3508226275444031,
0.1990843564271927,
0.3403601050376892,
-0.73957759141922,
0.2444336861371994,
0.14144597947597504,
0.7191236615180969,
-1.2656790018081665,
0.19801904261112213,
0.5483596920967102,
-0.3910547196865082,
-0.6401194334030151,
-0.36558955907821655,
-0.005850798916071653,
-0.6320059895515442,
0.6557151079177856,
0.3424564599990845,
-0.45652487874031067,
-0.10194995999336243,
-0.804981529712677,
-1.020973801612854,
1.4356924295425415,
-0.110960453748703,
-0.6137754321098328,
0.21674583852291107,
-0.20571577548980713,
0.6814769506454468,
-0.3108556270599365,
-0.12827710807323456,
0.4491318464279175,
0.6919876933097839,
-0.028914328664541245,
-0.5247395038604736,
-0.059833090752363205,
-0.45156189799308777,
-0.08049169182777405,
0.4304632842540741,
-1.0032474994659424,
0.6059921979904175,
0.07316818088293076,
-0.44759947061538696,
-0.14083829522132874,
0.60749751329422,
0.24328599870204926,
0.5806497931480408,
0.4616566300392151,
0.44635847210884094,
1.0914863348007202,
-0.295862078666687,
0.8428990840911865,
-0.6048837304115295,
1.0884917974472046,
0.6631244421005249,
0.20037445425987244,
0.891287088394165,
0.5108522772789001,
-0.07575584203004837,
0.292568176984787,
0.8903177976608276,
-0.7503027319908142,
0.6660730838775635,
0.21030421555042267,
-0.06301060318946838,
-0.16084519028663635,
-0.13646388053894043,
-0.2586306035518646,
0.4469960927963257,
0.6291040182113647,
-0.6394780278205872,
-0.1392637938261032,
-0.194747656583786,
0.05492342263460159,
-0.0578572079539299,
-0.24545727670192719,
0.2762572169303894,
0.14958523213863373,
-0.285319060087204,
0.09760843962430954,
0.2134164422750473,
0.7953866124153137,
-0.6532534956932068,
-0.06757885962724686,
0.25284311175346375,
-0.07918091118335724,
-0.4245721399784088,
-0.9091885089874268,
0.5031598210334778,
0.13406887650489807,
0.3966870903968811,
-0.5206350684165955,
0.7831952571868896,
-0.33683040738105774,
-0.5527029633522034,
0.28273069858551025,
0.2033604383468628,
0.09713432937860489,
0.2459891140460968,
-0.5133190751075745,
-0.37007570266723633,
0.2052040845155716,
-0.16794829070568085,
-0.26000267267227173,
0.21763353049755096,
0.3108121454715729,
0.5358044505119324,
0.51197749376297,
-0.0820876806974411,
-0.3356277346611023,
-0.2507711946964264,
0.6253847479820251,
-0.805892825126648,
-0.4467789828777313,
-0.7904916405677795,
0.5449649095535278,
-0.19765277206897736,
-0.43591317534446716,
0.6755072474479675,
0.6511330604553223,
0.8364737629890442,
-0.18742281198501587,
0.7744877338409424,
-0.00005033307752455585,
-0.15395954251289368,
-0.6309614777565002,
0.769354522228241,
-0.386962890625,
0.16200189292430878,
-0.3481196463108063,
-0.849224865436554,
-0.3330160677433014,
0.7823911905288696,
-0.46924105286598206,
-0.0453670434653759,
0.5896557569503784,
0.47805455327033997,
0.14523251354694366,
0.16308964788913727,
0.2533818781375885,
-0.10273124277591705,
0.504016637802124,
0.28094160556793213,
0.5928235650062561,
-0.4174959659576416,
0.21551159024238586,
-0.02695470117032528,
-0.08927111327648163,
-0.20102600753307343,
-0.9925534129142761,
-1.0037018060684204,
-0.6885027289390564,
-0.6833410263061523,
-0.35628193616867065,
-0.16862806677818298,
0.9081589579582214,
0.5056441426277161,
-0.765739381313324,
-0.006763341836631298,
-0.049195196479558945,
-0.0782809853553772,
-0.387035071849823,
-0.28305673599243164,
0.6208778023719788,
-0.10425709187984467,
-0.7119318246841431,
-0.30986711382865906,
0.4643860459327698,
0.1379946917295456,
-0.2292378544807434,
0.29641085863113403,
-0.12892283499240875,
0.31631898880004883,
0.8221003413200378,
0.22157776355743408,
-0.5133564472198486,
-0.8612061738967896,
0.14384660124778748,
0.35911300778388977,
-0.052754905074834824,
0.41047775745391846,
-0.2570580840110779,
0.318888396024704,
0.4542568027973175,
0.6082313656806946,
0.6258153319358826,
0.018308578059077263,
0.33572474122047424,
-0.6317911744117737,
-0.07677967101335526,
0.06967270374298096,
0.4232994019985199,
0.038932766765356064,
-0.7643296718597412,
0.6664432883262634,
0.07916592061519623,
-0.6387081742286682,
-0.3822021484375,
0.23155808448791504,
-1.16825270652771,
-0.18814820051193237,
1.1139429807662964,
-0.10921245813369751,
-0.28289708495140076,
0.07136686146259308,
-0.1903999149799347,
0.14350655674934387,
-0.5555353164672852,
0.7449053525924683,
1.1707677841186523,
-0.274638831615448,
-0.11824282258749008,
-0.5561403632164001,
0.3973042964935303,
-0.035674430429935455,
-0.7823250889778137,
-0.030012810602784157,
0.20862674713134766,
0.4095773696899414,
0.5758016705513,
0.2167549580335617,
-0.012771496549248695,
-0.08121474832296371,
0.17396588623523712,
0.01694435253739357,
0.09712912887334824,
-0.2453637272119522,
-0.33323895931243896,
0.08915887773036957,
-0.11549796909093857,
-0.11303166300058365
] |
siebert/sentiment-roberta-large-english | siebert | "2023-04-02T16:25:45Z" | 114,045 | 84 | transformers | [
"transformers",
"pytorch",
"tf",
"jax",
"roberta",
"text-classification",
"sentiment",
"twitter",
"reviews",
"siebert",
"en",
"arxiv:1907.11692",
"endpoints_compatible",
"has_space",
"region:us"
] | text-classification | "2022-03-02T23:29:05Z" | ---
language: "en"
tags:
- sentiment
- twitter
- reviews
- siebert
---
## SiEBERT - English-Language Sentiment Classification
# Overview
This model ("SiEBERT", prefix for "Sentiment in English") is a fine-tuned checkpoint of [RoBERTa-large](https://huggingface.co/roberta-large) ([Liu et al. 2019](https://arxiv.org/pdf/1907.11692.pdf)). It enables reliable binary sentiment analysis for various types of English-language text. For each instance, it predicts either positive (1) or negative (0) sentiment. The model was fine-tuned and evaluated on 15 data sets from diverse text sources to enhance generalization across different types of texts (reviews, tweets, etc.). Consequently, it outperforms models trained on only one type of text (e.g., movie reviews from the popular SST-2 benchmark) when used on new data as shown below.
# Predictions on a data set
If you want to predict sentiment for your own data, we provide an example script via [Google Colab](https://colab.research.google.com/notebooks/intro.ipynb). You can load your data to a Google Drive and run the script for free on a Colab GPU. Set-up only takes a few minutes. We suggest that you manually label a subset of your data to evaluate performance for your use case. For performance benchmark values across various sentiment analysis contexts, please refer to our paper ([Hartmann et al. 2022](https://www.sciencedirect.com/science/article/pii/S0167811622000477?via%3Dihub)).
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/chrsiebert/sentiment-roberta-large-english/blob/main/sentiment_roberta_prediction_example.ipynb)
# Use in a Hugging Face pipeline
The easiest way to use the model for single predictions is Hugging Face's [sentiment analysis pipeline](https://huggingface.co/transformers/quicktour.html#getting-started-on-a-task-with-a-pipeline), which only needs a couple lines of code as shown in the following example:
```
from transformers import pipeline
sentiment_analysis = pipeline("sentiment-analysis",model="siebert/sentiment-roberta-large-english")
print(sentiment_analysis("I love this!"))
```
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/chrsiebert/sentiment-roberta-large-english/blob/main/sentiment_roberta_pipeline.ipynb)
# Use for further fine-tuning
The model can also be used as a starting point for further fine-tuning of RoBERTa on your specific data. Please refer to Hugging Face's [documentation](https://huggingface.co/docs/transformers/training) for further details and example code.
# Performance
To evaluate the performance of our general-purpose sentiment analysis model, we set aside an evaluation set from each data set, which was not used for training. On average, our model outperforms a [DistilBERT-based model](https://huggingface.co/distilbert-base-uncased-finetuned-sst-2-english) (which is solely fine-tuned on the popular SST-2 data set) by more than 15 percentage points (78.1 vs. 93.2 percent, see table below). As a robustness check, we evaluate the model in a leave-one-out manner (training on 14 data sets, evaluating on the one left out), which decreases model performance by only about 3 percentage points on average and underscores its generalizability. Model performance is given as evaluation set accuracy in percent.
|Dataset|DistilBERT SST-2|This model|
|---|---|---|
|McAuley and Leskovec (2013) (Reviews)|84.7|98.0|
|McAuley and Leskovec (2013) (Review Titles)|65.5|87.0|
|Yelp Academic Dataset|84.8|96.5|
|Maas et al. (2011)|80.6|96.0|
|Kaggle|87.2|96.0|
|Pang and Lee (2005)|89.7|91.0|
|Nakov et al. (2013)|70.1|88.5|
|Shamma (2009)|76.0|87.0|
|Blitzer et al. (2007) (Books)|83.0|92.5|
|Blitzer et al. (2007) (DVDs)|84.5|92.5|
|Blitzer et al. (2007) (Electronics)|74.5|95.0|
|Blitzer et al. (2007) (Kitchen devices)|80.0|98.5|
|Pang et al. (2002)|73.5|95.5|
|Speriosu et al. (2011)|71.5|85.5|
|Hartmann et al. (2019)|65.5|98.0|
|**Average**|**78.1**|**93.2**|
# Fine-tuning hyperparameters
- learning_rate = 2e-5
- num_train_epochs = 3.0
- warmump_steps = 500
- weight_decay = 0.01
Other values were left at their defaults as listed [here](https://huggingface.co/transformers/main_classes/trainer.html#transformers.TrainingArguments).
# Citation and contact
Please cite [this paper](https://www.sciencedirect.com/science/article/pii/S0167811622000477) (Published in the [IJRM](https://www.journals.elsevier.com/international-journal-of-research-in-marketing)) when you use our model. Feel free to reach out to [christian.siebert@uni-hamburg.de](mailto:christian.siebert@uni-hamburg.de) with any questions or feedback you may have.
```
@article{hartmann2023,
title = {More than a Feeling: Accuracy and Application of Sentiment Analysis},
journal = {International Journal of Research in Marketing},
volume = {40},
number = {1},
pages = {75-87},
year = {2023},
doi = {https://doi.org/10.1016/j.ijresmar.2022.05.005},
url = {https://www.sciencedirect.com/science/article/pii/S0167811622000477},
author = {Jochen Hartmann and Mark Heitmann and Christian Siebert and Christina Schamp},
}
```
| [
-0.4755994379520416,
-0.5217007994651794,
0.111212819814682,
0.33795762062072754,
-0.30685853958129883,
-0.0359480082988739,
-0.24896131455898285,
-0.4670238792896271,
0.28816893696784973,
0.012026689015328884,
-0.5788711309432983,
-0.6334527134895325,
-0.8570459485054016,
-0.06936181336641312,
-0.187820166349411,
1.2545136213302612,
0.18381179869174957,
0.3415873646736145,
-0.2616163492202759,
-0.22697266936302185,
-0.13764521479606628,
-0.5528443455696106,
-0.5275282859802246,
-0.254961758852005,
0.3359258472919464,
0.19208475947380066,
0.5646711587905884,
0.1811189204454422,
0.6446553468704224,
0.3137019872665405,
-0.35406026244163513,
-0.15574529767036438,
-0.45751598477363586,
0.011673856526613235,
0.008010469377040863,
-0.5215328335762024,
-0.6745529770851135,
0.2584323585033417,
0.4668766260147095,
0.44100216031074524,
0.10762792825698853,
0.4218871593475342,
0.28575363755226135,
0.7708204388618469,
-0.2011493295431137,
0.34103623032569885,
-0.4242458641529083,
-0.03323277458548546,
0.00646161288022995,
0.1901514083147049,
-0.4094345271587372,
-0.4909149706363678,
0.4455902576446533,
-0.13367976248264313,
0.15902739763259888,
-0.019535981118679047,
1.2120506763458252,
0.3347550332546234,
-0.34022730588912964,
-0.24828030169010162,
-0.39034774899482727,
1.0354993343353271,
-0.7135613560676575,
0.43102529644966125,
0.1053977757692337,
-0.0024093829561024904,
0.21928630769252777,
-0.5323776602745056,
-0.4869967997074127,
-0.2305481880903244,
-0.10689608007669449,
0.5767831206321716,
-0.2647174596786499,
-0.1266644150018692,
0.4330628514289856,
0.3433944880962372,
-0.4650871753692627,
-0.15048715472221375,
-0.36957666277885437,
-0.12916627526283264,
0.6034626364707947,
0.013381070457398891,
0.10201577097177505,
-0.6111369729042053,
-0.5315342545509338,
-0.3670598566532135,
-0.20874471962451935,
0.4839661717414856,
0.338655024766922,
0.4007158577442169,
-0.41157591342926025,
0.48336318135261536,
-0.059352003037929535,
0.26607322692871094,
0.264550119638443,
-0.19808529317378998,
0.7451151609420776,
-0.15854689478874207,
-0.17063462734222412,
-0.31942427158355713,
0.9916281700134277,
0.6612548828125,
0.2178495228290558,
0.09343868494033813,
-0.14382818341255188,
0.3617837727069855,
0.1398969292640686,
-1.0180057287216187,
-0.2083238959312439,
0.28366604447364807,
-0.4933728277683258,
-0.5260522365570068,
0.09329817444086075,
-0.7571132779121399,
-0.10445211082696915,
-0.38577327132225037,
0.36110877990722656,
-0.6428961157798767,
-0.4390398859977722,
-0.06080837920308113,
-0.18619200587272644,
0.2911672592163086,
0.12952272593975067,
-0.544619619846344,
0.08130882680416107,
0.44986021518707275,
1.0046837329864502,
-0.2585168778896332,
-0.28704434633255005,
-0.14062552154064178,
-0.5808798670768738,
-0.12117122113704681,
0.8274959921836853,
-0.17217135429382324,
-0.329862117767334,
-0.24613429605960846,
0.1632848083972931,
-0.16548098623752594,
-0.3322864770889282,
0.5761386752128601,
-0.26969537138938904,
0.5164317488670349,
-0.3501192033290863,
-0.5394692420959473,
-0.19439251720905304,
0.3627479672431946,
-0.4687836170196533,
1.2370715141296387,
0.36324402689933777,
-0.8977123498916626,
0.36299949884414673,
-0.6172335743904114,
-0.35183456540107727,
-0.3264700472354889,
0.21713098883628845,
-0.7276516556739807,
0.0696801021695137,
0.08531724661588669,
0.6395400166511536,
-0.27065709233283997,
0.3278310298919678,
-0.5252639651298523,
-0.20042379200458527,
0.15996605157852173,
-0.1331852376461029,
1.0666054487228394,
0.20913740992546082,
-0.46203240752220154,
-0.025117211043834686,
-0.6061310768127441,
0.11628680676221848,
0.17557595670223236,
-0.19408251345157623,
-0.09834232926368713,
-0.20287516713142395,
0.05908260494470596,
0.48665887117385864,
0.20762208104133606,
-0.5989249348640442,
0.149418905377388,
-0.5347681641578674,
0.33731821179389954,
0.7314232587814331,
-0.18334324657917023,
0.47580698132514954,
-0.2015116810798645,
0.7001364827156067,
0.2549193203449249,
0.3148052990436554,
-0.02555428445339203,
-0.5238028168678284,
-0.7622550129890442,
-0.2440449446439743,
0.48056963086128235,
0.521204948425293,
-0.4360330402851105,
0.4654060900211334,
-0.31833022832870483,
-0.7786710858345032,
-0.5673602819442749,
-0.020233536139130592,
0.39459097385406494,
0.6365272998809814,
0.4003031849861145,
-0.39581015706062317,
-0.4888874590396881,
-0.7794161438941956,
-0.32318589091300964,
-0.23165127635002136,
0.10134487599134445,
0.23315276205539703,
0.5537186861038208,
-0.23675571382045746,
0.8815184831619263,
-0.5014004111289978,
-0.3423828184604645,
-0.2840530276298523,
0.13241273164749146,
0.3645893335342407,
0.31382641196250916,
0.6539291739463806,
-0.7571706175804138,
-0.8803931474685669,
-0.2722429037094116,
-0.8769751787185669,
0.054598163813352585,
0.14479222893714905,
-0.1247297152876854,
0.37523651123046875,
0.21492783725261688,
-0.702428936958313,
0.2493041306734085,
0.6996937990188599,
-0.28461605310440063,
0.5094794034957886,
0.2804412245750427,
0.05717897042632103,
-1.2253766059875488,
0.06358392536640167,
0.5456095337867737,
-0.07485474646091461,
-0.5236919522285461,
-0.06442911177873611,
0.0903915986418724,
0.032256606966257095,
-0.5514751672744751,
0.5985857844352722,
-0.2344888150691986,
0.20487968623638153,
-0.003010035492479801,
0.016209015622735023,
0.05506976321339607,
0.6666901111602783,
0.0613517165184021,
0.7192150354385376,
0.634432852268219,
-0.2871132791042328,
0.22870388627052307,
0.4289805293083191,
-0.30855152010917664,
0.7615253925323486,
-0.7466703057289124,
0.007824617438018322,
-0.23280197381973267,
0.3103606104850769,
-0.9969131350517273,
-0.21695466339588165,
0.2754841148853302,
-0.8407782912254333,
0.3795861005783081,
-0.3198990225791931,
-0.2610289454460144,
-0.4873800575733185,
-0.5130671858787537,
-0.004910352174192667,
0.8326343297958374,
-0.4154912829399109,
0.6557191610336304,
0.34540149569511414,
-0.21234330534934998,
-0.6369617581367493,
-0.6475160717964172,
-0.21831321716308594,
-0.3863026797771454,
-0.6754198670387268,
0.11980794370174408,
-0.24854187667369843,
-0.08079993724822998,
-0.14235472679138184,
-0.10426479578018188,
0.1510535031557083,
-0.09806022047996521,
0.5208746790885925,
0.4289077818393707,
-0.09379979223012924,
0.18606245517730713,
-0.06119117513298988,
-0.31327518820762634,
0.15759243071079254,
0.05826178938150406,
0.5209901332855225,
-0.6179861426353455,
0.015250954777002335,
-0.598490297794342,
0.04170221462845802,
0.6514461040496826,
-0.09085087478160858,
0.784821093082428,
0.8457387089729309,
-0.1460111290216446,
0.03830387070775032,
-0.41293999552726746,
-0.2468429058790207,
-0.47004592418670654,
0.39644619822502136,
-0.410752534866333,
-0.5518476963043213,
0.4421383738517761,
-0.11536619812250137,
-0.08769495785236359,
0.6761580109596252,
0.5503630042076111,
-0.3297777771949768,
1.3290607929229736,
0.5679207444190979,
-0.2425917237997055,
0.5298203825950623,
-0.6623634696006775,
0.30478769540786743,
-0.7802120447158813,
-0.36358410120010376,
-0.44324493408203125,
-0.308332622051239,
-0.7841973304748535,
-0.13563700020313263,
0.4781399071216583,
0.11051075160503387,
-0.3095073401927948,
0.5332852005958557,
-0.6325761079788208,
0.15025870501995087,
0.6295253038406372,
0.22491766512393951,
-0.0016589014558121562,
0.17476828396320343,
-0.10409387201070786,
-0.3076159656047821,
-0.5191767811775208,
-0.4799734652042389,
1.0346057415008545,
0.6681626439094543,
0.6761025190353394,
-0.027507249265909195,
0.6873925924301147,
0.16544722020626068,
0.34966543316841125,
-0.9920800924301147,
0.5368433594703674,
-0.28067120909690857,
-0.6708587408065796,
-0.027617864310741425,
-0.4114358425140381,
-0.55850750207901,
0.1014065369963646,
-0.23367102444171906,
-0.6140610575675964,
0.13902461528778076,
0.20633365213871002,
-0.291573703289032,
0.20608878135681152,
-0.9087235331535339,
0.7966553568840027,
-0.30525702238082886,
-0.4381825029850006,
0.020321175456047058,
-0.7830579876899719,
0.22043201327323914,
0.027371857315301895,
0.06236864998936653,
-0.33479028940200806,
0.27833062410354614,
0.8076611757278442,
-0.2498360127210617,
0.7915468215942383,
-0.46210378408432007,
0.13659903407096863,
0.30414533615112305,
-0.06541844457387924,
0.5872462391853333,
-0.1317921280860901,
-0.4158603549003601,
0.42259693145751953,
0.1523413062095642,
-0.38857805728912354,
-0.4515790045261383,
0.6754450798034668,
-0.8887192010879517,
-0.20437823235988617,
-0.6885521411895752,
-0.2734798192977905,
-0.36613088846206665,
0.18102294206619263,
0.5372849106788635,
0.30408960580825806,
-0.024060823023319244,
0.3295123875141144,
0.6165947914123535,
-0.22864101827144623,
0.15506717562675476,
0.17413850128650665,
-0.13236406445503235,
-0.4189082682132721,
0.9594156742095947,
0.15665306150913239,
0.31814926862716675,
0.1537226140499115,
0.33458930253982544,
-0.5609778761863708,
-0.21351535618305206,
-0.3818734586238861,
0.3992820382118225,
-0.6617814302444458,
-0.365360826253891,
-0.888800859451294,
-0.1736544519662857,
-0.5797300338745117,
0.014359722845256329,
-0.5225281119346619,
-0.38243579864501953,
-0.2757532596588135,
-0.2377449870109558,
0.47790148854255676,
0.5431395769119263,
-0.030009424313902855,
0.4742841422557831,
-0.5281619429588318,
0.1661754548549652,
0.07689245045185089,
0.4670109152793884,
-0.1142730712890625,
-0.7284003496170044,
-0.25869840383529663,
0.2141026109457016,
-0.4739846885204315,
-0.7397346496582031,
0.5473220944404602,
0.11378829926252365,
0.09648022800683975,
0.30408403277397156,
0.03721652179956436,
0.5915577411651611,
-0.09097784012556076,
0.9247787594795227,
0.46313226222991943,
-0.8666749000549316,
0.5269066691398621,
-0.31007492542266846,
0.25471407175064087,
0.540812611579895,
0.7721849679946899,
-0.4114476442337036,
-0.273005872964859,
-0.7941118478775024,
-0.9398993253707886,
0.7452338337898254,
0.0038886787369847298,
0.2581610083580017,
0.053957194089889526,
0.18085762858390808,
0.0004213100764900446,
0.3572610318660736,
-0.934990406036377,
-0.32083454728126526,
-0.4110119640827179,
-0.38582536578178406,
-0.0861024260520935,
-0.2554607689380646,
0.06000199168920517,
-0.6107943654060364,
0.9817371368408203,
-0.1699702888727188,
0.559130072593689,
0.024071574211120605,
-0.10779769718647003,
-0.06015203148126602,
0.05034342408180237,
0.1797936111688614,
0.24298812448978424,
-0.4909868538379669,
-0.20976108312606812,
0.31957000494003296,
-0.434321790933609,
-0.031110595911741257,
0.023725338280200958,
-0.27308037877082825,
-0.012732485309243202,
0.15779393911361694,
0.8390142321586609,
-0.069373719394207,
-0.41909176111221313,
0.7267569899559021,
-0.06158037483692169,
-0.276404470205307,
-0.3890615403652191,
-0.05322461947798729,
0.16168160736560822,
0.2829912602901459,
0.06192201375961304,
0.38901904225349426,
0.12920205295085907,
-0.4810786545276642,
0.07502750307321548,
0.48793914914131165,
-0.6684930920600891,
-0.48241353034973145,
0.5930744409561157,
0.12678447365760803,
-0.0642814114689827,
0.6358928680419922,
-0.2524862587451935,
-0.7943213582038879,
0.5277782082557678,
0.30097725987434387,
0.8064972758293152,
-0.07547077536582947,
0.35156822204589844,
0.7281267046928406,
0.14847876131534576,
-0.15078379213809967,
0.26928815245628357,
0.23753781616687775,
-0.6316009759902954,
-0.24240437150001526,
-0.8928569555282593,
-0.31956416368484497,
0.06322631239891052,
-0.8524271249771118,
0.5149147510528564,
-0.43732601404190063,
-0.6763043999671936,
0.11359457671642303,
0.2601814866065979,
-0.9693393707275391,
0.5364696979522705,
0.02895675227046013,
0.9078145623207092,
-0.9282241463661194,
0.5919917225837708,
0.7379103899002075,
-0.6408876776695251,
-0.8998876810073853,
-0.06625133007764816,
0.15173444151878357,
-0.6973726749420166,
0.4564760625362396,
0.31492704153060913,
-0.24320265650749207,
0.023569127544760704,
-0.6221542358398438,
-0.8221306800842285,
0.9975546598434448,
0.10325101763010025,
-0.47260865569114685,
-0.025340605527162552,
0.005271753296256065,
0.7906792163848877,
-0.19780300557613373,
0.5438483357429504,
0.5761715769767761,
0.3884458839893341,
0.06781086325645447,
-0.6946855783462524,
-0.058308448642492294,
-0.48790138959884644,
-0.09961286187171936,
0.07667535543441772,
-1.110696792602539,
0.7838315963745117,
-0.19757603108882904,
-0.03557542711496353,
0.025890933349728584,
0.5562019348144531,
0.11709877848625183,
0.4136689305305481,
0.5399615168571472,
0.7137526869773865,
0.5735138654708862,
-0.32156723737716675,
1.041730523109436,
-0.4177438020706177,
0.7120870351791382,
0.8690617084503174,
-0.0691806748509407,
0.9075924158096313,
0.3193340599536896,
-0.5188468098640442,
0.6440856456756592,
0.7531557083129883,
-0.22876346111297607,
0.4780093729496002,
-0.15132112801074982,
-0.07511526346206665,
-0.1350516974925995,
-0.03901318088173866,
-0.43239864706993103,
0.4170769155025482,
0.11287665367126465,
-0.46079325675964355,
0.19201207160949707,
0.09307155758142471,
0.27700257301330566,
-0.2122296690940857,
0.1054740697145462,
0.7405144572257996,
0.2009034901857376,
-0.6255708932876587,
0.5620561838150024,
-0.1355990767478943,
0.9025699496269226,
-0.5498731732368469,
0.32214003801345825,
-0.26384130120277405,
0.260267049074173,
-0.35089465975761414,
-0.7510199546813965,
0.1992693394422531,
0.09004665166139603,
-0.2731276750564575,
-0.28626924753189087,
0.5986745357513428,
-0.23669913411140442,
-0.6485393047332764,
0.45274433493614197,
0.45631277561187744,
0.26733437180519104,
-0.0772116482257843,
-1.0722079277038574,
0.1440776288509369,
0.19731181859970093,
-0.658944308757782,
0.30196669697761536,
0.16555769741535187,
0.2152288854122162,
0.6534126400947571,
0.5256676077842712,
0.011874630115926266,
-0.1110190749168396,
0.06672702729701996,
0.80980384349823,
-0.6908510327339172,
-0.3606574833393097,
-0.6519671082496643,
0.8413645029067993,
-0.20146292448043823,
-0.3907667100429535,
0.9139455556869507,
0.5087495446205139,
0.906293511390686,
-0.09568995237350464,
0.9626217484474182,
-0.26184728741645813,
0.777278482913971,
-0.1143583431839943,
0.587348461151123,
-0.7164475917816162,
0.035881731659173965,
-0.5062755942344666,
-0.9907248616218567,
-0.26472005248069763,
0.6754564046859741,
-0.5016343593597412,
0.2824684679508209,
0.54280686378479,
0.8731573224067688,
-0.17145295441150665,
0.04694413021206856,
0.04812704026699066,
0.4555925130844116,
0.12052949517965317,
0.2154383659362793,
0.6751899123191833,
-0.707632839679718,
0.40931597352027893,
-0.5758692622184753,
-0.29176875948905945,
-0.18403279781341553,
-0.7558751702308655,
-0.8753029704093933,
-0.5486060380935669,
-0.4633333086967468,
-0.7857533097267151,
-0.15787574648857117,
1.0788432359695435,
0.741059422492981,
-0.8414839506149292,
-0.2033580243587494,
0.18694905936717987,
-0.20360848307609558,
-0.1940595507621765,
-0.2935234308242798,
0.46900275349617004,
-0.272102415561676,
-0.9287272095680237,
-0.030724231153726578,
-0.04473313316702843,
0.08391442149877548,
-0.18062645196914673,
-0.20766116678714752,
0.07866792380809784,
0.027591226622462273,
0.862356424331665,
0.0033539137803018093,
-0.5369455814361572,
-0.1741824597120285,
0.31875303387641907,
-0.10020701587200165,
0.19242249429225922,
0.2684994339942932,
-0.5712871551513672,
0.3847259283065796,
0.474624365568161,
0.2693197429180145,
0.6877198219299316,
0.1454882025718689,
0.11155945807695389,
-0.5376423597335815,
0.008344842121005058,
0.18274900317192078,
0.3439197540283203,
0.48511865735054016,
-0.28380444645881653,
0.5476826429367065,
0.30987682938575745,
-0.559715986251831,
-0.8708665370941162,
0.04042256623506546,
-1.1995441913604736,
-0.01810363121330738,
1.185401201248169,
-0.18963707983493805,
-0.2767680585384369,
0.3943924009799957,
-0.1866571605205536,
0.2851782441139221,
-0.5808624029159546,
0.7898479104042053,
0.6914794445037842,
-0.2443048357963562,
-0.1026003360748291,
-0.4375210404396057,
0.5051772594451904,
0.5083315372467041,
-0.5731279253959656,
-0.20160673558712006,
0.35402947664260864,
0.5654928088188171,
0.17814132571220398,
0.5282595753669739,
-0.17439335584640503,
0.046594806015491486,
-0.10194685310125351,
0.1729143112897873,
0.16565971076488495,
-0.3316217362880707,
-0.37909990549087524,
0.07242762297391891,
-0.033728983253240585,
-0.006106515880674124
] |
kandinsky-community/kandinsky-2-2-decoder | kandinsky-community | "2023-10-09T11:32:52Z" | 113,626 | 36 | diffusers | [
"diffusers",
"text-to-image",
"kandinsky",
"license:apache-2.0",
"has_space",
"diffusers:KandinskyV22Pipeline",
"region:us"
] | text-to-image | "2023-06-09T11:17:35Z" | ---
license: apache-2.0
prior:
- kandinsky-community/kandinsky-2-2-prior
tags:
- text-to-image
- kandinsky
inference: false
---
# Kandinsky 2.2
Kandinsky inherits best practices from Dall-E 2 and Latent diffusion while introducing some new ideas.
It uses the CLIP model as a text and image encoder, and diffusion image prior (mapping) between latent spaces of CLIP modalities. This approach increases the visual performance of the model and unveils new horizons in blending images and text-guided image manipulation.
The Kandinsky model is created by [Arseniy Shakhmatov](https://github.com/cene555), [Anton Razzhigaev](https://github.com/razzant), [Aleksandr Nikolich](https://github.com/AlexWortega), [Igor Pavlov](https://github.com/boomb0om), [Andrey Kuznetsov](https://github.com/kuznetsoffandrey) and [Denis Dimitrov](https://github.com/denndimitrov)
## Usage
Kandinsky 2.2 is available in diffusers!
```python
pip install diffusers transformers accelerate
```
### Text to image
```python
from diffusers import AutoPipelineForText2Image
import torch
pipe = AutoPipelineForText2Image.from_pretrained("kandinsky-community/kandinsky-2-2-decoder", torch_dtype=torch.float16)
pipe = pipe.to("cuda")
prompt = "portrait of a young women, blue eyes, cinematic"
negative_prompt = "low quality, bad quality"
image = pipe(prompt=prompt, negative_prompt=negative_prompt, prior_guidance_scale =1.0, height=768, width=768).images[0]
image.save("portrait.png")
```
![img](https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/kandinskyv22/%20blue%20eyes.png)
### Text Guided Image-to-Image Generation
```python
from PIL import Image
import requests
from io import BytesIO
url = "https://raw.githubusercontent.com/CompVis/stable-diffusion/main/assets/stable-samples/img2img/sketch-mountains-input.jpg"
response = requests.get(url)
original_image = Image.open(BytesIO(response.content)).convert("RGB")
original_image = original_image.resize((768, 512))
```
![img](https://raw.githubusercontent.com/CompVis/stable-diffusion/main/assets/stable-samples/img2img/sketch-mountains-input.jpg)
```python
from diffusers import AutoPipelineForImage2Image
import torch
pipe = AutoPipelineForImage2Image.from_pretrained("kandinsky-community/kandinsky-2-2-decoder", torch_dtype=torch.float16)
pipe.enable_model_cpu_offload()
prompt = "A fantasy landscape, Cinematic lighting"
negative_prompt = "low quality, bad quality"
image = pipe(prompt=prompt, image=original_image, strength=0.3, height=768, width=768).images[0]
out.images[0].save("fantasy_land.png")
```
![img](https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/kandinskyv22/fantasy_land.png)
### Interpolate
```python
from diffusers import KandinskyV22PriorPipeline, KandinskyV22Pipeline
from diffusers.utils import load_image
import PIL
import torch
pipe_prior = KandinskyV22PriorPipeline.from_pretrained(
"kandinsky-community/kandinsky-2-2-prior", torch_dtype=torch.float16
)
pipe_prior.to("cuda")
img1 = load_image(
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" "/kandinsky/cat.png"
)
img2 = load_image(
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" "/kandinsky/starry_night.jpeg"
)
# add all the conditions we want to interpolate, can be either text or image
images_texts = ["a cat", img1, img2]
# specify the weights for each condition in images_texts
weights = [0.3, 0.3, 0.4]
# We can leave the prompt empty
prompt = ""
prior_out = pipe_prior.interpolate(images_texts, weights)
pipe = KandinskyV22Pipeline.from_pretrained("kandinsky-community/kandinsky-2-2-decoder", torch_dtype=torch.float16)
pipe.to("cuda")
image = pipe(**prior_out, height=768, width=768).images[0]
image.save("starry_cat.png")
```
![img](https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/kandinskyv22/starry_cat2.2.png)
## Model Architecture
### Overview
Kandinsky 2.2 is a text-conditional diffusion model based on unCLIP and latent diffusion, composed of a transformer-based image prior model, a unet diffusion model, and a decoder.
The model architectures are illustrated in the figure below - the chart on the left describes the process to train the image prior model, the figure in the center is the text-to-image generation process, and the figure on the right is image interpolation.
<p float="left">
<img src="https://raw.githubusercontent.com/ai-forever/Kandinsky-2/main/content/kandinsky21.png"/>
</p>
Specifically, the image prior model was trained on CLIP text and image embeddings generated with a pre-trained [CLIP-ViT-G model](https://huggingface.co/laion/CLIP-ViT-g-14-laion2B-s12B-b42K). The trained image prior model is then used to generate CLIP image embeddings for input text prompts. Both the input text prompts and its CLIP image embeddings are used in the diffusion process. A [MoVQGAN](https://openreview.net/forum?id=Qb-AoSw4Jnm) model acts as the final block of the model, which decodes the latent representation into an actual image.
### Details
The image prior training of the model was performed on the [LAION Improved Aesthetics dataset](https://huggingface.co/datasets/bhargavsdesai/laion_improved_aesthetics_6.5plus_with_images), and then fine-tuning was performed on the [LAION HighRes data](https://huggingface.co/datasets/laion/laion-high-resolution).
The main Text2Image diffusion model was trained on [LAION HighRes dataset](https://huggingface.co/datasets/laion/laion-high-resolution) and then fine-tuned with a dataset of 2M very high-quality high-resolution images with descriptions (COYO, anime, landmarks_russia, and a number of others) was used separately collected from open sources.
The main change in Kandinsky 2.2 is the replacement of CLIP-ViT-G. Its image encoder significantly increases the model's capability to generate more aesthetic pictures and better understand text, thus enhancing its overall performance.
Due to the switch CLIP model, the image prior model was retrained, and the Text2Image diffusion model was fine-tuned for 2000 iterations. Kandinsky 2.2 was trained on data of various resolutions, from 512 x 512 to 1536 x 1536, and also as different aspect ratios. As a result, Kandinsky 2.2 can generate 1024 x 1024 outputs with any aspect ratio.
### Evaluation
We quantitatively measure the performance of Kandinsky 2.1 on the COCO_30k dataset, in zero-shot mode. The table below presents FID.
FID metric values for generative models on COCO_30k
| | FID (30k)|
|:------|----:|
| eDiff-I (2022) | 6.95 |
| Image (2022) | 7.27 |
| Kandinsky 2.1 (2023) | 8.21|
| Stable Diffusion 2.1 (2022) | 8.59 |
| GigaGAN, 512x512 (2023) | 9.09 |
| DALL-E 2 (2022) | 10.39 |
| GLIDE (2022) | 12.24 |
| Kandinsky 1.0 (2022) | 15.40 |
| DALL-E (2021) | 17.89 |
| Kandinsky 2.0 (2022) | 20.00 |
| GLIGEN (2022) | 21.04 |
For more information, please refer to the upcoming technical report.
## BibTex
If you find this repository useful in your research, please cite:
```
@misc{kandinsky 2.2,
title = {kandinsky 2.2},
author = {Arseniy Shakhmatov, Anton Razzhigaev, Aleksandr Nikolich, Vladimir Arkhipkin, Igor Pavlov, Andrey Kuznetsov, Denis Dimitrov},
year = {2023},
howpublished = {},
}
``` | [
-0.3294515907764435,
-0.716382622718811,
0.4967004358768463,
0.1516459882259369,
-0.3602118492126465,
-0.11450528353452682,
-0.03832627087831497,
-0.26943081617355347,
-0.05132858082652092,
0.40155041217803955,
-0.3771989345550537,
-0.4851817488670349,
-0.5925933718681335,
-0.217082679271698,
-0.19310837984085083,
0.7741134166717529,
-0.28741908073425293,
0.0697077214717865,
-0.30976375937461853,
0.04271693155169487,
-0.2306816726922989,
-0.06111057847738266,
-0.6675350069999695,
-0.3205389380455017,
0.2316739410161972,
0.3544232249259949,
0.6068799495697021,
0.37555205821990967,
0.4943656921386719,
0.24458834528923035,
-0.024534763768315315,
-0.03446073457598686,
-0.6127436757087708,
0.04361769184470177,
0.18075135350227356,
-0.42195236682891846,
-0.13863006234169006,
-0.08086337149143219,
0.7199005484580994,
-0.05017167702317238,
0.0410342775285244,
-0.10199549794197083,
0.19344082474708557,
0.779613196849823,
-0.4003472328186035,
-0.06892720609903336,
-0.28974834084510803,
0.1506364494562149,
-0.1999872773885727,
-0.15603411197662354,
-0.31306758522987366,
-0.13380949199199677,
0.25476524233818054,
-0.9490703344345093,
0.2871477007865906,
-0.06306665390729904,
1.3258802890777588,
0.033628784120082855,
-0.3329889476299286,
-0.20072773098945618,
-0.4483959674835205,
0.9165955185890198,
-0.7142621874809265,
0.09749043732881546,
0.2859286665916443,
0.23268097639083862,
-0.0788039043545723,
-1.0347893238067627,
-0.560971200466156,
-0.011033021844923496,
-0.25186875462532043,
0.4383558928966522,
-0.3110760748386383,
-0.007603107485920191,
0.21045394241809845,
0.20284555852413177,
-0.6814824938774109,
-0.130264014005661,
-0.6341617107391357,
-0.16236573457717896,
0.7308276891708374,
0.03160171955823898,
0.3927047550678253,
-0.33698368072509766,
-0.39978599548339844,
-0.38117989897727966,
-0.48778101801872253,
0.07549331337213516,
0.43507587909698486,
-0.43256551027297974,
-0.47266867756843567,
0.48023855686187744,
-0.07053685188293457,
0.546425998210907,
0.16484583914279938,
-0.2101752609014511,
0.2722315490245819,
-0.3153005540370941,
-0.2679751515388489,
-0.38950514793395996,
1.1510473489761353,
0.5572225451469421,
0.1419367790222168,
0.35092511773109436,
0.022180018946528435,
-0.27097660303115845,
-0.17096255719661713,
-1.2408541440963745,
-0.5630397200584412,
0.21258559823036194,
-0.6115221381187439,
-0.43233734369277954,
-0.2244608849287033,
-1.0257281064987183,
-0.10984716564416885,
0.047998927533626556,
0.7032322287559509,
-0.6396050453186035,
-0.4266349673271179,
-0.04834790155291557,
-0.2516016960144043,
0.23921681940555573,
0.3941057324409485,
-0.6540517807006836,
0.1564369946718216,
0.11859562993049622,
1.2488313913345337,
-0.005806163419038057,
-0.1118510365486145,
-0.14571309089660645,
-0.1886892318725586,
-0.40537238121032715,
0.8286498188972473,
-0.4167118966579437,
-0.3880316913127899,
-0.15469470620155334,
0.1515863537788391,
0.13078825175762177,
-0.48709723353385925,
0.4617651104927063,
-0.5107007622718811,
0.33841758966445923,
-0.11961708962917328,
-0.36845216155052185,
-0.34777387976646423,
-0.09286168962717056,
-0.40580910444259644,
1.028314232826233,
0.2920707166194916,
-0.8648792505264282,
0.19843335449695587,
-0.6197391748428345,
-0.04737260937690735,
-0.11219294369220734,
-0.020672352984547615,
-0.7835907936096191,
-0.24429616332054138,
0.25100988149642944,
0.5234676003456116,
-0.4028850197792053,
0.2063296139240265,
-0.3038691580295563,
-0.16777746379375458,
0.24488064646720886,
-0.29969167709350586,
0.9416226148605347,
0.3882967531681061,
-0.2633524239063263,
0.008727752603590488,
-0.4375000298023224,
0.030848102644085884,
0.2186778038740158,
-0.056418176740407944,
-0.14897075295448303,
-0.27955642342567444,
0.37557002902030945,
0.3260321021080017,
0.004722215235233307,
-0.44911491870880127,
0.10984982550144196,
-0.29219162464141846,
0.500788152217865,
0.6815887689590454,
0.2213737517595291,
0.5070746541023254,
-0.4283103942871094,
0.6146154999732971,
0.3177509009838104,
0.0719008669257164,
-0.4218480587005615,
-0.6330196261405945,
-0.9348627924919128,
-0.4345763921737671,
0.19149437546730042,
0.49188920855522156,
-0.911961555480957,
0.10186450928449631,
-0.06132414937019348,
-0.6441503167152405,
-0.3046075105667114,
-0.05599883943796158,
0.2949664294719696,
0.5149248838424683,
0.3510624170303345,
-0.32072725892066956,
-0.35979437828063965,
-1.005336880683899,
0.04108233377337456,
0.0900077223777771,
0.004327844362705946,
0.3094806969165802,
0.6696161031723022,
-0.09359043091535568,
0.8352078199386597,
-0.7284446954727173,
-0.26239314675331116,
0.1599787324666977,
0.2853067219257355,
0.1529732644557953,
0.7907652854919434,
0.577459454536438,
-0.8502391576766968,
-1.0888621807098389,
0.034603193402290344,
-0.833286464214325,
0.03809404745697975,
-0.12422832101583481,
-0.43881934881210327,
0.3087339997291565,
0.45555928349494934,
-0.6559693217277527,
0.5134896636009216,
0.49430373311042786,
-0.3781415820121765,
0.6717509031295776,
-0.2530058026313782,
0.32758164405822754,
-1.2707138061523438,
0.26544609665870667,
0.22092516720294952,
-0.4389745593070984,
-0.7676815986633301,
-0.011765195056796074,
0.030264180153608322,
-0.16875885426998138,
-0.5199804902076721,
0.7103813886642456,
-0.6527788639068604,
0.22401677072048187,
-0.2148510068655014,
-0.1252313256263733,
0.14738556742668152,
0.522577166557312,
0.22816836833953857,
0.7332403659820557,
0.9457607269287109,
-0.3781559467315674,
0.4055030345916748,
0.21937961876392365,
-0.5213282108306885,
0.6917044520378113,
-0.8784471154212952,
0.36629417538642883,
-0.2846173942089081,
0.2341865450143814,
-1.1799629926681519,
-0.27630487084388733,
0.5569958686828613,
-0.6233763694763184,
0.37660059332847595,
-0.2935347855091095,
-0.5064232349395752,
-0.19635717570781708,
-0.30580708384513855,
0.6146186590194702,
1.0591981410980225,
-0.3594353199005127,
0.36493560671806335,
0.05075825750827789,
-0.03303784504532814,
-0.4488966166973114,
-0.8163120746612549,
-0.0864555686712265,
-0.3512069582939148,
-0.7829155921936035,
0.4114131033420563,
-0.2245272696018219,
-0.07431063801050186,
0.18115173280239105,
0.3773554861545563,
-0.25075843930244446,
-0.32151663303375244,
0.24719898402690887,
0.2084895670413971,
-0.17289118468761444,
-0.06474482268095016,
0.3014852702617645,
-0.10343247652053833,
-0.13003115355968475,
-0.3519194722175598,
0.5723953247070312,
0.04907633364200592,
0.003169666277244687,
-0.9462188482284546,
0.26091787219047546,
0.4800127446651459,
0.14642462134361267,
0.7112373113632202,
0.9243513941764832,
-0.31975090503692627,
0.2230323702096939,
-0.37999868392944336,
-0.0763944536447525,
-0.5046051144599915,
0.4592210352420807,
-0.3600855767726898,
-0.5653221011161804,
0.5159894824028015,
0.17213869094848633,
-0.09121743589639664,
0.7674952149391174,
0.5858823657035828,
-0.3562074601650238,
0.9243744611740112,
0.439280241727829,
0.4500923752784729,
0.582670271396637,
-0.9505477547645569,
-0.1510406881570816,
-1.0624083280563354,
-0.3552888035774231,
-0.07177244126796722,
-0.3638935089111328,
-0.2508748769760132,
-0.7835988402366638,
0.552742600440979,
0.4521888494491577,
-0.10583482682704926,
0.12295421212911606,
-0.49848315119743347,
0.3646380305290222,
0.35957014560699463,
0.21784180402755737,
-0.04448305070400238,
0.4546699821949005,
-0.19760601222515106,
-0.32061538100242615,
-0.538597822189331,
-0.2982911169528961,
1.1316245794296265,
0.40791505575180054,
0.7818262577056885,
-0.015411242842674255,
0.5409184694290161,
0.21698595583438873,
0.205252006649971,
-0.581234335899353,
0.40591832995414734,
-0.11396220326423645,
-0.4643111824989319,
-0.15080922842025757,
-0.21411971747875214,
-0.9314068555831909,
0.27718159556388855,
-0.21832561492919922,
-0.5732493996620178,
0.40404611825942993,
0.36342161893844604,
-0.13337527215480804,
0.27671369910240173,
-0.783461332321167,
0.8078945875167847,
0.12235718220472336,
-0.6317259073257446,
-0.28537023067474365,
-0.568747341632843,
0.395062655210495,
0.10010343790054321,
-0.06842850893735886,
-0.08108336478471756,
-0.028824668377637863,
0.8611738681793213,
-0.422442227602005,
0.5716489553451538,
-0.3452647924423218,
0.024050001055002213,
0.5126025676727295,
0.027379268780350685,
0.3674320578575134,
0.14896687865257263,
-0.008955265395343304,
0.19526498019695282,
0.2233559638261795,
-0.5741250514984131,
-0.5934612154960632,
0.7446777820587158,
-0.831964373588562,
-0.3391318619251251,
-0.5227912068367004,
-0.3726430833339691,
0.43896734714508057,
0.1976402997970581,
0.9404024481773376,
0.6485737562179565,
0.0006289928569458425,
0.21996130049228668,
0.5610719919204712,
-0.26148951053619385,
0.44301506876945496,
0.14466455578804016,
-0.36131325364112854,
-0.71964031457901,
0.8442398309707642,
0.21825382113456726,
0.6138244867324829,
0.3123932182788849,
0.2619519531726837,
-0.24559444189071655,
-0.3945271670818329,
-0.4668247699737549,
0.3914966583251953,
-0.8045417666435242,
-0.4377553462982178,
-0.6845131516456604,
-0.40931349992752075,
-0.37183335423469543,
-0.31370866298675537,
-0.25031140446662903,
-0.29783105850219727,
-0.859203577041626,
0.4348227381706238,
0.5461480021476746,
0.49550944566726685,
-0.2013079822063446,
0.3964279890060425,
-0.3381035625934601,
0.2034856230020523,
0.30526047945022583,
0.20435568690299988,
0.09013054519891739,
-0.8136647343635559,
-0.32594770193099976,
0.15466074645519257,
-0.5558761358261108,
-0.7504279017448425,
0.5293751358985901,
0.3112746775150299,
0.23679430782794952,
0.34511590003967285,
-0.2648901045322418,
0.6441016793251038,
-0.25084593892097473,
0.8581345081329346,
0.41794678568840027,
-0.8159942626953125,
0.5701315999031067,
-0.43474721908569336,
0.44635698199272156,
0.18165260553359985,
0.44708919525146484,
-0.6461187601089478,
-0.22240613400936127,
-0.6698040962219238,
-0.6475083231925964,
0.8606846332550049,
0.5738005042076111,
0.013996175490319729,
0.4056929647922516,
0.5707940459251404,
0.06013307347893715,
-0.032416846603155136,
-0.8731339573860168,
-0.32854944467544556,
-0.5102037191390991,
-0.2758711278438568,
-0.1116228997707367,
-0.395311564207077,
-0.06982354074716568,
-0.4896884262561798,
0.7521452307701111,
-0.12088940292596817,
0.6801068186759949,
0.6458843350410461,
-0.26104769110679626,
-0.15098708868026733,
-0.15791386365890503,
0.6706200838088989,
0.4731023907661438,
-0.16886672377586365,
0.017654478549957275,
-0.07426674664020538,
-0.6484953761100769,
0.3325451910495758,
0.02633834071457386,
-0.40546706318855286,
0.030848776921629906,
0.3237803876399994,
1.0386604070663452,
-0.3495468497276306,
-0.3783550560474396,
0.5817424654960632,
-0.05786033347249031,
-0.5457438826560974,
-0.37254518270492554,
0.03540782630443573,
0.03523935750126839,
0.3103245794773102,
0.42822277545928955,
0.37321603298187256,
0.19777807593345642,
-0.21378347277641296,
0.09727845340967178,
0.44127464294433594,
-0.3461448550224304,
-0.4654082953929901,
0.5928820967674255,
-0.042466554790735245,
-0.20980656147003174,
0.38033327460289,
-0.28820350766181946,
-0.3872672915458679,
0.7701946496963501,
0.6415735483169556,
0.9312753081321716,
-0.0910966545343399,
0.49455636739730835,
0.8569416999816895,
0.14688622951507568,
-0.0035700886510312557,
0.0707327127456665,
0.07997633516788483,
-0.561613142490387,
-0.02889205887913704,
-0.3746374845504761,
0.15377360582351685,
0.2470003366470337,
-0.36361849308013916,
0.5272515416145325,
-0.5334927439689636,
-0.05216968059539795,
-0.08634945750236511,
0.04634416475892067,
-0.7037898302078247,
0.15991239249706268,
-0.07654247432947159,
0.6416604518890381,
-0.8767982721328735,
0.8080887794494629,
0.5097939372062683,
-0.35255664587020874,
-0.5459526181221008,
0.18353582918643951,
-0.07655641436576843,
-0.6063404083251953,
0.6493108868598938,
0.19873405992984772,
-0.09545721113681793,
0.30788925290107727,
-0.7638368010520935,
-0.9793630242347717,
1.409746527671814,
0.3327885568141937,
-0.32203415036201477,
0.21211257576942444,
-0.22116246819496155,
0.6026895046234131,
-0.38357239961624146,
0.5520981550216675,
0.2683771550655365,
0.22099237143993378,
0.30611661076545715,
-0.5604612231254578,
0.10583503544330597,
-0.35484665632247925,
0.4433157742023468,
0.06176566332578659,
-0.9799750447273254,
0.9326578378677368,
-0.21544843912124634,
-0.5112643241882324,
0.3744187355041504,
0.7330557703971863,
0.09653433412313461,
0.10935427993535995,
0.4350300431251526,
0.7116695642471313,
0.35797828435897827,
0.004080739337950945,
0.866677463054657,
0.046314775943756104,
0.7054893374443054,
0.5000737309455872,
0.193868488073349,
0.655062198638916,
0.3650254011154175,
-0.26314496994018555,
0.7930715084075928,
0.7584781050682068,
-0.10641428828239441,
0.8359583616256714,
0.022723613306879997,
-0.2899545729160309,
0.0934147909283638,
-0.013956884853541851,
-0.516662061214447,
0.12435728311538696,
0.2637314200401306,
-0.40672287344932556,
-0.04268327355384827,
0.25148072838783264,
0.16117188334465027,
-0.13952142000198364,
0.11809541285037994,
0.48126667737960815,
0.04320254549384117,
-0.5545743107795715,
0.9625120162963867,
0.1125229075551033,
0.9127553105354309,
-0.6209762692451477,
-0.19979949295520782,
-0.04894508048892021,
-0.04600021615624428,
-0.24653208255767822,
-1.0804539918899536,
0.23507937788963318,
-0.13790388405323029,
-0.11478184163570404,
-0.16439825296401978,
0.8280460834503174,
-0.6337108612060547,
-0.5903832912445068,
0.23487387597560883,
-0.23869457840919495,
0.4020945131778717,
0.16339291632175446,
-0.9018545150756836,
0.15847617387771606,
0.17345337569713593,
-0.39182248711586,
0.08580169826745987,
0.04332607612013817,
0.43302589654922485,
0.47193965315818787,
0.5772559642791748,
-0.029681505635380745,
0.0432414710521698,
-0.4022989869117737,
0.6920635104179382,
-0.3517122268676758,
-0.38879460096359253,
-0.8003724217414856,
0.799490213394165,
-0.28057000041007996,
-0.46134883165359497,
0.5584468841552734,
0.6421725153923035,
0.567283570766449,
-0.23045845329761505,
0.7437245845794678,
-0.29846176505088806,
0.21011555194854736,
-0.9481061100959778,
0.8552834987640381,
-0.8724225759506226,
-0.168314591050148,
-0.3913434147834778,
-0.8212605714797974,
-0.13062815368175507,
0.7266058325767517,
-0.18351347744464874,
0.1728029102087021,
0.8001935482025146,
1.10841703414917,
-0.2146807163953781,
-0.5744867324829102,
0.2582663893699646,
0.2913138270378113,
0.4317637085914612,
0.5907301902770996,
0.6887156963348389,
-0.8800454139709473,
0.47635626792907715,
-0.5421398878097534,
-0.16326893866062164,
-0.22406841814517975,
-0.7662963271141052,
-0.8641200661659241,
-1.0875873565673828,
-0.5372037291526794,
-0.6124035120010376,
-0.12044685333967209,
0.5235680341720581,
1.1233773231506348,
-0.5323612093925476,
-0.15422075986862183,
-0.27705463767051697,
0.027631688863039017,
0.07017563283443451,
-0.30853867530822754,
0.37685635685920715,
0.08667846769094467,
-0.8246031999588013,
-0.20883943140506744,
0.3364730775356293,
0.46825313568115234,
-0.35238397121429443,
-0.34289634227752686,
-0.45152199268341064,
-0.08716629445552826,
0.33486634492874146,
0.2704958915710449,
-0.7925344109535217,
-0.06914327293634415,
-0.1282285749912262,
-0.054657403379678726,
0.34451669454574585,
0.49297255277633667,
-0.5838161110877991,
0.7555698156356812,
0.7346391677856445,
0.045179761946201324,
0.9922732710838318,
-0.20775987207889557,
0.2864307165145874,
-0.5257886648178101,
0.49800777435302734,
0.04158575087785721,
0.07802192121744156,
0.40645620226860046,
-0.5637730360031128,
0.2204911857843399,
0.5390419363975525,
-0.7640073299407959,
-0.7239600419998169,
0.13430728018283844,
-0.9778308868408203,
-0.21595540642738342,
1.2075103521347046,
-0.20914070308208466,
-0.2282748967409134,
0.17572006583213806,
-0.4980720281600952,
0.16678743064403534,
-0.4099878966808319,
0.365322470664978,
0.8603522181510925,
-0.09534582495689392,
-0.7640290856361389,
-0.5249739289283752,
0.6920395493507385,
0.3821268379688263,
-0.7640690207481384,
-0.4077429473400116,
0.4178308844566345,
0.633103609085083,
0.22013084590435028,
1.031217336654663,
-0.09072548151016235,
0.2921207547187805,
0.14141413569450378,
0.03902237489819527,
0.14966259896755219,
-0.23108738660812378,
-0.5087994337081909,
-0.2551272511482239,
-0.10332177579402924,
-0.19846947491168976
] |
Helsinki-NLP/opus-mt-en-de | Helsinki-NLP | "2023-08-16T11:29:21Z" | 112,527 | 17 | transformers | [
"transformers",
"pytorch",
"tf",
"jax",
"rust",
"marian",
"text2text-generation",
"translation",
"en",
"de",
"license:cc-by-4.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | translation | "2022-03-02T23:29:04Z" | ---
tags:
- translation
license: cc-by-4.0
---
### opus-mt-en-de
## Table of Contents
- [Model Details](#model-details)
- [Uses](#uses)
- [Risks, Limitations and Biases](#risks-limitations-and-biases)
- [Training](#training)
- [Evaluation](#evaluation)
- [Citation Information](#citation-information)
- [How to Get Started With the Model](#how-to-get-started-with-the-model)
## Model Details
**Model Description:**
- **Developed by:** Language Technology Research Group at the University of Helsinki
- **Model Type:** Translation
- **Language(s):**
- Source Language: English
- Target Language: German
- **License:** CC-BY-4.0
- **Resources for more information:**
- [GitHub Repo](https://github.com/Helsinki-NLP/OPUS-MT-train)
## Uses
#### Direct Use
This model can be used for translation and text-to-text generation.
## Risks, Limitations and Biases
**CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes.**
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
Further details about the dataset for this model can be found in the OPUS readme: [en-de](https://github.com/Helsinki-NLP/OPUS-MT-train/blob/master/models/en-de/README.md)
#### Training Data
##### Preprocessing
* pre-processing: normalization + SentencePiece
* dataset: [opus](https://github.com/Helsinki-NLP/Opus-MT)
* download original weights: [opus-2020-02-26.zip](https://object.pouta.csc.fi/OPUS-MT-models/en-de/opus-2020-02-26.zip)
* test set translations: [opus-2020-02-26.test.txt](https://object.pouta.csc.fi/OPUS-MT-models/en-de/opus-2020-02-26.test.txt)
## Evaluation
#### Results
* test set scores: [opus-2020-02-26.eval.txt](https://object.pouta.csc.fi/OPUS-MT-models/en-de/opus-2020-02-26.eval.txt)
#### Benchmarks
| testset | BLEU | chr-F |
|-----------------------|-------|-------|
| newssyscomb2009.en.de | 23.5 | 0.540 |
| news-test2008.en.de | 23.5 | 0.529 |
| newstest2009.en.de | 22.3 | 0.530 |
| newstest2010.en.de | 24.9 | 0.544 |
| newstest2011.en.de | 22.5 | 0.524 |
| newstest2012.en.de | 23.0 | 0.525 |
| newstest2013.en.de | 26.9 | 0.553 |
| newstest2015-ende.en.de | 31.1 | 0.594 |
| newstest2016-ende.en.de | 37.0 | 0.636 |
| newstest2017-ende.en.de | 29.9 | 0.586 |
| newstest2018-ende.en.de | 45.2 | 0.690 |
| newstest2019-ende.en.de | 40.9 | 0.654 |
| Tatoeba.en.de | 47.3 | 0.664 |
## Citation Information
```bibtex
@InProceedings{TiedemannThottingal:EAMT2020,
author = {J{\"o}rg Tiedemann and Santhosh Thottingal},
title = {{OPUS-MT} — {B}uilding open translation services for the {W}orld},
booktitle = {Proceedings of the 22nd Annual Conferenec of the European Association for Machine Translation (EAMT)},
year = {2020},
address = {Lisbon, Portugal}
}
```
## How to Get Started With the Model
```python
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-en-de")
model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-en-de")
```
| [
-0.3530908226966858,
-0.5766029357910156,
0.20067375898361206,
0.14154240489006042,
-0.33131083846092224,
-0.5370957255363464,
-0.2813076376914978,
-0.3652496337890625,
0.07958874106407166,
0.26647263765335083,
-0.5184697508811951,
-0.5851455330848694,
-0.6917791366577148,
0.2639024257659912,
-0.23959246277809143,
0.8838335275650024,
-0.09058929234743118,
0.47272762656211853,
0.04362689331173897,
-0.3786565065383911,
-0.3605244755744934,
-0.6126424670219421,
-0.4343721866607666,
-0.29958242177963257,
0.17543959617614746,
0.2113078236579895,
0.5135741829872131,
0.6856886744499207,
0.6949989795684814,
0.2764299511909485,
-0.2266346961259842,
-0.007484693080186844,
-0.2546495795249939,
-0.07581314444541931,
0.14028611779212952,
-0.5562106966972351,
-0.7827116250991821,
0.12145131081342697,
0.7884520292282104,
0.7545197010040283,
0.07940390706062317,
0.4269183874130249,
0.11066361516714096,
0.875668466091156,
-0.19850294291973114,
0.024704214185476303,
-0.5446789860725403,
0.10809729248285294,
-0.25555551052093506,
-0.29385241866111755,
-0.6348593831062317,
-0.28666990995407104,
0.13956943154335022,
-0.5698281526565552,
0.03170168027281761,
0.18018269538879395,
1.190247893333435,
0.15470002591609955,
-0.3175000846385956,
-0.190914124250412,
-0.5885201096534729,
1.098858118057251,
-0.9945383071899414,
0.536942720413208,
0.5770360827445984,
-0.042064618319272995,
0.009839098900556564,
-0.5814977288246155,
-0.40198975801467896,
-0.09183812141418457,
-0.2691698968410492,
0.23993010818958282,
-0.1653575748205185,
-0.21946950256824493,
0.34469759464263916,
0.6746346950531006,
-0.8379473090171814,
0.07625138759613037,
-0.6032172441482544,
-0.07754691690206528,
0.7350055575370789,
0.11755679547786713,
0.3008098900318146,
-0.3401331603527069,
-0.5171595215797424,
-0.40064001083374023,
-0.7288748621940613,
0.1452886015176773,
0.5302507877349854,
0.2794100046157837,
-0.3320328891277313,
0.7241244316101074,
-0.028095882385969162,
0.6091627478599548,
0.0006085892673581839,
-0.03200791776180267,
0.8914700746536255,
-0.4930973947048187,
-0.28088417649269104,
-0.2685569226741791,
1.2273210287094116,
0.42851686477661133,
0.13879479467868805,
-0.05207327380776405,
-0.22211603820323944,
-0.21849310398101807,
-0.03937964141368866,
-0.9441591501235962,
0.06851314008235931,
0.28648069500923157,
-0.6036055088043213,
-0.05744009464979172,
-0.0435471273958683,
-0.7271340489387512,
0.2263467162847519,
-0.44638222455978394,
0.5540522933006287,
-0.7200645804405212,
-0.36403411626815796,
0.3046305179595947,
0.0012739266967400908,
0.32181063294410706,
0.0172719843685627,
-0.5896378755569458,
0.2320476472377777,
0.38790926337242126,
0.8620702624320984,
-0.41924014687538147,
-0.4404609799385071,
-0.3013547658920288,
-0.23431888222694397,
-0.23948708176612854,
0.5529130697250366,
-0.11767585575580597,
-0.5369855761528015,
-0.07683330029249191,
0.2846791744232178,
-0.2743884325027466,
-0.32373329997062683,
1.1694644689559937,
-0.34507855772972107,
0.866939902305603,
-0.23457710444927216,
-0.8095371127128601,
-0.26729297637939453,
0.2833472192287445,
-0.541312575340271,
1.4665660858154297,
0.1063164472579956,
-0.9653778672218323,
0.2100411057472229,
-0.8179358839988708,
-0.08344610780477524,
-0.14425362646579742,
0.040713436901569366,
-0.5808787941932678,
-0.05810853838920593,
0.16600270569324493,
0.34053394198417664,
-0.4303247928619385,
0.5621970295906067,
-0.18002408742904663,
-0.23845963180065155,
0.1636866331100464,
-0.5117778778076172,
1.345491886138916,
0.317469984292984,
-0.4138169288635254,
0.029140040278434753,
-0.9738740921020508,
-0.04347500577569008,
0.08742650598287582,
-0.37472066283226013,
-0.4062136113643646,
-0.04746144264936447,
0.11107157915830612,
0.2701188325881958,
0.21378715336322784,
-0.6388339400291443,
0.18411476910114288,
-0.8741385340690613,
0.3146574795246124,
0.7460576295852661,
-0.2770930528640747,
0.524480938911438,
-0.4968436658382416,
0.3332497477531433,
0.09160248935222626,
0.30209657549858093,
-0.05813154578208923,
-0.6356290578842163,
-0.98820960521698,
-0.23785516619682312,
0.6462408304214478,
0.749661922454834,
-0.6271344423294067,
0.8747720122337341,
-0.5082846283912659,
-0.8075908422470093,
-0.6795055866241455,
-0.1645042598247528,
0.6025499105453491,
0.4640369117259979,
0.6017252206802368,
-0.3394140303134918,
-0.4752731919288635,
-1.0780978202819824,
-0.3388141095638275,
-0.23127904534339905,
-0.15032601356506348,
0.2070646584033966,
0.8174961805343628,
-0.04967290908098221,
0.7935304045677185,
-0.47096797823905945,
-0.4035249352455139,
-0.10160146653652191,
0.19366519153118134,
0.5213268995285034,
0.8972992897033691,
0.6380077600479126,
-0.9232757091522217,
-0.6932103037834167,
-0.1883285492658615,
-0.7495316863059998,
-0.17927195131778717,
0.2071084976196289,
-0.3324708640575409,
0.3033748269081116,
0.2956874370574951,
-0.5116078853607178,
0.26021766662597656,
0.5300665497779846,
-0.6437638998031616,
0.6387122869491577,
-0.17643454670906067,
0.217295303940773,
-1.3814008235931396,
0.21273991465568542,
-0.11439290642738342,
-0.04802703484892845,
-0.7041580677032471,
0.0024032536894083023,
0.036779582500457764,
0.02407602220773697,
-0.6251842379570007,
0.8393856883049011,
-0.5133864879608154,
0.0055322349071502686,
0.2726370394229889,
-0.017897896468639374,
0.04702093079686165,
0.8491960167884827,
0.0014953477075323462,
0.8223068714141846,
0.6326987743377686,
-0.5441052913665771,
-0.0010967951966449618,
0.41400402784347534,
-0.38817694783210754,
0.39913031458854675,
-0.839056670665741,
-0.07360424846410751,
0.2552434802055359,
-0.07186456769704819,
-0.6983004808425903,
0.10576584935188293,
0.3538060784339905,
-0.8045362234115601,
0.3830193877220154,
-0.19380100071430206,
-0.8465823531150818,
-0.2189781814813614,
-0.31148189306259155,
0.4819531738758087,
0.6511646509170532,
-0.17196130752563477,
0.7179654836654663,
0.23136086761951447,
-0.1428871750831604,
-0.4754197299480438,
-0.9719696640968323,
-0.19519288837909698,
-0.3672347366809845,
-0.7331333160400391,
0.34770363569259644,
-0.5072550177574158,
-0.064176045358181,
0.09151247888803482,
0.32839131355285645,
-0.12750211358070374,
0.06014384329319,
0.12299659848213196,
0.3341173231601715,
-0.2955092191696167,
0.21621353924274445,
-0.06686224043369293,
-0.23596805334091187,
0.02507404424250126,
-0.4575914740562439,
0.4683069884777069,
-0.36326703429222107,
-0.3427506685256958,
-0.5911144018173218,
0.3330761790275574,
0.610179603099823,
-0.4720102846622467,
0.8921791315078735,
0.5111908912658691,
-0.27429452538490295,
0.20521123707294464,
-0.5167933702468872,
-0.11407270282506943,
-0.4577816426753998,
0.31428062915802,
-0.2654438614845276,
-0.7841156721115112,
0.6163975596427917,
0.25930824875831604,
0.40680739283561707,
0.9563238024711609,
0.757960855960846,
0.16273309290409088,
0.862415075302124,
0.4846023917198181,
0.2561643421649933,
0.4882644712924957,
-0.5113649368286133,
-0.05603685602545738,
-1.0461156368255615,
-0.1603861153125763,
-0.7716682553291321,
-0.2039513885974884,
-0.8333026766777039,
-0.47772565484046936,
0.2961643934249878,
-0.03143458440899849,
-0.34321391582489014,
0.5259972214698792,
-0.5188921689987183,
0.0849170908331871,
0.6982205510139465,
-0.1282310038805008,
0.3529491126537323,
-0.010699447244405746,
-0.5033636093139648,
-0.33521032333374023,
-0.6248131990432739,
-0.6123397946357727,
1.49843430519104,
0.46960124373435974,
0.29252830147743225,
0.23594218492507935,
0.5557818412780762,
0.1939586102962494,
0.30525466799736023,
-0.6144886016845703,
0.5148862600326538,
-0.1427452266216278,
-0.9557326436042786,
-0.38288453221321106,
-0.6106125712394714,
-0.8397771716117859,
0.5543511509895325,
-0.227864071726799,
-0.6362254619598389,
0.4562099874019623,
0.054651301354169846,
-0.16539601981639862,
0.3649693727493286,
-0.7755944728851318,
0.9942751526832581,
-0.23587314784526825,
-0.26554980874061584,
0.24517229199409485,
-0.6401089429855347,
0.24837630987167358,
-0.11245084553956985,
0.4426356256008148,
-0.16331692039966583,
0.045736558735370636,
0.9566225409507751,
-0.33190593123435974,
0.6314992904663086,
-0.07275447994470596,
-0.04078470170497894,
0.13161152601242065,
0.10219434648752213,
0.5128401517868042,
-0.11881941556930542,
-0.502208411693573,
0.43675118684768677,
0.09413982182741165,
-0.4042525291442871,
-0.2536945044994354,
0.5158460140228271,
-0.8149790167808533,
-0.4302506744861603,
-0.610994279384613,
-0.6741332411766052,
0.03675258532166481,
0.44551026821136475,
0.5328477621078491,
0.7315885424613953,
-0.2894003391265869,
0.38068413734436035,
0.8805484771728516,
-0.47198840975761414,
0.3115352988243103,
0.7190815806388855,
-0.2200283408164978,
-0.5353909730911255,
0.7419442534446716,
0.32765528559684753,
0.4370938241481781,
0.4332328140735626,
0.26047152280807495,
-0.26348552107810974,
-0.6074060201644897,
-0.6707344055175781,
0.29718300700187683,
-0.49104559421539307,
-0.12625594437122345,
-0.8255265355110168,
-0.16540147364139557,
-0.4291279911994934,
0.16743259131908417,
-0.6056163907051086,
-0.6719372272491455,
-0.3289685845375061,
-0.1482907384634018,
0.2756292223930359,
0.2401871383190155,
-0.19304876029491425,
0.21687105298042297,
-0.7527334690093994,
0.0013732034713029861,
-0.10589838027954102,
0.30573341250419617,
-0.23076659440994263,
-1.097047209739685,
-0.4237573742866516,
0.11638280749320984,
-0.4272482395172119,
-0.8745699524879456,
0.5973819494247437,
0.19020728766918182,
0.4070652425289154,
0.27369174361228943,
0.25333333015441895,
0.33367210626602173,
-0.6914817094802856,
1.0467852354049683,
0.09270830452442169,
-0.774453341960907,
0.46983933448791504,
-0.42663538455963135,
0.31829285621643066,
0.7106136679649353,
0.40115290880203247,
-0.3892521262168884,
-0.6436472535133362,
-0.9191772937774658,
-0.9943133592605591,
0.8571140170097351,
0.6251628398895264,
0.136439710855484,
0.1696721464395523,
0.051772888749837875,
0.030807672068476677,
0.08302087336778641,
-1.234804630279541,
-0.6220453381538391,
0.012690920382738113,
-0.18465837836265564,
-0.09183552116155624,
-0.4146151542663574,
-0.224858820438385,
-0.46880266070365906,
1.0907917022705078,
0.24698741734027863,
0.43206050992012024,
0.44241034984588623,
-0.13093309104442596,
-0.0005164974718354642,
0.4658460319042206,
0.6986679434776306,
0.5494686365127563,
-0.49244290590286255,
-0.05192004516720772,
0.2924371361732483,
-0.4669412076473236,
0.038205038756132126,
0.28061190247535706,
-0.6153119206428528,
0.2755897343158722,
0.4071103632450104,
0.9213800430297852,
0.10214125365018845,
-0.4815950393676758,
0.7095762491226196,
-0.17315706610679626,
-0.5045327544212341,
-0.6050270199775696,
-0.2594061493873596,
0.036820732057094574,
0.05016560107469559,
0.24996620416641235,
0.07238509505987167,
0.2608901560306549,
-0.33354052901268005,
0.11774008721113205,
0.0997706800699234,
-0.5158756375312805,
-0.43411561846733093,
0.711586594581604,
0.19790591299533844,
-0.3109213411808014,
0.37871402502059937,
-0.4459710419178009,
-0.6401610970497131,
0.53951495885849,
0.31173738837242126,
1.0286058187484741,
-0.2067783623933792,
-0.07011420279741287,
0.8734232187271118,
0.5778505206108093,
-0.11565360426902771,
0.19862937927246094,
0.23708640038967133,
-0.5628779530525208,
-0.3639235198497772,
-0.8244499564170837,
0.04866081848740578,
0.05632774904370308,
-0.7949497699737549,
0.30258411169052124,
0.2183760702610016,
-0.2438713163137436,
-0.29572346806526184,
0.21136946976184845,
-0.6258505582809448,
0.07927047461271286,
-0.19363389909267426,
1.1466375589370728,
-0.9969842433929443,
0.7797801494598389,
0.5994105339050293,
-0.540494441986084,
-0.8323415517807007,
-0.18583956360816956,
-0.08452820032835007,
-0.43291357159614563,
0.7167818546295166,
0.10352376103401184,
0.24740715324878693,
-0.008736815303564072,
-0.3062005341053009,
-0.9899194240570068,
1.0739327669143677,
0.29853731393814087,
-0.45669275522232056,
0.028480159118771553,
0.10209009051322937,
0.6690976023674011,
-0.28564366698265076,
0.40220335125923157,
0.32955053448677063,
0.6082833409309387,
-0.022004036232829094,
-0.9904497265815735,
-0.08482673764228821,
-0.639845073223114,
-0.09490557014942169,
0.25560206174850464,
-0.6024490594863892,
1.1496269702911377,
0.2923508882522583,
-0.2546554207801819,
0.06885149329900742,
0.7136556506156921,
0.1685829609632492,
0.1861620545387268,
0.4280162751674652,
0.9273595213890076,
0.5632281303405762,
-0.293391615152359,
1.0769903659820557,
-0.4078865051269531,
0.5367891192436218,
1.1828079223632812,
0.13148461282253265,
0.89786297082901,
0.4153894782066345,
-0.37261006236076355,
0.4571992754936218,
0.7847859263420105,
-0.18960271775722504,
0.4310494661331177,
0.012474968098104,
0.14592841267585754,
-0.19409111142158508,
-0.00163047865498811,
-0.779347836971283,
0.1352253407239914,
0.11766514927148819,
-0.41826996207237244,
0.046218391507864,
-0.06261295080184937,
0.2748018503189087,
-0.03692613169550896,
-0.06271900236606598,
0.5716479420661926,
0.2254864126443863,
-0.7558777928352356,
0.7654623985290527,
0.09626136720180511,
0.7067492008209229,
-0.7032874822616577,
0.1863902062177658,
-0.27835050225257874,
0.1699448823928833,
-0.05799625813961029,
-0.6197007894515991,
0.3653036952018738,
0.21743832528591156,
-0.3425215482711792,
-0.4285425841808319,
0.24395105242729187,
-0.6014977693557739,
-0.8885931372642517,
0.4664364457130432,
0.5985320210456848,
0.4363833963871002,
0.22482404112815857,
-0.9374529123306274,
-0.13597509264945984,
0.12393084168434143,
-0.7023915648460388,
0.1661965698003769,
0.6336548924446106,
0.22533580660820007,
0.5300798416137695,
0.6933422088623047,
0.18577753007411957,
0.18524803221225739,
-0.10018543154001236,
0.7605199813842773,
-0.337313175201416,
-0.45115339756011963,
-0.9236562252044678,
0.799744188785553,
-0.0839022621512413,
-0.6093238592147827,
0.9470414519309998,
0.9740489721298218,
1.0760587453842163,
0.055073048919439316,
0.5088707804679871,
-0.17125220596790314,
0.7133721113204956,
-0.5950353145599365,
0.6411772966384888,
-0.9957122206687927,
0.3178851902484894,
-0.27215468883514404,
-0.8741918802261353,
-0.27180081605911255,
0.4085097908973694,
-0.369177907705307,
-0.011187859810888767,
0.7972318530082703,
0.8094330430030823,
-0.09443571418523788,
-0.21049468219280243,
0.22541698813438416,
0.42971333861351013,
0.22317969799041748,
0.5700832009315491,
0.5124309062957764,
-0.9051629304885864,
0.534910261631012,
-0.2374584674835205,
-0.21959885954856873,
-0.15054616332054138,
-0.7887126207351685,
-0.9001391530036926,
-0.7770994305610657,
-0.1404220312833786,
-0.41071945428848267,
-0.14299403131008148,
1.0814419984817505,
0.418226957321167,
-0.8227346539497375,
-0.471364825963974,
0.08514991402626038,
0.02863488718867302,
-0.2111085057258606,
-0.1835981011390686,
0.7830671668052673,
-0.1861143261194229,
-0.9693888425827026,
0.09530287981033325,
0.022836335003376007,
0.064131960272789,
-0.20583008229732513,
-0.33658596873283386,
-0.5129363536834717,
0.05215490236878395,
0.3889811336994171,
0.06423074752092361,
-0.6890667080879211,
0.1452023983001709,
0.20685672760009766,
-0.2531374394893646,
0.28486600518226624,
0.2946258783340454,
-0.19136987626552582,
0.4962407946586609,
0.7256483435630798,
0.39172935485839844,
0.4407990872859955,
-0.16068343818187714,
0.6317323446273804,
-0.5236551761627197,
0.3678171932697296,
0.23507216572761536,
0.5425249338150024,
0.35016557574272156,
-0.11855441331863403,
0.7756282091140747,
0.36196601390838623,
-0.606048047542572,
-1.1436470746994019,
0.010665688663721085,
-0.8779280781745911,
-0.11694753170013428,
1.2993320226669312,
-0.3145124018192291,
-0.17048709094524384,
0.12749923765659332,
-0.06046883761882782,
0.3470853567123413,
-0.34743282198905945,
0.487665057182312,
0.8726787567138672,
0.22966337203979492,
0.20918041467666626,
-0.9370396137237549,
0.4664745032787323,
0.5589720010757446,
-0.8121806979179382,
-0.053215913474559784,
0.2956429123878479,
0.23277781903743744,
0.296370267868042,
0.7469850778579712,
-0.42576003074645996,
0.03213076293468475,
-0.22811271250247955,
0.40309107303619385,
-0.08955874294042587,
-0.06442545354366302,
-0.32528114318847656,
-0.14056767523288727,
-0.014014949090778828,
-0.016016436740756035
] |
stablediffusionapi/realistic-vision-v51 | stablediffusionapi | "2023-10-09T11:08:00Z" | 112,357 | 5 | diffusers | [
"diffusers",
"stablediffusionapi.com",
"stable-diffusion-api",
"text-to-image",
"ultra-realistic",
"license:creativeml-openrail-m",
"endpoints_compatible",
"has_space",
"diffusers:StableDiffusionPipeline",
"region:us"
] | text-to-image | "2023-10-09T11:06:33Z" | ---
license: creativeml-openrail-m
tags:
- stablediffusionapi.com
- stable-diffusion-api
- text-to-image
- ultra-realistic
pinned: true
---
# Realistic Vision V5.1 API Inference
![generated from stablediffusionapi.com](https://cdn.stablediffusionapi.com/generations/8112328501690811758.png)
## Get API Key
Get API key from [Stable Diffusion API](http://stablediffusionapi.com/), No Payment needed.
Replace Key in below code, change **model_id** to "realistic-vision-v51"
Coding in PHP/Node/Java etc? Have a look at docs for more code examples: [View docs](https://stablediffusionapi.com/docs)
Try model for free: [Generate Images](https://stablediffusionapi.com/models/realistic-vision-v51)
Model link: [View model](https://stablediffusionapi.com/models/realistic-vision-v51)
Credits: [View credits](https://civitai.com/?query=Realistic%20Vision%20V5.1)
View all models: [View Models](https://stablediffusionapi.com/models)
import requests
import json
url = "https://stablediffusionapi.com/api/v4/dreambooth"
payload = json.dumps({
"key": "your_api_key",
"model_id": "realistic-vision-v51",
"prompt": "ultra realistic close up portrait ((beautiful pale cyberpunk female with heavy black eyeliner)), blue eyes, shaved side haircut, hyper detail, cinematic lighting, magic neon, dark red city, Canon EOS R3, nikon, f/1.4, ISO 200, 1/160s, 8K, RAW, unedited, symmetrical balance, in-frame, 8K",
"negative_prompt": "painting, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, deformed, ugly, blurry, bad anatomy, bad proportions, extra limbs, cloned face, skinny, glitchy, double torso, extra arms, extra hands, mangled fingers, missing lips, ugly face, distorted face, extra legs, anime",
"width": "512",
"height": "512",
"samples": "1",
"num_inference_steps": "30",
"safety_checker": "no",
"enhance_prompt": "yes",
"seed": None,
"guidance_scale": 7.5,
"multi_lingual": "no",
"panorama": "no",
"self_attention": "no",
"upscale": "no",
"embeddings": "embeddings_model_id",
"lora": "lora_model_id",
"webhook": None,
"track_id": None
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
> Use this coupon code to get 25% off **DMGG0RBN** | [
-0.5356015563011169,
-0.7088115811347961,
0.5772380828857422,
0.1823093295097351,
-0.5399149060249329,
0.05474092811346054,
0.33162376284599304,
-0.6312946677207947,
0.5286544561386108,
0.6309168338775635,
-0.9069188237190247,
-0.8774322867393494,
-0.37605443596839905,
-0.02176591381430626,
-0.19355617463588715,
0.5144572257995605,
0.042203210294246674,
-0.10585245490074158,
-0.15470466017723083,
0.09129715710878372,
-0.24225637316703796,
-0.12565550208091736,
-0.5977055430412292,
-0.039389852434396744,
0.19413281977176666,
-0.06847124546766281,
0.6024690270423889,
0.656191349029541,
0.5503676533699036,
0.31330370903015137,
-0.15350502729415894,
-0.05220375955104828,
-0.40120071172714233,
-0.3628161549568176,
-0.14916746318340302,
-0.7133099436759949,
-0.568580687046051,
0.013126639649271965,
0.4121447801589966,
0.37210613489151,
-0.04454055055975914,
0.555567741394043,
-0.14283078908920288,
0.647800862789154,
-0.7217827439308167,
0.20380792021751404,
-0.3470587134361267,
0.33350133895874023,
0.044243983924388885,
-0.015994559973478317,
-0.2152593731880188,
-0.2346123605966568,
-0.010580024681985378,
-1.088315486907959,
0.40218061208724976,
0.16959059238433838,
1.5030606985092163,
0.3308001756668091,
-0.1997181922197342,
0.060064032673835754,
-0.6072884202003479,
0.8449826240539551,
-0.952877402305603,
0.39152538776397705,
0.30814555287361145,
0.3756134808063507,
0.0050353738479316235,
-0.9938187599182129,
-0.6909359097480774,
0.17867006361484528,
0.38416025042533875,
0.3022305369377136,
-0.42735815048217773,
0.04761354252696037,
0.3771732747554779,
0.3201514780521393,
-0.5316862463951111,
-0.25985395908355713,
-0.5423316955566406,
-0.1397743821144104,
0.5639650225639343,
0.28947755694389343,
0.12311230599880219,
-0.2686765491962433,
-0.4883146286010742,
-0.33905091881752014,
-0.46491000056266785,
0.3214673399925232,
0.6149200797080994,
0.22411026060581207,
-0.6285704970359802,
0.46032533049583435,
-0.4897628128528595,
0.9368575811386108,
0.2756752371788025,
-0.27429264783859253,
0.6650674939155579,
-0.23922546207904816,
-0.33001455664634705,
-0.3023437559604645,
0.8307113647460938,
0.819017767906189,
-0.021472709253430367,
0.34700116515159607,
-0.16173973679542542,
0.12361537665128708,
0.2590637505054474,
-1.1132868528366089,
-0.18373823165893555,
0.7781935930252075,
-0.6928725838661194,
-0.6755461096763611,
0.08730795979499817,
-0.989388644695282,
-0.17956574261188507,
-0.07260571420192719,
0.4389585554599762,
-0.38294366002082825,
-0.4014795124530792,
0.3884204626083374,
-0.20814651250839233,
0.2399653047323227,
0.39058050513267517,
-0.7212347388267517,
0.0935763567686081,
0.41471534967422485,
0.8901584148406982,
0.20959557592868805,
-0.006137141492217779,
0.2489701807498932,
0.13559098541736603,
-0.4041222035884857,
0.8754383325576782,
-0.10737287253141403,
-0.3740456700325012,
-0.13867220282554626,
0.3293337821960449,
0.09835681319236755,
-0.6229761838912964,
0.6784285306930542,
-0.4760861396789551,
-0.13598398864269257,
-0.1653974950313568,
-0.40844404697418213,
-0.4685751795768738,
0.36359453201293945,
-0.6125622391700745,
0.531914472579956,
0.07567567378282547,
-0.7776547074317932,
0.43366655707359314,
-0.7001875638961792,
-0.036783549934625626,
0.08734706789255142,
-0.05456690862774849,
-0.5030182003974915,
-0.15299367904663086,
0.08043816685676575,
0.28069937229156494,
0.049696050584316254,
-0.030773356556892395,
-0.8068678379058838,
-0.4575987756252289,
0.20852838456630707,
-0.32839322090148926,
1.141475796699524,
0.381029337644577,
-0.3011527955532074,
0.07742922008037567,
-0.9826643466949463,
0.022650370374321938,
0.6680482029914856,
-0.19344037771224976,
-0.11466114968061447,
-0.2256471812725067,
0.10999159514904022,
0.0023610899224877357,
0.33433797955513,
-0.6988925933837891,
0.14933592081069946,
-0.4527862071990967,
0.24454781413078308,
0.6214065551757812,
0.1852932721376419,
0.20466260612010956,
-0.3216298520565033,
0.7213329076766968,
0.24000175297260284,
0.5475817918777466,
0.06049729511141777,
-0.6299580931663513,
-0.594180166721344,
-0.4873702824115753,
0.14416225254535675,
0.6221991777420044,
-0.6093037724494934,
0.30280718207359314,
-0.21242694556713104,
-0.6704923510551453,
-0.6394023299217224,
-0.1949901282787323,
0.3886100947856903,
0.5508469343185425,
0.12187620997428894,
-0.32646024227142334,
-0.7033942937850952,
-1.0438143014907837,
-0.013087965548038483,
-0.0697270855307579,
-0.12736868858337402,
0.3775483965873718,
0.5491902232170105,
-0.31432977318763733,
0.8995137810707092,
-0.8921546936035156,
-0.1589927226305008,
-0.05159401893615723,
-0.21014675498008728,
0.7961792945861816,
0.6680303812026978,
0.944065511226654,
-0.9671411514282227,
-0.283479243516922,
-0.40606436133384705,
-0.8301891088485718,
0.2352062165737152,
0.16569353640079498,
-0.19058074057102203,
-0.1137375459074974,
0.029779920354485512,
-0.8336953520774841,
0.6691877841949463,
0.5018355846405029,
-0.5693351030349731,
0.7179244756698608,
-0.24870024621486664,
0.5080308318138123,
-1.2493555545806885,
0.07472129911184311,
0.2604450583457947,
-0.41147029399871826,
-0.41147446632385254,
0.5393984317779541,
-0.04179836064577103,
-0.09399976581335068,
-0.8762297034263611,
0.6160027384757996,
-0.3198298513889313,
0.16360856592655182,
-0.13234442472457886,
0.02439260296523571,
0.21437007188796997,
0.37044015526771545,
0.0714714303612709,
0.37168213725090027,
0.64303058385849,
-0.4699556827545166,
0.6930782198905945,
0.19615033268928528,
-0.4688384234905243,
0.6006059646606445,
-0.7151772379875183,
-0.0026095551438629627,
0.037868645042181015,
0.386971116065979,
-1.0539438724517822,
-0.6461380124092102,
0.5902374982833862,
-0.6375925540924072,
-0.09951921552419662,
-0.5791140794754028,
-0.4567399322986603,
-0.717420220375061,
-0.40747493505477905,
0.3547153174877167,
0.8139635920524597,
-0.4557606279850006,
0.6284093856811523,
0.21948139369487762,
0.3314187824726105,
-0.66527259349823,
-0.9722563624382019,
-0.19734403491020203,
-0.3302796483039856,
-0.6655876636505127,
0.43387162685394287,
-0.048112787306308746,
-0.4307665228843689,
0.10398566722869873,
0.1232963278889656,
-0.2135654091835022,
-0.210876002907753,
0.436879962682724,
0.6293216943740845,
-0.2383522242307663,
-0.4743604362010956,
0.06657496839761734,
-0.012383374385535717,
0.060665372759103775,
-0.3446579873561859,
0.6514059901237488,
-0.12697146832942963,
-0.4176080524921417,
-0.9690704941749573,
-0.042534541338682175,
0.7111048102378845,
0.08002059161663055,
0.65433669090271,
0.6204479336738586,
-0.7557644844055176,
0.06706041842699051,
-0.5839996933937073,
-0.29101648926734924,
-0.5285159945487976,
0.3096293807029724,
-0.5538054704666138,
-0.3167791962623596,
0.9882941246032715,
-0.05185975879430771,
-0.006214321590960026,
0.5391708612442017,
0.3691761791706085,
-0.2582024037837982,
1.2352163791656494,
0.3625485897064209,
0.3697632849216461,
0.45438286662101746,
-0.8976519107818604,
-0.12139985710382462,
-0.7949286699295044,
-0.27857980132102966,
-0.09705205261707306,
-0.32554394006729126,
-0.25974076986312866,
-0.5674666166305542,
0.14610755443572998,
0.15775173902511597,
-0.29732927680015564,
0.30702072381973267,
-0.6249837875366211,
0.40375739336013794,
0.5421541929244995,
0.5108402967453003,
0.12306099385023117,
0.09681843966245651,
-0.1965954750776291,
-0.1317080706357956,
-0.44520774483680725,
-0.49700796604156494,
1.0799356698989868,
0.25156837701797485,
0.728443443775177,
-0.019229374825954437,
0.6020092368125916,
0.11753172427415848,
-0.10432559996843338,
-0.5293431282043457,
0.6344717144966125,
0.041834328323602676,
-1.0601158142089844,
0.23600012063980103,
-0.2308204621076584,
-0.9037759304046631,
0.31467437744140625,
-0.4878191351890564,
-0.7643121480941772,
0.6542549729347229,
0.39629197120666504,
-0.7980894446372986,
0.5793344378471375,
-0.7355301380157471,
0.910053551197052,
-0.07285982370376587,
-0.6520727276802063,
-0.22979319095611572,
-0.579510509967804,
0.6921640634536743,
0.006352691911160946,
0.49223393201828003,
-0.38604307174682617,
-0.1807544231414795,
0.6585769653320312,
-0.4518037736415863,
1.1262545585632324,
-0.4731976389884949,
0.1665511578321457,
0.6374896168708801,
0.06396320462226868,
0.34120506048202515,
0.3081894516944885,
-0.02057664468884468,
0.3028830885887146,
0.3836669921875,
-0.6333116292953491,
-0.3485105633735657,
0.7544823884963989,
-0.6938299536705017,
-0.48732423782348633,
-0.32747673988342285,
-0.37413913011550903,
0.08109317719936371,
0.39828288555145264,
0.6052702069282532,
0.4473801553249359,
-0.04659689962863922,
-0.018255436792969704,
0.6683967113494873,
-0.13906584680080414,
0.3992600739002228,
0.23353491723537445,
-0.6831784248352051,
-0.7279899716377258,
0.8107314705848694,
-0.027877554297447205,
0.46532562375068665,
0.04177512228488922,
0.17801502346992493,
-0.3824377655982971,
-0.6397334933280945,
-0.6281846761703491,
0.27630147337913513,
-0.7353507280349731,
-0.32239434123039246,
-0.5914508700370789,
0.10561992973089218,
-0.7407115697860718,
-0.3002867102622986,
-0.7855132222175598,
-0.3211844861507416,
-0.5297844409942627,
-0.1057857871055603,
0.5648391842842102,
0.29866763949394226,
-0.06774592399597168,
0.18941396474838257,
-0.7394733428955078,
0.448682963848114,
0.11041898280382156,
0.19679710268974304,
-0.015473742969334126,
-0.5726961493492126,
-0.0866151750087738,
0.26512494683265686,
-0.4551910161972046,
-0.8328291177749634,
0.64972984790802,
-0.14856530725955963,
0.3728964328765869,
0.8689703941345215,
0.1764899343252182,
1.040922999382019,
-0.05027551203966141,
0.982732355594635,
0.3454854190349579,
-0.7258712649345398,
0.7770213484764099,
-0.6316457986831665,
0.2937476933002472,
0.617241621017456,
0.2856912314891815,
-0.145499125123024,
-0.30304139852523804,
-0.8681827783584595,
-1.0632176399230957,
0.5363237857818604,
0.11006941646337509,
0.23093919456005096,
0.21228060126304626,
0.5793223977088928,
-0.08757149428129196,
0.21050482988357544,
-0.9598152041435242,
-0.2767581343650818,
-0.3241243362426758,
-0.19139115512371063,
0.344727098941803,
0.0820968747138977,
-0.2775205969810486,
-0.5386534333229065,
0.7167656421661377,
-0.07289031893014908,
0.324524849653244,
0.5001518726348877,
0.3358711302280426,
-0.17619875073432922,
-0.23935630917549133,
0.5447559952735901,
0.7366751432418823,
-0.640078604221344,
-0.1456960290670395,
0.03098876029253006,
-0.6095485687255859,
0.026863686740398407,
0.0518481470644474,
-0.42864200472831726,
0.03377240523695946,
0.3665715157985687,
0.9318538904190063,
-0.022447558119893074,
-0.6485713720321655,
0.624963641166687,
-0.14742040634155273,
-0.4649178385734558,
-0.6179268956184387,
0.08407007902860641,
0.2974817156791687,
0.6084861159324646,
0.39182180166244507,
0.4938978850841522,
0.26446732878685,
-0.4438995122909546,
-0.09136094152927399,
0.31839174032211304,
-0.346670538187027,
-0.4606185257434845,
1.1201221942901611,
0.010537327267229557,
-0.40231868624687195,
0.45846590399742126,
-0.4023423492908478,
-0.1648530811071396,
0.8883895874023438,
0.7022035121917725,
0.7993541359901428,
-0.03493321314454079,
0.2001880407333374,
0.8270333409309387,
0.081196129322052,
-0.09841923415660858,
0.7065736651420593,
0.21666643023490906,
-0.6871368288993835,
-0.20897556841373444,
-0.8743425011634827,
-0.2675282657146454,
0.19034245610237122,
-0.6334338784217834,
0.582919180393219,
-0.8361967206001282,
-0.44232410192489624,
-0.18138186633586884,
-0.1750514805316925,
-0.6290528178215027,
0.5114172101020813,
0.19683949649333954,
0.915926456451416,
-0.6735370755195618,
0.733187735080719,
0.6744998693466187,
-0.6208944916725159,
-0.983814001083374,
-0.17762944102287292,
0.2337445169687271,
-0.6868208646774292,
0.3478788733482361,
0.06623843312263489,
-0.10730258375406265,
0.19075460731983185,
-0.7845422625541687,
-0.8558778166770935,
1.2087650299072266,
0.522121250629425,
-0.6147395372390747,
-0.10152929276227951,
-0.11173944920301437,
0.40426984429359436,
-0.49693265557289124,
0.15786762535572052,
0.11915604770183563,
0.40189167857170105,
0.35891416668891907,
-0.5241094827651978,
0.06610067188739777,
-0.26287776231765747,
-0.037248678505420685,
-0.22035783529281616,
-0.741640031337738,
0.8113717436790466,
-0.5851708054542542,
-0.010266438126564026,
0.29019010066986084,
0.604716956615448,
0.6907339692115784,
0.479611873626709,
0.6570467948913574,
0.9905679225921631,
0.44319793581962585,
-0.105922169983387,
1.1393057107925415,
-0.39246243238449097,
0.6906068921089172,
0.6584610939025879,
-0.010984910652041435,
1.0074471235275269,
0.550432562828064,
-0.4305090308189392,
0.6287511587142944,
1.131128191947937,
-0.36600261926651,
0.7792373299598694,
0.08453696966171265,
-0.45327457785606384,
-0.234336256980896,
0.12752334773540497,
-0.514687716960907,
0.3566746115684509,
0.23629094660282135,
-0.41276657581329346,
0.2324025183916092,
0.14325293898582458,
-0.21597550809383392,
-0.2230733186006546,
-0.2526313364505768,
0.38235583901405334,
0.017311906442046165,
-0.23970939218997955,
0.8117455840110779,
-0.1377105861902237,
0.9991341829299927,
-0.5966985821723938,
-0.09244924038648605,
-0.09099175781011581,
0.40229400992393494,
-0.3115256428718567,
-0.620697557926178,
0.250113844871521,
-0.13082660734653473,
-0.1213967353105545,
0.07263577729463577,
0.5507590770721436,
0.0731477290391922,
-0.8567394018173218,
0.28883129358291626,
0.11028201133012772,
0.38197025656700134,
-0.08259284496307373,
-0.9772568941116333,
0.23957252502441406,
0.21022845804691315,
-0.4096435606479645,
-0.025951776653528214,
0.15696795284748077,
0.43048715591430664,
0.7281832695007324,
0.810417115688324,
0.28181156516075134,
0.13830845057964325,
-0.12352163344621658,
0.6095181703567505,
-0.6162452101707458,
-0.5477221608161926,
-0.8181036710739136,
0.6458532810211182,
-0.2710752487182617,
-0.3453291952610016,
0.5386348366737366,
0.8658108115196228,
0.9426788687705994,
-0.6717446446418762,
0.6921735405921936,
-0.22379763424396515,
0.40371596813201904,
-0.393143892288208,
0.8361288905143738,
-0.8986111879348755,
0.04729948565363884,
-0.4544006288051605,
-0.8360249400138855,
-0.32247501611709595,
0.669343888759613,
-0.13293704390525818,
0.06519445031881332,
0.3993990123271942,
0.829544186592102,
-0.41033825278282166,
-0.2661866843700409,
0.3143366575241089,
0.20807045698165894,
0.1413729041814804,
0.325143426656723,
0.5875028967857361,
-0.5991821885108948,
0.49986031651496887,
-0.75909823179245,
-0.23065392673015594,
-0.03378954529762268,
-0.7120463252067566,
-0.5742141008377075,
-0.35379746556282043,
-0.590959906578064,
-0.6585471630096436,
-0.005232019349932671,
0.8369899988174438,
1.1111613512039185,
-0.7637721300125122,
-0.13760855793952942,
-0.12396376579999924,
-0.11691408604383469,
-0.2959444224834442,
-0.31187617778778076,
0.18722191452980042,
0.3603178560733795,
-1.1790084838867188,
0.16709259152412415,
0.06704693287611008,
0.4873605966567993,
-0.1666843295097351,
0.07029508799314499,
-0.18377889692783356,
0.08506307750940323,
0.3197072744369507,
0.3189830482006073,
-1.006705641746521,
-0.19847244024276733,
-0.08473066240549088,
0.08079739660024643,
0.21049660444259644,
0.1542278677225113,
-0.6571272611618042,
0.4724123179912567,
0.5668516755104065,
0.13617946207523346,
0.6471765041351318,
-0.02418604865670204,
0.21563804149627686,
-0.33580824732780457,
0.5918360352516174,
0.16448652744293213,
0.5672737956047058,
0.23542840778827667,
-0.5587911009788513,
0.5015743374824524,
0.7384524345397949,
-0.3476240038871765,
-0.9724593162536621,
0.09372072666883469,
-1.2917641401290894,
-0.3381819427013397,
0.9059851765632629,
-0.3780777156352997,
-0.6827863454818726,
0.18911561369895935,
-0.330366849899292,
0.3222828209400177,
-0.2265787124633789,
0.6618643403053284,
0.4645282030105591,
-0.22964473068714142,
-0.24089315533638,
-0.7826179265975952,
0.19923780858516693,
0.12167521566152573,
-0.7726767063140869,
-0.29783427715301514,
0.5196674466133118,
0.5999431014060974,
0.4831653833389282,
0.5321381092071533,
-0.4505269229412079,
0.2576586604118347,
0.5451124310493469,
0.5251768827438354,
0.038142137229442596,
0.20953978598117828,
-0.26032882928848267,
0.1240224689245224,
-0.12627920508384705,
-0.6210973858833313
] |
hotshotco/Hotshot-XL | hotshotco | "2023-10-11T17:44:31Z" | 111,873 | 177 | diffusers | [
"diffusers",
"text-to-video",
"stable-diffusion",
"license:openrail++",
"has_space",
"diffusers:HotshotXLPipeline",
"region:us"
] | text-to-video | "2023-10-03T08:20:30Z" | ---
license: openrail++
tags:
- text-to-video
- stable-diffusion
---
![image/gif](https://cdn-uploads.huggingface.co/production/uploads/637a6daf7ce76c3b83497ea2/ux_sZKB9snVPsKRT1TzfG.gif)
<font size="32">**Try Hotshot-XL yourself here**: https://www.hotshot.co</font>
Hotshot-XL is an AI text-to-GIF model trained to work alongside [Stable Diffusion XL](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0).
Hotshot-XL can generate GIFs with any fine-tuned SDXL model. This means two things:
1. You’ll be able to make GIFs with any existing or newly fine-tuned SDXL model you may want to use.
2. If you'd like to make GIFs of personalized subjects, you can load your own SDXL based LORAs, and not have to worry about fine-tuning Hotshot-XL. This is awesome because it’s usually much easier to find suitable images for training data than it is to find videos. It also hopefully fits into everyone's existing LORA usage/workflows :) See more [here](https://github.com/hotshotco/Hotshot-XL/blob/main/README.md#text-to-gif-with-personalized-loras).
Hotshot-XL is compatible with SDXL ControlNet to make GIFs in the composition/layout you’d like. See [here](https://github.com/hotshotco/Hotshot-XL/blob/main/README.md#text-to-gif-with-controlnet) for more info.
Hotshot-XL was trained to generate 1 second GIFs at 8 FPS.
Hotshot-XL was trained on various aspect ratios. For best results with the base Hotshot-XL model, we recommend using it with an SDXL model that has been fine-tuned with 512x512 images. You can find an SDXL model we fine-tuned for 512x512 resolutions [here](https://github.com/hotshotco/Hotshot-XL/blob/main/README.md#text-to-gif-with-personalized-loras).
![image/gif](https://cdn-uploads.huggingface.co/production/uploads/637a6daf7ce76c3b83497ea2/XXgnk14nIasPdkvkPlDzn.gif)
![image/jpeg](https://cdn-uploads.huggingface.co/production/uploads/637a6daf7ce76c3b83497ea2/6OknWOlsl9Zs_esGtPTlZ.jpeg)
Source code is available at https://github.com/hotshotco/Hotshot-XL.
# Model Description
- **Developed by**: Natural Synthetics Inc.
- **Model type**: Diffusion-based text-to-GIF generative model
- **License**: [CreativeML Open RAIL++-M License](https://huggingface.co/hotshotco/Hotshot-XL/raw/main/LICENSE.md)
- **Model Description**: This is a model that can be used to generate and modify GIFs based on text prompts. It is a Latent Diffusion Model that uses two fixed, pretrained text encoders (OpenCLIP-ViT/G and CLIP-ViT/L).
- **Resources for more information**: Check out our [GitHub Repository](https://github.com/hotshotco/Hotshot-XL).
# Limitations and Bias
## Limitations
- The model does not achieve perfect photorealism
- The model cannot render legible text
- The model struggles with more difficult tasks which involve compositionality, such as rendering an image corresponding to “A red cube on top of a blue sphere”
- Faces and people in general may not be generated properly.
## Bias
While the capabilities of video generation models are impressive, they can also reinforce or exacerbate social biases. | [
-0.5222543478012085,
-1.1254299879074097,
0.4635312259197235,
0.1628599464893341,
-0.3260142207145691,
-0.06879629194736481,
-0.2628534734249115,
-0.24213996529579163,
0.4343801438808441,
0.23414555191993713,
-0.5604692101478577,
-0.8090894818305969,
-0.8761947154998779,
-0.1906614452600479,
-0.6867650151252747,
1.3636143207550049,
-0.1904405653476715,
-0.37003421783447266,
-0.0920305922627449,
-0.18745057284832,
-0.04145525023341179,
-0.01418111938983202,
-0.5645644068717957,
-0.35010379552841187,
0.6811798810958862,
0.004943590611219406,
1.0296025276184082,
0.41283515095710754,
0.5584693551063538,
0.2819004952907562,
-0.2874450385570526,
-0.13706019520759583,
-0.35935476422309875,
0.08292242139577866,
-0.01676030643284321,
-0.03368070349097252,
-0.40107956528663635,
-0.15675565600395203,
0.6364317536354065,
0.16623760759830475,
-0.33241549134254456,
0.030655084177851677,
-0.11373621970415115,
0.9407550692558289,
-0.6917366981506348,
-0.3281671702861786,
-0.3799782693386078,
0.3878559172153473,
-0.1098242998123169,
0.08064690977334976,
0.2097253054380417,
-0.32711124420166016,
0.2539684772491455,
-0.6847820281982422,
0.32071971893310547,
-0.32929328083992004,
1.096213698387146,
0.26000291109085083,
-0.21384236216545105,
-0.09936594218015671,
-0.8709337711334229,
0.05606970563530922,
-0.7365516424179077,
-0.006736539304256439,
0.09235359728336334,
0.541351854801178,
0.2274431437253952,
-0.6521111726760864,
-0.5578709244728088,
0.1486765444278717,
0.3499920666217804,
0.0463845394551754,
-0.5635368227958679,
-0.1613721251487732,
0.4430237114429474,
0.337649405002594,
-0.8974285125732422,
-0.2647365629673004,
-0.26032590866088867,
0.20544202625751495,
0.5705066919326782,
0.016418147832155228,
0.4007662832736969,
0.013928533531725407,
-0.21834802627563477,
-0.17836053669452667,
-0.41502946615219116,
-0.10696037113666534,
0.5293137431144714,
-0.022944709286093712,
-0.6756699085235596,
0.7195040583610535,
0.09059826284646988,
0.5232681035995483,
0.32933560013771057,
-0.059637319296598434,
0.44752079248428345,
-0.19606877863407135,
-0.46863824129104614,
-0.25419121980667114,
1.235625982284546,
0.5129331946372986,
0.17637693881988525,
0.22257082164287567,
-0.17368558049201965,
0.025675250217318535,
-0.04699796438217163,
-0.9724976420402527,
-0.0012594733852893114,
0.23242366313934326,
-0.11019539833068848,
-0.4980159103870392,
0.054916951805353165,
-0.7474310994148254,
-0.11368345469236374,
0.22004510462284088,
0.5023883581161499,
-0.5950902700424194,
-0.5589486956596375,
0.2314433753490448,
-0.5470582842826843,
-0.07209155708551407,
0.39078646898269653,
-0.5685063004493713,
-0.14884336292743683,
0.08035098761320114,
1.2038606405258179,
-0.09449581801891327,
-0.11082292348146439,
-0.25345590710639954,
0.24134203791618347,
-0.08020488172769547,
1.0305249691009521,
-0.41606009006500244,
-0.35235410928726196,
0.26928311586380005,
0.028919238597154617,
0.11006654053926468,
-0.4465656578540802,
0.19492855668067932,
-0.5161012411117554,
0.16908173263072968,
0.010647586546838284,
-0.4869999289512634,
-0.028211064636707306,
0.05570872500538826,
-0.5747929215431213,
0.8768242597579956,
0.2368592619895935,
-0.9466140866279602,
0.20013925433158875,
-1.0319937467575073,
-0.26665040850639343,
0.04152372106909752,
-0.14185084402561188,
-0.6880276203155518,
-0.23145639896392822,
-0.04283378645777702,
0.639832079410553,
0.12304684519767761,
0.1553897261619568,
-0.443522572517395,
-0.2601238191127777,
0.1445627510547638,
-0.15144094824790955,
0.41803595423698425,
0.35059717297554016,
-0.4889470040798187,
0.1509978175163269,
-0.6049913763999939,
-0.029782483354210854,
0.5257787704467773,
-0.4681446850299835,
-0.19588704407215118,
-0.38047778606414795,
0.05603496730327606,
0.2114780843257904,
0.0403689481317997,
-0.2698262333869934,
0.05723155289888382,
-0.20332354307174683,
0.5744818449020386,
0.5423969030380249,
0.15108419954776764,
0.7506170868873596,
-0.10874471813440323,
0.7443926334381104,
0.4786008894443512,
-0.018187331035733223,
-0.42670127749443054,
-0.5030370354652405,
-0.4560609757900238,
0.010624139569699764,
-0.048706695437431335,
0.3132692575454712,
-1.0926483869552612,
0.4088873565196991,
-0.12735089659690857,
-0.48913636803627014,
-0.23596736788749695,
0.4130633473396301,
0.33867523074150085,
0.4352026879787445,
0.0435657873749733,
-0.2907074987888336,
-0.2336459457874298,
-0.6012760996818542,
0.255916565656662,
0.037278324365615845,
0.13294699788093567,
0.1675644963979721,
0.6744884252548218,
-0.1878611147403717,
0.9248390793800354,
-0.7953964471817017,
-0.3390350937843323,
-0.22630326449871063,
-0.04586396366357803,
0.2629640996456146,
0.3778948485851288,
1.076157808303833,
-0.8075094819068909,
-0.7262833118438721,
0.039989013224840164,
-1.0033432245254517,
0.16809701919555664,
0.2609044313430786,
-0.30408617854118347,
0.2625828683376312,
0.3319128751754761,
-1.018149971961975,
0.5858115553855896,
0.6032983660697937,
-0.592748761177063,
0.5345313549041748,
-0.40649253129959106,
0.20697177946567535,
-1.0430265665054321,
0.20173950493335724,
0.6197038888931274,
-0.5156132578849792,
-0.3935425281524658,
0.19490006566047668,
-0.10390490293502808,
-0.4532024562358856,
-0.9531388878822327,
0.6273921728134155,
-0.40899670124053955,
-0.08185628056526184,
-0.3833045959472656,
0.22846491634845734,
0.07929068803787231,
0.4205397367477417,
0.20199859142303467,
0.7469138503074646,
0.9606547355651855,
-0.6022058725357056,
0.3355129361152649,
0.19386833906173706,
-0.5225755572319031,
0.791233479976654,
-1.0059343576431274,
0.03932812809944153,
-0.5442793965339661,
0.39771515130996704,
-0.6997977495193481,
-0.34564146399497986,
0.49685388803482056,
-0.5058068037033081,
0.04508540406823158,
-0.3434348702430725,
-0.5252271890640259,
-0.49683937430381775,
-0.3643885850906372,
0.11602464318275452,
0.9862182140350342,
-0.30861014127731323,
0.3419956862926483,
0.2521316707134247,
0.20662768185138702,
-0.5376023054122925,
-0.7243238091468811,
-0.12244702130556107,
-0.49195510149002075,
-0.8717751502990723,
0.556415319442749,
-0.3634645938873291,
-0.195634126663208,
0.2487156242132187,
0.336283802986145,
-0.04739135131239891,
-0.2207302302122116,
0.5719078779220581,
0.26698023080825806,
-0.3801311254501343,
-0.04535891115665436,
0.1939086616039276,
0.12107322365045547,
-0.21323572099208832,
-0.07462970912456512,
0.29131779074668884,
-0.09960398077964783,
-0.1342969685792923,
-0.533679723739624,
0.598668098449707,
0.6255905032157898,
0.14551085233688354,
0.889335572719574,
1.1819921731948853,
-0.40623021125793457,
-0.021759534254670143,
-0.26563847064971924,
-0.019664065912365913,
-0.5382713079452515,
0.2508801221847534,
-0.025485310703516006,
-0.7370654344558716,
0.5079603791236877,
0.3269006013870239,
0.1530025601387024,
0.3971558213233948,
0.7211351990699768,
-0.2895004451274872,
0.9188913106918335,
0.5984876751899719,
0.12943711876869202,
0.9638066291809082,
-0.7646003365516663,
-0.16765353083610535,
-0.659916341304779,
-0.041233357042074203,
-0.1104845255613327,
-0.18787269294261932,
-0.038880378007888794,
-0.47944122552871704,
0.43699049949645996,
0.03791781887412071,
-0.5411399006843567,
0.4835565984249115,
-0.4208708703517914,
0.5748483538627625,
-0.021692918613553047,
0.27615731954574585,
0.10631808638572693,
0.31881478428840637,
-0.021927712485194206,
0.02307460643351078,
-0.5078821182250977,
-0.4777825176715851,
0.7249974608421326,
0.36243441700935364,
0.9414918422698975,
0.30551832914352417,
0.5466552376747131,
0.5583648681640625,
0.2212916761636734,
-0.43244668841362,
0.7039902806282043,
-0.29294300079345703,
-0.5863040089607239,
-0.13060742616653442,
-0.25102055072784424,
-0.8812175989151001,
-0.0296182818710804,
-0.5194070339202881,
-0.3949050307273865,
-0.31894996762275696,
0.337738573551178,
-0.6266014575958252,
0.5183899402618408,
-0.8342711925506592,
0.6491656303405762,
0.06029445677995682,
-0.6938561201095581,
0.14771509170532227,
-0.6015633344650269,
0.3198402523994446,
0.20850950479507446,
0.07467070966959,
-0.4961049258708954,
-0.09399134665727615,
0.7058632373809814,
-0.6250988245010376,
0.8597684502601624,
-0.5039913654327393,
-0.33840644359588623,
0.4639318883419037,
-0.15049304068088531,
0.348795086145401,
0.1355368047952652,
-0.22350779175758362,
0.01093827374279499,
-0.1498652845621109,
-0.21904432773590088,
-0.760403037071228,
0.9758711457252502,
-0.8892894983291626,
-0.5173779726028442,
-0.23269063234329224,
-0.04105552285909653,
0.2883618175983429,
0.04834965988993645,
0.6290246248245239,
0.20337790250778198,
-0.32159122824668884,
-0.06594425439834595,
0.756576657295227,
-0.2127685248851776,
0.7275344133377075,
0.4184550940990448,
-0.44407719373703003,
-0.5258738994598389,
0.6390941143035889,
0.011450188234448433,
0.45276346802711487,
0.16255198419094086,
0.19970150291919708,
-0.1126122772693634,
-0.2720790505409241,
-0.6246835589408875,
0.3213312327861786,
-0.9145838618278503,
-0.41262030601501465,
-0.8213903307914734,
-0.4790879487991333,
-0.6204118728637695,
-0.5393990278244019,
-0.4529775381088257,
-0.15823905169963837,
-0.9390953779220581,
-0.007674008142203093,
0.8395337462425232,
0.5384390950202942,
0.0016186268767341971,
0.38815778493881226,
-0.7142617106437683,
0.32088547945022583,
0.2993868589401245,
0.16400569677352905,
0.016238445416092873,
-0.7703319191932678,
-0.1505129635334015,
0.0909281075000763,
-0.6227288246154785,
-0.6206173896789551,
0.5613971948623657,
0.38157129287719727,
0.26958993077278137,
0.4743267297744751,
-0.11887884885072708,
0.7444273829460144,
-0.5347360968589783,
1.047090768814087,
0.6450641751289368,
-0.5993258953094482,
0.9144110083580017,
-0.5222015380859375,
0.529675304889679,
0.18677765130996704,
0.5039149522781372,
-0.4099835753440857,
-0.3598787188529968,
-0.7641321420669556,
-0.8243808746337891,
0.3153532147407532,
0.35066109895706177,
0.6189818978309631,
-0.06435302644968033,
0.6309681534767151,
0.03491949290037155,
-0.05042463541030884,
-0.8027098774909973,
-0.44224560260772705,
-0.28237637877464294,
-0.08318197727203369,
0.004045834764838219,
0.10320288687944412,
0.018958574160933495,
-0.23353739082813263,
0.6160113215446472,
-0.32308343052864075,
0.5829272270202637,
0.30524635314941406,
0.07233843952417374,
-0.3644525408744812,
-0.00669790618121624,
0.7669491171836853,
0.10070572048425674,
-0.18612825870513916,
-0.0036257957108318806,
-0.19078759849071503,
-0.31097254157066345,
0.33090052008628845,
-0.21667823195457458,
-0.31740349531173706,
0.3378508687019348,
-0.03976060822606087,
1.2500247955322266,
0.21498554944992065,
-0.585453987121582,
0.7849916219711304,
-0.1011136919260025,
-0.5138534307479858,
-0.5924701690673828,
0.5754029750823975,
0.23153695464134216,
0.35831698775291443,
0.15357472002506256,
0.39913713932037354,
-0.07168924808502197,
-0.4765172004699707,
-0.0019245678558945656,
0.47170954942703247,
-0.26366040110588074,
-0.6101253628730774,
0.9895628094673157,
0.23406460881233215,
-0.39138346910476685,
0.20720335841178894,
-0.2317565381526947,
-0.17404884099960327,
0.6704571843147278,
0.5558614730834961,
0.8561609983444214,
0.18235105276107788,
0.6760802268981934,
0.600080132484436,
-0.30674099922180176,
-0.31577426195144653,
0.08739635348320007,
-0.08143945783376694,
-0.7349650263786316,
0.11668413877487183,
-0.41132932901382446,
-0.27313387393951416,
0.09559640288352966,
-0.5103335380554199,
0.616553544998169,
-0.5905401110649109,
-0.5856521129608154,
0.46590983867645264,
-0.3343398869037628,
-0.6962491273880005,
0.03434555605053902,
0.24396365880966187,
0.9893814325332642,
-0.7510945796966553,
0.8064292669296265,
0.714259684085846,
-0.7075818777084351,
-0.24263262748718262,
-0.03983648121356964,
0.15141217410564423,
-0.7487956285476685,
0.5428497791290283,
0.03914528340101242,
-0.09363292902708054,
-0.1616067737340927,
-0.8111860752105713,
-0.7370214462280273,
1.3153029680252075,
0.5826849937438965,
-0.41232261061668396,
-0.4232056140899658,
-0.1421494036912918,
0.6027849316596985,
-0.6636508703231812,
0.3224794566631317,
0.2470887452363968,
0.24793356657028198,
0.5995349287986755,
-0.459927499294281,
-0.08147665113210678,
-0.4107069969177246,
0.3983305096626282,
-0.06018549203872681,
-0.6960245370864868,
0.5786826014518738,
-0.7492794990539551,
-0.31267639994621277,
0.307466596364975,
0.72024005651474,
0.13145403563976288,
0.4040990471839905,
0.4486722946166992,
0.80394047498703,
0.15343840420246124,
0.05975906923413277,
1.0216259956359863,
-0.00039077812107279897,
0.41005992889404297,
0.9730516076087952,
-0.4368252456188202,
0.8079965710639954,
0.4024679362773895,
-0.12431853264570236,
0.6403837203979492,
0.5702510476112366,
0.0012632193975150585,
0.6936613917350769,
-0.10297022759914398,
-0.4750290513038635,
0.024668583646416664,
0.06192353740334511,
-0.3959401249885559,
0.054242659360170364,
0.19391557574272156,
-0.6941804885864258,
-0.3667387366294861,
0.5481460094451904,
0.14268885552883148,
-0.00129561813082546,
-0.08178354799747467,
0.7287197113037109,
-0.1214628666639328,
-0.5342174172401428,
0.6049631237983704,
-0.05292035639286041,
1.1057265996932983,
-0.8046164512634277,
0.1306942105293274,
-0.3158596158027649,
0.011424390599131584,
-0.47018250823020935,
-1.4544326066970825,
0.5951688885688782,
0.42432916164398193,
-0.17121171951293945,
-0.2464507669210434,
0.8215373754501343,
-0.46656009554862976,
-0.3112255036830902,
0.17020490765571594,
0.3402336537837982,
0.2830096185207367,
-0.16133764386177063,
-1.1428589820861816,
0.43193382024765015,
-0.07126028090715408,
-0.4277125298976898,
0.4155759811401367,
0.2982673645019531,
0.5104595422744751,
0.6532578468322754,
0.4774501919746399,
-0.23886491358280182,
-0.2178923487663269,
0.19123363494873047,
0.9552074670791626,
-0.728422224521637,
-0.3499247431755066,
-0.9497545957565308,
0.5543611645698547,
-0.05631455034017563,
-0.33319196105003357,
0.5505192875862122,
0.3605188727378845,
0.4271729588508606,
-0.4013882875442505,
0.8546371459960938,
-0.303541898727417,
0.030120277777314186,
-0.5670040845870972,
0.9215973019599915,
-0.8287771344184875,
0.022418227046728134,
-0.6885284185409546,
-0.6898620128631592,
-0.295750230550766,
0.5716833472251892,
-0.04304574429988861,
0.17737510800361633,
0.4042949676513672,
0.9503790736198425,
0.0013246682938188314,
-0.26311901211738586,
0.6108008623123169,
-0.2548993229866028,
0.2763255834579468,
0.5435001850128174,
0.6143083572387695,
-0.7524747848510742,
0.6005175709724426,
-0.34811872243881226,
0.00520502682775259,
-0.12980638444423676,
-1.0051665306091309,
-0.9427411556243896,
-0.8104341626167297,
-1.0460599660873413,
-0.6038960218429565,
-0.00010750396904768422,
0.839870810508728,
0.9940012097358704,
-0.06625280529260635,
0.1899469643831253,
-0.0017984319711104035,
0.2546810805797577,
0.15226341784000397,
-0.2554416060447693,
-0.03388145565986633,
0.37865138053894043,
-0.8072102665901184,
-0.15058936178684235,
0.42317530512809753,
0.8904087543487549,
-0.294370174407959,
-0.2783082127571106,
-0.17791493237018585,
0.0780683159828186,
0.7419958710670471,
0.5521968007087708,
-0.3651805520057678,
-0.03140982985496521,
-0.07260797917842865,
-0.24032165110111237,
0.3570844829082489,
0.5640961527824402,
-0.6724839806556702,
-0.1766231656074524,
0.33628544211387634,
0.1930387169122696,
0.5820819139480591,
-0.2817918658256531,
0.12166166305541992,
-0.6518123149871826,
0.2476126253604889,
-0.24783481657505035,
0.39693915843963623,
0.5249783396720886,
-0.4389042854309082,
0.5542685389518738,
0.4166255295276642,
-0.38066163659095764,
-0.5858913064002991,
-0.10743458569049835,
-1.1963547468185425,
-0.17531748116016388,
1.448155403137207,
-0.35366493463516235,
-0.42232611775398254,
0.3927408456802368,
-0.39204156398773193,
-0.2139875739812851,
-0.6689947247505188,
0.40899062156677246,
0.3564439117908478,
-0.030532173812389374,
-0.5906389355659485,
-0.2722150683403015,
0.24462038278579712,
-0.021896591410040855,
-0.9110738039016724,
-0.19603422284126282,
0.46427103877067566,
0.7725333571434021,
0.25633639097213745,
0.8504617810249329,
-0.1126507967710495,
0.40701815485954285,
-0.09796176850795746,
-0.01968143694102764,
0.0664704367518425,
0.15678110718727112,
-0.3485986888408661,
0.24428598582744598,
-0.3084466755390167,
0.000597158563323319
] |
BAAI/bge-base-en-v1.5 | BAAI | "2023-10-12T03:37:11Z" | 111,530 | 64 | sentence-transformers | [
"sentence-transformers",
"pytorch",
"bert",
"feature-extraction",
"sentence-similarity",
"transformers",
"mteb",
"en",
"arxiv:2310.07554",
"arxiv:2309.07597",
"license:mit",
"model-index",
"endpoints_compatible",
"has_space",
"region:us"
] | feature-extraction | "2023-09-11T15:04:22Z" | ---
tags:
- sentence-transformers
- feature-extraction
- sentence-similarity
- transformers
- mteb
model-index:
- name: bge-base-en-v1.5
results:
- task:
type: Classification
dataset:
type: mteb/amazon_counterfactual
name: MTEB AmazonCounterfactualClassification (en)
config: en
split: test
revision: e8379541af4e31359cca9fbcf4b00f2671dba205
metrics:
- type: accuracy
value: 76.14925373134328
- type: ap
value: 39.32336517995478
- type: f1
value: 70.16902252611425
- task:
type: Classification
dataset:
type: mteb/amazon_polarity
name: MTEB AmazonPolarityClassification
config: default
split: test
revision: e2d317d38cd51312af73b3d32a06d1a08b442046
metrics:
- type: accuracy
value: 93.386825
- type: ap
value: 90.21276917991995
- type: f1
value: 93.37741030006174
- task:
type: Classification
dataset:
type: mteb/amazon_reviews_multi
name: MTEB AmazonReviewsClassification (en)
config: en
split: test
revision: 1399c76144fd37290681b995c656ef9b2e06e26d
metrics:
- type: accuracy
value: 48.846000000000004
- type: f1
value: 48.14646269778261
- task:
type: Retrieval
dataset:
type: arguana
name: MTEB ArguAna
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 40.754000000000005
- type: map_at_10
value: 55.761
- type: map_at_100
value: 56.330999999999996
- type: map_at_1000
value: 56.333999999999996
- type: map_at_3
value: 51.92
- type: map_at_5
value: 54.010999999999996
- type: mrr_at_1
value: 41.181
- type: mrr_at_10
value: 55.967999999999996
- type: mrr_at_100
value: 56.538
- type: mrr_at_1000
value: 56.542
- type: mrr_at_3
value: 51.980000000000004
- type: mrr_at_5
value: 54.208999999999996
- type: ndcg_at_1
value: 40.754000000000005
- type: ndcg_at_10
value: 63.605000000000004
- type: ndcg_at_100
value: 66.05199999999999
- type: ndcg_at_1000
value: 66.12
- type: ndcg_at_3
value: 55.708
- type: ndcg_at_5
value: 59.452000000000005
- type: precision_at_1
value: 40.754000000000005
- type: precision_at_10
value: 8.841000000000001
- type: precision_at_100
value: 0.991
- type: precision_at_1000
value: 0.1
- type: precision_at_3
value: 22.238
- type: precision_at_5
value: 15.149000000000001
- type: recall_at_1
value: 40.754000000000005
- type: recall_at_10
value: 88.407
- type: recall_at_100
value: 99.14699999999999
- type: recall_at_1000
value: 99.644
- type: recall_at_3
value: 66.714
- type: recall_at_5
value: 75.747
- task:
type: Clustering
dataset:
type: mteb/arxiv-clustering-p2p
name: MTEB ArxivClusteringP2P
config: default
split: test
revision: a122ad7f3f0291bf49cc6f4d32aa80929df69d5d
metrics:
- type: v_measure
value: 48.74884539679369
- task:
type: Clustering
dataset:
type: mteb/arxiv-clustering-s2s
name: MTEB ArxivClusteringS2S
config: default
split: test
revision: f910caf1a6075f7329cdf8c1a6135696f37dbd53
metrics:
- type: v_measure
value: 42.8075893810716
- task:
type: Reranking
dataset:
type: mteb/askubuntudupquestions-reranking
name: MTEB AskUbuntuDupQuestions
config: default
split: test
revision: 2000358ca161889fa9c082cb41daa8dcfb161a54
metrics:
- type: map
value: 62.128470519187736
- type: mrr
value: 74.28065778481289
- task:
type: STS
dataset:
type: mteb/biosses-sts
name: MTEB BIOSSES
config: default
split: test
revision: d3fb88f8f02e40887cd149695127462bbcf29b4a
metrics:
- type: cos_sim_pearson
value: 89.24629081484655
- type: cos_sim_spearman
value: 86.93752309911496
- type: euclidean_pearson
value: 87.58589628573816
- type: euclidean_spearman
value: 88.05622328825284
- type: manhattan_pearson
value: 87.5594959805773
- type: manhattan_spearman
value: 88.19658793233961
- task:
type: Classification
dataset:
type: mteb/banking77
name: MTEB Banking77Classification
config: default
split: test
revision: 0fd18e25b25c072e09e0d92ab615fda904d66300
metrics:
- type: accuracy
value: 86.9512987012987
- type: f1
value: 86.92515357973708
- task:
type: Clustering
dataset:
type: mteb/biorxiv-clustering-p2p
name: MTEB BiorxivClusteringP2P
config: default
split: test
revision: 65b79d1d13f80053f67aca9498d9402c2d9f1f40
metrics:
- type: v_measure
value: 39.10263762928872
- task:
type: Clustering
dataset:
type: mteb/biorxiv-clustering-s2s
name: MTEB BiorxivClusteringS2S
config: default
split: test
revision: 258694dd0231531bc1fd9de6ceb52a0853c6d908
metrics:
- type: v_measure
value: 36.69711517426737
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackAndroidRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 32.327
- type: map_at_10
value: 44.099
- type: map_at_100
value: 45.525
- type: map_at_1000
value: 45.641999999999996
- type: map_at_3
value: 40.47
- type: map_at_5
value: 42.36
- type: mrr_at_1
value: 39.199
- type: mrr_at_10
value: 49.651
- type: mrr_at_100
value: 50.29
- type: mrr_at_1000
value: 50.329
- type: mrr_at_3
value: 46.924
- type: mrr_at_5
value: 48.548
- type: ndcg_at_1
value: 39.199
- type: ndcg_at_10
value: 50.773
- type: ndcg_at_100
value: 55.67999999999999
- type: ndcg_at_1000
value: 57.495
- type: ndcg_at_3
value: 45.513999999999996
- type: ndcg_at_5
value: 47.703
- type: precision_at_1
value: 39.199
- type: precision_at_10
value: 9.914000000000001
- type: precision_at_100
value: 1.5310000000000001
- type: precision_at_1000
value: 0.198
- type: precision_at_3
value: 21.984
- type: precision_at_5
value: 15.737000000000002
- type: recall_at_1
value: 32.327
- type: recall_at_10
value: 63.743
- type: recall_at_100
value: 84.538
- type: recall_at_1000
value: 96.089
- type: recall_at_3
value: 48.065000000000005
- type: recall_at_5
value: 54.519
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackEnglishRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 32.671
- type: map_at_10
value: 42.954
- type: map_at_100
value: 44.151
- type: map_at_1000
value: 44.287
- type: map_at_3
value: 39.912
- type: map_at_5
value: 41.798
- type: mrr_at_1
value: 41.465
- type: mrr_at_10
value: 49.351
- type: mrr_at_100
value: 49.980000000000004
- type: mrr_at_1000
value: 50.016000000000005
- type: mrr_at_3
value: 47.144000000000005
- type: mrr_at_5
value: 48.592999999999996
- type: ndcg_at_1
value: 41.465
- type: ndcg_at_10
value: 48.565999999999995
- type: ndcg_at_100
value: 52.76499999999999
- type: ndcg_at_1000
value: 54.749
- type: ndcg_at_3
value: 44.57
- type: ndcg_at_5
value: 46.759
- type: precision_at_1
value: 41.465
- type: precision_at_10
value: 9.107999999999999
- type: precision_at_100
value: 1.433
- type: precision_at_1000
value: 0.191
- type: precision_at_3
value: 21.423000000000002
- type: precision_at_5
value: 15.414
- type: recall_at_1
value: 32.671
- type: recall_at_10
value: 57.738
- type: recall_at_100
value: 75.86500000000001
- type: recall_at_1000
value: 88.36
- type: recall_at_3
value: 45.626
- type: recall_at_5
value: 51.812000000000005
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackGamingRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 41.185
- type: map_at_10
value: 53.929
- type: map_at_100
value: 54.92
- type: map_at_1000
value: 54.967999999999996
- type: map_at_3
value: 50.70400000000001
- type: map_at_5
value: 52.673
- type: mrr_at_1
value: 47.398
- type: mrr_at_10
value: 57.303000000000004
- type: mrr_at_100
value: 57.959
- type: mrr_at_1000
value: 57.985
- type: mrr_at_3
value: 54.932
- type: mrr_at_5
value: 56.464999999999996
- type: ndcg_at_1
value: 47.398
- type: ndcg_at_10
value: 59.653
- type: ndcg_at_100
value: 63.627
- type: ndcg_at_1000
value: 64.596
- type: ndcg_at_3
value: 54.455
- type: ndcg_at_5
value: 57.245000000000005
- type: precision_at_1
value: 47.398
- type: precision_at_10
value: 9.524000000000001
- type: precision_at_100
value: 1.243
- type: precision_at_1000
value: 0.13699999999999998
- type: precision_at_3
value: 24.389
- type: precision_at_5
value: 16.752
- type: recall_at_1
value: 41.185
- type: recall_at_10
value: 73.193
- type: recall_at_100
value: 90.357
- type: recall_at_1000
value: 97.253
- type: recall_at_3
value: 59.199999999999996
- type: recall_at_5
value: 66.118
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackGisRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 27.27
- type: map_at_10
value: 36.223
- type: map_at_100
value: 37.218
- type: map_at_1000
value: 37.293
- type: map_at_3
value: 33.503
- type: map_at_5
value: 35.097
- type: mrr_at_1
value: 29.492
- type: mrr_at_10
value: 38.352000000000004
- type: mrr_at_100
value: 39.188
- type: mrr_at_1000
value: 39.247
- type: mrr_at_3
value: 35.876000000000005
- type: mrr_at_5
value: 37.401
- type: ndcg_at_1
value: 29.492
- type: ndcg_at_10
value: 41.239
- type: ndcg_at_100
value: 46.066
- type: ndcg_at_1000
value: 47.992000000000004
- type: ndcg_at_3
value: 36.11
- type: ndcg_at_5
value: 38.772
- type: precision_at_1
value: 29.492
- type: precision_at_10
value: 6.260000000000001
- type: precision_at_100
value: 0.914
- type: precision_at_1000
value: 0.11100000000000002
- type: precision_at_3
value: 15.104000000000001
- type: precision_at_5
value: 10.644
- type: recall_at_1
value: 27.27
- type: recall_at_10
value: 54.589
- type: recall_at_100
value: 76.70700000000001
- type: recall_at_1000
value: 91.158
- type: recall_at_3
value: 40.974
- type: recall_at_5
value: 47.327000000000005
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackMathematicaRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 17.848
- type: map_at_10
value: 26.207
- type: map_at_100
value: 27.478
- type: map_at_1000
value: 27.602
- type: map_at_3
value: 23.405
- type: map_at_5
value: 24.98
- type: mrr_at_1
value: 21.891
- type: mrr_at_10
value: 31.041999999999998
- type: mrr_at_100
value: 32.092
- type: mrr_at_1000
value: 32.151999999999994
- type: mrr_at_3
value: 28.358
- type: mrr_at_5
value: 29.969
- type: ndcg_at_1
value: 21.891
- type: ndcg_at_10
value: 31.585
- type: ndcg_at_100
value: 37.531
- type: ndcg_at_1000
value: 40.256
- type: ndcg_at_3
value: 26.508
- type: ndcg_at_5
value: 28.894
- type: precision_at_1
value: 21.891
- type: precision_at_10
value: 5.795999999999999
- type: precision_at_100
value: 0.9990000000000001
- type: precision_at_1000
value: 0.13799999999999998
- type: precision_at_3
value: 12.769
- type: precision_at_5
value: 9.279
- type: recall_at_1
value: 17.848
- type: recall_at_10
value: 43.452
- type: recall_at_100
value: 69.216
- type: recall_at_1000
value: 88.102
- type: recall_at_3
value: 29.18
- type: recall_at_5
value: 35.347
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackPhysicsRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 30.94
- type: map_at_10
value: 41.248000000000005
- type: map_at_100
value: 42.495
- type: map_at_1000
value: 42.602000000000004
- type: map_at_3
value: 37.939
- type: map_at_5
value: 39.924
- type: mrr_at_1
value: 37.824999999999996
- type: mrr_at_10
value: 47.041
- type: mrr_at_100
value: 47.83
- type: mrr_at_1000
value: 47.878
- type: mrr_at_3
value: 44.466
- type: mrr_at_5
value: 46.111999999999995
- type: ndcg_at_1
value: 37.824999999999996
- type: ndcg_at_10
value: 47.223
- type: ndcg_at_100
value: 52.394
- type: ndcg_at_1000
value: 54.432
- type: ndcg_at_3
value: 42.032000000000004
- type: ndcg_at_5
value: 44.772
- type: precision_at_1
value: 37.824999999999996
- type: precision_at_10
value: 8.393
- type: precision_at_100
value: 1.2890000000000001
- type: precision_at_1000
value: 0.164
- type: precision_at_3
value: 19.698
- type: precision_at_5
value: 14.013
- type: recall_at_1
value: 30.94
- type: recall_at_10
value: 59.316
- type: recall_at_100
value: 80.783
- type: recall_at_1000
value: 94.15400000000001
- type: recall_at_3
value: 44.712
- type: recall_at_5
value: 51.932
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackProgrammersRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 27.104
- type: map_at_10
value: 36.675999999999995
- type: map_at_100
value: 38.076
- type: map_at_1000
value: 38.189
- type: map_at_3
value: 33.733999999999995
- type: map_at_5
value: 35.287
- type: mrr_at_1
value: 33.904
- type: mrr_at_10
value: 42.55
- type: mrr_at_100
value: 43.434
- type: mrr_at_1000
value: 43.494
- type: mrr_at_3
value: 40.126
- type: mrr_at_5
value: 41.473
- type: ndcg_at_1
value: 33.904
- type: ndcg_at_10
value: 42.414
- type: ndcg_at_100
value: 48.203
- type: ndcg_at_1000
value: 50.437
- type: ndcg_at_3
value: 37.633
- type: ndcg_at_5
value: 39.67
- type: precision_at_1
value: 33.904
- type: precision_at_10
value: 7.82
- type: precision_at_100
value: 1.2409999999999999
- type: precision_at_1000
value: 0.159
- type: precision_at_3
value: 17.884
- type: precision_at_5
value: 12.648000000000001
- type: recall_at_1
value: 27.104
- type: recall_at_10
value: 53.563
- type: recall_at_100
value: 78.557
- type: recall_at_1000
value: 93.533
- type: recall_at_3
value: 39.92
- type: recall_at_5
value: 45.457
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 27.707749999999997
- type: map_at_10
value: 36.961
- type: map_at_100
value: 38.158833333333334
- type: map_at_1000
value: 38.270333333333326
- type: map_at_3
value: 34.07183333333334
- type: map_at_5
value: 35.69533333333334
- type: mrr_at_1
value: 32.81875
- type: mrr_at_10
value: 41.293
- type: mrr_at_100
value: 42.116499999999995
- type: mrr_at_1000
value: 42.170249999999996
- type: mrr_at_3
value: 38.83983333333333
- type: mrr_at_5
value: 40.29775
- type: ndcg_at_1
value: 32.81875
- type: ndcg_at_10
value: 42.355
- type: ndcg_at_100
value: 47.41374999999999
- type: ndcg_at_1000
value: 49.5805
- type: ndcg_at_3
value: 37.52825
- type: ndcg_at_5
value: 39.83266666666667
- type: precision_at_1
value: 32.81875
- type: precision_at_10
value: 7.382416666666666
- type: precision_at_100
value: 1.1640833333333334
- type: precision_at_1000
value: 0.15383333333333335
- type: precision_at_3
value: 17.134166666666665
- type: precision_at_5
value: 12.174833333333336
- type: recall_at_1
value: 27.707749999999997
- type: recall_at_10
value: 53.945
- type: recall_at_100
value: 76.191
- type: recall_at_1000
value: 91.101
- type: recall_at_3
value: 40.39083333333334
- type: recall_at_5
value: 46.40083333333333
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackStatsRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 26.482
- type: map_at_10
value: 33.201
- type: map_at_100
value: 34.107
- type: map_at_1000
value: 34.197
- type: map_at_3
value: 31.174000000000003
- type: map_at_5
value: 32.279
- type: mrr_at_1
value: 29.908
- type: mrr_at_10
value: 36.235
- type: mrr_at_100
value: 37.04
- type: mrr_at_1000
value: 37.105
- type: mrr_at_3
value: 34.355999999999995
- type: mrr_at_5
value: 35.382999999999996
- type: ndcg_at_1
value: 29.908
- type: ndcg_at_10
value: 37.325
- type: ndcg_at_100
value: 41.795
- type: ndcg_at_1000
value: 44.105
- type: ndcg_at_3
value: 33.555
- type: ndcg_at_5
value: 35.266999999999996
- type: precision_at_1
value: 29.908
- type: precision_at_10
value: 5.721
- type: precision_at_100
value: 0.8630000000000001
- type: precision_at_1000
value: 0.11299999999999999
- type: precision_at_3
value: 14.008000000000001
- type: precision_at_5
value: 9.754999999999999
- type: recall_at_1
value: 26.482
- type: recall_at_10
value: 47.072
- type: recall_at_100
value: 67.27
- type: recall_at_1000
value: 84.371
- type: recall_at_3
value: 36.65
- type: recall_at_5
value: 40.774
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackTexRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 18.815
- type: map_at_10
value: 26.369999999999997
- type: map_at_100
value: 27.458
- type: map_at_1000
value: 27.588
- type: map_at_3
value: 23.990000000000002
- type: map_at_5
value: 25.345000000000002
- type: mrr_at_1
value: 22.953000000000003
- type: mrr_at_10
value: 30.342999999999996
- type: mrr_at_100
value: 31.241000000000003
- type: mrr_at_1000
value: 31.319000000000003
- type: mrr_at_3
value: 28.16
- type: mrr_at_5
value: 29.406
- type: ndcg_at_1
value: 22.953000000000003
- type: ndcg_at_10
value: 31.151
- type: ndcg_at_100
value: 36.309000000000005
- type: ndcg_at_1000
value: 39.227000000000004
- type: ndcg_at_3
value: 26.921
- type: ndcg_at_5
value: 28.938000000000002
- type: precision_at_1
value: 22.953000000000003
- type: precision_at_10
value: 5.602
- type: precision_at_100
value: 0.9530000000000001
- type: precision_at_1000
value: 0.13899999999999998
- type: precision_at_3
value: 12.606
- type: precision_at_5
value: 9.119
- type: recall_at_1
value: 18.815
- type: recall_at_10
value: 41.574
- type: recall_at_100
value: 64.84400000000001
- type: recall_at_1000
value: 85.406
- type: recall_at_3
value: 29.694
- type: recall_at_5
value: 34.935
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackUnixRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 27.840999999999998
- type: map_at_10
value: 36.797999999999995
- type: map_at_100
value: 37.993
- type: map_at_1000
value: 38.086999999999996
- type: map_at_3
value: 34.050999999999995
- type: map_at_5
value: 35.379
- type: mrr_at_1
value: 32.649
- type: mrr_at_10
value: 41.025
- type: mrr_at_100
value: 41.878
- type: mrr_at_1000
value: 41.929
- type: mrr_at_3
value: 38.573
- type: mrr_at_5
value: 39.715
- type: ndcg_at_1
value: 32.649
- type: ndcg_at_10
value: 42.142
- type: ndcg_at_100
value: 47.558
- type: ndcg_at_1000
value: 49.643
- type: ndcg_at_3
value: 37.12
- type: ndcg_at_5
value: 38.983000000000004
- type: precision_at_1
value: 32.649
- type: precision_at_10
value: 7.08
- type: precision_at_100
value: 1.1039999999999999
- type: precision_at_1000
value: 0.13899999999999998
- type: precision_at_3
value: 16.698
- type: precision_at_5
value: 11.511000000000001
- type: recall_at_1
value: 27.840999999999998
- type: recall_at_10
value: 54.245
- type: recall_at_100
value: 77.947
- type: recall_at_1000
value: 92.36999999999999
- type: recall_at_3
value: 40.146
- type: recall_at_5
value: 44.951
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackWebmastersRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 26.529000000000003
- type: map_at_10
value: 35.010000000000005
- type: map_at_100
value: 36.647
- type: map_at_1000
value: 36.857
- type: map_at_3
value: 31.968000000000004
- type: map_at_5
value: 33.554
- type: mrr_at_1
value: 31.818
- type: mrr_at_10
value: 39.550999999999995
- type: mrr_at_100
value: 40.54
- type: mrr_at_1000
value: 40.596
- type: mrr_at_3
value: 36.726
- type: mrr_at_5
value: 38.416
- type: ndcg_at_1
value: 31.818
- type: ndcg_at_10
value: 40.675
- type: ndcg_at_100
value: 46.548
- type: ndcg_at_1000
value: 49.126
- type: ndcg_at_3
value: 35.829
- type: ndcg_at_5
value: 38.0
- type: precision_at_1
value: 31.818
- type: precision_at_10
value: 7.826
- type: precision_at_100
value: 1.538
- type: precision_at_1000
value: 0.24
- type: precision_at_3
value: 16.601
- type: precision_at_5
value: 12.095
- type: recall_at_1
value: 26.529000000000003
- type: recall_at_10
value: 51.03
- type: recall_at_100
value: 77.556
- type: recall_at_1000
value: 93.804
- type: recall_at_3
value: 36.986000000000004
- type: recall_at_5
value: 43.096000000000004
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackWordpressRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 23.480999999999998
- type: map_at_10
value: 30.817
- type: map_at_100
value: 31.838
- type: map_at_1000
value: 31.932
- type: map_at_3
value: 28.011999999999997
- type: map_at_5
value: 29.668
- type: mrr_at_1
value: 25.323
- type: mrr_at_10
value: 33.072
- type: mrr_at_100
value: 33.926
- type: mrr_at_1000
value: 33.993
- type: mrr_at_3
value: 30.436999999999998
- type: mrr_at_5
value: 32.092
- type: ndcg_at_1
value: 25.323
- type: ndcg_at_10
value: 35.514
- type: ndcg_at_100
value: 40.489000000000004
- type: ndcg_at_1000
value: 42.908
- type: ndcg_at_3
value: 30.092000000000002
- type: ndcg_at_5
value: 32.989000000000004
- type: precision_at_1
value: 25.323
- type: precision_at_10
value: 5.545
- type: precision_at_100
value: 0.861
- type: precision_at_1000
value: 0.117
- type: precision_at_3
value: 12.446
- type: precision_at_5
value: 9.131
- type: recall_at_1
value: 23.480999999999998
- type: recall_at_10
value: 47.825
- type: recall_at_100
value: 70.652
- type: recall_at_1000
value: 88.612
- type: recall_at_3
value: 33.537
- type: recall_at_5
value: 40.542
- task:
type: Retrieval
dataset:
type: climate-fever
name: MTEB ClimateFEVER
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 13.333999999999998
- type: map_at_10
value: 22.524
- type: map_at_100
value: 24.506
- type: map_at_1000
value: 24.715
- type: map_at_3
value: 19.022
- type: map_at_5
value: 20.693
- type: mrr_at_1
value: 29.186
- type: mrr_at_10
value: 41.22
- type: mrr_at_100
value: 42.16
- type: mrr_at_1000
value: 42.192
- type: mrr_at_3
value: 38.013000000000005
- type: mrr_at_5
value: 39.704
- type: ndcg_at_1
value: 29.186
- type: ndcg_at_10
value: 31.167
- type: ndcg_at_100
value: 38.879000000000005
- type: ndcg_at_1000
value: 42.376000000000005
- type: ndcg_at_3
value: 25.817
- type: ndcg_at_5
value: 27.377000000000002
- type: precision_at_1
value: 29.186
- type: precision_at_10
value: 9.693999999999999
- type: precision_at_100
value: 1.8030000000000002
- type: precision_at_1000
value: 0.246
- type: precision_at_3
value: 19.11
- type: precision_at_5
value: 14.344999999999999
- type: recall_at_1
value: 13.333999999999998
- type: recall_at_10
value: 37.092000000000006
- type: recall_at_100
value: 63.651
- type: recall_at_1000
value: 83.05
- type: recall_at_3
value: 23.74
- type: recall_at_5
value: 28.655
- task:
type: Retrieval
dataset:
type: dbpedia-entity
name: MTEB DBPedia
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 9.151
- type: map_at_10
value: 19.653000000000002
- type: map_at_100
value: 28.053
- type: map_at_1000
value: 29.709000000000003
- type: map_at_3
value: 14.191
- type: map_at_5
value: 16.456
- type: mrr_at_1
value: 66.25
- type: mrr_at_10
value: 74.4
- type: mrr_at_100
value: 74.715
- type: mrr_at_1000
value: 74.726
- type: mrr_at_3
value: 72.417
- type: mrr_at_5
value: 73.667
- type: ndcg_at_1
value: 54.25
- type: ndcg_at_10
value: 40.77
- type: ndcg_at_100
value: 46.359
- type: ndcg_at_1000
value: 54.193000000000005
- type: ndcg_at_3
value: 44.832
- type: ndcg_at_5
value: 42.63
- type: precision_at_1
value: 66.25
- type: precision_at_10
value: 32.175
- type: precision_at_100
value: 10.668
- type: precision_at_1000
value: 2.067
- type: precision_at_3
value: 47.667
- type: precision_at_5
value: 41.3
- type: recall_at_1
value: 9.151
- type: recall_at_10
value: 25.003999999999998
- type: recall_at_100
value: 52.976
- type: recall_at_1000
value: 78.315
- type: recall_at_3
value: 15.487
- type: recall_at_5
value: 18.999
- task:
type: Classification
dataset:
type: mteb/emotion
name: MTEB EmotionClassification
config: default
split: test
revision: 4f58c6b202a23cf9a4da393831edf4f9183cad37
metrics:
- type: accuracy
value: 51.89999999999999
- type: f1
value: 46.47777925067403
- task:
type: Retrieval
dataset:
type: fever
name: MTEB FEVER
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 73.706
- type: map_at_10
value: 82.423
- type: map_at_100
value: 82.67999999999999
- type: map_at_1000
value: 82.694
- type: map_at_3
value: 81.328
- type: map_at_5
value: 82.001
- type: mrr_at_1
value: 79.613
- type: mrr_at_10
value: 87.07000000000001
- type: mrr_at_100
value: 87.169
- type: mrr_at_1000
value: 87.17
- type: mrr_at_3
value: 86.404
- type: mrr_at_5
value: 86.856
- type: ndcg_at_1
value: 79.613
- type: ndcg_at_10
value: 86.289
- type: ndcg_at_100
value: 87.201
- type: ndcg_at_1000
value: 87.428
- type: ndcg_at_3
value: 84.625
- type: ndcg_at_5
value: 85.53699999999999
- type: precision_at_1
value: 79.613
- type: precision_at_10
value: 10.399
- type: precision_at_100
value: 1.1079999999999999
- type: precision_at_1000
value: 0.11499999999999999
- type: precision_at_3
value: 32.473
- type: precision_at_5
value: 20.132
- type: recall_at_1
value: 73.706
- type: recall_at_10
value: 93.559
- type: recall_at_100
value: 97.188
- type: recall_at_1000
value: 98.555
- type: recall_at_3
value: 88.98700000000001
- type: recall_at_5
value: 91.373
- task:
type: Retrieval
dataset:
type: fiqa
name: MTEB FiQA2018
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 19.841
- type: map_at_10
value: 32.643
- type: map_at_100
value: 34.575
- type: map_at_1000
value: 34.736
- type: map_at_3
value: 28.317999999999998
- type: map_at_5
value: 30.964000000000002
- type: mrr_at_1
value: 39.660000000000004
- type: mrr_at_10
value: 48.620000000000005
- type: mrr_at_100
value: 49.384
- type: mrr_at_1000
value: 49.415
- type: mrr_at_3
value: 45.988
- type: mrr_at_5
value: 47.361
- type: ndcg_at_1
value: 39.660000000000004
- type: ndcg_at_10
value: 40.646
- type: ndcg_at_100
value: 47.657
- type: ndcg_at_1000
value: 50.428
- type: ndcg_at_3
value: 36.689
- type: ndcg_at_5
value: 38.211
- type: precision_at_1
value: 39.660000000000004
- type: precision_at_10
value: 11.235000000000001
- type: precision_at_100
value: 1.8530000000000002
- type: precision_at_1000
value: 0.23600000000000002
- type: precision_at_3
value: 24.587999999999997
- type: precision_at_5
value: 18.395
- type: recall_at_1
value: 19.841
- type: recall_at_10
value: 48.135
- type: recall_at_100
value: 74.224
- type: recall_at_1000
value: 90.826
- type: recall_at_3
value: 33.536
- type: recall_at_5
value: 40.311
- task:
type: Retrieval
dataset:
type: hotpotqa
name: MTEB HotpotQA
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 40.358
- type: map_at_10
value: 64.497
- type: map_at_100
value: 65.362
- type: map_at_1000
value: 65.41900000000001
- type: map_at_3
value: 61.06700000000001
- type: map_at_5
value: 63.317
- type: mrr_at_1
value: 80.716
- type: mrr_at_10
value: 86.10799999999999
- type: mrr_at_100
value: 86.265
- type: mrr_at_1000
value: 86.27
- type: mrr_at_3
value: 85.271
- type: mrr_at_5
value: 85.82499999999999
- type: ndcg_at_1
value: 80.716
- type: ndcg_at_10
value: 72.597
- type: ndcg_at_100
value: 75.549
- type: ndcg_at_1000
value: 76.61
- type: ndcg_at_3
value: 67.874
- type: ndcg_at_5
value: 70.655
- type: precision_at_1
value: 80.716
- type: precision_at_10
value: 15.148
- type: precision_at_100
value: 1.745
- type: precision_at_1000
value: 0.188
- type: precision_at_3
value: 43.597
- type: precision_at_5
value: 28.351
- type: recall_at_1
value: 40.358
- type: recall_at_10
value: 75.739
- type: recall_at_100
value: 87.259
- type: recall_at_1000
value: 94.234
- type: recall_at_3
value: 65.39500000000001
- type: recall_at_5
value: 70.878
- task:
type: Classification
dataset:
type: mteb/imdb
name: MTEB ImdbClassification
config: default
split: test
revision: 3d86128a09e091d6018b6d26cad27f2739fc2db7
metrics:
- type: accuracy
value: 90.80799999999998
- type: ap
value: 86.81350378180757
- type: f1
value: 90.79901248314215
- task:
type: Retrieval
dataset:
type: msmarco
name: MTEB MSMARCO
config: default
split: dev
revision: None
metrics:
- type: map_at_1
value: 22.096
- type: map_at_10
value: 34.384
- type: map_at_100
value: 35.541
- type: map_at_1000
value: 35.589999999999996
- type: map_at_3
value: 30.496000000000002
- type: map_at_5
value: 32.718
- type: mrr_at_1
value: 22.750999999999998
- type: mrr_at_10
value: 35.024
- type: mrr_at_100
value: 36.125
- type: mrr_at_1000
value: 36.168
- type: mrr_at_3
value: 31.225
- type: mrr_at_5
value: 33.416000000000004
- type: ndcg_at_1
value: 22.750999999999998
- type: ndcg_at_10
value: 41.351
- type: ndcg_at_100
value: 46.92
- type: ndcg_at_1000
value: 48.111
- type: ndcg_at_3
value: 33.439
- type: ndcg_at_5
value: 37.407000000000004
- type: precision_at_1
value: 22.750999999999998
- type: precision_at_10
value: 6.564
- type: precision_at_100
value: 0.935
- type: precision_at_1000
value: 0.104
- type: precision_at_3
value: 14.288
- type: precision_at_5
value: 10.581999999999999
- type: recall_at_1
value: 22.096
- type: recall_at_10
value: 62.771
- type: recall_at_100
value: 88.529
- type: recall_at_1000
value: 97.55
- type: recall_at_3
value: 41.245
- type: recall_at_5
value: 50.788
- task:
type: Classification
dataset:
type: mteb/mtop_domain
name: MTEB MTOPDomainClassification (en)
config: en
split: test
revision: d80d48c1eb48d3562165c59d59d0034df9fff0bf
metrics:
- type: accuracy
value: 94.16780665754673
- type: f1
value: 93.96331194859894
- task:
type: Classification
dataset:
type: mteb/mtop_intent
name: MTEB MTOPIntentClassification (en)
config: en
split: test
revision: ae001d0e6b1228650b7bd1c2c65fb50ad11a8aba
metrics:
- type: accuracy
value: 76.90606475148198
- type: f1
value: 58.58344986604187
- task:
type: Classification
dataset:
type: mteb/amazon_massive_intent
name: MTEB MassiveIntentClassification (en)
config: en
split: test
revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7
metrics:
- type: accuracy
value: 76.14660390047075
- type: f1
value: 74.31533923533614
- task:
type: Classification
dataset:
type: mteb/amazon_massive_scenario
name: MTEB MassiveScenarioClassification (en)
config: en
split: test
revision: 7d571f92784cd94a019292a1f45445077d0ef634
metrics:
- type: accuracy
value: 80.16139878950908
- type: f1
value: 80.18532656824924
- task:
type: Clustering
dataset:
type: mteb/medrxiv-clustering-p2p
name: MTEB MedrxivClusteringP2P
config: default
split: test
revision: e7a26af6f3ae46b30dde8737f02c07b1505bcc73
metrics:
- type: v_measure
value: 32.949880906135085
- task:
type: Clustering
dataset:
type: mteb/medrxiv-clustering-s2s
name: MTEB MedrxivClusteringS2S
config: default
split: test
revision: 35191c8c0dca72d8ff3efcd72aa802307d469663
metrics:
- type: v_measure
value: 31.56300351524862
- task:
type: Reranking
dataset:
type: mteb/mind_small
name: MTEB MindSmallReranking
config: default
split: test
revision: 3bdac13927fdc888b903db93b2ffdbd90b295a69
metrics:
- type: map
value: 31.196521894371315
- type: mrr
value: 32.22644231694389
- task:
type: Retrieval
dataset:
type: nfcorpus
name: MTEB NFCorpus
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 6.783
- type: map_at_10
value: 14.549000000000001
- type: map_at_100
value: 18.433
- type: map_at_1000
value: 19.949
- type: map_at_3
value: 10.936
- type: map_at_5
value: 12.514
- type: mrr_at_1
value: 47.368
- type: mrr_at_10
value: 56.42
- type: mrr_at_100
value: 56.908
- type: mrr_at_1000
value: 56.95
- type: mrr_at_3
value: 54.283
- type: mrr_at_5
value: 55.568
- type: ndcg_at_1
value: 45.666000000000004
- type: ndcg_at_10
value: 37.389
- type: ndcg_at_100
value: 34.253
- type: ndcg_at_1000
value: 43.059999999999995
- type: ndcg_at_3
value: 42.725
- type: ndcg_at_5
value: 40.193
- type: precision_at_1
value: 47.368
- type: precision_at_10
value: 27.988000000000003
- type: precision_at_100
value: 8.672
- type: precision_at_1000
value: 2.164
- type: precision_at_3
value: 40.248
- type: precision_at_5
value: 34.737
- type: recall_at_1
value: 6.783
- type: recall_at_10
value: 17.838
- type: recall_at_100
value: 33.672000000000004
- type: recall_at_1000
value: 66.166
- type: recall_at_3
value: 11.849
- type: recall_at_5
value: 14.205000000000002
- task:
type: Retrieval
dataset:
type: nq
name: MTEB NQ
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 31.698999999999998
- type: map_at_10
value: 46.556
- type: map_at_100
value: 47.652
- type: map_at_1000
value: 47.68
- type: map_at_3
value: 42.492000000000004
- type: map_at_5
value: 44.763999999999996
- type: mrr_at_1
value: 35.747
- type: mrr_at_10
value: 49.242999999999995
- type: mrr_at_100
value: 50.052
- type: mrr_at_1000
value: 50.068
- type: mrr_at_3
value: 45.867000000000004
- type: mrr_at_5
value: 47.778999999999996
- type: ndcg_at_1
value: 35.717999999999996
- type: ndcg_at_10
value: 54.14600000000001
- type: ndcg_at_100
value: 58.672999999999995
- type: ndcg_at_1000
value: 59.279
- type: ndcg_at_3
value: 46.407
- type: ndcg_at_5
value: 50.181
- type: precision_at_1
value: 35.717999999999996
- type: precision_at_10
value: 8.844000000000001
- type: precision_at_100
value: 1.139
- type: precision_at_1000
value: 0.12
- type: precision_at_3
value: 20.993000000000002
- type: precision_at_5
value: 14.791000000000002
- type: recall_at_1
value: 31.698999999999998
- type: recall_at_10
value: 74.693
- type: recall_at_100
value: 94.15299999999999
- type: recall_at_1000
value: 98.585
- type: recall_at_3
value: 54.388999999999996
- type: recall_at_5
value: 63.08200000000001
- task:
type: Retrieval
dataset:
type: quora
name: MTEB QuoraRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 71.283
- type: map_at_10
value: 85.24000000000001
- type: map_at_100
value: 85.882
- type: map_at_1000
value: 85.897
- type: map_at_3
value: 82.326
- type: map_at_5
value: 84.177
- type: mrr_at_1
value: 82.21000000000001
- type: mrr_at_10
value: 88.228
- type: mrr_at_100
value: 88.32
- type: mrr_at_1000
value: 88.32
- type: mrr_at_3
value: 87.323
- type: mrr_at_5
value: 87.94800000000001
- type: ndcg_at_1
value: 82.17999999999999
- type: ndcg_at_10
value: 88.9
- type: ndcg_at_100
value: 90.079
- type: ndcg_at_1000
value: 90.158
- type: ndcg_at_3
value: 86.18299999999999
- type: ndcg_at_5
value: 87.71799999999999
- type: precision_at_1
value: 82.17999999999999
- type: precision_at_10
value: 13.464
- type: precision_at_100
value: 1.533
- type: precision_at_1000
value: 0.157
- type: precision_at_3
value: 37.693
- type: precision_at_5
value: 24.792
- type: recall_at_1
value: 71.283
- type: recall_at_10
value: 95.742
- type: recall_at_100
value: 99.67200000000001
- type: recall_at_1000
value: 99.981
- type: recall_at_3
value: 87.888
- type: recall_at_5
value: 92.24
- task:
type: Clustering
dataset:
type: mteb/reddit-clustering
name: MTEB RedditClustering
config: default
split: test
revision: 24640382cdbf8abc73003fb0fa6d111a705499eb
metrics:
- type: v_measure
value: 56.24267063669042
- task:
type: Clustering
dataset:
type: mteb/reddit-clustering-p2p
name: MTEB RedditClusteringP2P
config: default
split: test
revision: 282350215ef01743dc01b456c7f5241fa8937f16
metrics:
- type: v_measure
value: 62.88056988932578
- task:
type: Retrieval
dataset:
type: scidocs
name: MTEB SCIDOCS
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 4.903
- type: map_at_10
value: 13.202
- type: map_at_100
value: 15.5
- type: map_at_1000
value: 15.870999999999999
- type: map_at_3
value: 9.407
- type: map_at_5
value: 11.238
- type: mrr_at_1
value: 24.2
- type: mrr_at_10
value: 35.867
- type: mrr_at_100
value: 37.001
- type: mrr_at_1000
value: 37.043
- type: mrr_at_3
value: 32.5
- type: mrr_at_5
value: 34.35
- type: ndcg_at_1
value: 24.2
- type: ndcg_at_10
value: 21.731
- type: ndcg_at_100
value: 30.7
- type: ndcg_at_1000
value: 36.618
- type: ndcg_at_3
value: 20.72
- type: ndcg_at_5
value: 17.954
- type: precision_at_1
value: 24.2
- type: precision_at_10
value: 11.33
- type: precision_at_100
value: 2.4410000000000003
- type: precision_at_1000
value: 0.386
- type: precision_at_3
value: 19.667
- type: precision_at_5
value: 15.86
- type: recall_at_1
value: 4.903
- type: recall_at_10
value: 22.962
- type: recall_at_100
value: 49.563
- type: recall_at_1000
value: 78.238
- type: recall_at_3
value: 11.953
- type: recall_at_5
value: 16.067999999999998
- task:
type: STS
dataset:
type: mteb/sickr-sts
name: MTEB SICK-R
config: default
split: test
revision: a6ea5a8cab320b040a23452cc28066d9beae2cee
metrics:
- type: cos_sim_pearson
value: 84.12694254604078
- type: cos_sim_spearman
value: 80.30141815181918
- type: euclidean_pearson
value: 81.34015449877128
- type: euclidean_spearman
value: 80.13984197010849
- type: manhattan_pearson
value: 81.31767068124086
- type: manhattan_spearman
value: 80.11720513114103
- task:
type: STS
dataset:
type: mteb/sts12-sts
name: MTEB STS12
config: default
split: test
revision: a0d554a64d88156834ff5ae9920b964011b16384
metrics:
- type: cos_sim_pearson
value: 86.13112984010417
- type: cos_sim_spearman
value: 78.03063573402875
- type: euclidean_pearson
value: 83.51928418844804
- type: euclidean_spearman
value: 78.4045235411144
- type: manhattan_pearson
value: 83.49981637388689
- type: manhattan_spearman
value: 78.4042575139372
- task:
type: STS
dataset:
type: mteb/sts13-sts
name: MTEB STS13
config: default
split: test
revision: 7e90230a92c190f1bf69ae9002b8cea547a64cca
metrics:
- type: cos_sim_pearson
value: 82.50327987379504
- type: cos_sim_spearman
value: 84.18556767756205
- type: euclidean_pearson
value: 82.69684424327679
- type: euclidean_spearman
value: 83.5368106038335
- type: manhattan_pearson
value: 82.57967581007374
- type: manhattan_spearman
value: 83.43009053133697
- task:
type: STS
dataset:
type: mteb/sts14-sts
name: MTEB STS14
config: default
split: test
revision: 6031580fec1f6af667f0bd2da0a551cf4f0b2375
metrics:
- type: cos_sim_pearson
value: 82.50756863007814
- type: cos_sim_spearman
value: 82.27204331279108
- type: euclidean_pearson
value: 81.39535251429741
- type: euclidean_spearman
value: 81.84386626336239
- type: manhattan_pearson
value: 81.34281737280695
- type: manhattan_spearman
value: 81.81149375673166
- task:
type: STS
dataset:
type: mteb/sts15-sts
name: MTEB STS15
config: default
split: test
revision: ae752c7c21bf194d8b67fd573edf7ae58183cbe3
metrics:
- type: cos_sim_pearson
value: 86.8727714856726
- type: cos_sim_spearman
value: 87.95738287792312
- type: euclidean_pearson
value: 86.62920602795887
- type: euclidean_spearman
value: 87.05207355381243
- type: manhattan_pearson
value: 86.53587918472225
- type: manhattan_spearman
value: 86.95382961029586
- task:
type: STS
dataset:
type: mteb/sts16-sts
name: MTEB STS16
config: default
split: test
revision: 4d8694f8f0e0100860b497b999b3dbed754a0513
metrics:
- type: cos_sim_pearson
value: 83.52240359769479
- type: cos_sim_spearman
value: 85.47685776238286
- type: euclidean_pearson
value: 84.25815333483058
- type: euclidean_spearman
value: 85.27415639683198
- type: manhattan_pearson
value: 84.29127757025637
- type: manhattan_spearman
value: 85.30226224917351
- task:
type: STS
dataset:
type: mteb/sts17-crosslingual-sts
name: MTEB STS17 (en-en)
config: en-en
split: test
revision: af5e6fb845001ecf41f4c1e033ce921939a2a68d
metrics:
- type: cos_sim_pearson
value: 86.42501708915708
- type: cos_sim_spearman
value: 86.42276182795041
- type: euclidean_pearson
value: 86.5408207354761
- type: euclidean_spearman
value: 85.46096321750838
- type: manhattan_pearson
value: 86.54177303026881
- type: manhattan_spearman
value: 85.50313151916117
- task:
type: STS
dataset:
type: mteb/sts22-crosslingual-sts
name: MTEB STS22 (en)
config: en
split: test
revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80
metrics:
- type: cos_sim_pearson
value: 64.86521089250766
- type: cos_sim_spearman
value: 65.94868540323003
- type: euclidean_pearson
value: 67.16569626533084
- type: euclidean_spearman
value: 66.37667004134917
- type: manhattan_pearson
value: 67.1482365102333
- type: manhattan_spearman
value: 66.53240122580029
- task:
type: STS
dataset:
type: mteb/stsbenchmark-sts
name: MTEB STSBenchmark
config: default
split: test
revision: b0fddb56ed78048fa8b90373c8a3cfc37b684831
metrics:
- type: cos_sim_pearson
value: 84.64746265365318
- type: cos_sim_spearman
value: 86.41888825906786
- type: euclidean_pearson
value: 85.27453642725811
- type: euclidean_spearman
value: 85.94095796602544
- type: manhattan_pearson
value: 85.28643660505334
- type: manhattan_spearman
value: 85.95028003260744
- task:
type: Reranking
dataset:
type: mteb/scidocs-reranking
name: MTEB SciDocsRR
config: default
split: test
revision: d3c5e1fc0b855ab6097bf1cda04dd73947d7caab
metrics:
- type: map
value: 87.48903153618527
- type: mrr
value: 96.41081503826601
- task:
type: Retrieval
dataset:
type: scifact
name: MTEB SciFact
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 58.594
- type: map_at_10
value: 69.296
- type: map_at_100
value: 69.782
- type: map_at_1000
value: 69.795
- type: map_at_3
value: 66.23
- type: map_at_5
value: 68.293
- type: mrr_at_1
value: 61.667
- type: mrr_at_10
value: 70.339
- type: mrr_at_100
value: 70.708
- type: mrr_at_1000
value: 70.722
- type: mrr_at_3
value: 68.0
- type: mrr_at_5
value: 69.56700000000001
- type: ndcg_at_1
value: 61.667
- type: ndcg_at_10
value: 74.039
- type: ndcg_at_100
value: 76.103
- type: ndcg_at_1000
value: 76.47800000000001
- type: ndcg_at_3
value: 68.967
- type: ndcg_at_5
value: 71.96900000000001
- type: precision_at_1
value: 61.667
- type: precision_at_10
value: 9.866999999999999
- type: precision_at_100
value: 1.097
- type: precision_at_1000
value: 0.11299999999999999
- type: precision_at_3
value: 27.111
- type: precision_at_5
value: 18.2
- type: recall_at_1
value: 58.594
- type: recall_at_10
value: 87.422
- type: recall_at_100
value: 96.667
- type: recall_at_1000
value: 99.667
- type: recall_at_3
value: 74.217
- type: recall_at_5
value: 81.539
- task:
type: PairClassification
dataset:
type: mteb/sprintduplicatequestions-pairclassification
name: MTEB SprintDuplicateQuestions
config: default
split: test
revision: d66bd1f72af766a5cc4b0ca5e00c162f89e8cc46
metrics:
- type: cos_sim_accuracy
value: 99.85049504950496
- type: cos_sim_ap
value: 96.33111544137081
- type: cos_sim_f1
value: 92.35443037974684
- type: cos_sim_precision
value: 93.53846153846153
- type: cos_sim_recall
value: 91.2
- type: dot_accuracy
value: 99.82376237623762
- type: dot_ap
value: 95.38082527310888
- type: dot_f1
value: 90.90909090909092
- type: dot_precision
value: 92.90187891440502
- type: dot_recall
value: 89.0
- type: euclidean_accuracy
value: 99.84851485148515
- type: euclidean_ap
value: 96.32316003996347
- type: euclidean_f1
value: 92.2071392659628
- type: euclidean_precision
value: 92.71991911021233
- type: euclidean_recall
value: 91.7
- type: manhattan_accuracy
value: 99.84851485148515
- type: manhattan_ap
value: 96.3655668249217
- type: manhattan_f1
value: 92.18356026222895
- type: manhattan_precision
value: 92.98067141403867
- type: manhattan_recall
value: 91.4
- type: max_accuracy
value: 99.85049504950496
- type: max_ap
value: 96.3655668249217
- type: max_f1
value: 92.35443037974684
- task:
type: Clustering
dataset:
type: mteb/stackexchange-clustering
name: MTEB StackExchangeClustering
config: default
split: test
revision: 6cbc1f7b2bc0622f2e39d2c77fa502909748c259
metrics:
- type: v_measure
value: 65.94861371629051
- task:
type: Clustering
dataset:
type: mteb/stackexchange-clustering-p2p
name: MTEB StackExchangeClusteringP2P
config: default
split: test
revision: 815ca46b2622cec33ccafc3735d572c266efdb44
metrics:
- type: v_measure
value: 35.009430451385
- task:
type: Reranking
dataset:
type: mteb/stackoverflowdupquestions-reranking
name: MTEB StackOverflowDupQuestions
config: default
split: test
revision: e185fbe320c72810689fc5848eb6114e1ef5ec69
metrics:
- type: map
value: 54.61164066427969
- type: mrr
value: 55.49710603938544
- task:
type: Summarization
dataset:
type: mteb/summeval
name: MTEB SummEval
config: default
split: test
revision: cda12ad7615edc362dbf25a00fdd61d3b1eaf93c
metrics:
- type: cos_sim_pearson
value: 30.622620124907662
- type: cos_sim_spearman
value: 31.0678351356163
- type: dot_pearson
value: 30.863727693306814
- type: dot_spearman
value: 31.230306567021255
- task:
type: Retrieval
dataset:
type: trec-covid
name: MTEB TRECCOVID
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 0.22
- type: map_at_10
value: 2.011
- type: map_at_100
value: 10.974
- type: map_at_1000
value: 25.819
- type: map_at_3
value: 0.6649999999999999
- type: map_at_5
value: 1.076
- type: mrr_at_1
value: 86.0
- type: mrr_at_10
value: 91.8
- type: mrr_at_100
value: 91.8
- type: mrr_at_1000
value: 91.8
- type: mrr_at_3
value: 91.0
- type: mrr_at_5
value: 91.8
- type: ndcg_at_1
value: 82.0
- type: ndcg_at_10
value: 78.07300000000001
- type: ndcg_at_100
value: 58.231
- type: ndcg_at_1000
value: 51.153000000000006
- type: ndcg_at_3
value: 81.123
- type: ndcg_at_5
value: 81.059
- type: precision_at_1
value: 86.0
- type: precision_at_10
value: 83.0
- type: precision_at_100
value: 59.38
- type: precision_at_1000
value: 22.55
- type: precision_at_3
value: 87.333
- type: precision_at_5
value: 86.8
- type: recall_at_1
value: 0.22
- type: recall_at_10
value: 2.2079999999999997
- type: recall_at_100
value: 14.069
- type: recall_at_1000
value: 47.678
- type: recall_at_3
value: 0.7040000000000001
- type: recall_at_5
value: 1.161
- task:
type: Retrieval
dataset:
type: webis-touche2020
name: MTEB Touche2020
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 2.809
- type: map_at_10
value: 10.394
- type: map_at_100
value: 16.598
- type: map_at_1000
value: 18.142
- type: map_at_3
value: 5.572
- type: map_at_5
value: 7.1370000000000005
- type: mrr_at_1
value: 32.653
- type: mrr_at_10
value: 46.564
- type: mrr_at_100
value: 47.469
- type: mrr_at_1000
value: 47.469
- type: mrr_at_3
value: 42.177
- type: mrr_at_5
value: 44.524
- type: ndcg_at_1
value: 30.612000000000002
- type: ndcg_at_10
value: 25.701
- type: ndcg_at_100
value: 37.532
- type: ndcg_at_1000
value: 48.757
- type: ndcg_at_3
value: 28.199999999999996
- type: ndcg_at_5
value: 25.987
- type: precision_at_1
value: 32.653
- type: precision_at_10
value: 23.469
- type: precision_at_100
value: 7.9799999999999995
- type: precision_at_1000
value: 1.5350000000000001
- type: precision_at_3
value: 29.932
- type: precision_at_5
value: 26.122
- type: recall_at_1
value: 2.809
- type: recall_at_10
value: 16.887
- type: recall_at_100
value: 48.67
- type: recall_at_1000
value: 82.89699999999999
- type: recall_at_3
value: 6.521000000000001
- type: recall_at_5
value: 9.609
- task:
type: Classification
dataset:
type: mteb/toxic_conversations_50k
name: MTEB ToxicConversationsClassification
config: default
split: test
revision: d7c0de2777da35d6aae2200a62c6e0e5af397c4c
metrics:
- type: accuracy
value: 71.57860000000001
- type: ap
value: 13.82629211536393
- type: f1
value: 54.59860966183956
- task:
type: Classification
dataset:
type: mteb/tweet_sentiment_extraction
name: MTEB TweetSentimentExtractionClassification
config: default
split: test
revision: d604517c81ca91fe16a244d1248fc021f9ecee7a
metrics:
- type: accuracy
value: 59.38030560271647
- type: f1
value: 59.69685552567865
- task:
type: Clustering
dataset:
type: mteb/twentynewsgroups-clustering
name: MTEB TwentyNewsgroupsClustering
config: default
split: test
revision: 6125ec4e24fa026cec8a478383ee943acfbd5449
metrics:
- type: v_measure
value: 51.4736717043405
- task:
type: PairClassification
dataset:
type: mteb/twittersemeval2015-pairclassification
name: MTEB TwitterSemEval2015
config: default
split: test
revision: 70970daeab8776df92f5ea462b6173c0b46fd2d1
metrics:
- type: cos_sim_accuracy
value: 86.92853311080646
- type: cos_sim_ap
value: 77.67872502591382
- type: cos_sim_f1
value: 70.33941236068895
- type: cos_sim_precision
value: 67.63273258645884
- type: cos_sim_recall
value: 73.27176781002639
- type: dot_accuracy
value: 85.79603027954938
- type: dot_ap
value: 73.73786190233379
- type: dot_f1
value: 67.3437901774235
- type: dot_precision
value: 65.67201604814443
- type: dot_recall
value: 69.10290237467018
- type: euclidean_accuracy
value: 86.94045419324074
- type: euclidean_ap
value: 77.6687791535167
- type: euclidean_f1
value: 70.47209214023542
- type: euclidean_precision
value: 67.7207492094381
- type: euclidean_recall
value: 73.45646437994723
- type: manhattan_accuracy
value: 86.87488823985218
- type: manhattan_ap
value: 77.63373392430728
- type: manhattan_f1
value: 70.40920716112532
- type: manhattan_precision
value: 68.31265508684864
- type: manhattan_recall
value: 72.63852242744063
- type: max_accuracy
value: 86.94045419324074
- type: max_ap
value: 77.67872502591382
- type: max_f1
value: 70.47209214023542
- task:
type: PairClassification
dataset:
type: mteb/twitterurlcorpus-pairclassification
name: MTEB TwitterURLCorpus
config: default
split: test
revision: 8b6510b0b1fa4e4c4f879467980e9be563ec1cdf
metrics:
- type: cos_sim_accuracy
value: 88.67155664221679
- type: cos_sim_ap
value: 85.64591703003417
- type: cos_sim_f1
value: 77.59531005352656
- type: cos_sim_precision
value: 73.60967184801382
- type: cos_sim_recall
value: 82.03726516784724
- type: dot_accuracy
value: 88.41541506578181
- type: dot_ap
value: 84.6482788957769
- type: dot_f1
value: 77.04748541466657
- type: dot_precision
value: 74.02440754931176
- type: dot_recall
value: 80.3279950723745
- type: euclidean_accuracy
value: 88.63080684596576
- type: euclidean_ap
value: 85.44570045321562
- type: euclidean_f1
value: 77.28769403336106
- type: euclidean_precision
value: 72.90600040958427
- type: euclidean_recall
value: 82.22975053895904
- type: manhattan_accuracy
value: 88.59393798269105
- type: manhattan_ap
value: 85.40271361038187
- type: manhattan_f1
value: 77.17606419344392
- type: manhattan_precision
value: 72.4447747078295
- type: manhattan_recall
value: 82.5685247921158
- type: max_accuracy
value: 88.67155664221679
- type: max_ap
value: 85.64591703003417
- type: max_f1
value: 77.59531005352656
license: mit
language:
- en
---
<h1 align="center">FlagEmbedding</h1>
<h4 align="center">
<p>
<a href=#model-list>Model List</a> |
<a href=#frequently-asked-questions>FAQ</a> |
<a href=#usage>Usage</a> |
<a href="#evaluation">Evaluation</a> |
<a href="#train">Train</a> |
<a href="#contact">Contact</a> |
<a href="#citation">Citation</a> |
<a href="#license">License</a>
<p>
</h4>
More details please refer to our Github: [FlagEmbedding](https://github.com/FlagOpen/FlagEmbedding).
[English](README.md) | [中文](https://github.com/FlagOpen/FlagEmbedding/blob/master/README_zh.md)
FlagEmbedding can map any text to a low-dimensional dense vector which can be used for tasks like retrieval, classification, clustering, or semantic search.
And it also can be used in vector databases for LLMs.
************* 🌟**Updates**🌟 *************
- 10/12/2023: Release [LLM-Embedder](./FlagEmbedding/llm_embedder/README.md), a unified embedding model to support diverse retrieval augmentation needs for LLMs. [Paper](https://arxiv.org/pdf/2310.07554.pdf) :fire:
- 09/15/2023: The [technical report](https://arxiv.org/pdf/2309.07597.pdf) of BGE has been released
- 09/15/2023: The [masive training data](https://data.baai.ac.cn/details/BAAI-MTP) of BGE has been released
- 09/12/2023: New models:
- **New reranker model**: release cross-encoder models `BAAI/bge-reranker-base` and `BAAI/bge-reranker-large`, which are more powerful than embedding model. We recommend to use/fine-tune them to re-rank top-k documents returned by embedding models.
- **update embedding model**: release `bge-*-v1.5` embedding model to alleviate the issue of the similarity distribution, and enhance its retrieval ability without instruction.
<details>
<summary>More</summary>
<!-- ### More -->
- 09/07/2023: Update [fine-tune code](https://github.com/FlagOpen/FlagEmbedding/blob/master/FlagEmbedding/baai_general_embedding/README.md): Add script to mine hard negatives and support adding instruction during fine-tuning.
- 08/09/2023: BGE Models are integrated into **Langchain**, you can use it like [this](#using-langchain); C-MTEB **leaderboard** is [available](https://huggingface.co/spaces/mteb/leaderboard).
- 08/05/2023: Release base-scale and small-scale models, **best performance among the models of the same size 🤗**
- 08/02/2023: Release `bge-large-*`(short for BAAI General Embedding) Models, **rank 1st on MTEB and C-MTEB benchmark!** :tada: :tada:
- 08/01/2023: We release the [Chinese Massive Text Embedding Benchmark](https://github.com/FlagOpen/FlagEmbedding/blob/master/C_MTEB) (**C-MTEB**), consisting of 31 test dataset.
</details>
## Model List
`bge` is short for `BAAI general embedding`.
| Model | Language | | Description | query instruction for retrieval [1] |
|:-------------------------------|:--------:| :--------:| :--------:|:--------:|
| [BAAI/llm-embedder](https://huggingface.co/BAAI/llm-embedder) | English | [Inference](./FlagEmbedding/llm_embedder/README.md) [Fine-tune](./FlagEmbedding/llm_embedder/README.md) | a unified embedding model to support diverse retrieval augmentation needs for LLMs | See [README](./FlagEmbedding/llm_embedder/README.md) |
| [BAAI/bge-reranker-large](https://huggingface.co/BAAI/bge-reranker-large) | Chinese and English | [Inference](#usage-for-reranker) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/reranker) | a cross-encoder model which is more accurate but less efficient [2] | |
| [BAAI/bge-reranker-base](https://huggingface.co/BAAI/bge-reranker-base) | Chinese and English | [Inference](#usage-for-reranker) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/reranker) | a cross-encoder model which is more accurate but less efficient [2] | |
| [BAAI/bge-large-en-v1.5](https://huggingface.co/BAAI/bge-large-en-v1.5) | English | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | version 1.5 with more reasonable similarity distribution | `Represent this sentence for searching relevant passages: ` |
| [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5) | English | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | version 1.5 with more reasonable similarity distribution | `Represent this sentence for searching relevant passages: ` |
| [BAAI/bge-small-en-v1.5](https://huggingface.co/BAAI/bge-small-en-v1.5) | English | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | version 1.5 with more reasonable similarity distribution | `Represent this sentence for searching relevant passages: ` |
| [BAAI/bge-large-zh-v1.5](https://huggingface.co/BAAI/bge-large-zh-v1.5) | Chinese | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | version 1.5 with more reasonable similarity distribution | `为这个句子生成表示以用于检索相关文章:` |
| [BAAI/bge-base-zh-v1.5](https://huggingface.co/BAAI/bge-base-zh-v1.5) | Chinese | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | version 1.5 with more reasonable similarity distribution | `为这个句子生成表示以用于检索相关文章:` |
| [BAAI/bge-small-zh-v1.5](https://huggingface.co/BAAI/bge-small-zh-v1.5) | Chinese | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | version 1.5 with more reasonable similarity distribution | `为这个句子生成表示以用于检索相关文章:` |
| [BAAI/bge-large-en](https://huggingface.co/BAAI/bge-large-en) | English | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | :trophy: rank **1st** in [MTEB](https://huggingface.co/spaces/mteb/leaderboard) leaderboard | `Represent this sentence for searching relevant passages: ` |
| [BAAI/bge-base-en](https://huggingface.co/BAAI/bge-base-en) | English | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | a base-scale model but with similar ability to `bge-large-en` | `Represent this sentence for searching relevant passages: ` |
| [BAAI/bge-small-en](https://huggingface.co/BAAI/bge-small-en) | English | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) |a small-scale model but with competitive performance | `Represent this sentence for searching relevant passages: ` |
| [BAAI/bge-large-zh](https://huggingface.co/BAAI/bge-large-zh) | Chinese | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | :trophy: rank **1st** in [C-MTEB](https://github.com/FlagOpen/FlagEmbedding/tree/master/C_MTEB) benchmark | `为这个句子生成表示以用于检索相关文章:` |
| [BAAI/bge-base-zh](https://huggingface.co/BAAI/bge-base-zh) | Chinese | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | a base-scale model but with similar ability to `bge-large-zh` | `为这个句子生成表示以用于检索相关文章:` |
| [BAAI/bge-small-zh](https://huggingface.co/BAAI/bge-small-zh) | Chinese | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | a small-scale model but with competitive performance | `为这个句子生成表示以用于检索相关文章:` |
[1\]: If you need to search the relevant passages to a query, we suggest to add the instruction to the query; in other cases, no instruction is needed, just use the original query directly. In all cases, **no instruction** needs to be added to passages.
[2\]: Different from embedding model, reranker uses question and document as input and directly output similarity instead of embedding. To balance the accuracy and time cost, cross-encoder is widely used to re-rank top-k documents retrieved by other simple models.
For examples, use bge embedding model to retrieve top 100 relevant documents, and then use bge reranker to re-rank the top 100 document to get the final top-3 results.
All models have been uploaded to Huggingface Hub, and you can see them at https://huggingface.co/BAAI.
If you cannot open the Huggingface Hub, you also can download the models at https://model.baai.ac.cn/models .
## Frequently asked questions
<details>
<summary>1. How to fine-tune bge embedding model?</summary>
<!-- ### How to fine-tune bge embedding model? -->
Following this [example](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) to prepare data and fine-tune your model.
Some suggestions:
- Mine hard negatives following this [example](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune#hard-negatives), which can improve the retrieval performance.
- If you pre-train bge on your data, the pre-trained model cannot be directly used to calculate similarity, and it must be fine-tuned with contrastive learning before computing similarity.
- If the accuracy of the fine-tuned model is still not high, it is recommended to use/fine-tune the cross-encoder model (bge-reranker) to re-rank top-k results. Hard negatives also are needed to fine-tune reranker.
</details>
<details>
<summary>2. The similarity score between two dissimilar sentences is higher than 0.5</summary>
<!-- ### The similarity score between two dissimilar sentences is higher than 0.5 -->
**Suggest to use bge v1.5, which alleviates the issue of the similarity distribution.**
Since we finetune the models by contrastive learning with a temperature of 0.01,
the similarity distribution of the current BGE model is about in the interval \[0.6, 1\].
So a similarity score greater than 0.5 does not indicate that the two sentences are similar.
For downstream tasks, such as passage retrieval or semantic similarity,
**what matters is the relative order of the scores, not the absolute value.**
If you need to filter similar sentences based on a similarity threshold,
please select an appropriate similarity threshold based on the similarity distribution on your data (such as 0.8, 0.85, or even 0.9).
</details>
<details>
<summary>3. When does the query instruction need to be used</summary>
<!-- ### When does the query instruction need to be used -->
For the `bge-*-v1.5`, we improve its retrieval ability when not using instruction.
No instruction only has a slight degradation in retrieval performance compared with using instruction.
So you can generate embedding without instruction in all cases for convenience.
For a retrieval task that uses short queries to find long related documents,
it is recommended to add instructions for these short queries.
**The best method to decide whether to add instructions for queries is choosing the setting that achieves better performance on your task.**
In all cases, the documents/passages do not need to add the instruction.
</details>
## Usage
### Usage for Embedding Model
Here are some examples for using `bge` models with
[FlagEmbedding](#using-flagembedding), [Sentence-Transformers](#using-sentence-transformers), [Langchain](#using-langchain), or [Huggingface Transformers](#using-huggingface-transformers).
#### Using FlagEmbedding
```
pip install -U FlagEmbedding
```
If it doesn't work for you, you can see [FlagEmbedding](https://github.com/FlagOpen/FlagEmbedding/blob/master/FlagEmbedding/baai_general_embedding/README.md) for more methods to install FlagEmbedding.
```python
from FlagEmbedding import FlagModel
sentences_1 = ["样例数据-1", "样例数据-2"]
sentences_2 = ["样例数据-3", "样例数据-4"]
model = FlagModel('BAAI/bge-large-zh-v1.5',
query_instruction_for_retrieval="为这个句子生成表示以用于检索相关文章:",
use_fp16=True) # Setting use_fp16 to True speeds up computation with a slight performance degradation
embeddings_1 = model.encode(sentences_1)
embeddings_2 = model.encode(sentences_2)
similarity = embeddings_1 @ embeddings_2.T
print(similarity)
# for s2p(short query to long passage) retrieval task, suggest to use encode_queries() which will automatically add the instruction to each query
# corpus in retrieval task can still use encode() or encode_corpus(), since they don't need instruction
queries = ['query_1', 'query_2']
passages = ["样例文档-1", "样例文档-2"]
q_embeddings = model.encode_queries(queries)
p_embeddings = model.encode(passages)
scores = q_embeddings @ p_embeddings.T
```
For the value of the argument `query_instruction_for_retrieval`, see [Model List](https://github.com/FlagOpen/FlagEmbedding/tree/master#model-list).
By default, FlagModel will use all available GPUs when encoding. Please set `os.environ["CUDA_VISIBLE_DEVICES"]` to select specific GPUs.
You also can set `os.environ["CUDA_VISIBLE_DEVICES"]=""` to make all GPUs unavailable.
#### Using Sentence-Transformers
You can also use the `bge` models with [sentence-transformers](https://www.SBERT.net):
```
pip install -U sentence-transformers
```
```python
from sentence_transformers import SentenceTransformer
sentences_1 = ["样例数据-1", "样例数据-2"]
sentences_2 = ["样例数据-3", "样例数据-4"]
model = SentenceTransformer('BAAI/bge-large-zh-v1.5')
embeddings_1 = model.encode(sentences_1, normalize_embeddings=True)
embeddings_2 = model.encode(sentences_2, normalize_embeddings=True)
similarity = embeddings_1 @ embeddings_2.T
print(similarity)
```
For s2p(short query to long passage) retrieval task,
each short query should start with an instruction (instructions see [Model List](https://github.com/FlagOpen/FlagEmbedding/tree/master#model-list)).
But the instruction is not needed for passages.
```python
from sentence_transformers import SentenceTransformer
queries = ['query_1', 'query_2']
passages = ["样例文档-1", "样例文档-2"]
instruction = "为这个句子生成表示以用于检索相关文章:"
model = SentenceTransformer('BAAI/bge-large-zh-v1.5')
q_embeddings = model.encode([instruction+q for q in queries], normalize_embeddings=True)
p_embeddings = model.encode(passages, normalize_embeddings=True)
scores = q_embeddings @ p_embeddings.T
```
#### Using Langchain
You can use `bge` in langchain like this:
```python
from langchain.embeddings import HuggingFaceBgeEmbeddings
model_name = "BAAI/bge-large-en-v1.5"
model_kwargs = {'device': 'cuda'}
encode_kwargs = {'normalize_embeddings': True} # set True to compute cosine similarity
model = HuggingFaceBgeEmbeddings(
model_name=model_name,
model_kwargs=model_kwargs,
encode_kwargs=encode_kwargs,
query_instruction="为这个句子生成表示以用于检索相关文章:"
)
model.query_instruction = "为这个句子生成表示以用于检索相关文章:"
```
#### Using HuggingFace Transformers
With the transformers package, you can use the model like this: First, you pass your input through the transformer model, then you select the last hidden state of the first token (i.e., [CLS]) as the sentence embedding.
```python
from transformers import AutoTokenizer, AutoModel
import torch
# Sentences we want sentence embeddings for
sentences = ["样例数据-1", "样例数据-2"]
# Load model from HuggingFace Hub
tokenizer = AutoTokenizer.from_pretrained('BAAI/bge-large-zh-v1.5')
model = AutoModel.from_pretrained('BAAI/bge-large-zh-v1.5')
model.eval()
# Tokenize sentences
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
# for s2p(short query to long passage) retrieval task, add an instruction to query (not add instruction for passages)
# encoded_input = tokenizer([instruction + q for q in queries], padding=True, truncation=True, return_tensors='pt')
# Compute token embeddings
with torch.no_grad():
model_output = model(**encoded_input)
# Perform pooling. In this case, cls pooling.
sentence_embeddings = model_output[0][:, 0]
# normalize embeddings
sentence_embeddings = torch.nn.functional.normalize(sentence_embeddings, p=2, dim=1)
print("Sentence embeddings:", sentence_embeddings)
```
### Usage for Reranker
Different from embedding model, reranker uses question and document as input and directly output similarity instead of embedding.
You can get a relevance score by inputting query and passage to the reranker.
The reranker is optimized based cross-entropy loss, so the relevance score is not bounded to a specific range.
#### Using FlagEmbedding
```
pip install -U FlagEmbedding
```
Get relevance scores (higher scores indicate more relevance):
```python
from FlagEmbedding import FlagReranker
reranker = FlagReranker('BAAI/bge-reranker-large', use_fp16=True) # Setting use_fp16 to True speeds up computation with a slight performance degradation
score = reranker.compute_score(['query', 'passage'])
print(score)
scores = reranker.compute_score([['what is panda?', 'hi'], ['what is panda?', 'The giant panda (Ailuropoda melanoleuca), sometimes called a panda bear or simply panda, is a bear species endemic to China.']])
print(scores)
```
#### Using Huggingface transformers
```python
import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained('BAAI/bge-reranker-large')
model = AutoModelForSequenceClassification.from_pretrained('BAAI/bge-reranker-large')
model.eval()
pairs = [['what is panda?', 'hi'], ['what is panda?', 'The giant panda (Ailuropoda melanoleuca), sometimes called a panda bear or simply panda, is a bear species endemic to China.']]
with torch.no_grad():
inputs = tokenizer(pairs, padding=True, truncation=True, return_tensors='pt', max_length=512)
scores = model(**inputs, return_dict=True).logits.view(-1, ).float()
print(scores)
```
## Evaluation
`baai-general-embedding` models achieve **state-of-the-art performance on both MTEB and C-MTEB leaderboard!**
For more details and evaluation tools see our [scripts](https://github.com/FlagOpen/FlagEmbedding/blob/master/C_MTEB/README.md).
- **MTEB**:
| Model Name | Dimension | Sequence Length | Average (56) | Retrieval (15) |Clustering (11) | Pair Classification (3) | Reranking (4) | STS (10) | Summarization (1) | Classification (12) |
|:----:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| [BAAI/bge-large-en-v1.5](https://huggingface.co/BAAI/bge-large-en-v1.5) | 1024 | 512 | **64.23** | **54.29** | 46.08 | 87.12 | 60.03 | 83.11 | 31.61 | 75.97 |
| [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5) | 768 | 512 | 63.55 | 53.25 | 45.77 | 86.55 | 58.86 | 82.4 | 31.07 | 75.53 |
| [BAAI/bge-small-en-v1.5](https://huggingface.co/BAAI/bge-small-en-v1.5) | 384 | 512 | 62.17 |51.68 | 43.82 | 84.92 | 58.36 | 81.59 | 30.12 | 74.14 |
| [bge-large-en](https://huggingface.co/BAAI/bge-large-en) | 1024 | 512 | 63.98 | 53.9 | 46.98 | 85.8 | 59.48 | 81.56 | 32.06 | 76.21 |
| [bge-base-en](https://huggingface.co/BAAI/bge-base-en) | 768 | 512 | 63.36 | 53.0 | 46.32 | 85.86 | 58.7 | 81.84 | 29.27 | 75.27 |
| [gte-large](https://huggingface.co/thenlper/gte-large) | 1024 | 512 | 63.13 | 52.22 | 46.84 | 85.00 | 59.13 | 83.35 | 31.66 | 73.33 |
| [gte-base](https://huggingface.co/thenlper/gte-base) | 768 | 512 | 62.39 | 51.14 | 46.2 | 84.57 | 58.61 | 82.3 | 31.17 | 73.01 |
| [e5-large-v2](https://huggingface.co/intfloat/e5-large-v2) | 1024| 512 | 62.25 | 50.56 | 44.49 | 86.03 | 56.61 | 82.05 | 30.19 | 75.24 |
| [bge-small-en](https://huggingface.co/BAAI/bge-small-en) | 384 | 512 | 62.11 | 51.82 | 44.31 | 83.78 | 57.97 | 80.72 | 30.53 | 74.37 |
| [instructor-xl](https://huggingface.co/hkunlp/instructor-xl) | 768 | 512 | 61.79 | 49.26 | 44.74 | 86.62 | 57.29 | 83.06 | 32.32 | 61.79 |
| [e5-base-v2](https://huggingface.co/intfloat/e5-base-v2) | 768 | 512 | 61.5 | 50.29 | 43.80 | 85.73 | 55.91 | 81.05 | 30.28 | 73.84 |
| [gte-small](https://huggingface.co/thenlper/gte-small) | 384 | 512 | 61.36 | 49.46 | 44.89 | 83.54 | 57.7 | 82.07 | 30.42 | 72.31 |
| [text-embedding-ada-002](https://platform.openai.com/docs/guides/embeddings) | 1536 | 8192 | 60.99 | 49.25 | 45.9 | 84.89 | 56.32 | 80.97 | 30.8 | 70.93 |
| [e5-small-v2](https://huggingface.co/intfloat/e5-base-v2) | 384 | 512 | 59.93 | 49.04 | 39.92 | 84.67 | 54.32 | 80.39 | 31.16 | 72.94 |
| [sentence-t5-xxl](https://huggingface.co/sentence-transformers/sentence-t5-xxl) | 768 | 512 | 59.51 | 42.24 | 43.72 | 85.06 | 56.42 | 82.63 | 30.08 | 73.42 |
| [all-mpnet-base-v2](https://huggingface.co/sentence-transformers/all-mpnet-base-v2) | 768 | 514 | 57.78 | 43.81 | 43.69 | 83.04 | 59.36 | 80.28 | 27.49 | 65.07 |
| [sgpt-bloom-7b1-msmarco](https://huggingface.co/bigscience/sgpt-bloom-7b1-msmarco) | 4096 | 2048 | 57.59 | 48.22 | 38.93 | 81.9 | 55.65 | 77.74 | 33.6 | 66.19 |
- **C-MTEB**:
We create the benchmark C-MTEB for Chinese text embedding which consists of 31 datasets from 6 tasks.
Please refer to [C_MTEB](https://github.com/FlagOpen/FlagEmbedding/blob/master/C_MTEB/README.md) for a detailed introduction.
| Model | Embedding dimension | Avg | Retrieval | STS | PairClassification | Classification | Reranking | Clustering |
|:-------------------------------|:--------:|:--------:|:--------:|:--------:|:--------:|:--------:|:--------:|:--------:|
| [**BAAI/bge-large-zh-v1.5**](https://huggingface.co/BAAI/bge-large-zh-v1.5) | 1024 | **64.53** | 70.46 | 56.25 | 81.6 | 69.13 | 65.84 | 48.99 |
| [BAAI/bge-base-zh-v1.5](https://huggingface.co/BAAI/bge-base-zh-v1.5) | 768 | 63.13 | 69.49 | 53.72 | 79.75 | 68.07 | 65.39 | 47.53 |
| [BAAI/bge-small-zh-v1.5](https://huggingface.co/BAAI/bge-small-zh-v1.5) | 512 | 57.82 | 61.77 | 49.11 | 70.41 | 63.96 | 60.92 | 44.18 |
| [BAAI/bge-large-zh](https://huggingface.co/BAAI/bge-large-zh) | 1024 | 64.20 | 71.53 | 54.98 | 78.94 | 68.32 | 65.11 | 48.39 |
| [bge-large-zh-noinstruct](https://huggingface.co/BAAI/bge-large-zh-noinstruct) | 1024 | 63.53 | 70.55 | 53 | 76.77 | 68.58 | 64.91 | 50.01 |
| [BAAI/bge-base-zh](https://huggingface.co/BAAI/bge-base-zh) | 768 | 62.96 | 69.53 | 54.12 | 77.5 | 67.07 | 64.91 | 47.63 |
| [multilingual-e5-large](https://huggingface.co/intfloat/multilingual-e5-large) | 1024 | 58.79 | 63.66 | 48.44 | 69.89 | 67.34 | 56.00 | 48.23 |
| [BAAI/bge-small-zh](https://huggingface.co/BAAI/bge-small-zh) | 512 | 58.27 | 63.07 | 49.45 | 70.35 | 63.64 | 61.48 | 45.09 |
| [m3e-base](https://huggingface.co/moka-ai/m3e-base) | 768 | 57.10 | 56.91 | 50.47 | 63.99 | 67.52 | 59.34 | 47.68 |
| [m3e-large](https://huggingface.co/moka-ai/m3e-large) | 1024 | 57.05 | 54.75 | 50.42 | 64.3 | 68.2 | 59.66 | 48.88 |
| [multilingual-e5-base](https://huggingface.co/intfloat/multilingual-e5-base) | 768 | 55.48 | 61.63 | 46.49 | 67.07 | 65.35 | 54.35 | 40.68 |
| [multilingual-e5-small](https://huggingface.co/intfloat/multilingual-e5-small) | 384 | 55.38 | 59.95 | 45.27 | 66.45 | 65.85 | 53.86 | 45.26 |
| [text-embedding-ada-002(OpenAI)](https://platform.openai.com/docs/guides/embeddings/what-are-embeddings) | 1536 | 53.02 | 52.0 | 43.35 | 69.56 | 64.31 | 54.28 | 45.68 |
| [luotuo](https://huggingface.co/silk-road/luotuo-bert-medium) | 1024 | 49.37 | 44.4 | 42.78 | 66.62 | 61 | 49.25 | 44.39 |
| [text2vec-base](https://huggingface.co/shibing624/text2vec-base-chinese) | 768 | 47.63 | 38.79 | 43.41 | 67.41 | 62.19 | 49.45 | 37.66 |
| [text2vec-large](https://huggingface.co/GanymedeNil/text2vec-large-chinese) | 1024 | 47.36 | 41.94 | 44.97 | 70.86 | 60.66 | 49.16 | 30.02 |
- **Reranking**:
See [C_MTEB](https://github.com/FlagOpen/FlagEmbedding/blob/master/C_MTEB/) for evaluation script.
| Model | T2Reranking | T2RerankingZh2En\* | T2RerankingEn2Zh\* | MMarcoReranking | CMedQAv1 | CMedQAv2 | Avg |
|:-------------------------------|:--------:|:--------:|:--------:|:--------:|:--------:|:--------:|:--------:|
| text2vec-base-multilingual | 64.66 | 62.94 | 62.51 | 14.37 | 48.46 | 48.6 | 50.26 |
| multilingual-e5-small | 65.62 | 60.94 | 56.41 | 29.91 | 67.26 | 66.54 | 57.78 |
| multilingual-e5-large | 64.55 | 61.61 | 54.28 | 28.6 | 67.42 | 67.92 | 57.4 |
| multilingual-e5-base | 64.21 | 62.13 | 54.68 | 29.5 | 66.23 | 66.98 | 57.29 |
| m3e-base | 66.03 | 62.74 | 56.07 | 17.51 | 77.05 | 76.76 | 59.36 |
| m3e-large | 66.13 | 62.72 | 56.1 | 16.46 | 77.76 | 78.27 | 59.57 |
| bge-base-zh-v1.5 | 66.49 | 63.25 | 57.02 | 29.74 | 80.47 | 84.88 | 63.64 |
| bge-large-zh-v1.5 | 65.74 | 63.39 | 57.03 | 28.74 | 83.45 | 85.44 | 63.97 |
| [BAAI/bge-reranker-base](https://huggingface.co/BAAI/bge-reranker-base) | 67.28 | 63.95 | 60.45 | 35.46 | 81.26 | 84.1 | 65.42 |
| [BAAI/bge-reranker-large](https://huggingface.co/BAAI/bge-reranker-large) | 67.6 | 64.03 | 61.44 | 37.16 | 82.15 | 84.18 | 66.09 |
\* : T2RerankingZh2En and T2RerankingEn2Zh are cross-language retrieval tasks
## Train
### BAAI Embedding
We pre-train the models using [retromae](https://github.com/staoxiao/RetroMAE) and train them on large-scale pairs data using contrastive learning.
**You can fine-tune the embedding model on your data following our [examples](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune).**
We also provide a [pre-train example](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/pretrain).
Note that the goal of pre-training is to reconstruct the text, and the pre-trained model cannot be used for similarity calculation directly, it needs to be fine-tuned.
More training details for bge see [baai_general_embedding](https://github.com/FlagOpen/FlagEmbedding/blob/master/FlagEmbedding/baai_general_embedding/README.md).
### BGE Reranker
Cross-encoder will perform full-attention over the input pair,
which is more accurate than embedding model (i.e., bi-encoder) but more time-consuming than embedding model.
Therefore, it can be used to re-rank the top-k documents returned by embedding model.
We train the cross-encoder on a multilingual pair data,
The data format is the same as embedding model, so you can fine-tune it easily following our [example](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/reranker).
More details please refer to [./FlagEmbedding/reranker/README.md](https://github.com/FlagOpen/FlagEmbedding/tree/master/FlagEmbedding/reranker)
## Contact
If you have any question or suggestion related to this project, feel free to open an issue or pull request.
You also can email Shitao Xiao(stxiao@baai.ac.cn) and Zheng Liu(liuzheng@baai.ac.cn).
## Citation
If you find this repository useful, please consider giving a star :star: and citation
```
@misc{bge_embedding,
title={C-Pack: Packaged Resources To Advance General Chinese Embedding},
author={Shitao Xiao and Zheng Liu and Peitian Zhang and Niklas Muennighoff},
year={2023},
eprint={2309.07597},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
```
## License
FlagEmbedding is licensed under the [MIT License](https://github.com/FlagOpen/FlagEmbedding/blob/master/LICENSE). The released models can be used for commercial purposes free of charge.
| [
-0.4917970299720764,
-0.9121562242507935,
0.39335909485816956,
0.15926150977611542,
-0.3644159436225891,
-0.27619844675064087,
-0.3187490701675415,
-0.2546616792678833,
0.4034213423728943,
0.3811470866203308,
-0.3493821918964386,
-0.8789252638816833,
-0.48434871435165405,
-0.061868757009506226,
-0.08562654256820679,
0.5569250583648682,
-0.05040394887328148,
0.14363285899162292,
0.052729532122612,
-0.25072580575942993,
-0.38095730543136597,
-0.25557446479797363,
-0.6599745154380798,
-0.2580225467681885,
0.3454954922199249,
0.22898080945014954,
0.5664677023887634,
0.7565454244613647,
0.29929855465888977,
0.27112576365470886,
-0.23612339794635773,
0.1565926969051361,
-0.47967153787612915,
-0.06917298585176468,
-0.20805604755878448,
-0.33379724621772766,
-0.4219249486923218,
0.1771097332239151,
0.6846937537193298,
0.45031237602233887,
-0.10390447080135345,
0.10425695776939392,
0.00692377844825387,
0.71429044008255,
-0.46325114369392395,
0.27861225605010986,
-0.5734079480171204,
0.03648480027914047,
-0.24258849024772644,
0.1513890027999878,
-0.5183275938034058,
-0.3853422999382019,
0.1603473275899887,
-0.6159512400627136,
0.08287999778985977,
0.2900417149066925,
1.307506799697876,
0.20688290894031525,
-0.45559000968933105,
-0.16615848243236542,
-0.12169365584850311,
0.994102954864502,
-1.0095791816711426,
0.6872597932815552,
0.5090594291687012,
0.25554022192955017,
-0.0781526267528534,
-0.8174024224281311,
-0.3616727888584137,
-0.16660532355308533,
-0.20328503847122192,
0.4233214557170868,
0.0256485752761364,
0.019987745210528374,
0.3170413672924042,
0.5985334515571594,
-0.5553396344184875,
0.0947275385260582,
-0.06872905045747757,
-0.15926045179367065,
0.7642083168029785,
-0.1649675816297531,
0.45869553089141846,
-0.5581547021865845,
-0.29989349842071533,
-0.3680296242237091,
-0.8007943630218506,
0.04600268974900246,
0.3670075833797455,
0.137363001704216,
-0.39358171820640564,
0.5685566663742065,
-0.22973068058490753,
0.6109962463378906,
0.05062193423509598,
0.0516192652285099,
0.5265907049179077,
-0.374182790517807,
-0.20757225155830383,
-0.14727148413658142,
0.9336583018302917,
0.3954954743385315,
-0.057964473962783813,
0.05175301060080528,
-0.32384660840034485,
-0.09511028230190277,
-0.09334386885166168,
-0.8982179164886475,
-0.24408532679080963,
0.19886384904384613,
-0.7663068175315857,
-0.18192589282989502,
0.23823782801628113,
-0.7802329063415527,
0.10407708585262299,
0.0016007493250072002,
0.585857629776001,
-0.7480831146240234,
-0.07390255481004715,
0.31346237659454346,
-0.2118411660194397,
0.4023590385913849,
-0.003231465583667159,
-0.6287349462509155,
-0.24859385192394257,
0.5332337617874146,
0.860173761844635,
0.16767533123493195,
-0.07676992565393448,
-0.3748384118080139,
0.03796732425689697,
-0.1430635154247284,
0.3286088705062866,
-0.5217965245246887,
-0.17894569039344788,
0.21137920022010803,
0.38862374424934387,
-0.10362780094146729,
-0.291079580783844,
0.8852188587188721,
-0.5387099981307983,
0.36164164543151855,
-0.3797711431980133,
-0.8259833455085754,
-0.503160297870636,
0.09275687485933304,
-0.8069127202033997,
1.1115566492080688,
-0.09858797490596771,
-0.8519017696380615,
0.08340819180011749,
-0.6473492980003357,
-0.21710936725139618,
-0.25654977560043335,
-0.033439960330724716,
-0.6009854674339294,
-0.11823835223913193,
0.38206779956817627,
0.586105227470398,
-0.22970585525035858,
0.03495078533887863,
-0.3490271270275116,
-0.5734331607818604,
-0.007032394874840975,
-0.23192544281482697,
1.0995248556137085,
0.2569870948791504,
-0.3371439576148987,
-0.2211025208234787,
-0.43995827436447144,
0.12060470134019852,
0.3049491047859192,
-0.3136955797672272,
-0.34632110595703125,
0.22229573130607605,
0.23741373419761658,
0.0519283302128315,
0.532094419002533,
-0.7079308032989502,
0.18408465385437012,
-0.5881211161613464,
0.596612274646759,
0.5611453056335449,
0.17341366410255432,
0.24086976051330566,
-0.4767483174800873,
0.28925153613090515,
-0.023568883538246155,
-0.03820270299911499,
-0.2231236845254898,
-0.5332085490226746,
-0.6302730441093445,
-0.3037233054637909,
0.7439141869544983,
0.6626705527305603,
-0.8764532208442688,
0.6678094267845154,
-0.4590986669063568,
-0.6218410730361938,
-0.9469890594482422,
0.13509726524353027,
0.5358606576919556,
0.002314120065420866,
0.7215077877044678,
-0.13861384987831116,
-0.4815653860569,
-0.938438355922699,
-0.06217969208955765,
0.07854179292917252,
-0.09143476188182831,
0.5395910739898682,
0.617742121219635,
-0.3207966387271881,
0.4096141755580902,
-0.7361123561859131,
-0.35045313835144043,
-0.23097604513168335,
-0.07369431853294373,
0.34056612849235535,
0.49303698539733887,
0.6417325735092163,
-1.0118588209152222,
-0.5865143537521362,
-0.008065720088779926,
-0.7820898294448853,
0.07667311280965805,
0.036675386130809784,
-0.30095741152763367,
0.17536960542201996,
0.612797737121582,
-0.4129248559474945,
0.23894579708576202,
0.47879064083099365,
-0.25913238525390625,
0.2828845679759979,
-0.02090475521981716,
0.14730790257453918,
-1.330299973487854,
0.022242818027734756,
0.30332544445991516,
-0.11486539244651794,
-0.27505314350128174,
0.5225419402122498,
0.17051756381988525,
0.2073279321193695,
-0.34719759225845337,
0.5901947021484375,
-0.5294108390808105,
0.25197452306747437,
0.12947365641593933,
0.6173920035362244,
-0.0899772047996521,
0.5147316455841064,
-0.04709700495004654,
0.7206954956054688,
0.37333211302757263,
-0.4015792906284332,
0.12459217011928558,
0.5308554172515869,
-0.44731444120407104,
0.08171137422323227,
-0.6624714732170105,
-0.07638781517744064,
-0.07412522286176682,
0.16863416135311127,
-0.8326302170753479,
-0.0733034536242485,
0.26644769310951233,
-0.5769767761230469,
0.5308395624160767,
-0.3013218343257904,
-0.49975740909576416,
-0.3710670471191406,
-0.9166911840438843,
0.1475072205066681,
0.5871821641921997,
-0.6514768600463867,
0.22120033204555511,
0.2969546318054199,
0.09350575506687164,
-0.7782111763954163,
-0.8228302001953125,
-0.15640223026275635,
-0.002264339243993163,
-0.5303692817687988,
0.5489431023597717,
-0.02883104979991913,
0.25723689794540405,
0.19024287164211273,
-0.07193037867546082,
0.15140888094902039,
0.11663859337568283,
-0.0029365697409957647,
0.24749252200126648,
-0.4802510738372803,
0.0476856529712677,
0.275939404964447,
0.1315978318452835,
-0.19963866472244263,
-0.16270552575588226,
0.44453224539756775,
-0.1731950342655182,
-0.35953885316848755,
-0.2387179136276245,
0.34303024411201477,
0.2581000030040741,
-0.4079892933368683,
0.5978900790214539,
0.9997373223304749,
-0.37799617648124695,
-0.08413289487361908,
-0.6667248010635376,
-0.12422462552785873,
-0.4862056374549866,
0.4579135477542877,
-0.32667216658592224,
-0.9906607270240784,
0.3992321789264679,
-0.020395895466208458,
0.218032568693161,
0.6829168200492859,
0.3386148512363434,
-0.1428033858537674,
1.0860356092453003,
0.3779831826686859,
-0.2722134292125702,
0.6689903140068054,
-0.6675193309783936,
0.17887775599956512,
-1.1849076747894287,
-0.04504662752151489,
-0.39903220534324646,
-0.39822685718536377,
-1.3405680656433105,
-0.5106154680252075,
0.06238797679543495,
0.2820959985256195,
-0.38379231095314026,
0.4338037371635437,
-0.5777703523635864,
0.15388894081115723,
0.48900970816612244,
0.2991540729999542,
-0.018452363088726997,
0.12543046474456787,
-0.4379253685474396,
-0.27333033084869385,
-0.615394115447998,
-0.5130186676979065,
1.0093634128570557,
0.48818039894104004,
0.6184115409851074,
0.36703652143478394,
0.8317365050315857,
0.1904895156621933,
0.09796921163797379,
-0.780764639377594,
0.5773665308952332,
-0.5281172394752502,
-0.5766896605491638,
-0.3623805642127991,
-0.4928167462348938,
-1.1266753673553467,
0.40084049105644226,
-0.27620500326156616,
-0.7827890515327454,
0.10814967751502991,
-0.19935756921768188,
-0.030741354450583458,
0.47183531522750854,
-0.6826187968254089,
1.0363374948501587,
-0.10903039574623108,
-0.3109346330165863,
-0.07844258099794388,
-0.4234257936477661,
0.32927194237709045,
0.20091412961483002,
0.08322131633758545,
0.07470317929983139,
-0.26243671774864197,
0.7681471109390259,
-0.18991416692733765,
0.6442910432815552,
-0.1636548787355423,
0.15086346864700317,
0.4350244402885437,
-0.18594372272491455,
0.5594721436500549,
0.08093002438545227,
-0.18204768002033234,
0.30464738607406616,
0.09054489433765411,
-0.48835110664367676,
-0.5022341012954712,
0.8901168704032898,
-0.6806955933570862,
-0.7152196168899536,
-0.3792705833911896,
-0.25338515639305115,
0.18115606904029846,
0.4426770508289337,
0.3571534752845764,
0.22144240140914917,
-0.10434862226247787,
0.6539531946182251,
0.9369509220123291,
-0.5519316792488098,
0.38803672790527344,
0.350559264421463,
-0.2768425941467285,
-0.5992287993431091,
1.1354446411132812,
0.2656397819519043,
-0.05330642685294151,
0.6816064715385437,
0.01351808663457632,
-0.28277260065078735,
-0.5373090505599976,
-0.4611698389053345,
0.6434146165847778,
-0.600497305393219,
-0.16940733790397644,
-0.6488251090049744,
-0.4323805570602417,
-0.43788644671440125,
0.022176872938871384,
-0.2742101550102234,
-0.2864987552165985,
-0.18045517802238464,
-0.28421303629875183,
0.23849305510520935,
0.48024874925613403,
0.12320030480623245,
0.08978405594825745,
-0.7190878391265869,
0.21328915655612946,
-0.09880057722330093,
0.4449179470539093,
0.07253655791282654,
-0.546136736869812,
-0.6290742754936218,
0.17635180056095123,
-0.4961189925670624,
-1.097845196723938,
0.3527429401874542,
0.0763259083032608,
0.8483840823173523,
0.3333483338356018,
-0.01122608594596386,
0.41526830196380615,
-0.5310884118080139,
1.081298828125,
-0.10962003469467163,
-0.7951414585113525,
0.5159289240837097,
-0.28411999344825745,
0.16692203283309937,
0.5661880970001221,
0.6615703105926514,
-0.46920469403266907,
-0.27738773822784424,
-0.4974641799926758,
-0.9762814044952393,
0.49247539043426514,
0.1843331754207611,
0.043226901441812515,
-0.3003985583782196,
0.3328987658023834,
-0.18441903591156006,
-0.0023139920085668564,
-0.8095731139183044,
-0.7547932863235474,
-0.33806613087654114,
-0.35643884539604187,
-0.0979190468788147,
-0.28025397658348083,
0.20887281000614166,
-0.29385653138160706,
1.0127955675125122,
0.004170624539256096,
0.5556016564369202,
0.36256203055381775,
-0.33087679743766785,
0.24234871566295624,
0.25593316555023193,
0.30133670568466187,
0.18955889344215393,
-0.3912491500377655,
-0.14632770419120789,
0.3187618851661682,
-0.5581767559051514,
-0.06475118547677994,
0.31365451216697693,
-0.47415584325790405,
0.19585788249969482,
0.3093602955341339,
0.7157406806945801,
0.45411843061447144,
-0.4482158422470093,
0.5723576545715332,
0.11585415154695511,
-0.19031701982021332,
-0.3024125397205353,
-0.07244732975959778,
0.3090818226337433,
0.25450772047042847,
0.11810966581106186,
-0.4614958167076111,
0.26804250478744507,
-0.5359582901000977,
0.3429628610610962,
0.45435860753059387,
-0.38470590114593506,
-0.0678970068693161,
0.70831298828125,
0.034975845366716385,
-0.021308057010173798,
0.4843420386314392,
-0.5078408718109131,
-0.7446918487548828,
0.4296441674232483,
0.3791488707065582,
0.8493991494178772,
-0.1474267691373825,
0.2266235500574112,
0.8720858097076416,
0.5383305549621582,
-0.32331085205078125,
0.36064058542251587,
0.07824323326349258,
-0.5908493399620056,
-0.4484456181526184,
-0.5486404895782471,
-0.05894216150045395,
0.26951584219932556,
-0.5846852660179138,
0.35474514961242676,
-0.4215252995491028,
-0.1495818942785263,
0.031722791492938995,
0.44416430592536926,
-0.7529358863830566,
0.1280055046081543,
0.0456489622592926,
1.1375863552093506,
-0.5906219482421875,
0.8449050188064575,
1.0035991668701172,
-0.969935953617096,
-0.7814849615097046,
0.08019335567951202,
-0.13211701810359955,
-0.6157646775245667,
0.37970051169395447,
0.2669503688812256,
0.1790168732404709,
0.0628160610795021,
-0.4824950397014618,
-0.9240347146987915,
1.586942195892334,
0.038656748831272125,
-0.5351653695106506,
-0.0627468153834343,
-0.2851398289203644,
0.4628412127494812,
-0.3825380802154541,
0.451323926448822,
0.41685330867767334,
0.6175791025161743,
-0.18728259205818176,
-0.6515793204307556,
0.5485309958457947,
-0.3199205994606018,
0.23725971579551697,
0.04955912381410599,
-0.984024703502655,
0.8381196856498718,
0.046198565512895584,
-0.3352476954460144,
0.19697697460651398,
0.731243908405304,
0.2325790673494339,
0.42402613162994385,
0.24393317103385925,
0.9391081929206848,
0.6669497489929199,
-0.22529436647891998,
1.1691102981567383,
-0.26123324036598206,
0.635422945022583,
0.8789224624633789,
0.17103832960128784,
1.1311215162277222,
0.08972802758216858,
-0.2383190542459488,
0.6788000464439392,
0.8010855317115784,
-0.32304438948631287,
0.4705699682235718,
0.018947070464491844,
0.06136717274785042,
-0.3231780230998993,
0.05400153994560242,
-0.5413292646408081,
0.29115355014801025,
0.3292744755744934,
-0.5224844217300415,
0.04530218616127968,
-0.29604601860046387,
0.12072090059518814,
0.10746816545724869,
-0.022620033472776413,
0.5829463005065918,
0.3159216642379761,
-0.47084447741508484,
0.672248899936676,
0.23842239379882812,
1.0218559503555298,
-0.4089002311229706,
-0.15431565046310425,
-0.28587907552719116,
-0.11535292118787766,
-0.22934561967849731,
-0.790655791759491,
-0.08192181587219238,
-0.26000723242759705,
-0.2086254209280014,
0.08522395044565201,
0.5456407070159912,
-0.6298020482063293,
-0.4112842082977295,
0.5716066360473633,
0.5203923583030701,
0.2451905906200409,
0.18083496391773224,
-1.1097532510757446,
0.03155858442187309,
0.38683757185935974,
-0.5384969115257263,
0.31043702363967896,
0.47696754336357117,
-0.06284209340810776,
0.5959566235542297,
0.5904459357261658,
0.06490226835012436,
-0.01969398558139801,
0.04061232879757881,
0.5199528932571411,
-0.9449971914291382,
-0.3085385859012604,
-0.6386343240737915,
0.3643895387649536,
-0.3301919102668762,
0.0221808310598135,
0.8165912628173828,
0.7114246487617493,
1.084007740020752,
-0.05303525552153587,
0.8228715658187866,
-0.11570622026920319,
0.41215577721595764,
-0.6082319021224976,
0.9007401466369629,
-1.0377278327941895,
0.2609661817550659,
-0.35725247859954834,
-0.9467119574546814,
-0.15897879004478455,
0.707438588142395,
-0.3395439088344574,
0.23371893167495728,
0.6871347427368164,
0.9879443645477295,
-0.25833117961883545,
-0.1929139345884323,
0.3111801743507385,
0.44082456827163696,
0.15963251888751984,
0.8009560704231262,
0.3490568697452545,
-0.9881619811058044,
0.6472155451774597,
-0.2394942045211792,
0.12903288006782532,
-0.525607705116272,
-0.6428669691085815,
-0.931767463684082,
-0.7401321530342102,
-0.42517736554145813,
-0.30864813923835754,
-0.04586928337812424,
0.9298316240310669,
0.34564995765686035,
-0.7558746337890625,
-0.06993477046489716,
0.2788669466972351,
0.4898790717124939,
-0.2695677578449249,
-0.27795010805130005,
0.6664249300956726,
-0.07666083425283432,
-0.9447400569915771,
0.3316705524921417,
-0.08436305820941925,
-0.06884507834911346,
-0.05372384190559387,
-0.24726758897304535,
-0.8908063173294067,
0.12003599107265472,
0.6033106446266174,
0.25743740797042847,
-0.9210304021835327,
-0.4236951172351837,
0.085548996925354,
-0.26322922110557556,
-0.1556014120578766,
0.17063041031360626,
-0.41602054238319397,
0.36280158162117004,
0.6252936124801636,
0.7770823240280151,
0.6671158671379089,
-0.04740946739912033,
0.20530149340629578,
-0.6183277368545532,
-0.08610108494758606,
-0.042357608675956726,
0.7162543535232544,
0.36767950654029846,
-0.30395805835723877,
0.910102903842926,
0.2162483185529709,
-0.4089943766593933,
-0.7599421739578247,
0.03271307051181793,
-1.0642472505569458,
-0.3319217562675476,
1.127224326133728,
-0.42954444885253906,
-0.25271299481391907,
0.27581310272216797,
-0.19327957928180695,
0.5534521341323853,
-0.49581798911094666,
0.47473666071891785,
0.8054698705673218,
0.438792884349823,
-0.15727850794792175,
-0.9182953238487244,
0.315695583820343,
0.6267865896224976,
-0.2778308391571045,
-0.342660516500473,
0.3409629166126251,
0.48798197507858276,
0.2409132719039917,
0.11801017075777054,
-0.24918068945407867,
0.32204949855804443,
-0.07588997483253479,
-0.008661134168505669,
-0.1395338475704193,
0.2484905868768692,
-0.18418358266353607,
0.0261821448802948,
-0.16862145066261292,
-0.31124991178512573
] |
google/long-t5-tglobal-large | google | "2023-09-11T20:35:44Z" | 111,251 | 12 | transformers | [
"transformers",
"pytorch",
"jax",
"safetensors",
"longt5",
"text2text-generation",
"en",
"arxiv:2112.07916",
"arxiv:1912.08777",
"arxiv:1910.10683",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | text2text-generation | "2022-04-16T11:20:39Z" | ---
license: apache-2.0
language: en
---
# LongT5 (transient-global attention, large-sized model)
LongT5 model pre-trained on English language. The model was introduced in the paper [LongT5: Efficient Text-To-Text Transformer for Long Sequences](https://arxiv.org/pdf/2112.07916.pdf) by Guo et al. and first released in [the LongT5 repository](https://github.com/google-research/longt5). All the model architecture and configuration can be found in [Flaxformer repository](https://github.com/google/flaxformer) which uses another Google research project repository [T5x](https://github.com/google-research/t5x).
Disclaimer: The team releasing LongT5 did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
LongT5 model is an encoder-decoder transformer pre-trained in a text-to-text denoising generative setting ([Pegasus-like generation pre-training](https://arxiv.org/pdf/1912.08777.pdf)). LongT5 model is an extension of [T5 model](https://arxiv.org/pdf/1910.10683.pdf), and it enables using one of the two different efficient attention mechanisms - (1) Local attention, or (2) Transient-Global attention. The usage of attention sparsity patterns allows the model to efficiently handle input sequence.
LongT5 is particularly effective when fine-tuned for text generation (summarization, question answering) which requires handling long input sequences (up to 16,384 tokens).
Results of LongT5 (transient-global attention, large-sized model) fine-tuned on multiple (summarization, QA) tasks.
| Dataset | Rouge-1 | Rouge-2 | Rouge-Lsum |
| --- | --- | --- | --- |
| arXiv (16k input) | 48.28 | 21.63 | 44.11 |
| PubMed (16k input) | 49.98 | 24.69 | 46.46 |
| BigPatent (16k input) | 70.38 | 56.81 | 62.73 |
| MultiNews (8k input) | 47.18 | 18.44 | 24.18 |
| MediaSum (4k input) | 35.54 | 19.04 | 32.20 |
| CNN / DailyMail (4k input) | 42.49 | 20.51 | 40.18 |
| Dataset | EM | F1 |
| --- | --- | --- |
| Natural Questions (4k input) | 60.77 | 65.38 |
| Trivia QA (16k input) | 78.38 | 82.45 |
## Intended uses & limitations
The model is mostly meant to be fine-tuned on a supervised dataset. See the [model hub](https://huggingface.co/models?search=longt5) to look for fine-tuned versions on a task that interests you.
### How to use
```python
from transformers import AutoTokenizer, LongT5Model
tokenizer = AutoTokenizer.from_pretrained("google/long-t5-tglobal-large")
model = LongT5Model.from_pretrained("google/long-t5-tglobal-large")
inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
outputs = model(**inputs)
last_hidden_states = outputs.last_hidden_state
```
### BibTeX entry and citation info
```bibtex
@article{guo2021longt5,
title={LongT5: Efficient Text-To-Text Transformer for Long Sequences},
author={Guo, Mandy and Ainslie, Joshua and Uthus, David and Ontanon, Santiago and Ni, Jianmo and Sung, Yun-Hsuan and Yang, Yinfei},
journal={arXiv preprint arXiv:2112.07916},
year={2021}
}
``` | [
-0.5024816393852234,
-0.7226576805114746,
0.46855828166007996,
0.4091872274875641,
-0.22642286121845245,
-0.08167441189289093,
-0.35172611474990845,
-0.6865591406822205,
0.14496245980262756,
0.2502976357936859,
-0.5331780314445496,
-0.5398487448692322,
-0.6873886585235596,
0.45114102959632874,
-0.5005796551704407,
1.2362451553344727,
-0.11550389230251312,
-0.31788238883018494,
0.04746779799461365,
-0.17711055278778076,
-0.18735408782958984,
-0.5457332730293274,
-0.7079310417175293,
-0.32853731513023376,
0.8380711078643799,
-0.012006184086203575,
0.3899856507778168,
0.4261118173599243,
0.6424943208694458,
0.27292948961257935,
-0.23354193568229675,
0.0034275995567440987,
-0.6828409433364868,
-0.3027583658695221,
-0.029364485293626785,
-0.29086196422576904,
-0.7099049687385559,
-0.11540544778108597,
0.7354251146316528,
0.35535040497779846,
0.16929155588150024,
0.37013188004493713,
0.08066444844007492,
0.45491695404052734,
-0.38090890645980835,
0.1463516503572464,
-0.13193973898887634,
0.026226861402392387,
-0.23467876017093658,
0.15112438797950745,
-0.39432311058044434,
-0.3291068971157074,
0.13681192696094513,
-0.4406643807888031,
0.3908865749835968,
-0.02233426831662655,
1.1949195861816406,
0.2849488854408264,
-0.5995874404907227,
-0.14329807460308075,
-0.7087140679359436,
0.8677732348442078,
-0.7575377821922302,
0.5388586521148682,
0.13232378661632538,
0.249116450548172,
-0.12372620403766632,
-1.2038161754608154,
-0.786115288734436,
-0.18163150548934937,
-0.24101819097995758,
0.34590262174606323,
-0.1946716457605362,
0.19988508522510529,
0.573197603225708,
0.5602355003356934,
-0.6540550589561462,
0.05522458255290985,
-0.5884347558021545,
-0.041002511978149414,
0.6386519074440002,
-0.08867710828781128,
0.19764210283756256,
-0.323801189661026,
-0.5563899278640747,
0.014307222329080105,
-0.48731285333633423,
0.1730915606021881,
0.16855266690254211,
0.049113091081380844,
-0.378030389547348,
0.36596718430519104,
-0.1342197060585022,
0.5999760031700134,
0.3445723056793213,
-0.18458867073059082,
0.4150475263595581,
-0.551425039768219,
-0.3268706500530243,
-0.20618745684623718,
1.09575617313385,
0.20689766108989716,
0.23813797533512115,
-0.16960550844669342,
-0.22606304287910461,
-0.028888501226902008,
0.3001910448074341,
-1.0597227811813354,
0.09927564114332199,
0.335970014333725,
-0.4995238780975342,
-0.39543864130973816,
0.028488952666521072,
-0.7278848886489868,
0.010181959718465805,
-0.04772556200623512,
0.5314252376556396,
-0.43993449211120605,
-0.17840683460235596,
0.10672587156295776,
0.04682997241616249,
0.3913256525993347,
0.13035817444324493,
-0.8435398936271667,
0.18698783218860626,
0.41637200117111206,
0.9131311178207397,
-0.35624146461486816,
-0.34815531969070435,
-0.2453676164150238,
0.09966932237148285,
-0.1327538788318634,
0.5702312588691711,
-0.2477649748325348,
-0.2648376524448395,
-0.13309483230113983,
0.41035887598991394,
0.019364647567272186,
-0.1668560653924942,
0.8746748566627502,
-0.45076802372932434,
0.7247942090034485,
-0.18899455666542053,
-0.45923954248428345,
-0.23828743398189545,
0.26363563537597656,
-0.8364415764808655,
1.2306809425354004,
0.13730865716934204,
-0.9438261389732361,
0.33490294218063354,
-1.1876076459884644,
-0.25989481806755066,
-0.23473656177520752,
0.27175021171569824,
-0.8054311275482178,
-0.18844014406204224,
0.5251156091690063,
0.7016271352767944,
-0.27942752838134766,
0.4187489449977875,
-0.332303911447525,
-0.4046385884284973,
-0.04115287587046623,
-0.25742068886756897,
0.7409120798110962,
0.18580986559391022,
-0.5168036222457886,
0.4608287215232849,
-0.7714031338691711,
-0.22040921449661255,
0.3721349537372589,
-0.26243746280670166,
-0.05149403586983681,
-0.23445522785186768,
0.12898662686347961,
0.3987174332141876,
0.27869847416877747,
-0.527063250541687,
0.4136132001876831,
-0.47280797362327576,
0.8246546983718872,
0.5757176280021667,
-0.055375754833221436,
0.25845080614089966,
-0.35793522000312805,
0.3743581473827362,
0.44650086760520935,
0.21475528180599213,
-0.27559784054756165,
-0.24985477328300476,
-0.9288353323936462,
-0.2954590618610382,
0.4746672213077545,
0.39748093485832214,
-0.7378568649291992,
0.42521610856056213,
-0.7233981490135193,
-0.4827636778354645,
-0.5495704412460327,
-0.11563976109027863,
0.2739657759666443,
0.4485517740249634,
0.5775458216667175,
-0.17910777032375336,
-0.456655353307724,
-0.8961930274963379,
-0.19144338369369507,
0.29857000708580017,
0.0013358666328713298,
0.10531669110059738,
0.8178408145904541,
-0.31460893154144287,
0.8451176285743713,
-0.3644730746746063,
-0.25973254442214966,
-0.4841347634792328,
0.1898893564939499,
0.3743297755718231,
0.4163658320903778,
0.6644469499588013,
-0.6990300416946411,
-0.4954264760017395,
-0.31917592883110046,
-0.6858751773834229,
0.17006635665893555,
-0.17745710909366608,
-0.04804164543747902,
0.5707564949989319,
0.45120909810066223,
-1.0008981227874756,
0.44570282101631165,
0.35818973183631897,
-0.31771355867385864,
0.3086561858654022,
-0.04201090708374977,
0.05782615393400192,
-1.7543318271636963,
0.40217575430870056,
0.15299712121486664,
-0.44869285821914673,
-0.6133200526237488,
0.0314609557390213,
0.2403871864080429,
-0.1252640187740326,
-0.4513106346130371,
0.8216278553009033,
-0.7219857573509216,
0.05517556145787239,
0.033612996339797974,
0.05406729504466057,
-0.10132631659507751,
0.639998197555542,
0.00984146073460579,
0.8385722637176514,
0.23407065868377686,
-0.5462102890014648,
0.5112988948822021,
0.21939103305339813,
-0.3020927906036377,
0.2558225393295288,
-0.9292970299720764,
0.31144046783447266,
-0.23837535083293915,
0.5718691945075989,
-0.9399287700653076,
-0.3791016638278961,
0.13263334333896637,
-0.6301214694976807,
0.41583213210105896,
-0.06538211554288864,
-0.5731214284896851,
-0.8339842557907104,
-0.4233551323413849,
0.4950225055217743,
0.6127115488052368,
-0.6277198791503906,
0.5000073313713074,
0.03357812389731407,
-0.05081355199217796,
-0.6971054077148438,
-0.5674708485603333,
0.020716728642582893,
-0.4631706774234772,
-0.7680628299713135,
0.6554262638092041,
-0.11174264550209045,
0.24298961460590363,
-0.2375180572271347,
0.18382111191749573,
0.14836497604846954,
-0.2450147420167923,
0.09692642837762833,
0.10289950668811798,
-0.23867341876029968,
0.20593594014644623,
-0.25828617811203003,
-0.16922080516815186,
0.04350212588906288,
-0.231441929936409,
0.6260857582092285,
-0.11007583886384964,
0.03965718299150467,
-0.5821533203125,
0.3700646758079529,
0.8434300422668457,
-0.35764363408088684,
0.6943919062614441,
1.1591613292694092,
-0.42910754680633545,
-0.03827628120779991,
-0.7118681073188782,
-0.32093051075935364,
-0.48543137311935425,
0.5718100070953369,
-0.5219948887825012,
-0.8545435070991516,
0.6669104099273682,
0.07518323510885239,
0.18407239019870758,
0.7683081030845642,
0.6258199214935303,
0.07092314958572388,
1.1073458194732666,
0.8463302254676819,
-0.30170321464538574,
0.6066842079162598,
-0.34437090158462524,
0.3659333884716034,
-0.7216402292251587,
-0.07231410592794418,
-0.20223744213581085,
-0.41201385855674744,
-0.8053863644599915,
-0.278812438249588,
0.430673748254776,
-0.28146690130233765,
-0.43295928835868835,
0.20553748309612274,
-0.6518710255622864,
0.2073194682598114,
0.6994800567626953,
0.03168009966611862,
0.07792508602142334,
-0.08077264577150345,
0.15911954641342163,
-0.05700603500008583,
-0.5687864422798157,
-0.18478712439537048,
1.1069258451461792,
0.6273849010467529,
0.6812160015106201,
0.16559793055057526,
0.7806788682937622,
0.039639491587877274,
0.12394963949918747,
-0.8017507791519165,
0.47774073481559753,
-0.07495398074388504,
-0.5696341395378113,
-0.3375781178474426,
-0.3491966426372528,
-1.2333382368087769,
-0.1333840936422348,
-0.12201432883739471,
-0.6343643069267273,
-0.06783056259155273,
-0.034797731786966324,
-0.5409364104270935,
0.26588037610054016,
-0.8161580562591553,
1.0489734411239624,
-0.11268632113933563,
-0.4772968292236328,
0.0022603862453252077,
-0.8660990595817566,
0.5439774394035339,
0.06629980355501175,
-0.1124456524848938,
0.1931365728378296,
0.14229261875152588,
0.8560025691986084,
-0.2667232155799866,
0.9153189063072205,
-0.01114931795746088,
-0.10599285364151001,
0.14863596856594086,
-0.4107450544834137,
0.713683009147644,
-0.05397506430745125,
0.27245932817459106,
0.19095055758953094,
0.08194482326507568,
-0.5465818047523499,
-0.542949378490448,
0.64921635389328,
-1.0174256563186646,
-0.5698445439338684,
-0.6641296148300171,
-0.45494043827056885,
-0.027432464063167572,
0.5328694581985474,
0.507921576499939,
0.32880455255508423,
-0.08764758706092834,
0.32909849286079407,
0.6873088479042053,
-0.24087373912334442,
0.8434878587722778,
0.15334990620613098,
-0.2534615993499756,
-0.4875376522541046,
0.7310192584991455,
0.2539077401161194,
0.20687700808048248,
0.34905844926834106,
0.0630652904510498,
-0.407280832529068,
-0.28271082043647766,
-0.3460526168346405,
0.6220662593841553,
-0.4121372103691101,
-0.21119408309459686,
-0.7739527821540833,
-0.5651631951332092,
-0.7003185749053955,
-0.0002070733899017796,
-0.3282748758792877,
-0.25983700156211853,
-0.415656179189682,
-0.10553969442844391,
0.43111515045166016,
0.6841673851013184,
0.2570473253726959,
0.23308165371418,
-0.8098562955856323,
0.5512131452560425,
0.2598246932029724,
0.48812806606292725,
-0.16317111253738403,
-0.6898975968360901,
-0.19969581067562103,
0.0039342250674963,
-0.4563165307044983,
-0.8047677278518677,
0.5410852432250977,
0.1605657935142517,
0.2795037031173706,
0.3362405002117157,
0.056365594267845154,
0.7678002119064331,
-0.3584847152233124,
0.9728488326072693,
0.12834180891513824,
-0.907240629196167,
0.43205153942108154,
-0.5397573709487915,
0.64976567029953,
0.056963205337524414,
0.5144566297531128,
-0.5951368808746338,
-0.18486696481704712,
-0.8539571166038513,
-0.9439908862113953,
0.7120643258094788,
0.20515359938144684,
0.1796082854270935,
0.0950370654463768,
0.32755112648010254,
0.022443657740950584,
0.13212785124778748,
-1.2177644968032837,
-0.13434022665023804,
-0.3576473593711853,
-0.44409632682800293,
-0.1487015336751938,
-0.551234781742096,
-0.05643840879201889,
-0.3449416160583496,
0.635013222694397,
-0.15005509555339813,
0.8372282385826111,
0.3368396461009979,
-0.13143175840377808,
0.18302656710147858,
0.21576906740665436,
0.9788252711296082,
0.5596054196357727,
-0.22625689208507538,
-0.06332534551620483,
0.3231910169124603,
-0.6351150274276733,
-0.20376545190811157,
0.30974525213241577,
-0.13645371794700623,
0.07094444334506989,
0.4487188756465912,
1.0083321332931519,
0.05752529203891754,
-0.21358022093772888,
0.5853990912437439,
-0.010543779470026493,
-0.31795457005500793,
-0.6391394734382629,
-0.1676158905029297,
0.16028934717178345,
0.16601920127868652,
0.22200128436088562,
-0.39656510949134827,
0.06252900511026382,
-0.5409001111984253,
0.04838394373655319,
0.20871137082576752,
-0.2904322147369385,
-0.5232086777687073,
0.8458676338195801,
0.3547217845916748,
-0.05770999938249588,
0.6741433143615723,
-0.09402447938919067,
-0.5298013687133789,
0.5196920037269592,
0.7052960395812988,
0.9238989353179932,
-0.2239721715450287,
-0.1305508017539978,
0.7076377868652344,
0.1830671727657318,
-0.10650700330734253,
0.38528960943222046,
0.11044568568468094,
-0.48081398010253906,
-0.4974346458911896,
-0.5796507000923157,
0.0544726587831974,
0.5597100257873535,
-0.5323368310928345,
0.5403416752815247,
-0.2946123480796814,
-0.4141581952571869,
0.21580611169338226,
0.2458980828523636,
-0.7021738886833191,
0.35801756381988525,
0.180867537856102,
0.9284331798553467,
-0.5120596289634705,
0.9381415247917175,
0.6489019393920898,
-0.6280147433280945,
-0.7233930230140686,
0.035350970923900604,
-0.2916386127471924,
-0.7509366869926453,
0.6504420638084412,
0.3804674744606018,
0.08411096781492233,
0.20507469773292542,
-0.7532441020011902,
-1.1482795476913452,
1.2753987312316895,
0.17585153877735138,
-0.535597026348114,
-0.4976936876773834,
0.18460717797279358,
0.5595582127571106,
-0.11956262588500977,
0.4011220335960388,
0.41383567452430725,
0.4869229793548584,
0.1356210857629776,
-1.2012397050857544,
0.20435361564159393,
-0.38633790612220764,
-0.046504341065883636,
0.45246031880378723,
-1.2238165140151978,
0.8134931325912476,
-0.3449546992778778,
-0.1466580033302307,
-0.08346304297447205,
0.9298645257949829,
0.042980290949344635,
0.23452439904212952,
0.3133425712585449,
0.646592915058136,
0.5576472878456116,
-0.2534976303577423,
0.9439937472343445,
-0.4831714928150177,
0.6520596742630005,
0.7769381403923035,
0.11612334102392197,
0.6828110218048096,
0.4908260405063629,
-0.17074763774871826,
0.39244067668914795,
0.8266909718513489,
-0.1804969310760498,
0.3944091498851776,
0.012164466083049774,
-0.13872362673282623,
-0.11593164503574371,
0.19615775346755981,
-0.5258177518844604,
0.35867199301719666,
0.21239373087882996,
-0.5898539423942566,
-0.12285999953746796,
0.012490516528487206,
0.37905287742614746,
-0.48766911029815674,
-0.20035481452941895,
0.7771375179290771,
0.1947130709886551,
-0.7571079134941101,
0.9171475768089294,
0.12200465053319931,
0.921230137348175,
-0.5402786135673523,
0.11854492872953415,
-0.3132058084011078,
0.2572460472583771,
-0.21129953861236572,
-0.6901021003723145,
0.2811563014984131,
0.07092906534671783,
-0.32989490032196045,
-0.2757444679737091,
0.6401926279067993,
-0.4926908314228058,
-0.659605085849762,
0.14194248616695404,
0.2395142912864685,
0.09513148665428162,
0.04154040291905403,
-0.6906955242156982,
-0.1418106108903885,
-0.0021383471321314573,
-0.6578033566474915,
0.24198581278324127,
0.4278062880039215,
-0.29642486572265625,
0.7339028716087341,
0.5830795168876648,
-0.14174525439739227,
0.01915227621793747,
-0.05245250090956688,
0.8044634461402893,
-1.1052842140197754,
-0.6282973289489746,
-0.9065521359443665,
0.6759898066520691,
-0.22936420142650604,
-0.5002545714378357,
0.521523654460907,
0.5617296695709229,
0.6798506379127502,
-0.1557139754295349,
0.8044726252555847,
-0.04071563854813576,
0.6906465291976929,
-0.4963394105434418,
0.8700464963912964,
-0.7229218482971191,
-0.22734495997428894,
-0.16892917454242706,
-0.9172731041908264,
-0.34918564558029175,
0.4589429795742035,
-0.4434991180896759,
0.445980966091156,
0.806483805179596,
0.5870279669761658,
-0.3151358962059021,
-0.21452349424362183,
0.27861475944519043,
0.5780884027481079,
0.4806654453277588,
0.8281233310699463,
0.41827476024627686,
-0.5956724286079407,
0.5531365275382996,
-0.1935507357120514,
0.15637023746967316,
-0.2831832766532898,
-0.9232392311096191,
-1.1808885335922241,
-0.7166334986686707,
-0.13430847227573395,
-0.4919855296611786,
0.12751340866088867,
0.9079930186271667,
0.6539089679718018,
-0.6713838577270508,
0.11858304589986801,
0.08337455242872238,
-0.004166325554251671,
0.04847399517893791,
-0.27826163172721863,
0.7112765908241272,
-0.3048664629459381,
-1.015041470527649,
-0.056031230837106705,
-0.013499346561729908,
0.3834831714630127,
-0.19134126603603363,
0.18748509883880615,
-0.0607142336666584,
0.04203173145651817,
0.8189643621444702,
0.24270206689834595,
-0.8055251836776733,
-0.5082454681396484,
0.24335446953773499,
-0.2158203274011612,
0.2430616021156311,
0.3983652591705322,
-0.6985331773757935,
0.21090015769004822,
0.3949529528617859,
0.5081544518470764,
0.8207390308380127,
0.058490365743637085,
0.5813891887664795,
-0.6356828808784485,
0.2391742318868637,
0.18204684555530548,
0.2602812349796295,
0.3189528286457062,
-0.36913183331489563,
0.5844884514808655,
0.28386253118515015,
-0.7242662310600281,
-0.9247164130210876,
0.06989475339651108,
-1.2748533487319946,
0.06188134849071503,
1.3329851627349854,
-0.08184320479631424,
-0.4474150538444519,
0.20330245792865753,
-0.17567643523216248,
0.5041971802711487,
-0.4343533217906952,
0.9987598061561584,
0.9063482284545898,
-0.007971461862325668,
-0.4484865963459015,
-0.7078241109848022,
0.7161403298377991,
0.27624791860580444,
-0.9138606786727905,
-0.23056034743785858,
0.22463589906692505,
0.48317235708236694,
0.1735965609550476,
0.5374961495399475,
-0.00954197533428669,
0.18019060790538788,
-0.3398602306842804,
0.3350970149040222,
-0.0558617003262043,
-0.13381773233413696,
-0.2337079644203186,
0.18773247301578522,
-0.2616490423679352,
-0.20313185453414917
] |
jinaai/jina-embeddings-v2-small-en | jinaai | "2023-11-20T10:58:09Z" | 111,110 | 75 | sentence-transformers | [
"sentence-transformers",
"pytorch",
"coreml",
"onnx",
"safetensors",
"bert",
"finetuner",
"mteb",
"feature-extraction",
"sentence-similarity",
"custom_code",
"en",
"dataset:jinaai/negation-dataset",
"arxiv:2108.12409",
"arxiv:2310.19923",
"license:apache-2.0",
"model-index",
"has_space",
"region:us"
] | feature-extraction | "2023-09-27T20:17:27Z" | ---
tags:
- finetuner
- mteb
- sentence-transformers
- feature-extraction
- sentence-similarity
datasets:
- jinaai/negation-dataset
language: en
inference: false
license: apache-2.0
model-index:
- name: jina-embedding-s-en-v2
results:
- task:
type: Classification
dataset:
type: mteb/amazon_counterfactual
name: MTEB AmazonCounterfactualClassification (en)
config: en
split: test
revision: e8379541af4e31359cca9fbcf4b00f2671dba205
metrics:
- type: accuracy
value: 71.35820895522387
- type: ap
value: 33.99931933598115
- type: f1
value: 65.3853685535555
- task:
type: Classification
dataset:
type: mteb/amazon_polarity
name: MTEB AmazonPolarityClassification
config: default
split: test
revision: e2d317d38cd51312af73b3d32a06d1a08b442046
metrics:
- type: accuracy
value: 82.90140000000001
- type: ap
value: 78.01434597815617
- type: f1
value: 82.83357802722676
- task:
type: Classification
dataset:
type: mteb/amazon_reviews_multi
name: MTEB AmazonReviewsClassification (en)
config: en
split: test
revision: 1399c76144fd37290681b995c656ef9b2e06e26d
metrics:
- type: accuracy
value: 40.88999999999999
- type: f1
value: 39.209432767163456
- task:
type: Retrieval
dataset:
type: arguana
name: MTEB ArguAna
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 23.257
- type: map_at_10
value: 37.946000000000005
- type: map_at_100
value: 39.17
- type: map_at_1000
value: 39.181
- type: map_at_3
value: 32.99
- type: map_at_5
value: 35.467999999999996
- type: mrr_at_1
value: 23.541999999999998
- type: mrr_at_10
value: 38.057
- type: mrr_at_100
value: 39.289
- type: mrr_at_1000
value: 39.299
- type: mrr_at_3
value: 33.096
- type: mrr_at_5
value: 35.628
- type: ndcg_at_1
value: 23.257
- type: ndcg_at_10
value: 46.729
- type: ndcg_at_100
value: 51.900999999999996
- type: ndcg_at_1000
value: 52.16
- type: ndcg_at_3
value: 36.323
- type: ndcg_at_5
value: 40.766999999999996
- type: precision_at_1
value: 23.257
- type: precision_at_10
value: 7.510999999999999
- type: precision_at_100
value: 0.976
- type: precision_at_1000
value: 0.1
- type: precision_at_3
value: 15.339
- type: precision_at_5
value: 11.350999999999999
- type: recall_at_1
value: 23.257
- type: recall_at_10
value: 75.107
- type: recall_at_100
value: 97.58200000000001
- type: recall_at_1000
value: 99.57300000000001
- type: recall_at_3
value: 46.017
- type: recall_at_5
value: 56.757000000000005
- task:
type: Clustering
dataset:
type: mteb/arxiv-clustering-p2p
name: MTEB ArxivClusteringP2P
config: default
split: test
revision: a122ad7f3f0291bf49cc6f4d32aa80929df69d5d
metrics:
- type: v_measure
value: 44.02420878391967
- task:
type: Clustering
dataset:
type: mteb/arxiv-clustering-s2s
name: MTEB ArxivClusteringS2S
config: default
split: test
revision: f910caf1a6075f7329cdf8c1a6135696f37dbd53
metrics:
- type: v_measure
value: 35.16136856000258
- task:
type: Reranking
dataset:
type: mteb/askubuntudupquestions-reranking
name: MTEB AskUbuntuDupQuestions
config: default
split: test
revision: 2000358ca161889fa9c082cb41daa8dcfb161a54
metrics:
- type: map
value: 59.61809790513646
- type: mrr
value: 73.07215406938397
- task:
type: STS
dataset:
type: mteb/biosses-sts
name: MTEB BIOSSES
config: default
split: test
revision: d3fb88f8f02e40887cd149695127462bbcf29b4a
metrics:
- type: cos_sim_pearson
value: 82.0167350090749
- type: cos_sim_spearman
value: 80.51569002630401
- type: euclidean_pearson
value: 81.46820525099726
- type: euclidean_spearman
value: 80.51569002630401
- type: manhattan_pearson
value: 81.35596555056757
- type: manhattan_spearman
value: 80.12592210903303
- task:
type: Classification
dataset:
type: mteb/banking77
name: MTEB Banking77Classification
config: default
split: test
revision: 0fd18e25b25c072e09e0d92ab615fda904d66300
metrics:
- type: accuracy
value: 78.25
- type: f1
value: 77.34950913540605
- task:
type: Clustering
dataset:
type: mteb/biorxiv-clustering-p2p
name: MTEB BiorxivClusteringP2P
config: default
split: test
revision: 65b79d1d13f80053f67aca9498d9402c2d9f1f40
metrics:
- type: v_measure
value: 35.57238596005698
- task:
type: Clustering
dataset:
type: mteb/biorxiv-clustering-s2s
name: MTEB BiorxivClusteringS2S
config: default
split: test
revision: 258694dd0231531bc1fd9de6ceb52a0853c6d908
metrics:
- type: v_measure
value: 29.066444306196683
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackAndroidRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 31.891000000000002
- type: map_at_10
value: 42.772
- type: map_at_100
value: 44.108999999999995
- type: map_at_1000
value: 44.236
- type: map_at_3
value: 39.289
- type: map_at_5
value: 41.113
- type: mrr_at_1
value: 39.342
- type: mrr_at_10
value: 48.852000000000004
- type: mrr_at_100
value: 49.534
- type: mrr_at_1000
value: 49.582
- type: mrr_at_3
value: 46.089999999999996
- type: mrr_at_5
value: 47.685
- type: ndcg_at_1
value: 39.342
- type: ndcg_at_10
value: 48.988
- type: ndcg_at_100
value: 53.854
- type: ndcg_at_1000
value: 55.955
- type: ndcg_at_3
value: 43.877
- type: ndcg_at_5
value: 46.027
- type: precision_at_1
value: 39.342
- type: precision_at_10
value: 9.285
- type: precision_at_100
value: 1.488
- type: precision_at_1000
value: 0.194
- type: precision_at_3
value: 20.696
- type: precision_at_5
value: 14.878
- type: recall_at_1
value: 31.891000000000002
- type: recall_at_10
value: 60.608
- type: recall_at_100
value: 81.025
- type: recall_at_1000
value: 94.883
- type: recall_at_3
value: 45.694
- type: recall_at_5
value: 51.684
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackEnglishRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 28.778
- type: map_at_10
value: 37.632
- type: map_at_100
value: 38.800000000000004
- type: map_at_1000
value: 38.934999999999995
- type: map_at_3
value: 35.293
- type: map_at_5
value: 36.547000000000004
- type: mrr_at_1
value: 35.35
- type: mrr_at_10
value: 42.936
- type: mrr_at_100
value: 43.69
- type: mrr_at_1000
value: 43.739
- type: mrr_at_3
value: 41.062
- type: mrr_at_5
value: 42.097
- type: ndcg_at_1
value: 35.35
- type: ndcg_at_10
value: 42.528
- type: ndcg_at_100
value: 46.983000000000004
- type: ndcg_at_1000
value: 49.187999999999995
- type: ndcg_at_3
value: 39.271
- type: ndcg_at_5
value: 40.654
- type: precision_at_1
value: 35.35
- type: precision_at_10
value: 7.828
- type: precision_at_100
value: 1.3010000000000002
- type: precision_at_1000
value: 0.17700000000000002
- type: precision_at_3
value: 18.96
- type: precision_at_5
value: 13.120999999999999
- type: recall_at_1
value: 28.778
- type: recall_at_10
value: 50.775000000000006
- type: recall_at_100
value: 69.66799999999999
- type: recall_at_1000
value: 83.638
- type: recall_at_3
value: 40.757
- type: recall_at_5
value: 44.86
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackGamingRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 37.584
- type: map_at_10
value: 49.69
- type: map_at_100
value: 50.639
- type: map_at_1000
value: 50.702999999999996
- type: map_at_3
value: 46.61
- type: map_at_5
value: 48.486000000000004
- type: mrr_at_1
value: 43.009
- type: mrr_at_10
value: 52.949999999999996
- type: mrr_at_100
value: 53.618
- type: mrr_at_1000
value: 53.65299999999999
- type: mrr_at_3
value: 50.605999999999995
- type: mrr_at_5
value: 52.095
- type: ndcg_at_1
value: 43.009
- type: ndcg_at_10
value: 55.278000000000006
- type: ndcg_at_100
value: 59.134
- type: ndcg_at_1000
value: 60.528999999999996
- type: ndcg_at_3
value: 50.184
- type: ndcg_at_5
value: 52.919000000000004
- type: precision_at_1
value: 43.009
- type: precision_at_10
value: 8.821
- type: precision_at_100
value: 1.161
- type: precision_at_1000
value: 0.133
- type: precision_at_3
value: 22.424
- type: precision_at_5
value: 15.436
- type: recall_at_1
value: 37.584
- type: recall_at_10
value: 68.514
- type: recall_at_100
value: 85.099
- type: recall_at_1000
value: 95.123
- type: recall_at_3
value: 55.007
- type: recall_at_5
value: 61.714999999999996
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackGisRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 24.7
- type: map_at_10
value: 32.804
- type: map_at_100
value: 33.738
- type: map_at_1000
value: 33.825
- type: map_at_3
value: 30.639
- type: map_at_5
value: 31.781
- type: mrr_at_1
value: 26.328000000000003
- type: mrr_at_10
value: 34.679
- type: mrr_at_100
value: 35.510000000000005
- type: mrr_at_1000
value: 35.577999999999996
- type: mrr_at_3
value: 32.58
- type: mrr_at_5
value: 33.687
- type: ndcg_at_1
value: 26.328000000000003
- type: ndcg_at_10
value: 37.313
- type: ndcg_at_100
value: 42.004000000000005
- type: ndcg_at_1000
value: 44.232
- type: ndcg_at_3
value: 33.076
- type: ndcg_at_5
value: 34.966
- type: precision_at_1
value: 26.328000000000003
- type: precision_at_10
value: 5.627
- type: precision_at_100
value: 0.8410000000000001
- type: precision_at_1000
value: 0.106
- type: precision_at_3
value: 14.011000000000001
- type: precision_at_5
value: 9.582
- type: recall_at_1
value: 24.7
- type: recall_at_10
value: 49.324
- type: recall_at_100
value: 71.018
- type: recall_at_1000
value: 87.905
- type: recall_at_3
value: 37.7
- type: recall_at_5
value: 42.281
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackMathematicaRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 14.350999999999999
- type: map_at_10
value: 21.745
- type: map_at_100
value: 22.731
- type: map_at_1000
value: 22.852
- type: map_at_3
value: 19.245
- type: map_at_5
value: 20.788
- type: mrr_at_1
value: 18.159
- type: mrr_at_10
value: 25.833000000000002
- type: mrr_at_100
value: 26.728
- type: mrr_at_1000
value: 26.802
- type: mrr_at_3
value: 23.383000000000003
- type: mrr_at_5
value: 24.887999999999998
- type: ndcg_at_1
value: 18.159
- type: ndcg_at_10
value: 26.518000000000004
- type: ndcg_at_100
value: 31.473000000000003
- type: ndcg_at_1000
value: 34.576
- type: ndcg_at_3
value: 21.907
- type: ndcg_at_5
value: 24.39
- type: precision_at_1
value: 18.159
- type: precision_at_10
value: 4.938
- type: precision_at_100
value: 0.853
- type: precision_at_1000
value: 0.125
- type: precision_at_3
value: 10.655000000000001
- type: precision_at_5
value: 7.985
- type: recall_at_1
value: 14.350999999999999
- type: recall_at_10
value: 37.284
- type: recall_at_100
value: 59.11300000000001
- type: recall_at_1000
value: 81.634
- type: recall_at_3
value: 24.753
- type: recall_at_5
value: 30.979
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackPhysicsRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 26.978
- type: map_at_10
value: 36.276
- type: map_at_100
value: 37.547000000000004
- type: map_at_1000
value: 37.678
- type: map_at_3
value: 33.674
- type: map_at_5
value: 35.119
- type: mrr_at_1
value: 32.916000000000004
- type: mrr_at_10
value: 41.798
- type: mrr_at_100
value: 42.72
- type: mrr_at_1000
value: 42.778
- type: mrr_at_3
value: 39.493
- type: mrr_at_5
value: 40.927
- type: ndcg_at_1
value: 32.916000000000004
- type: ndcg_at_10
value: 41.81
- type: ndcg_at_100
value: 47.284
- type: ndcg_at_1000
value: 49.702
- type: ndcg_at_3
value: 37.486999999999995
- type: ndcg_at_5
value: 39.597
- type: precision_at_1
value: 32.916000000000004
- type: precision_at_10
value: 7.411
- type: precision_at_100
value: 1.189
- type: precision_at_1000
value: 0.158
- type: precision_at_3
value: 17.581
- type: precision_at_5
value: 12.397
- type: recall_at_1
value: 26.978
- type: recall_at_10
value: 52.869
- type: recall_at_100
value: 75.78399999999999
- type: recall_at_1000
value: 91.545
- type: recall_at_3
value: 40.717
- type: recall_at_5
value: 46.168
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackProgrammersRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 24.641
- type: map_at_10
value: 32.916000000000004
- type: map_at_100
value: 34.165
- type: map_at_1000
value: 34.286
- type: map_at_3
value: 30.335
- type: map_at_5
value: 31.569000000000003
- type: mrr_at_1
value: 30.593999999999998
- type: mrr_at_10
value: 38.448
- type: mrr_at_100
value: 39.299
- type: mrr_at_1000
value: 39.362
- type: mrr_at_3
value: 36.244
- type: mrr_at_5
value: 37.232
- type: ndcg_at_1
value: 30.593999999999998
- type: ndcg_at_10
value: 38.2
- type: ndcg_at_100
value: 43.742
- type: ndcg_at_1000
value: 46.217000000000006
- type: ndcg_at_3
value: 33.925
- type: ndcg_at_5
value: 35.394
- type: precision_at_1
value: 30.593999999999998
- type: precision_at_10
value: 6.895
- type: precision_at_100
value: 1.1320000000000001
- type: precision_at_1000
value: 0.153
- type: precision_at_3
value: 16.096
- type: precision_at_5
value: 11.05
- type: recall_at_1
value: 24.641
- type: recall_at_10
value: 48.588
- type: recall_at_100
value: 72.841
- type: recall_at_1000
value: 89.535
- type: recall_at_3
value: 36.087
- type: recall_at_5
value: 40.346
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 24.79425
- type: map_at_10
value: 33.12033333333333
- type: map_at_100
value: 34.221333333333334
- type: map_at_1000
value: 34.3435
- type: map_at_3
value: 30.636583333333338
- type: map_at_5
value: 31.974083333333326
- type: mrr_at_1
value: 29.242416666666664
- type: mrr_at_10
value: 37.11675
- type: mrr_at_100
value: 37.93783333333334
- type: mrr_at_1000
value: 38.003083333333336
- type: mrr_at_3
value: 34.904666666666664
- type: mrr_at_5
value: 36.12916666666667
- type: ndcg_at_1
value: 29.242416666666664
- type: ndcg_at_10
value: 38.03416666666667
- type: ndcg_at_100
value: 42.86674999999999
- type: ndcg_at_1000
value: 45.34550000000001
- type: ndcg_at_3
value: 33.76466666666666
- type: ndcg_at_5
value: 35.668666666666674
- type: precision_at_1
value: 29.242416666666664
- type: precision_at_10
value: 6.589833333333334
- type: precision_at_100
value: 1.0693333333333332
- type: precision_at_1000
value: 0.14641666666666667
- type: precision_at_3
value: 15.430749999999998
- type: precision_at_5
value: 10.833833333333333
- type: recall_at_1
value: 24.79425
- type: recall_at_10
value: 48.582916666666655
- type: recall_at_100
value: 69.88499999999999
- type: recall_at_1000
value: 87.211
- type: recall_at_3
value: 36.625499999999995
- type: recall_at_5
value: 41.553999999999995
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackStatsRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 22.767
- type: map_at_10
value: 28.450999999999997
- type: map_at_100
value: 29.332
- type: map_at_1000
value: 29.426000000000002
- type: map_at_3
value: 26.379
- type: map_at_5
value: 27.584999999999997
- type: mrr_at_1
value: 25.46
- type: mrr_at_10
value: 30.974
- type: mrr_at_100
value: 31.784000000000002
- type: mrr_at_1000
value: 31.857999999999997
- type: mrr_at_3
value: 28.962
- type: mrr_at_5
value: 30.066
- type: ndcg_at_1
value: 25.46
- type: ndcg_at_10
value: 32.041
- type: ndcg_at_100
value: 36.522
- type: ndcg_at_1000
value: 39.101
- type: ndcg_at_3
value: 28.152
- type: ndcg_at_5
value: 30.03
- type: precision_at_1
value: 25.46
- type: precision_at_10
value: 4.893
- type: precision_at_100
value: 0.77
- type: precision_at_1000
value: 0.107
- type: precision_at_3
value: 11.605
- type: precision_at_5
value: 8.19
- type: recall_at_1
value: 22.767
- type: recall_at_10
value: 40.71
- type: recall_at_100
value: 61.334999999999994
- type: recall_at_1000
value: 80.567
- type: recall_at_3
value: 30.198000000000004
- type: recall_at_5
value: 34.803
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackTexRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 16.722
- type: map_at_10
value: 22.794
- type: map_at_100
value: 23.7
- type: map_at_1000
value: 23.822
- type: map_at_3
value: 20.781
- type: map_at_5
value: 22.024
- type: mrr_at_1
value: 20.061999999999998
- type: mrr_at_10
value: 26.346999999999998
- type: mrr_at_100
value: 27.153
- type: mrr_at_1000
value: 27.233
- type: mrr_at_3
value: 24.375
- type: mrr_at_5
value: 25.593
- type: ndcg_at_1
value: 20.061999999999998
- type: ndcg_at_10
value: 26.785999999999998
- type: ndcg_at_100
value: 31.319999999999997
- type: ndcg_at_1000
value: 34.346
- type: ndcg_at_3
value: 23.219
- type: ndcg_at_5
value: 25.107000000000003
- type: precision_at_1
value: 20.061999999999998
- type: precision_at_10
value: 4.78
- type: precision_at_100
value: 0.83
- type: precision_at_1000
value: 0.125
- type: precision_at_3
value: 10.874
- type: precision_at_5
value: 7.956
- type: recall_at_1
value: 16.722
- type: recall_at_10
value: 35.204
- type: recall_at_100
value: 55.797
- type: recall_at_1000
value: 77.689
- type: recall_at_3
value: 25.245
- type: recall_at_5
value: 30.115
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackUnixRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 24.842
- type: map_at_10
value: 32.917
- type: map_at_100
value: 33.961000000000006
- type: map_at_1000
value: 34.069
- type: map_at_3
value: 30.595
- type: map_at_5
value: 31.837
- type: mrr_at_1
value: 29.011
- type: mrr_at_10
value: 36.977
- type: mrr_at_100
value: 37.814
- type: mrr_at_1000
value: 37.885999999999996
- type: mrr_at_3
value: 34.966
- type: mrr_at_5
value: 36.043
- type: ndcg_at_1
value: 29.011
- type: ndcg_at_10
value: 37.735
- type: ndcg_at_100
value: 42.683
- type: ndcg_at_1000
value: 45.198
- type: ndcg_at_3
value: 33.650000000000006
- type: ndcg_at_5
value: 35.386
- type: precision_at_1
value: 29.011
- type: precision_at_10
value: 6.259
- type: precision_at_100
value: 0.984
- type: precision_at_1000
value: 0.13
- type: precision_at_3
value: 15.329999999999998
- type: precision_at_5
value: 10.541
- type: recall_at_1
value: 24.842
- type: recall_at_10
value: 48.304
- type: recall_at_100
value: 70.04899999999999
- type: recall_at_1000
value: 87.82600000000001
- type: recall_at_3
value: 36.922
- type: recall_at_5
value: 41.449999999999996
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackWebmastersRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 24.252000000000002
- type: map_at_10
value: 32.293
- type: map_at_100
value: 33.816
- type: map_at_1000
value: 34.053
- type: map_at_3
value: 29.781999999999996
- type: map_at_5
value: 31.008000000000003
- type: mrr_at_1
value: 29.051
- type: mrr_at_10
value: 36.722
- type: mrr_at_100
value: 37.663000000000004
- type: mrr_at_1000
value: 37.734
- type: mrr_at_3
value: 34.354
- type: mrr_at_5
value: 35.609
- type: ndcg_at_1
value: 29.051
- type: ndcg_at_10
value: 37.775999999999996
- type: ndcg_at_100
value: 43.221
- type: ndcg_at_1000
value: 46.116
- type: ndcg_at_3
value: 33.403
- type: ndcg_at_5
value: 35.118
- type: precision_at_1
value: 29.051
- type: precision_at_10
value: 7.332
- type: precision_at_100
value: 1.49
- type: precision_at_1000
value: 0.23600000000000002
- type: precision_at_3
value: 15.415000000000001
- type: precision_at_5
value: 11.107
- type: recall_at_1
value: 24.252000000000002
- type: recall_at_10
value: 47.861
- type: recall_at_100
value: 72.21600000000001
- type: recall_at_1000
value: 90.886
- type: recall_at_3
value: 35.533
- type: recall_at_5
value: 39.959
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackWordpressRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 20.025000000000002
- type: map_at_10
value: 27.154
- type: map_at_100
value: 28.118
- type: map_at_1000
value: 28.237000000000002
- type: map_at_3
value: 25.017
- type: map_at_5
value: 25.832
- type: mrr_at_1
value: 21.627
- type: mrr_at_10
value: 28.884999999999998
- type: mrr_at_100
value: 29.741
- type: mrr_at_1000
value: 29.831999999999997
- type: mrr_at_3
value: 26.741
- type: mrr_at_5
value: 27.628000000000004
- type: ndcg_at_1
value: 21.627
- type: ndcg_at_10
value: 31.436999999999998
- type: ndcg_at_100
value: 36.181000000000004
- type: ndcg_at_1000
value: 38.986
- type: ndcg_at_3
value: 27.025
- type: ndcg_at_5
value: 28.436
- type: precision_at_1
value: 21.627
- type: precision_at_10
value: 5.009
- type: precision_at_100
value: 0.7929999999999999
- type: precision_at_1000
value: 0.11299999999999999
- type: precision_at_3
value: 11.522
- type: precision_at_5
value: 7.763000000000001
- type: recall_at_1
value: 20.025000000000002
- type: recall_at_10
value: 42.954
- type: recall_at_100
value: 64.67500000000001
- type: recall_at_1000
value: 85.301
- type: recall_at_3
value: 30.892999999999997
- type: recall_at_5
value: 34.288000000000004
- task:
type: Retrieval
dataset:
type: climate-fever
name: MTEB ClimateFEVER
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 10.079
- type: map_at_10
value: 16.930999999999997
- type: map_at_100
value: 18.398999999999997
- type: map_at_1000
value: 18.561
- type: map_at_3
value: 14.294
- type: map_at_5
value: 15.579
- type: mrr_at_1
value: 22.606
- type: mrr_at_10
value: 32.513
- type: mrr_at_100
value: 33.463
- type: mrr_at_1000
value: 33.513999999999996
- type: mrr_at_3
value: 29.479
- type: mrr_at_5
value: 31.3
- type: ndcg_at_1
value: 22.606
- type: ndcg_at_10
value: 24.053
- type: ndcg_at_100
value: 30.258000000000003
- type: ndcg_at_1000
value: 33.516
- type: ndcg_at_3
value: 19.721
- type: ndcg_at_5
value: 21.144
- type: precision_at_1
value: 22.606
- type: precision_at_10
value: 7.55
- type: precision_at_100
value: 1.399
- type: precision_at_1000
value: 0.2
- type: precision_at_3
value: 14.701
- type: precision_at_5
value: 11.192
- type: recall_at_1
value: 10.079
- type: recall_at_10
value: 28.970000000000002
- type: recall_at_100
value: 50.805
- type: recall_at_1000
value: 69.378
- type: recall_at_3
value: 18.199
- type: recall_at_5
value: 22.442
- task:
type: Retrieval
dataset:
type: dbpedia-entity
name: MTEB DBPedia
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 7.794
- type: map_at_10
value: 15.165999999999999
- type: map_at_100
value: 20.508000000000003
- type: map_at_1000
value: 21.809
- type: map_at_3
value: 11.568000000000001
- type: map_at_5
value: 13.059000000000001
- type: mrr_at_1
value: 56.49999999999999
- type: mrr_at_10
value: 65.90899999999999
- type: mrr_at_100
value: 66.352
- type: mrr_at_1000
value: 66.369
- type: mrr_at_3
value: 64.0
- type: mrr_at_5
value: 65.10000000000001
- type: ndcg_at_1
value: 44.25
- type: ndcg_at_10
value: 32.649
- type: ndcg_at_100
value: 36.668
- type: ndcg_at_1000
value: 43.918
- type: ndcg_at_3
value: 37.096000000000004
- type: ndcg_at_5
value: 34.048
- type: precision_at_1
value: 56.49999999999999
- type: precision_at_10
value: 25.45
- type: precision_at_100
value: 8.055
- type: precision_at_1000
value: 1.7489999999999999
- type: precision_at_3
value: 41.0
- type: precision_at_5
value: 32.85
- type: recall_at_1
value: 7.794
- type: recall_at_10
value: 20.101
- type: recall_at_100
value: 42.448
- type: recall_at_1000
value: 65.88000000000001
- type: recall_at_3
value: 12.753
- type: recall_at_5
value: 15.307
- task:
type: Classification
dataset:
type: mteb/emotion
name: MTEB EmotionClassification
config: default
split: test
revision: 4f58c6b202a23cf9a4da393831edf4f9183cad37
metrics:
- type: accuracy
value: 44.01
- type: f1
value: 38.659680951114964
- task:
type: Retrieval
dataset:
type: fever
name: MTEB FEVER
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 49.713
- type: map_at_10
value: 61.79
- type: map_at_100
value: 62.28
- type: map_at_1000
value: 62.297000000000004
- type: map_at_3
value: 59.361
- type: map_at_5
value: 60.92100000000001
- type: mrr_at_1
value: 53.405
- type: mrr_at_10
value: 65.79899999999999
- type: mrr_at_100
value: 66.219
- type: mrr_at_1000
value: 66.227
- type: mrr_at_3
value: 63.431000000000004
- type: mrr_at_5
value: 64.98
- type: ndcg_at_1
value: 53.405
- type: ndcg_at_10
value: 68.01899999999999
- type: ndcg_at_100
value: 70.197
- type: ndcg_at_1000
value: 70.571
- type: ndcg_at_3
value: 63.352
- type: ndcg_at_5
value: 66.018
- type: precision_at_1
value: 53.405
- type: precision_at_10
value: 9.119
- type: precision_at_100
value: 1.03
- type: precision_at_1000
value: 0.107
- type: precision_at_3
value: 25.602999999999998
- type: precision_at_5
value: 16.835
- type: recall_at_1
value: 49.713
- type: recall_at_10
value: 83.306
- type: recall_at_100
value: 92.92
- type: recall_at_1000
value: 95.577
- type: recall_at_3
value: 70.798
- type: recall_at_5
value: 77.254
- task:
type: Retrieval
dataset:
type: fiqa
name: MTEB FiQA2018
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 15.310000000000002
- type: map_at_10
value: 26.204
- type: map_at_100
value: 27.932000000000002
- type: map_at_1000
value: 28.121000000000002
- type: map_at_3
value: 22.481
- type: map_at_5
value: 24.678
- type: mrr_at_1
value: 29.784
- type: mrr_at_10
value: 39.582
- type: mrr_at_100
value: 40.52
- type: mrr_at_1000
value: 40.568
- type: mrr_at_3
value: 37.114000000000004
- type: mrr_at_5
value: 38.596000000000004
- type: ndcg_at_1
value: 29.784
- type: ndcg_at_10
value: 33.432
- type: ndcg_at_100
value: 40.281
- type: ndcg_at_1000
value: 43.653999999999996
- type: ndcg_at_3
value: 29.612
- type: ndcg_at_5
value: 31.223
- type: precision_at_1
value: 29.784
- type: precision_at_10
value: 9.645
- type: precision_at_100
value: 1.645
- type: precision_at_1000
value: 0.22499999999999998
- type: precision_at_3
value: 20.165
- type: precision_at_5
value: 15.401000000000002
- type: recall_at_1
value: 15.310000000000002
- type: recall_at_10
value: 40.499
- type: recall_at_100
value: 66.643
- type: recall_at_1000
value: 87.059
- type: recall_at_3
value: 27.492
- type: recall_at_5
value: 33.748
- task:
type: Retrieval
dataset:
type: hotpotqa
name: MTEB HotpotQA
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 33.599000000000004
- type: map_at_10
value: 47.347
- type: map_at_100
value: 48.191
- type: map_at_1000
value: 48.263
- type: map_at_3
value: 44.698
- type: map_at_5
value: 46.278999999999996
- type: mrr_at_1
value: 67.19800000000001
- type: mrr_at_10
value: 74.054
- type: mrr_at_100
value: 74.376
- type: mrr_at_1000
value: 74.392
- type: mrr_at_3
value: 72.849
- type: mrr_at_5
value: 73.643
- type: ndcg_at_1
value: 67.19800000000001
- type: ndcg_at_10
value: 56.482
- type: ndcg_at_100
value: 59.694
- type: ndcg_at_1000
value: 61.204
- type: ndcg_at_3
value: 52.43299999999999
- type: ndcg_at_5
value: 54.608000000000004
- type: precision_at_1
value: 67.19800000000001
- type: precision_at_10
value: 11.613999999999999
- type: precision_at_100
value: 1.415
- type: precision_at_1000
value: 0.16199999999999998
- type: precision_at_3
value: 32.726
- type: precision_at_5
value: 21.349999999999998
- type: recall_at_1
value: 33.599000000000004
- type: recall_at_10
value: 58.069
- type: recall_at_100
value: 70.736
- type: recall_at_1000
value: 80.804
- type: recall_at_3
value: 49.088
- type: recall_at_5
value: 53.376000000000005
- task:
type: Classification
dataset:
type: mteb/imdb
name: MTEB ImdbClassification
config: default
split: test
revision: 3d86128a09e091d6018b6d26cad27f2739fc2db7
metrics:
- type: accuracy
value: 73.64359999999999
- type: ap
value: 67.54685976014599
- type: f1
value: 73.55148707559482
- task:
type: Retrieval
dataset:
type: msmarco
name: MTEB MSMARCO
config: default
split: dev
revision: None
metrics:
- type: map_at_1
value: 19.502
- type: map_at_10
value: 30.816
- type: map_at_100
value: 32.007999999999996
- type: map_at_1000
value: 32.067
- type: map_at_3
value: 27.215
- type: map_at_5
value: 29.304000000000002
- type: mrr_at_1
value: 20.072000000000003
- type: mrr_at_10
value: 31.406
- type: mrr_at_100
value: 32.549
- type: mrr_at_1000
value: 32.602
- type: mrr_at_3
value: 27.839000000000002
- type: mrr_at_5
value: 29.926000000000002
- type: ndcg_at_1
value: 20.086000000000002
- type: ndcg_at_10
value: 37.282
- type: ndcg_at_100
value: 43.206
- type: ndcg_at_1000
value: 44.690000000000005
- type: ndcg_at_3
value: 29.932
- type: ndcg_at_5
value: 33.668
- type: precision_at_1
value: 20.086000000000002
- type: precision_at_10
value: 5.961
- type: precision_at_100
value: 0.898
- type: precision_at_1000
value: 0.10200000000000001
- type: precision_at_3
value: 12.856000000000002
- type: precision_at_5
value: 9.596
- type: recall_at_1
value: 19.502
- type: recall_at_10
value: 57.182
- type: recall_at_100
value: 84.952
- type: recall_at_1000
value: 96.34700000000001
- type: recall_at_3
value: 37.193
- type: recall_at_5
value: 46.157
- task:
type: Classification
dataset:
type: mteb/mtop_domain
name: MTEB MTOPDomainClassification (en)
config: en
split: test
revision: d80d48c1eb48d3562165c59d59d0034df9fff0bf
metrics:
- type: accuracy
value: 93.96488828089375
- type: f1
value: 93.32119260543482
- task:
type: Classification
dataset:
type: mteb/mtop_intent
name: MTEB MTOPIntentClassification (en)
config: en
split: test
revision: ae001d0e6b1228650b7bd1c2c65fb50ad11a8aba
metrics:
- type: accuracy
value: 72.4965800273598
- type: f1
value: 49.34896217536082
- task:
type: Classification
dataset:
type: mteb/amazon_massive_intent
name: MTEB MassiveIntentClassification (en)
config: en
split: test
revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7
metrics:
- type: accuracy
value: 67.60928043039678
- type: f1
value: 64.34244712074538
- task:
type: Classification
dataset:
type: mteb/amazon_massive_scenario
name: MTEB MassiveScenarioClassification (en)
config: en
split: test
revision: 7d571f92784cd94a019292a1f45445077d0ef634
metrics:
- type: accuracy
value: 69.75453934095493
- type: f1
value: 68.39224867489249
- task:
type: Clustering
dataset:
type: mteb/medrxiv-clustering-p2p
name: MTEB MedrxivClusteringP2P
config: default
split: test
revision: e7a26af6f3ae46b30dde8737f02c07b1505bcc73
metrics:
- type: v_measure
value: 31.862573504920082
- task:
type: Clustering
dataset:
type: mteb/medrxiv-clustering-s2s
name: MTEB MedrxivClusteringS2S
config: default
split: test
revision: 35191c8c0dca72d8ff3efcd72aa802307d469663
metrics:
- type: v_measure
value: 27.511123551196803
- task:
type: Reranking
dataset:
type: mteb/mind_small
name: MTEB MindSmallReranking
config: default
split: test
revision: 3bdac13927fdc888b903db93b2ffdbd90b295a69
metrics:
- type: map
value: 30.99145104942086
- type: mrr
value: 32.03606480418627
- task:
type: Retrieval
dataset:
type: nfcorpus
name: MTEB NFCorpus
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 5.015
- type: map_at_10
value: 11.054
- type: map_at_100
value: 13.773
- type: map_at_1000
value: 15.082999999999998
- type: map_at_3
value: 8.253
- type: map_at_5
value: 9.508999999999999
- type: mrr_at_1
value: 42.105
- type: mrr_at_10
value: 50.44499999999999
- type: mrr_at_100
value: 51.080000000000005
- type: mrr_at_1000
value: 51.129999999999995
- type: mrr_at_3
value: 48.555
- type: mrr_at_5
value: 49.84
- type: ndcg_at_1
value: 40.402
- type: ndcg_at_10
value: 30.403000000000002
- type: ndcg_at_100
value: 28.216
- type: ndcg_at_1000
value: 37.021
- type: ndcg_at_3
value: 35.53
- type: ndcg_at_5
value: 33.202999999999996
- type: precision_at_1
value: 42.105
- type: precision_at_10
value: 22.353
- type: precision_at_100
value: 7.266
- type: precision_at_1000
value: 2.011
- type: precision_at_3
value: 32.921
- type: precision_at_5
value: 28.297
- type: recall_at_1
value: 5.015
- type: recall_at_10
value: 14.393
- type: recall_at_100
value: 28.893
- type: recall_at_1000
value: 60.18
- type: recall_at_3
value: 9.184000000000001
- type: recall_at_5
value: 11.39
- task:
type: Retrieval
dataset:
type: nq
name: MTEB NQ
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 29.524
- type: map_at_10
value: 44.182
- type: map_at_100
value: 45.228
- type: map_at_1000
value: 45.265
- type: map_at_3
value: 39.978
- type: map_at_5
value: 42.482
- type: mrr_at_1
value: 33.256
- type: mrr_at_10
value: 46.661
- type: mrr_at_100
value: 47.47
- type: mrr_at_1000
value: 47.496
- type: mrr_at_3
value: 43.187999999999995
- type: mrr_at_5
value: 45.330999999999996
- type: ndcg_at_1
value: 33.227000000000004
- type: ndcg_at_10
value: 51.589
- type: ndcg_at_100
value: 56.043
- type: ndcg_at_1000
value: 56.937000000000005
- type: ndcg_at_3
value: 43.751
- type: ndcg_at_5
value: 47.937000000000005
- type: precision_at_1
value: 33.227000000000004
- type: precision_at_10
value: 8.556999999999999
- type: precision_at_100
value: 1.103
- type: precision_at_1000
value: 0.11900000000000001
- type: precision_at_3
value: 19.921
- type: precision_at_5
value: 14.396999999999998
- type: recall_at_1
value: 29.524
- type: recall_at_10
value: 71.615
- type: recall_at_100
value: 91.056
- type: recall_at_1000
value: 97.72800000000001
- type: recall_at_3
value: 51.451
- type: recall_at_5
value: 61.119
- task:
type: Retrieval
dataset:
type: quora
name: MTEB QuoraRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 69.596
- type: map_at_10
value: 83.281
- type: map_at_100
value: 83.952
- type: map_at_1000
value: 83.97200000000001
- type: map_at_3
value: 80.315
- type: map_at_5
value: 82.223
- type: mrr_at_1
value: 80.17
- type: mrr_at_10
value: 86.522
- type: mrr_at_100
value: 86.644
- type: mrr_at_1000
value: 86.64500000000001
- type: mrr_at_3
value: 85.438
- type: mrr_at_5
value: 86.21799999999999
- type: ndcg_at_1
value: 80.19
- type: ndcg_at_10
value: 87.19
- type: ndcg_at_100
value: 88.567
- type: ndcg_at_1000
value: 88.70400000000001
- type: ndcg_at_3
value: 84.17999999999999
- type: ndcg_at_5
value: 85.931
- type: precision_at_1
value: 80.19
- type: precision_at_10
value: 13.209000000000001
- type: precision_at_100
value: 1.518
- type: precision_at_1000
value: 0.157
- type: precision_at_3
value: 36.717
- type: precision_at_5
value: 24.248
- type: recall_at_1
value: 69.596
- type: recall_at_10
value: 94.533
- type: recall_at_100
value: 99.322
- type: recall_at_1000
value: 99.965
- type: recall_at_3
value: 85.911
- type: recall_at_5
value: 90.809
- task:
type: Clustering
dataset:
type: mteb/reddit-clustering
name: MTEB RedditClustering
config: default
split: test
revision: 24640382cdbf8abc73003fb0fa6d111a705499eb
metrics:
- type: v_measure
value: 49.27650627571912
- task:
type: Clustering
dataset:
type: mteb/reddit-clustering-p2p
name: MTEB RedditClusteringP2P
config: default
split: test
revision: 282350215ef01743dc01b456c7f5241fa8937f16
metrics:
- type: v_measure
value: 57.08550946534183
- task:
type: Retrieval
dataset:
type: scidocs
name: MTEB SCIDOCS
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 4.568
- type: map_at_10
value: 10.862
- type: map_at_100
value: 12.757
- type: map_at_1000
value: 13.031
- type: map_at_3
value: 7.960000000000001
- type: map_at_5
value: 9.337
- type: mrr_at_1
value: 22.5
- type: mrr_at_10
value: 32.6
- type: mrr_at_100
value: 33.603
- type: mrr_at_1000
value: 33.672000000000004
- type: mrr_at_3
value: 29.299999999999997
- type: mrr_at_5
value: 31.25
- type: ndcg_at_1
value: 22.5
- type: ndcg_at_10
value: 18.605
- type: ndcg_at_100
value: 26.029999999999998
- type: ndcg_at_1000
value: 31.256
- type: ndcg_at_3
value: 17.873
- type: ndcg_at_5
value: 15.511
- type: precision_at_1
value: 22.5
- type: precision_at_10
value: 9.58
- type: precision_at_100
value: 2.033
- type: precision_at_1000
value: 0.33
- type: precision_at_3
value: 16.633
- type: precision_at_5
value: 13.54
- type: recall_at_1
value: 4.568
- type: recall_at_10
value: 19.402
- type: recall_at_100
value: 41.277
- type: recall_at_1000
value: 66.963
- type: recall_at_3
value: 10.112
- type: recall_at_5
value: 13.712
- task:
type: STS
dataset:
type: mteb/sickr-sts
name: MTEB SICK-R
config: default
split: test
revision: a6ea5a8cab320b040a23452cc28066d9beae2cee
metrics:
- type: cos_sim_pearson
value: 83.31992291680787
- type: cos_sim_spearman
value: 76.7212346922664
- type: euclidean_pearson
value: 80.42189271706478
- type: euclidean_spearman
value: 76.7212342532493
- type: manhattan_pearson
value: 80.33171093031578
- type: manhattan_spearman
value: 76.63192883074694
- task:
type: STS
dataset:
type: mteb/sts12-sts
name: MTEB STS12
config: default
split: test
revision: a0d554a64d88156834ff5ae9920b964011b16384
metrics:
- type: cos_sim_pearson
value: 83.16654278886763
- type: cos_sim_spearman
value: 73.66390263429565
- type: euclidean_pearson
value: 79.7485360086639
- type: euclidean_spearman
value: 73.66389870373436
- type: manhattan_pearson
value: 79.73652237443706
- type: manhattan_spearman
value: 73.65296117151647
- task:
type: STS
dataset:
type: mteb/sts13-sts
name: MTEB STS13
config: default
split: test
revision: 7e90230a92c190f1bf69ae9002b8cea547a64cca
metrics:
- type: cos_sim_pearson
value: 82.40389689929246
- type: cos_sim_spearman
value: 83.29727595993955
- type: euclidean_pearson
value: 82.23970587854079
- type: euclidean_spearman
value: 83.29727595993955
- type: manhattan_pearson
value: 82.18823600831897
- type: manhattan_spearman
value: 83.20746192209594
- task:
type: STS
dataset:
type: mteb/sts14-sts
name: MTEB STS14
config: default
split: test
revision: 6031580fec1f6af667f0bd2da0a551cf4f0b2375
metrics:
- type: cos_sim_pearson
value: 81.73505246913413
- type: cos_sim_spearman
value: 79.1686548248754
- type: euclidean_pearson
value: 80.48889135993412
- type: euclidean_spearman
value: 79.16864112930354
- type: manhattan_pearson
value: 80.40720651057302
- type: manhattan_spearman
value: 79.0640155089286
- task:
type: STS
dataset:
type: mteb/sts15-sts
name: MTEB STS15
config: default
split: test
revision: ae752c7c21bf194d8b67fd573edf7ae58183cbe3
metrics:
- type: cos_sim_pearson
value: 86.3953512879065
- type: cos_sim_spearman
value: 87.29947322714338
- type: euclidean_pearson
value: 86.59759438529645
- type: euclidean_spearman
value: 87.29947511092824
- type: manhattan_pearson
value: 86.52097806169155
- type: manhattan_spearman
value: 87.22987242146534
- task:
type: STS
dataset:
type: mteb/sts16-sts
name: MTEB STS16
config: default
split: test
revision: 4d8694f8f0e0100860b497b999b3dbed754a0513
metrics:
- type: cos_sim_pearson
value: 82.48565753792056
- type: cos_sim_spearman
value: 83.6049720319893
- type: euclidean_pearson
value: 82.56452023172913
- type: euclidean_spearman
value: 83.60490168191697
- type: manhattan_pearson
value: 82.58079941137872
- type: manhattan_spearman
value: 83.60975807374051
- task:
type: STS
dataset:
type: mteb/sts17-crosslingual-sts
name: MTEB STS17 (en-en)
config: en-en
split: test
revision: af5e6fb845001ecf41f4c1e033ce921939a2a68d
metrics:
- type: cos_sim_pearson
value: 88.18239976618212
- type: cos_sim_spearman
value: 88.23061724730616
- type: euclidean_pearson
value: 87.78482472776658
- type: euclidean_spearman
value: 88.23061724730616
- type: manhattan_pearson
value: 87.75059641730239
- type: manhattan_spearman
value: 88.22527413524622
- task:
type: STS
dataset:
type: mteb/sts22-crosslingual-sts
name: MTEB STS22 (en)
config: en
split: test
revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80
metrics:
- type: cos_sim_pearson
value: 63.42816418706765
- type: cos_sim_spearman
value: 63.4569864520124
- type: euclidean_pearson
value: 64.35405409953853
- type: euclidean_spearman
value: 63.4569864520124
- type: manhattan_pearson
value: 63.96649236073056
- type: manhattan_spearman
value: 63.01448583722708
- task:
type: STS
dataset:
type: mteb/stsbenchmark-sts
name: MTEB STSBenchmark
config: default
split: test
revision: b0fddb56ed78048fa8b90373c8a3cfc37b684831
metrics:
- type: cos_sim_pearson
value: 83.41659638047614
- type: cos_sim_spearman
value: 84.03893866106175
- type: euclidean_pearson
value: 84.2251203953798
- type: euclidean_spearman
value: 84.03893866106175
- type: manhattan_pearson
value: 84.22733643205514
- type: manhattan_spearman
value: 84.06504411263612
- task:
type: Reranking
dataset:
type: mteb/scidocs-reranking
name: MTEB SciDocsRR
config: default
split: test
revision: d3c5e1fc0b855ab6097bf1cda04dd73947d7caab
metrics:
- type: map
value: 79.75608022582414
- type: mrr
value: 94.0947732369301
- task:
type: Retrieval
dataset:
type: scifact
name: MTEB SciFact
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 50.161
- type: map_at_10
value: 59.458999999999996
- type: map_at_100
value: 60.156
- type: map_at_1000
value: 60.194
- type: map_at_3
value: 56.45400000000001
- type: map_at_5
value: 58.165
- type: mrr_at_1
value: 53.333
- type: mrr_at_10
value: 61.050000000000004
- type: mrr_at_100
value: 61.586
- type: mrr_at_1000
value: 61.624
- type: mrr_at_3
value: 58.889
- type: mrr_at_5
value: 60.122
- type: ndcg_at_1
value: 53.333
- type: ndcg_at_10
value: 63.888999999999996
- type: ndcg_at_100
value: 66.963
- type: ndcg_at_1000
value: 68.062
- type: ndcg_at_3
value: 59.01
- type: ndcg_at_5
value: 61.373999999999995
- type: precision_at_1
value: 53.333
- type: precision_at_10
value: 8.633000000000001
- type: precision_at_100
value: 1.027
- type: precision_at_1000
value: 0.11199999999999999
- type: precision_at_3
value: 23.111
- type: precision_at_5
value: 15.467
- type: recall_at_1
value: 50.161
- type: recall_at_10
value: 75.922
- type: recall_at_100
value: 90.0
- type: recall_at_1000
value: 98.667
- type: recall_at_3
value: 62.90599999999999
- type: recall_at_5
value: 68.828
- task:
type: PairClassification
dataset:
type: mteb/sprintduplicatequestions-pairclassification
name: MTEB SprintDuplicateQuestions
config: default
split: test
revision: d66bd1f72af766a5cc4b0ca5e00c162f89e8cc46
metrics:
- type: cos_sim_accuracy
value: 99.81188118811882
- type: cos_sim_ap
value: 95.11619225962413
- type: cos_sim_f1
value: 90.35840484603736
- type: cos_sim_precision
value: 91.23343527013252
- type: cos_sim_recall
value: 89.5
- type: dot_accuracy
value: 99.81188118811882
- type: dot_ap
value: 95.11619225962413
- type: dot_f1
value: 90.35840484603736
- type: dot_precision
value: 91.23343527013252
- type: dot_recall
value: 89.5
- type: euclidean_accuracy
value: 99.81188118811882
- type: euclidean_ap
value: 95.11619225962413
- type: euclidean_f1
value: 90.35840484603736
- type: euclidean_precision
value: 91.23343527013252
- type: euclidean_recall
value: 89.5
- type: manhattan_accuracy
value: 99.80891089108911
- type: manhattan_ap
value: 95.07294266220966
- type: manhattan_f1
value: 90.21794221996959
- type: manhattan_precision
value: 91.46968139773895
- type: manhattan_recall
value: 89.0
- type: max_accuracy
value: 99.81188118811882
- type: max_ap
value: 95.11619225962413
- type: max_f1
value: 90.35840484603736
- task:
type: Clustering
dataset:
type: mteb/stackexchange-clustering
name: MTEB StackExchangeClustering
config: default
split: test
revision: 6cbc1f7b2bc0622f2e39d2c77fa502909748c259
metrics:
- type: v_measure
value: 55.3481874105239
- task:
type: Clustering
dataset:
type: mteb/stackexchange-clustering-p2p
name: MTEB StackExchangeClusteringP2P
config: default
split: test
revision: 815ca46b2622cec33ccafc3735d572c266efdb44
metrics:
- type: v_measure
value: 34.421291695525
- task:
type: Reranking
dataset:
type: mteb/stackoverflowdupquestions-reranking
name: MTEB StackOverflowDupQuestions
config: default
split: test
revision: e185fbe320c72810689fc5848eb6114e1ef5ec69
metrics:
- type: map
value: 49.98746633276634
- type: mrr
value: 50.63143249724133
- task:
type: Summarization
dataset:
type: mteb/summeval
name: MTEB SummEval
config: default
split: test
revision: cda12ad7615edc362dbf25a00fdd61d3b1eaf93c
metrics:
- type: cos_sim_pearson
value: 31.009961979844036
- type: cos_sim_spearman
value: 30.558416108881044
- type: dot_pearson
value: 31.009964941134253
- type: dot_spearman
value: 30.545760761761393
- task:
type: Retrieval
dataset:
type: trec-covid
name: MTEB TRECCOVID
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 0.207
- type: map_at_10
value: 1.6
- type: map_at_100
value: 8.594
- type: map_at_1000
value: 20.213
- type: map_at_3
value: 0.585
- type: map_at_5
value: 0.9039999999999999
- type: mrr_at_1
value: 78.0
- type: mrr_at_10
value: 87.4
- type: mrr_at_100
value: 87.4
- type: mrr_at_1000
value: 87.4
- type: mrr_at_3
value: 86.667
- type: mrr_at_5
value: 87.06700000000001
- type: ndcg_at_1
value: 73.0
- type: ndcg_at_10
value: 65.18
- type: ndcg_at_100
value: 49.631
- type: ndcg_at_1000
value: 43.498999999999995
- type: ndcg_at_3
value: 71.83800000000001
- type: ndcg_at_5
value: 69.271
- type: precision_at_1
value: 78.0
- type: precision_at_10
value: 69.19999999999999
- type: precision_at_100
value: 50.980000000000004
- type: precision_at_1000
value: 19.426
- type: precision_at_3
value: 77.333
- type: precision_at_5
value: 74.0
- type: recall_at_1
value: 0.207
- type: recall_at_10
value: 1.822
- type: recall_at_100
value: 11.849
- type: recall_at_1000
value: 40.492
- type: recall_at_3
value: 0.622
- type: recall_at_5
value: 0.9809999999999999
- task:
type: Retrieval
dataset:
type: webis-touche2020
name: MTEB Touche2020
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 2.001
- type: map_at_10
value: 10.376000000000001
- type: map_at_100
value: 16.936999999999998
- type: map_at_1000
value: 18.615000000000002
- type: map_at_3
value: 5.335999999999999
- type: map_at_5
value: 7.374
- type: mrr_at_1
value: 20.408
- type: mrr_at_10
value: 38.29
- type: mrr_at_100
value: 39.33
- type: mrr_at_1000
value: 39.347
- type: mrr_at_3
value: 32.993
- type: mrr_at_5
value: 36.973
- type: ndcg_at_1
value: 17.347
- type: ndcg_at_10
value: 23.515
- type: ndcg_at_100
value: 37.457
- type: ndcg_at_1000
value: 49.439
- type: ndcg_at_3
value: 22.762999999999998
- type: ndcg_at_5
value: 22.622
- type: precision_at_1
value: 20.408
- type: precision_at_10
value: 22.448999999999998
- type: precision_at_100
value: 8.184
- type: precision_at_1000
value: 1.608
- type: precision_at_3
value: 25.85
- type: precision_at_5
value: 25.306
- type: recall_at_1
value: 2.001
- type: recall_at_10
value: 17.422
- type: recall_at_100
value: 51.532999999999994
- type: recall_at_1000
value: 87.466
- type: recall_at_3
value: 6.861000000000001
- type: recall_at_5
value: 10.502
- task:
type: Classification
dataset:
type: mteb/toxic_conversations_50k
name: MTEB ToxicConversationsClassification
config: default
split: test
revision: d7c0de2777da35d6aae2200a62c6e0e5af397c4c
metrics:
- type: accuracy
value: 71.54419999999999
- type: ap
value: 14.372170450843907
- type: f1
value: 54.94420257390529
- task:
type: Classification
dataset:
type: mteb/tweet_sentiment_extraction
name: MTEB TweetSentimentExtractionClassification
config: default
split: test
revision: d604517c81ca91fe16a244d1248fc021f9ecee7a
metrics:
- type: accuracy
value: 59.402942840973395
- type: f1
value: 59.4166538875571
- task:
type: Clustering
dataset:
type: mteb/twentynewsgroups-clustering
name: MTEB TwentyNewsgroupsClustering
config: default
split: test
revision: 6125ec4e24fa026cec8a478383ee943acfbd5449
metrics:
- type: v_measure
value: 41.569064336457906
- task:
type: PairClassification
dataset:
type: mteb/twittersemeval2015-pairclassification
name: MTEB TwitterSemEval2015
config: default
split: test
revision: 70970daeab8776df92f5ea462b6173c0b46fd2d1
metrics:
- type: cos_sim_accuracy
value: 85.31322644096085
- type: cos_sim_ap
value: 72.14518894837381
- type: cos_sim_f1
value: 66.67489813557229
- type: cos_sim_precision
value: 62.65954977953121
- type: cos_sim_recall
value: 71.2401055408971
- type: dot_accuracy
value: 85.31322644096085
- type: dot_ap
value: 72.14521480685293
- type: dot_f1
value: 66.67489813557229
- type: dot_precision
value: 62.65954977953121
- type: dot_recall
value: 71.2401055408971
- type: euclidean_accuracy
value: 85.31322644096085
- type: euclidean_ap
value: 72.14520820485349
- type: euclidean_f1
value: 66.67489813557229
- type: euclidean_precision
value: 62.65954977953121
- type: euclidean_recall
value: 71.2401055408971
- type: manhattan_accuracy
value: 85.21785778148656
- type: manhattan_ap
value: 72.01177147657364
- type: manhattan_f1
value: 66.62594673833374
- type: manhattan_precision
value: 62.0336669699727
- type: manhattan_recall
value: 71.95250659630607
- type: max_accuracy
value: 85.31322644096085
- type: max_ap
value: 72.14521480685293
- type: max_f1
value: 66.67489813557229
- task:
type: PairClassification
dataset:
type: mteb/twitterurlcorpus-pairclassification
name: MTEB TwitterURLCorpus
config: default
split: test
revision: 8b6510b0b1fa4e4c4f879467980e9be563ec1cdf
metrics:
- type: cos_sim_accuracy
value: 89.12756626693057
- type: cos_sim_ap
value: 86.05430786440826
- type: cos_sim_f1
value: 78.27759692216631
- type: cos_sim_precision
value: 75.33466248931929
- type: cos_sim_recall
value: 81.45980905451185
- type: dot_accuracy
value: 89.12950673341872
- type: dot_ap
value: 86.05431161145492
- type: dot_f1
value: 78.27759692216631
- type: dot_precision
value: 75.33466248931929
- type: dot_recall
value: 81.45980905451185
- type: euclidean_accuracy
value: 89.12756626693057
- type: euclidean_ap
value: 86.05431303247397
- type: euclidean_f1
value: 78.27759692216631
- type: euclidean_precision
value: 75.33466248931929
- type: euclidean_recall
value: 81.45980905451185
- type: manhattan_accuracy
value: 89.04994760740482
- type: manhattan_ap
value: 86.00860610892074
- type: manhattan_f1
value: 78.1846776005392
- type: manhattan_precision
value: 76.10438839480975
- type: manhattan_recall
value: 80.3818909762858
- type: max_accuracy
value: 89.12950673341872
- type: max_ap
value: 86.05431303247397
- type: max_f1
value: 78.27759692216631
---
<!-- TODO: add evaluation results here -->
<br><br>
<p align="center">
<img src="https://github.com/jina-ai/finetuner/blob/main/docs/_static/finetuner-logo-ani.svg?raw=true" alt="Finetuner logo: Finetuner helps you to create experiments in order to improve embeddings on search tasks. It accompanies you to deliver the last mile of performance-tuning for neural search applications." width="150px">
</p>
<p align="center">
<b>The text embedding set trained by <a href="https://jina.ai/"><b>Jina AI</b></a>, <a href="https://github.com/jina-ai/finetuner"><b>Finetuner</b></a> team.</b>
</p>
## Intended Usage & Model Info
`jina-embeddings-v2-small-en` is an English, monolingual **embedding model** supporting **8192 sequence length**.
It is based on a Bert architecture (JinaBert) that supports the symmetric bidirectional variant of [ALiBi](https://arxiv.org/abs/2108.12409) to allow longer sequence length.
The backbone `jina-bert-v2-small-en` is pretrained on the C4 dataset.
The model is further trained on Jina AI's collection of more than 400 millions of sentence pairs and hard negatives.
These pairs were obtained from various domains and were carefully selected through a thorough cleaning process.
The embedding model was trained using 512 sequence length, but extrapolates to 8k sequence length (or even longer) thanks to ALiBi.
This makes our model useful for a range of use cases, especially when processing long documents is needed, including long document retrieval, semantic textual similarity, text reranking, recommendation, RAG and LLM-based generative search, etc.
This model has 33 million parameters, which enables lightning-fast and memory efficient inference, while still delivering impressive performance.
Additionally, we provide the following embedding models:
**V1 (Based on T5, 512 Seq)**
- [`jina-embeddings-v1-small-en`](https://huggingface.co/jinaai/jina-embedding-s-en-v1): 35 million parameters.
- [`jina-embeddings-v1-base-en`](https://huggingface.co/jinaai/jina-embedding-b-en-v1): 110 million parameters.
- [`jina-embeddings-v1-large-en`](https://huggingface.co/jinaai/jina-embedding-l-en-v1): 330 million parameters.
**V2 (Based on JinaBert, 8k Seq)**
- [`jina-embeddings-v2-small-en`](https://huggingface.co/jinaai/jina-embeddings-v2-small-en): 33 million parameters **(you are here)**.
- [`jina-embeddings-v2-base-en`](https://huggingface.co/jinaai/jina-embeddings-v2-base-en): 137 million parameters.
- [`jina-embeddings-v2-large-en`](): 435 million parameters (releasing soon).
## Data & Parameters
Jina Embeddings V2 [technical report](https://arxiv.org/abs/2310.19923)
## Usage
**<details><summary>Please apply mean pooling when integrating the model.</summary>**
<p>
### Why mean pooling?
`mean poooling` takes all token embeddings from model output and averaging them at sentence/paragraph level.
It has been proved to be the most effective way to produce high-quality sentence embeddings.
We offer an `encode` function to deal with this.
However, if you would like to do it without using the default `encode` function:
```python
import torch
import torch.nn.functional as F
from transformers import AutoTokenizer, AutoModel
def mean_pooling(model_output, attention_mask):
token_embeddings = model_output[0]
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 = ['How is the weather today?', 'What is the current weather like today?']
tokenizer = AutoTokenizer.from_pretrained('jinaai/jina-embeddings-v2-small-en')
model = AutoModel.from_pretrained('jinaai/jina-embeddings-v2-small-en', trust_remote_code=True)
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
with torch.no_grad():
model_output = model(**encoded_input)
embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
embeddings = F.normalize(embeddings, p=2, dim=1)
```
</p>
</details>
You can use Jina Embedding models directly from transformers package:
```python
!pip install transformers
from transformers import AutoModel
from numpy.linalg import norm
cos_sim = lambda a,b: (a @ b.T) / (norm(a)*norm(b))
model = AutoModel.from_pretrained('jinaai/jina-embeddings-v2-small-en', trust_remote_code=True) # trust_remote_code is needed to use the encode method
embeddings = model.encode(['How is the weather today?', 'What is the current weather like today?'])
print(cos_sim(embeddings[0], embeddings[1]))
```
If you only want to handle shorter sequence, such as 2k, pass the `max_length` parameter to the `encode` function:
```python
embeddings = model.encode(
['Very long ... document'],
max_length=2048
)
```
## Fully-managed Embeddings Service
Alternatively, you can use Jina AI's [Embeddings platform](https://jina.ai/embeddings/) for fully-managed access to Jina Embeddings models.
## RAG Performance
According to the latest blog post from [LLamaIndex](https://blog.llamaindex.ai/boosting-rag-picking-the-best-embedding-reranker-models-42d079022e83),
> In summary, to achieve the peak performance in both hit rate and MRR, the combination of OpenAI or JinaAI-Base embeddings with the CohereRerank/bge-reranker-large reranker stands out.
<img src="https://miro.medium.com/v2/resize:fit:4800/format:webp/1*ZP2RVejCZovF3FDCg-Bx3A.png" width="780px">
## Plans
The development of new bilingual models is currently underway. We will be targeting mainly the German and Spanish languages.
The upcoming models will be called `jina-embeddings-v2-small-de/es`.
## Contact
Join our [Discord community](https://discord.jina.ai) and chat with other community members about ideas.
## Citation
If you find Jina Embeddings useful in your research, please cite the following paper:
```
@misc{günther2023jina,
title={Jina Embeddings 2: 8192-Token General-Purpose Text Embeddings for Long Documents},
author={Michael Günther and Jackmin Ong and Isabelle Mohr and Alaeddine Abdessalem and Tanguy Abel and Mohammad Kalim Akram and Susana Guzman and Georgios Mastrapas and Saba Sturua and Bo Wang and Maximilian Werk and Nan Wang and Han Xiao},
year={2023},
eprint={2310.19923},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
``` | [
-0.3534793555736542,
-0.8007805943489075,
0.30711299180984497,
0.45094791054725647,
-0.3788125216960907,
-0.4088495671749115,
-0.2636599838733673,
-0.2730328440666199,
0.4422048330307007,
0.07090191543102264,
-0.24611714482307434,
-0.5402240753173828,
-0.6415139436721802,
0.08712160587310791,
-0.2823387086391449,
0.7672925591468811,
-0.12562650442123413,
0.05656123533844948,
-0.22938469052314758,
-0.1272219717502594,
-0.3010299503803253,
-0.3195013105869293,
-0.5840969681739807,
-0.10065683722496033,
0.41885170340538025,
0.11037153750658035,
0.6016702055931091,
0.7914233207702637,
0.22124816477298737,
0.32233765721321106,
-0.061637721955776215,
0.3245657980442047,
-0.3863624930381775,
0.08150753378868103,
0.01980837620794773,
-0.49580347537994385,
-0.4017467498779297,
0.17323265969753265,
0.664604902267456,
0.19862429797649384,
0.017807401716709137,
0.2846519351005554,
0.015240353532135487,
0.463634192943573,
-0.6040518879890442,
0.3061160445213318,
-0.3539273738861084,
-0.00795945804566145,
-0.10973759740591049,
0.07830768078565598,
-0.5003702640533447,
-0.2573546767234802,
0.18862242996692657,
-0.5425909757614136,
-0.11810394376516342,
0.2581751048564911,
1.340939998626709,
0.2715403139591217,
-0.34037426114082336,
-0.22390945255756378,
-0.2650737762451172,
0.959915816783905,
-0.931456446647644,
0.4682025909423828,
0.3969316780567169,
-0.09641100466251373,
-0.13384009897708893,
-0.6990421414375305,
-0.5821096301078796,
-0.04043257609009743,
-0.0747334286570549,
0.2643832564353943,
-0.05795540288090706,
-0.12279213219881058,
0.14858293533325195,
0.28689906001091003,
-0.5716855525970459,
0.05853841453790665,
-0.2251194715499878,
0.03920386731624603,
0.7812505960464478,
-0.04304090887308121,
0.35395702719688416,
-0.5588942170143127,
-0.1941937357187271,
-0.3743645250797272,
-0.29879656434059143,
-0.07072830200195312,
0.41677674651145935,
0.07604289054870605,
-0.3891269266605377,
0.5532879829406738,
-0.08778256922960281,
0.5494317412376404,
0.041652828454971313,
-0.018775060772895813,
0.4916543662548065,
-0.34677186608314514,
-0.32541728019714355,
-0.3129764199256897,
1.0594640970230103,
0.2966535687446594,
0.27813419699668884,
0.006421694532036781,
-0.16242612898349762,
-0.24728499352931976,
0.049078986048698425,
-0.8241668343544006,
-0.1893831342458725,
0.23212270438671112,
-0.6163015365600586,
-0.3623605966567993,
0.12235729396343231,
-0.829630434513092,
-0.14781242609024048,
0.021280191838741302,
0.685781717300415,
-0.6219657063484192,
-0.11405322700738907,
0.30118346214294434,
-0.22922305762767792,
0.32709798216819763,
0.027566984295845032,
-0.7184341549873352,
0.011437433771789074,
0.34927448630332947,
0.8785563111305237,
0.25318533182144165,
-0.31273019313812256,
-0.22457635402679443,
-0.12546539306640625,
-0.15232445299625397,
0.4858836531639099,
-0.3865453600883484,
-0.00046521355397999287,
0.15909188985824585,
0.041069742292165756,
-0.3180801272392273,
-0.15182770788669586,
0.5195538997650146,
-0.5454890131950378,
0.3906972110271454,
0.0555027574300766,
-0.709523618221283,
-0.2899174392223358,
0.11912214010953903,
-0.6360625624656677,
0.9187003970146179,
0.07985235750675201,
-0.8571474552154541,
0.10264173895120621,
-0.5043848156929016,
-0.2443278282880783,
-0.4994746148586273,
0.1859956532716751,
-0.8040255308151245,
-0.004515990149229765,
0.640014111995697,
0.7136476635932922,
-0.40756547451019287,
0.13551630079746246,
-0.3081183135509491,
-0.3002193570137024,
0.20398814976215363,
-0.33638039231300354,
0.8916462659835815,
0.3212611973285675,
-0.23687918484210968,
-0.08359697461128235,
-0.5902038216590881,
0.001294621266424656,
0.5530164241790771,
-0.22387729585170746,
-0.3450298607349396,
-0.01511343289166689,
0.20179833471775055,
0.2401677817106247,
0.42527228593826294,
-0.5518242120742798,
0.19979055225849152,
-0.5889406204223633,
0.5383699536323547,
0.7002373933792114,
0.04263853654265404,
0.4002692997455597,
-0.46059590578079224,
0.26310282945632935,
0.07118883728981018,
0.15772055089473724,
-0.23416124284267426,
-0.6224351525306702,
-0.9407866597175598,
-0.2947830259799957,
0.723406970500946,
0.43289047479629517,
-0.5554269552230835,
0.7233327627182007,
-0.42208296060562134,
-0.6596339344978333,
-0.7946830987930298,
0.17136918008327484,
0.3676013648509979,
-0.020880844444036484,
0.5218966007232666,
-0.09498856216669083,
-0.6144378185272217,
-0.8815782070159912,
-0.056740663945674896,
-0.0046658930368721485,
-0.024303805083036423,
0.22492069005966187,
0.6213913559913635,
-0.23850885033607483,
0.8243942856788635,
-0.5742010474205017,
-0.3810345232486725,
-0.2626376748085022,
-0.057234954088926315,
0.40358248353004456,
0.5694734454154968,
0.6585469841957092,
-0.6069976091384888,
-0.6984042525291443,
-0.34054332971572876,
-0.868310809135437,
0.2008954882621765,
-0.22894075512886047,
-0.1968071460723877,
0.20800460875034332,
0.30584731698036194,
-0.7657696008682251,
0.33298739790916443,
0.5348337292671204,
-0.3533999025821686,
0.24022223055362701,
-0.3085067868232727,
-0.015345650725066662,
-1.42547607421875,
-0.03704589605331421,
0.19051173329353333,
-0.1965959072113037,
-0.3828180432319641,
0.2180050164461136,
0.15706776082515717,
0.0032432249281555414,
-0.3691718876361847,
0.537007749080658,
-0.5639972686767578,
0.26870226860046387,
0.09241797775030136,
0.39370474219322205,
0.06709791719913483,
0.596969485282898,
-0.29331037402153015,
0.5504245162010193,
0.49219852685928345,
-0.481656551361084,
0.23835337162017822,
0.5629994869232178,
-0.3998224139213562,
0.16160181164741516,
-0.7580324411392212,
0.2381243109703064,
-0.05742187052965164,
0.33703741431236267,
-0.8061182498931885,
-0.12988679111003876,
0.31302210688591003,
-0.6063098907470703,
0.46689629554748535,
-0.07988664507865906,
-0.8017712235450745,
-0.40557944774627686,
-0.6960185766220093,
0.2411048710346222,
0.6423587203025818,
-0.5654783248901367,
0.5233168005943298,
0.35524481534957886,
0.02729298733174801,
-0.6344656348228455,
-0.6436604857444763,
-0.1340382695198059,
-0.16549581289291382,
-0.7765479683876038,
0.43950381875038147,
0.11505267024040222,
0.13516628742218018,
0.09605298191308975,
0.18309657275676727,
0.12543009221553802,
-0.016098076477646828,
0.17511826753616333,
0.15071047842502594,
-0.12488941848278046,
0.09528101980686188,
0.21681778132915497,
-0.09106510877609253,
-0.029536740854382515,
-0.2504763901233673,
0.849056601524353,
-0.23179565370082855,
-0.1237184926867485,
-0.582878828048706,
0.2591736614704132,
0.46984052658081055,
-0.40792253613471985,
1.083333134651184,
0.9666911363601685,
-0.5232208967208862,
-0.05573002249002457,
-0.5273923873901367,
-0.051258496940135956,
-0.48820775747299194,
0.4650952219963074,
-0.3457065224647522,
-0.5097079873085022,
0.4859795868396759,
0.21863308548927307,
0.1050931066274643,
0.7659130096435547,
0.3721514046192169,
-0.23356695473194122,
1.1123601198196411,
0.410763680934906,
-0.3539264500141144,
0.5340171456336975,
-0.8290603160858154,
0.2251305729150772,
-0.9405012726783752,
-0.2644016444683075,
-0.26010701060295105,
-0.36987942457199097,
-0.7987940311431885,
-0.6060139536857605,
0.14286936819553375,
0.15069539844989777,
-0.24661658704280853,
0.4924302399158478,
-0.4161020815372467,
0.12308447808027267,
0.5762670636177063,
0.2006358802318573,
-0.19827091693878174,
-0.059677038341760635,
-0.14442238211631775,
-0.03557179123163223,
-0.6158890128135681,
-0.37758511304855347,
1.1889935731887817,
0.6663579344749451,
0.7287217378616333,
-0.0735858753323555,
0.8879950046539307,
0.06425485014915466,
-0.06838998198509216,
-0.6911988854408264,
0.4399949014186859,
-0.21544666588306427,
-0.40271180868148804,
-0.32095304131507874,
-0.19136591255664825,
-0.9875445365905762,
0.21670356392860413,
-0.32421794533729553,
-0.5935423970222473,
0.17875714600086212,
-0.23521146178245544,
-0.33482831716537476,
0.42315828800201416,
-0.6381381750106812,
0.7291657328605652,
0.12047135829925537,
-0.31020504236221313,
-0.30813977122306824,
-0.4551357626914978,
0.020473556593060493,
0.11851939558982849,
0.06064832955598831,
-0.05405149981379509,
-0.06689253449440002,
1.0152374505996704,
-0.3341149687767029,
0.7518730759620667,
-0.26744765043258667,
0.049845583736896515,
0.3363730013370514,
-0.30064696073532104,
0.6831242442131042,
0.28085678815841675,
-0.13731634616851807,
0.1646791398525238,
-0.09958931058645248,
-0.5526401400566101,
-0.5713205337524414,
0.8268374800682068,
-1.0054035186767578,
-0.5592613220214844,
-0.47339367866516113,
-0.4332868456840515,
-0.043776873499155045,
0.15090914070606232,
0.320444792509079,
0.39083772897720337,
0.01520347036421299,
0.4916149973869324,
0.6035127639770508,
-0.49105650186538696,
0.5056982636451721,
0.08178462088108063,
-0.12354222685098648,
-0.5695061087608337,
1.0060111284255981,
0.24707454442977905,
-0.08656015992164612,
0.39328402280807495,
0.11919090151786804,
-0.25562968850135803,
-0.4321533441543579,
-0.4606679081916809,
0.6144919991493225,
-0.5228282809257507,
-0.3913465142250061,
-0.9545637369155884,
-0.4799821674823761,
-0.5924391746520996,
-0.16030994057655334,
-0.5266932249069214,
-0.41519075632095337,
-0.5473230481147766,
-0.16819652915000916,
0.4326373040676117,
0.6080878376960754,
0.0183093398809433,
0.1318666785955429,
-0.6073933839797974,
0.25758275389671326,
0.15485817193984985,
0.3031589686870575,
0.12011933326721191,
-0.6591130495071411,
-0.6047751903533936,
0.10328393429517746,
-0.3233858346939087,
-0.852327823638916,
0.6299383044242859,
0.20959125459194183,
0.5454009175300598,
0.35811465978622437,
0.079243004322052,
0.6292669177055359,
-0.46057945489883423,
0.8142175078392029,
-0.06773169338703156,
-0.8728963732719421,
0.5626940727233887,
-0.2067888230085373,
0.15330179035663605,
0.3063051998615265,
0.503341555595398,
-0.2731417417526245,
-0.4404517412185669,
-0.5914826989173889,
-0.9635355472564697,
0.6434502005577087,
0.3120761811733246,
0.47582322359085083,
-0.2155691534280777,
0.3916584849357605,
-0.172977477312088,
-0.20260420441627502,
-0.6566396355628967,
-0.47150948643684387,
-0.31980568170547485,
-0.3381733298301697,
-0.08480211347341537,
-0.40479564666748047,
0.16080023348331451,
-0.4864532947540283,
0.7661021947860718,
0.059407737106084824,
0.8360507488250732,
0.2815372049808502,
-0.38819536566734314,
0.21099120378494263,
-0.010414369404315948,
0.4035055637359619,
0.19799287617206573,
-0.32214319705963135,
-0.1520727574825287,
0.4146201014518738,
-0.3485918343067169,
0.0492744967341423,
0.28771671652793884,
-0.20217572152614594,
0.07766494899988174,
0.34133774042129517,
0.8223332166671753,
0.22338327765464783,
-0.34618693590164185,
0.6947659254074097,
-0.07033637166023254,
-0.09554218500852585,
-0.44682013988494873,
-0.002667228225618601,
0.22986914217472076,
0.24033932387828827,
0.2833532989025116,
-0.13309472799301147,
0.00595315033569932,
-0.36714765429496765,
0.22597716748714447,
0.25951269268989563,
-0.17738741636276245,
-0.3276725113391876,
0.7003874778747559,
0.12169702351093292,
-0.14462865889072418,
0.7646604776382446,
-0.25835397839546204,
-0.45915621519088745,
0.616504430770874,
0.7879536747932434,
0.9123799800872803,
-0.10519551485776901,
0.21735474467277527,
0.7135100364685059,
0.30459731817245483,
0.025274313986301422,
0.2123006135225296,
0.3206441402435303,
-0.717907726764679,
-0.13473057746887207,
-0.7369510531425476,
-0.06710806488990784,
0.05948380380868912,
-0.6501531600952148,
0.3314252495765686,
-0.5139601230621338,
-0.2104453146457672,
-0.11099925637245178,
0.3121757209300995,
-0.9444661140441895,
0.20148365199565887,
0.04952311888337135,
0.9599624872207642,
-0.8038870096206665,
0.8679346442222595,
0.6394225358963013,
-0.7693576216697693,
-0.5758211016654968,
0.15422064065933228,
-0.26599377393722534,
-0.6884254813194275,
0.3661944568157196,
0.44288691878318787,
0.1638607382774353,
0.0941106528043747,
-0.4238327145576477,
-1.0784281492233276,
1.3549965620040894,
0.23766911029815674,
-0.23579733073711395,
-0.21808791160583496,
-0.1736118644475937,
0.48949822783470154,
-0.37243854999542236,
0.41956084966659546,
0.3657921850681305,
0.5147348642349243,
-0.3934025466442108,
-0.682909369468689,
0.35819751024246216,
-0.5455969572067261,
0.2699158191680908,
-0.19625936448574066,
-0.9814178943634033,
0.8620461821556091,
-0.23779647052288055,
-0.2356039583683014,
0.2105429321527481,
1.0456082820892334,
0.035958874970674515,
0.09987284988164902,
0.38192570209503174,
0.736518919467926,
0.5958342552185059,
-0.04066695272922516,
1.301331877708435,
-0.32680007815361023,
0.4296492040157318,
0.7184655070304871,
0.30234116315841675,
1.0171688795089722,
0.22009551525115967,
-0.24775858223438263,
0.742343544960022,
0.6373109221458435,
-0.19965505599975586,
0.6391968727111816,
0.06724817305803299,
0.12616579234600067,
-0.0943775400519371,
0.010988427326083183,
-0.49733948707580566,
0.5213099122047424,
0.38097137212753296,
-0.5936038494110107,
0.09553828835487366,
0.09556357562541962,
0.2171017825603485,
-0.050689924508333206,
0.1705981343984604,
0.48749399185180664,
0.22635021805763245,
-0.4283704161643982,
0.7493454813957214,
0.43674442172050476,
1.0411481857299805,
-0.4055267870426178,
0.23498596251010895,
-0.20277360081672668,
0.13138504326343536,
-0.07119663804769516,
-0.6579544544219971,
0.10974534600973129,
-0.16068032383918762,
-0.09874919801950455,
-0.04353291168808937,
0.5384616255760193,
-0.42529505491256714,
-0.3529689908027649,
0.521496593952179,
0.35910657048225403,
0.010445354506373405,
0.034682728350162506,
-0.8467646837234497,
0.013422842137515545,
0.02976962924003601,
-0.677403450012207,
0.2935580909252167,
0.12335456162691116,
0.17877256870269775,
0.6473012566566467,
0.6428952217102051,
-0.1508324146270752,
0.10869504511356354,
0.03868905082345009,
0.8053852915763855,
-0.6998758316040039,
-0.33796989917755127,
-0.7998303771018982,
0.4815739691257477,
-0.20976246893405914,
-0.3731733560562134,
0.803098738193512,
0.5574408769607544,
0.748569667339325,
-0.2753554582595825,
0.5306115746498108,
-0.12244313210248947,
0.0961018055677414,
-0.5335620045661926,
0.9056115746498108,
-0.7553722262382507,
-0.065955750644207,
-0.2956666648387909,
-0.9436526894569397,
-0.2851313054561615,
0.8465636968612671,
-0.20308075845241547,
0.06013859063386917,
0.6047415137290955,
0.7641080021858215,
0.032553449273109436,
-0.22666464745998383,
0.2162490338087082,
0.3332458734512329,
0.3626106083393097,
0.6499496102333069,
0.4746798574924469,
-0.9972472786903381,
0.4550960659980774,
-0.48023533821105957,
-0.01788558065891266,
-0.40470385551452637,
-0.6622331142425537,
-1.0248699188232422,
-0.8531322479248047,
-0.3066360652446747,
-0.33370664715766907,
0.04373583942651749,
1.0817654132843018,
0.5972253680229187,
-0.7547382712364197,
0.08991536498069763,
0.1983831822872162,
0.1878529042005539,
-0.2181330919265747,
-0.26431313157081604,
0.6812331676483154,
-0.39089587330818176,
-1.1098628044128418,
0.3527206778526306,
-0.0429181270301342,
0.06218889728188515,
-0.17840096354484558,
-0.160317525267601,
-0.7119211554527283,
0.4188244044780731,
0.4929676353931427,
0.04374290257692337,
-0.6349915266036987,
-0.3183789849281311,
0.06574204564094543,
-0.2897976338863373,
-0.09862349182367325,
0.04533935338258743,
-0.5835043787956238,
0.4276966452598572,
0.7506892085075378,
0.6284147500991821,
0.6559167504310608,
-0.2595111131668091,
0.5448960065841675,
-0.6619746088981628,
0.15623168647289276,
-0.038283683359622955,
0.616847813129425,
0.32349586486816406,
-0.3092699944972992,
0.5986701250076294,
0.1347416788339615,
-0.42598333954811096,
-0.7511833310127258,
-0.2820921242237091,
-0.8986964821815491,
-0.08410670608282089,
1.1289770603179932,
-0.4294278621673584,
-0.29433462023735046,
0.16364328563213348,
-0.10691601037979126,
0.5576086044311523,
-0.3698194622993469,
0.7022452354431152,
0.642775297164917,
0.2082528918981552,
-0.11269248276948929,
-0.5897334218025208,
0.3557080328464508,
0.5969534516334534,
-0.5318494439125061,
-0.3543204069137573,
0.03138069435954094,
0.4011845290660858,
0.373138964176178,
0.3560587465763092,
-0.15125708281993866,
0.22455234825611115,
0.17745055258274078,
-0.08764713257551193,
-0.32818058133125305,
-0.21208561956882477,
-0.20418959856033325,
0.04034389555454254,
-0.14988766610622406,
-0.4952526092529297
] |
nvidia/mit-b0 | nvidia | "2023-11-15T07:49:03Z" | 110,690 | 22 | transformers | [
"transformers",
"pytorch",
"tf",
"segformer",
"image-classification",
"vision",
"dataset:imagenet_1k",
"arxiv:2105.15203",
"license:other",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | image-classification | "2022-03-02T23:29:05Z" | ---
license: other
tags:
- vision
datasets:
- imagenet_1k
widget:
- src: https://huggingface.co/datasets/hf-internal-testing/fixtures_ade20k/resolve/main/ADE_val_00000001.jpg
example_title: House
- src: https://huggingface.co/datasets/hf-internal-testing/fixtures_ade20k/resolve/main/ADE_val_00000002.jpg
example_title: Castle
---
# SegFormer (b0-sized) encoder pre-trained-only
SegFormer encoder fine-tuned on Imagenet-1k. It was introduced in the paper [SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers](https://arxiv.org/abs/2105.15203) by Xie et al. and first released in [this repository](https://github.com/NVlabs/SegFormer).
Disclaimer: The team releasing SegFormer did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
SegFormer consists of a hierarchical Transformer encoder and a lightweight all-MLP decode head to achieve great results on semantic segmentation benchmarks such as ADE20K and Cityscapes. The hierarchical Transformer is first pre-trained on ImageNet-1k, after which a decode head is added and fine-tuned altogether on a downstream dataset.
This repository only contains the pre-trained hierarchical Transformer, hence it can be used for fine-tuning purposes.
## Intended uses & limitations
You can use the model for fine-tuning of semantic segmentation. See the [model hub](https://huggingface.co/models?other=segformer) to look for fine-tuned versions on a task that interests you.
### How to use
Here is how to use this model to classify an image of the COCO 2017 dataset into one of the 1,000 ImageNet classes:
```python
from transformers import SegformerImageProcessor, SegformerForImageClassification
from PIL import Image
import requests
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(url, stream=True).raw)
image_processor = SegformerImageProcessor.from_pretrained("nvidia/mit-b0")
model = SegformerForImageClassification.from_pretrained("nvidia/mit-b0")
inputs = image_processor(images=image, return_tensors="pt")
outputs = model(**inputs)
logits = outputs.logits
# model predicts one of the 1000 ImageNet classes
predicted_class_idx = logits.argmax(-1).item()
print("Predicted class:", model.config.id2label[predicted_class_idx])
```
For more code examples, we refer to the [documentation](https://huggingface.co/transformers/model_doc/segformer.html#).
### License
The license for this model can be found [here](https://github.com/NVlabs/SegFormer/blob/master/LICENSE).
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-2105-15203,
author = {Enze Xie and
Wenhai Wang and
Zhiding Yu and
Anima Anandkumar and
Jose M. Alvarez and
Ping Luo},
title = {SegFormer: Simple and Efficient Design for Semantic Segmentation with
Transformers},
journal = {CoRR},
volume = {abs/2105.15203},
year = {2021},
url = {https://arxiv.org/abs/2105.15203},
eprinttype = {arXiv},
eprint = {2105.15203},
timestamp = {Wed, 02 Jun 2021 11:46:42 +0200},
biburl = {https://dblp.org/rec/journals/corr/abs-2105-15203.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
```
| [
-0.8901481628417969,
-0.6785708069801331,
0.06619040668010712,
0.15970280766487122,
-0.323188453912735,
-0.35545697808265686,
0.024776075035333633,
-0.6115251779556274,
0.2522808313369751,
0.5786442756652832,
-0.7913410067558289,
-0.5156200528144836,
-0.7496124505996704,
0.10531938821077347,
-0.32142800092697144,
0.8109403848648071,
0.1491883099079132,
-0.0743744820356369,
-0.441957026720047,
-0.23477545380592346,
-0.0040453472174704075,
-0.3092925548553467,
-0.650515079498291,
-0.38582873344421387,
0.39666885137557983,
0.21235060691833496,
0.5714830160140991,
0.7453705072402954,
0.7340737581253052,
0.4681566655635834,
-0.400176078081131,
0.08894892781972885,
-0.3039008677005768,
-0.2654484212398529,
0.027992255985736847,
-0.1092776507139206,
-0.37681809067726135,
-0.009891572408378124,
0.41444653272628784,
0.6245821118354797,
0.12461527436971664,
0.32063934206962585,
0.022509748116135597,
0.4442327320575714,
-0.5132496356964111,
0.05874425545334816,
-0.4715065360069275,
0.19655841588974,
-0.0011796363396570086,
-0.09883913397789001,
-0.357057124376297,
-0.17440707981586456,
0.21891595423221588,
-0.5306736826896667,
0.6183692812919617,
0.04759669303894043,
1.458390474319458,
0.4809551239013672,
-0.31536391377449036,
-0.03050786815583706,
-0.3511258065700531,
0.7643760442733765,
-0.7077327966690063,
0.4249562919139862,
0.048372022807598114,
0.3409556448459625,
0.0981636643409729,
-0.9672396183013916,
-0.44632405042648315,
0.12830756604671478,
-0.23439379036426544,
0.034786541014909744,
-0.3803810775279999,
0.13324210047721863,
0.44079074263572693,
0.4886312186717987,
-0.4483660161495209,
0.10806991159915924,
-0.7031391263008118,
-0.37488263845443726,
0.6266571879386902,
0.0246957466006279,
0.19215665757656097,
-0.3355812430381775,
-0.7511626482009888,
-0.40541061758995056,
-0.31022223830223083,
0.08504080772399902,
0.277296245098114,
0.04333486780524254,
-0.2938251793384552,
0.41483983397483826,
-0.05596228316426277,
0.7641359567642212,
0.44303086400032043,
-0.15375001728534698,
0.5358626842498779,
-0.11774866282939911,
-0.39330950379371643,
0.13720406591892242,
0.9070138931274414,
0.45518311858177185,
-0.012692227028310299,
0.04792260006070137,
-0.04995783418416977,
0.1792498528957367,
0.26055946946144104,
-1.233208179473877,
-0.1588524878025055,
0.04137536883354187,
-0.5144845843315125,
-0.36043301224708557,
0.09300831705331802,
-0.7659718990325928,
-0.025352386757731438,
-0.14748631417751312,
0.5040772557258606,
-0.27810677886009216,
-0.06993584334850311,
0.16633440554141998,
-0.128835529088974,
0.7672705054283142,
0.2124197632074356,
-0.741717517375946,
0.2114538550376892,
0.5249464511871338,
0.7793940901756287,
-0.18253259360790253,
-0.242417573928833,
-0.0968109667301178,
-0.101499542593956,
-0.15554635226726532,
0.8237364888191223,
-0.36348581314086914,
-0.3273587226867676,
-0.2366250455379486,
0.5847471356391907,
-0.2361726611852646,
-0.5961285829544067,
0.7909368276596069,
-0.5730640888214111,
0.18775403499603271,
-0.05592929571866989,
-0.4781051278114319,
-0.47889286279678345,
0.34115898609161377,
-0.561402440071106,
0.8725307583808899,
0.1428803950548172,
-0.8971661925315857,
0.469543993473053,
-0.5450323224067688,
-0.2602570056915283,
0.006450758781284094,
0.09054175764322281,
-0.8269394636154175,
0.003010696964338422,
0.37735116481781006,
0.5139486193656921,
-0.24036499857902527,
0.26725029945373535,
-0.5019959807395935,
-0.2417859435081482,
-0.025486690923571587,
-0.184346541762352,
0.9310951828956604,
0.31559887528419495,
-0.3106035590171814,
0.3794434070587158,
-0.6667600870132446,
0.03453359007835388,
0.4012620747089386,
0.034424956887960434,
-0.03581838682293892,
-0.2899284362792969,
0.19914978742599487,
0.37874138355255127,
0.23719839751720428,
-0.6421487927436829,
0.04708423092961311,
-0.32911813259124756,
0.3838545083999634,
0.7263858914375305,
0.09014753997325897,
0.4931691288948059,
-0.15324044227600098,
0.3686424195766449,
0.2042263001203537,
0.4446195065975189,
-0.21911609172821045,
-0.22877714037895203,
-1.1565780639648438,
-0.2249467968940735,
0.24689549207687378,
0.12790796160697937,
-0.5129929184913635,
0.6052038073539734,
-0.23461699485778809,
-0.6654230952262878,
-0.47998544573783875,
-0.14044490456581116,
0.1968449354171753,
0.5350249409675598,
0.5185649991035461,
-0.4110974371433258,
-0.7877200841903687,
-1.129228949546814,
0.04102207347750664,
0.2089657187461853,
0.07025875896215439,
0.316078782081604,
0.6424084305763245,
-0.7035421133041382,
0.7265895009040833,
-0.6522786617279053,
-0.31084707379341125,
-0.18400251865386963,
-0.07749529182910919,
0.3194126486778259,
0.6759732365608215,
0.5732317566871643,
-0.7831869721412659,
-0.38025349378585815,
-0.19731494784355164,
-0.6560500860214233,
-0.03470774367451668,
0.08049649745225906,
-0.371250718832016,
0.16181640326976776,
0.47675323486328125,
-0.4414712190628052,
0.4411286413669586,
0.46338778734207153,
-0.5727918744087219,
0.31434008479118347,
-0.07167428731918335,
-0.020872460678219795,
-0.9670773148536682,
0.12835593521595,
0.15076304972171783,
-0.15401603281497955,
-0.5281367897987366,
0.12534500658512115,
-0.042678553611040115,
-0.13775555789470673,
-0.5763157606124878,
0.5665486454963684,
-0.3067852854728699,
0.009933166205883026,
-0.23437975347042084,
-0.2196696251630783,
0.07227440178394318,
0.7934923768043518,
0.16674533486366272,
0.3283015489578247,
0.5784111618995667,
-0.6832529306411743,
0.071336530148983,
0.5371803045272827,
-0.38842424750328064,
0.4333290755748749,
-1.0390571355819702,
0.11197802424430847,
-0.16343854367733002,
0.11084719002246857,
-0.6720107793807983,
-0.33964255452156067,
0.40487614274024963,
-0.3467009663581848,
0.4127778112888336,
-0.3470194339752197,
-0.23446053266525269,
-0.5256456732749939,
-0.08713380247354507,
0.3945414125919342,
0.48162880539894104,
-0.7832042574882507,
0.5176519751548767,
0.515178918838501,
0.1821921467781067,
-0.4229111969470978,
-0.6917189955711365,
-0.29875797033309937,
-0.23698633909225464,
-1.0202391147613525,
0.622332751750946,
-0.049083758145570755,
0.25251808762550354,
0.09355573356151581,
-0.3178607225418091,
-0.04647424444556236,
-0.0067954654805362225,
0.421673983335495,
0.5028806924819946,
-0.12923480570316315,
-0.2878173291683197,
0.004081078339368105,
-0.44269686937332153,
0.14912453293800354,
-0.1977197825908661,
0.6290441751480103,
-0.37968161702156067,
-0.42178019881248474,
-0.24483804404735565,
-0.032014764845371246,
0.3907293677330017,
-0.29692700505256653,
0.5507767796516418,
1.1019130945205688,
-0.2989920675754547,
-0.02369738556444645,
-0.5525728464126587,
-0.23991820216178894,
-0.5746297240257263,
0.3439114987850189,
-0.15957766771316528,
-1.0839124917984009,
0.4756207764148712,
0.0005078150425106287,
0.009285680949687958,
0.9542645215988159,
0.3609006702899933,
0.15383680164813995,
1.136965274810791,
0.5712662935256958,
0.3148002624511719,
0.5172070264816284,
-0.8089346289634705,
0.14045582711696625,
-0.9600538611412048,
-0.5444799065589905,
-0.43293827772140503,
-0.43006768822669983,
-0.8257547616958618,
-0.6318308711051941,
0.34344708919525146,
0.11386540532112122,
-0.49035167694091797,
0.4768393635749817,
-0.9174121618270874,
0.36839550733566284,
0.5486014485359192,
0.05358491837978363,
-0.20142072439193726,
0.1338501274585724,
-0.09023945778608322,
0.11242413520812988,
-0.7661684155464172,
-0.3555753827095032,
0.47111862897872925,
0.48220768570899963,
0.7570485472679138,
-0.24315467476844788,
0.664475679397583,
-0.10578536242246628,
0.02835637331008911,
-0.8371860384941101,
0.6173953413963318,
-0.1702733337879181,
-0.7429577708244324,
-0.13112498819828033,
-0.3551754057407379,
-0.9790416359901428,
0.3692852258682251,
-0.15885858237743378,
-0.7518195509910583,
0.6636151075363159,
0.11960124969482422,
-0.16987773776054382,
0.32089877128601074,
-0.5449358820915222,
1.216271162033081,
-0.2285250872373581,
-0.47252896428108215,
0.12512382864952087,
-0.7384410500526428,
0.16950415074825287,
0.23108598589897156,
-0.06801367551088333,
-0.3250589370727539,
0.2747173607349396,
0.9722521305084229,
-0.6062824726104736,
0.7373940944671631,
-0.37756216526031494,
0.36874786019325256,
0.5697970390319824,
-0.15858745574951172,
0.3914754092693329,
-0.07728172093629837,
0.19050435721874237,
0.4994428753852844,
0.2351255714893341,
-0.374236524105072,
-0.3279930055141449,
0.6312461495399475,
-0.9161314368247986,
-0.5747766494750977,
-0.5126358270645142,
-0.16146917641162872,
-0.015520695596933365,
0.39899516105651855,
0.5915049910545349,
0.4311973750591278,
-0.09061241894960403,
0.49813520908355713,
0.6413797736167908,
-0.40146973729133606,
0.49413439631462097,
0.12378787249326706,
-0.19809140264987946,
-0.4040117561817169,
0.8606653213500977,
-0.08442962169647217,
0.04505627974867821,
0.31577035784721375,
0.28286004066467285,
-0.35318470001220703,
-0.24708819389343262,
-0.3686107099056244,
0.21162846684455872,
-0.7179625034332275,
-0.417715460062027,
-0.8832241892814636,
-0.5736604928970337,
-0.40573057532310486,
-0.38589802384376526,
-0.4231239855289459,
-0.2609206438064575,
-0.39768990874290466,
-0.05814912170171738,
0.271114319562912,
0.3478541076183319,
-0.15776915848255157,
0.4635975658893585,
-0.6550561189651489,
0.1206168532371521,
0.3616357445716858,
0.3850623369216919,
0.049628980457782745,
-0.6291652321815491,
-0.1586025506258011,
0.005240150727331638,
-0.46391183137893677,
-0.5063588619232178,
0.6506643891334534,
0.16596995294094086,
0.5432524681091309,
0.6027401685714722,
-0.11165314167737961,
0.9278162717819214,
-0.18530602753162384,
0.5497511029243469,
0.43791159987449646,
-0.7586547136306763,
0.38838356733322144,
-0.12331179529428482,
0.570206880569458,
0.4601198434829712,
0.3307400941848755,
-0.5334330201148987,
0.11081074923276901,
-0.7883214354515076,
-1.0199886560440063,
0.952218770980835,
0.07068866491317749,
0.07323276251554489,
0.035327646881341934,
-0.020651573315262794,
0.0319942906498909,
-0.031196795403957367,
-0.5867416262626648,
-0.38731297850608826,
-0.4567093849182129,
-0.11010915040969849,
-0.1181686744093895,
-0.47805094718933105,
0.027652760967612267,
-0.538679301738739,
0.7711938619613647,
-0.1373572051525116,
0.6485111117362976,
0.25558435916900635,
-0.26509302854537964,
-0.05505179613828659,
0.015267839655280113,
0.35887041687965393,
0.23952515423297882,
-0.28860223293304443,
0.10411088168621063,
0.21251806616783142,
-0.4178274869918823,
-0.04441646859049797,
0.30013880133628845,
-0.3160149157047272,
-0.030088160187005997,
0.3741600215435028,
1.1633896827697754,
0.37822309136390686,
-0.2708331048488617,
0.5938822031021118,
-0.015833500772714615,
-0.5066806674003601,
-0.454207181930542,
0.21696683764457703,
-0.00286438618786633,
0.2972288429737091,
0.20348483324050903,
0.41946402192115784,
0.2864900529384613,
-0.01863502524793148,
0.21879740059375763,
0.29046908020973206,
-0.6990708708763123,
-0.3105963468551636,
0.7447469234466553,
0.10617198050022125,
0.02249227464199066,
0.6970813274383545,
-0.17905735969543457,
-0.6837126016616821,
0.9037157893180847,
0.5441706776618958,
1.02085542678833,
0.02924099564552307,
0.26621749997138977,
0.8057799935340881,
0.19685368239879608,
0.1072695404291153,
-0.0763317421078682,
-0.06674255430698395,
-0.8198711276054382,
-0.3442360758781433,
-1.058516025543213,
-0.01434234157204628,
0.022845212370157242,
-0.6803969740867615,
0.4268127977848053,
-0.4656425416469574,
-0.18950949609279633,
0.25426286458969116,
0.05144215002655983,
-1.0614702701568604,
0.2578505277633667,
0.20686331391334534,
1.0084279775619507,
-0.5463224649429321,
0.5000178217887878,
0.7960255742073059,
-0.2246735394001007,
-0.8196476101875305,
-0.49737876653671265,
-0.09985455125570297,
-0.8216912150382996,
0.4968593418598175,
0.49065494537353516,
0.03786640614271164,
0.0854799896478653,
-0.7834762334823608,
-1.0168062448501587,
1.2334890365600586,
0.14142078161239624,
-0.3764496147632599,
-0.03371189907193184,
0.05461163818836212,
0.3785521984100342,
-0.3935469090938568,
0.3699876368045807,
0.3298916518688202,
0.5804911255836487,
0.6952046155929565,
-0.4263259470462799,
0.03416061028838158,
-0.3599526286125183,
0.07104034721851349,
0.352308988571167,
-0.8031982183456421,
0.6840365529060364,
-0.2698184549808502,
-0.2546631097793579,
-0.1478155106306076,
0.6335976123809814,
0.0745454877614975,
0.35668984055519104,
0.6325129866600037,
0.8134278655052185,
0.44829368591308594,
-0.3622424602508545,
0.8787375092506409,
-0.2741602063179016,
0.6712085008621216,
0.8428241610527039,
0.3233572840690613,
0.34779584407806396,
0.4165857434272766,
-0.10387106239795685,
0.41232433915138245,
0.9143593311309814,
-0.5190609693527222,
0.5081138610839844,
-0.11566326767206192,
0.16824065148830414,
-0.4761482775211334,
-0.24494045972824097,
-0.5185267329216003,
0.7393575310707092,
0.16635549068450928,
-0.6439992189407349,
-0.14107964932918549,
-0.13742077350616455,
-0.056179970502853394,
-0.5208273530006409,
-0.29964664578437805,
0.6850357055664062,
0.11298350989818573,
-0.4259508550167084,
0.6299824118614197,
0.06356365978717804,
0.7594804167747498,
-0.4871554374694824,
0.07711521536111832,
-0.10110533237457275,
0.27943891286849976,
-0.37238603830337524,
-0.45498886704444885,
0.4562569856643677,
-0.2565290927886963,
-0.010716685093939304,
-0.10485393553972244,
1.0225911140441895,
-0.263526052236557,
-0.7108526825904846,
0.2134639471769333,
0.17174415290355682,
0.060044124722480774,
0.17734165489673615,
-0.8288165330886841,
0.35527002811431885,
0.07333625853061676,
-0.3570239245891571,
0.14154408872127533,
0.10740887373685837,
0.21354195475578308,
0.5541719198226929,
0.6062771081924438,
-0.3441532850265503,
0.06758971512317657,
-0.16919532418251038,
0.9397473931312561,
-0.6492726802825928,
-0.3772830665111542,
-0.7069917917251587,
0.5030165314674377,
-0.25411197543144226,
-0.40333354473114014,
0.7284562587738037,
0.6249175667762756,
1.2019190788269043,
-0.2686745822429657,
0.38186115026474,
-0.3586290776729584,
0.0516338050365448,
-0.18105781078338623,
0.5318207144737244,
-0.6607648134231567,
-0.10803697258234024,
-0.41875365376472473,
-0.9620906710624695,
-0.2912122309207916,
0.872211754322052,
-0.4125112295150757,
0.22919365763664246,
0.4250485599040985,
0.919819176197052,
-0.2544644773006439,
0.07312054932117462,
0.3052200675010681,
0.0940370187163353,
0.0696321576833725,
0.3053401708602905,
0.6920166611671448,
-0.507655680179596,
0.41414913535118103,
-0.7501062154769897,
0.04280716925859451,
-0.454109787940979,
-0.6327515244483948,
-0.8653365969657898,
-0.5773146152496338,
-0.48354217410087585,
-0.31003642082214355,
-0.26267215609550476,
0.8679901361465454,
0.9961935877799988,
-0.8425472974777222,
-0.05285678058862686,
-0.033738475292921066,
0.12528657913208008,
-0.15233027935028076,
-0.2517494261264801,
0.43272268772125244,
-0.05606022849678993,
-0.817095935344696,
-0.10074600577354431,
0.22519315779209137,
0.11767131835222244,
-0.06233226880431175,
-0.2964516282081604,
-0.06177741289138794,
-0.1281965970993042,
0.5961968898773193,
0.21880820393562317,
-0.5396645665168762,
-0.3058018982410431,
0.1825607270002365,
-0.0312493983656168,
0.17382343113422394,
0.5000965595245361,
-0.5602183938026428,
0.4607691466808319,
0.5384251475334167,
0.541613757610321,
0.9216986894607544,
-0.030131887644529343,
0.05923445150256157,
-0.41615360975265503,
0.2854243814945221,
0.21723681688308716,
0.5021566152572632,
0.34659677743911743,
-0.22158248722553253,
0.5811399221420288,
0.20873138308525085,
-0.5912958383560181,
-0.6351521611213684,
0.01957625336945057,
-1.1276874542236328,
-0.16458962857723236,
0.9875437021255493,
-0.022506626322865486,
-0.6255250573158264,
0.3485036790370941,
-0.12997937202453613,
0.38563841581344604,
-0.17101332545280457,
0.4464242458343506,
0.2056400626897812,
-0.03385831043124199,
-0.4250597059726715,
-0.12842179834842682,
0.3440837562084198,
0.03148534893989563,
-0.5667155981063843,
-0.5545797348022461,
0.4250347316265106,
0.3416343033313751,
0.25389206409454346,
0.2161092907190323,
-0.26803046464920044,
0.11043941974639893,
0.19912202656269073,
0.351801335811615,
-0.2992802858352661,
-0.19653192162513733,
-0.16044385731220245,
0.1312217265367508,
-0.20668238401412964,
-0.2511386275291443
] |
sentence-transformers/paraphrase-mpnet-base-v2 | sentence-transformers | "2022-06-15T19:23:23Z" | 109,803 | 28 | sentence-transformers | [
"sentence-transformers",
"pytorch",
"tf",
"mpnet",
"feature-extraction",
"sentence-similarity",
"transformers",
"arxiv:1908.10084",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"region:us"
] | sentence-similarity | "2022-03-02T23:29:05Z" | ---
pipeline_tag: sentence-similarity
license: apache-2.0
tags:
- sentence-transformers
- feature-extraction
- sentence-similarity
- transformers
---
# sentence-transformers/paraphrase-mpnet-base-v2
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
## Usage (Sentence-Transformers)
Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:
```
pip install -U sentence-transformers
```
Then you can use the model like this:
```python
from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]
model = SentenceTransformer('sentence-transformers/paraphrase-mpnet-base-v2')
embeddings = model.encode(sentences)
print(embeddings)
```
## Usage (HuggingFace Transformers)
Without [sentence-transformers](https://www.SBERT.net), you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
```python
from transformers import AutoTokenizer, AutoModel
import torch
#Mean Pooling - Take attention mask into account for correct averaging
def mean_pooling(model_output, attention_mask):
token_embeddings = model_output[0] #First element of model_output contains all token embeddings
input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()
return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9)
# Sentences we want sentence embeddings for
sentences = ['This is an example sentence', 'Each sentence is converted']
# Load model from HuggingFace Hub
tokenizer = AutoTokenizer.from_pretrained('sentence-transformers/paraphrase-mpnet-base-v2')
model = AutoModel.from_pretrained('sentence-transformers/paraphrase-mpnet-base-v2')
# Tokenize sentences
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
# Compute token embeddings
with torch.no_grad():
model_output = model(**encoded_input)
# Perform pooling. In this case, max pooling.
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
print("Sentence embeddings:")
print(sentence_embeddings)
```
## Evaluation Results
For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name=sentence-transformers/paraphrase-mpnet-base-v2)
## Full Model Architecture
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: MPNetModel
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False})
)
```
## Citing & Authors
This model was trained by [sentence-transformers](https://www.sbert.net/).
If you find this model helpful, feel free to cite our publication [Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks](https://arxiv.org/abs/1908.10084):
```bibtex
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "http://arxiv.org/abs/1908.10084",
}
``` | [
-0.23385097086429596,
-0.5689050555229187,
0.441925585269928,
0.37832605838775635,
-0.4235866069793701,
-0.4996713399887085,
-0.07483205944299698,
0.19121496379375458,
0.11030518263578415,
0.5457883477210999,
-0.41606438159942627,
-0.2620880603790283,
-0.7648279070854187,
0.07149742543697357,
-0.5018191933631897,
0.8181222081184387,
-0.1631786823272705,
-0.059588056057691574,
-0.36780601739883423,
-0.18702761828899384,
-0.03376422077417374,
-0.4447510540485382,
-0.4090948700904846,
-0.32448428869247437,
0.31810957193374634,
0.22380219399929047,
0.5243794322013855,
0.5733862519264221,
0.42731887102127075,
0.4353368580341339,
-0.09661609679460526,
0.05118897929787636,
-0.1816021203994751,
-0.11220382153987885,
-0.10708355903625488,
-0.3162885010242462,
0.0009527215152047575,
0.24970364570617676,
0.6487939357757568,
0.3994733691215515,
-0.1559571474790573,
0.17174941301345825,
0.14645427465438843,
0.22277860343456268,
-0.5239831805229187,
0.4885334074497223,
-0.7296801805496216,
0.18793143332004547,
0.059105440974235535,
-0.04279444366693497,
-0.45635420083999634,
-0.03000701777637005,
0.2618957757949829,
-0.31313586235046387,
0.11927618831396103,
0.07280372083187103,
1.0701731443405151,
0.33452948927879333,
-0.3208937346935272,
-0.19219942390918732,
-0.191739022731781,
0.8164660930633545,
-0.9601534605026245,
0.05569979548454285,
0.41003698110580444,
0.0809701606631279,
0.11329040676355362,
-1.2742249965667725,
-0.8111429214477539,
-0.18573202192783356,
-0.5115203857421875,
0.11782868206501007,
-0.36074453592300415,
-0.010194702073931694,
0.14306701719760895,
0.16139166057109833,
-0.5687346458435059,
-0.30086541175842285,
-0.4610971510410309,
-0.19331373274326324,
0.3296446204185486,
0.048413269221782684,
0.3738787770271301,
-0.7117795944213867,
-0.48479965329170227,
-0.33132627606391907,
-0.15647396445274353,
-0.09987430274486542,
0.07118593156337738,
0.14503362774848938,
-0.2922118604183197,
0.9107747673988342,
-0.19897909462451935,
0.519110381603241,
-0.06819001585245132,
0.11083640158176422,
0.553777277469635,
-0.41906291246414185,
-0.24756541848182678,
-0.15667709708213806,
1.1680405139923096,
0.5072166919708252,
0.30933624505996704,
-0.11989244818687439,
-0.14680665731430054,
-0.15805143117904663,
0.11833410710096359,
-0.874211847782135,
-0.46098634600639343,
0.08252833783626556,
-0.522920548915863,
-0.3765318989753723,
0.20788002014160156,
-0.8032964468002319,
-0.16241414844989777,
-0.02555667795240879,
0.7212070822715759,
-0.6101509928703308,
0.102879598736763,
0.07949984073638916,
-0.44614750146865845,
0.3229261338710785,
-0.44888854026794434,
-0.6585789918899536,
0.19791388511657715,
0.48163318634033203,
1.2231459617614746,
0.07412725687026978,
-0.7093483209609985,
-0.28368502855300903,
-0.0290547963231802,
0.2273639589548111,
0.640672504901886,
-0.4329972267150879,
-0.012699072249233723,
-0.12358487397432327,
0.2007453292608261,
-0.7323060631752014,
-0.4422144889831543,
0.7099223136901855,
-0.1504414826631546,
0.6003369688987732,
0.04085908085107803,
-0.6882404685020447,
-0.12853892147541046,
0.062011927366256714,
-0.3618980348110199,
0.949920654296875,
0.13053441047668457,
-1.0039442777633667,
-0.10334215313196182,
-0.6917422413825989,
-0.2748490869998932,
-0.19077664613723755,
0.07688379287719727,
-0.6883141994476318,
0.11729592829942703,
0.48536497354507446,
0.7752774953842163,
-0.05537598952651024,
0.32943302392959595,
-0.26207321882247925,
-0.4273211359977722,
0.46183672547340393,
-0.4526887536048889,
1.1162687540054321,
0.228463813662529,
-0.4919596314430237,
0.05701569840312004,
-0.4445708990097046,
-0.0970480889081955,
0.2432253509759903,
-0.1535431444644928,
-0.02710062265396118,
0.08425644040107727,
0.20157255232334137,
0.510775089263916,
0.3139163553714752,
-0.6490838527679443,
-0.04424482583999634,
-0.47361722588539124,
1.1103332042694092,
0.5526854395866394,
0.19978533685207367,
0.5874224305152893,
-0.44849464297294617,
0.19580522179603577,
0.3298892378807068,
0.10722075402736664,
-0.15056100487709045,
-0.4806180000305176,
-0.9358273148536682,
-0.19566023349761963,
0.26031920313835144,
0.6822889447212219,
-0.9200149178504944,
0.8249998688697815,
-0.4804609417915344,
-0.49714457988739014,
-0.6648868322372437,
-0.011766313575208187,
0.1902627944946289,
0.5594439506530762,
0.6931778192520142,
0.011308301240205765,
-0.6007769107818604,
-1.0884861946105957,
-0.09434612095355988,
-0.05337901785969734,
-0.05239548534154892,
0.30345240235328674,
0.7372414469718933,
-0.26060807704925537,
0.8460274338722229,
-0.48541805148124695,
-0.2556016445159912,
-0.42548611760139465,
0.2568807899951935,
0.21201346814632416,
0.6410380005836487,
0.4866325557231903,
-0.8496053814888,
-0.4844432473182678,
-0.4972609281539917,
-0.7213172316551208,
-0.1323809176683426,
-0.335001677274704,
-0.22688062489032745,
-0.029406774789094925,
0.5683485865592957,
-0.9533179998397827,
0.21287907660007477,
0.5386140942573547,
-0.48585939407348633,
0.33710598945617676,
-0.22947414219379425,
-0.13893882930278778,
-1.4649947881698608,
0.1589163839817047,
-0.02166578359901905,
-0.12505292892456055,
-0.33215853571891785,
0.1928146481513977,
0.1717480570077896,
-0.23734693229198456,
-0.48248490691185,
0.34038928151130676,
-0.38343489170074463,
0.16158942878246307,
-0.09946080297231674,
0.32277214527130127,
-0.05308791249990463,
0.772301971912384,
-0.12876464426517487,
0.8707309365272522,
0.5816336870193481,
-0.5029329061508179,
0.3718700110912323,
0.5023884773254395,
-0.47363346815109253,
0.2253250777721405,
-0.9379836916923523,
-0.021957114338874817,
-0.014531156048178673,
0.3605261743068695,
-1.1361358165740967,
-0.1138366162776947,
0.4411751627922058,
-0.5610055923461914,
-0.08941399306058884,
0.12757310271263123,
-0.6805455088615417,
-0.5859697461128235,
-0.36358335614204407,
0.0021823032293468714,
0.6772446632385254,
-0.47475236654281616,
0.5059614777565002,
0.20376114547252655,
-0.16210250556468964,
-0.5168166756629944,
-1.1153086423873901,
0.29295963048934937,
-0.2773117125034332,
-0.5600826740264893,
0.5203550457954407,
-0.030851466581225395,
0.16826795041561127,
0.13753272593021393,
0.1974143087863922,
-0.20399457216262817,
-0.04839232563972473,
-0.005552014801651239,
0.02921660616993904,
-0.12737391889095306,
-0.008340447209775448,
0.17171527445316315,
-0.10534165054559708,
0.18763044476509094,
-0.3220350742340088,
0.7496312260627747,
-0.1334054321050644,
-0.09223956614732742,
-0.5655749440193176,
0.24489586055278778,
0.6804297566413879,
-0.31237465143203735,
1.227616310119629,
0.9400551319122314,
-0.23689858615398407,
0.08020051568746567,
-0.417714923620224,
-0.19735926389694214,
-0.4705188274383545,
0.5510698556900024,
-0.27673444151878357,
-0.781948447227478,
0.3486216366291046,
0.25922730565071106,
-0.06082115322351456,
0.6689096689224243,
0.5555643439292908,
-0.17036160826683044,
0.8090581297874451,
0.34662535786628723,
-0.049412019550800323,
0.4857828915119171,
-0.4324936866760254,
0.20419727265834808,
-0.9530328512191772,
-0.1622520536184311,
-0.307366281747818,
-0.3865804076194763,
-0.640112042427063,
-0.5321516394615173,
0.18738962709903717,
0.005276428535580635,
-0.25192809104919434,
0.726766049861908,
-0.49472832679748535,
0.2923974096775055,
0.7789705991744995,
0.3277817666530609,
-0.21034321188926697,
0.09081587195396423,
-0.5511548519134521,
-0.020896969363093376,
-0.7047883868217468,
-0.515066921710968,
0.8810105919837952,
0.2650286853313446,
0.21496474742889404,
-0.0781949907541275,
0.7197855710983276,
-0.048322565853595734,
-0.1050645038485527,
-0.5539295077323914,
0.7418375015258789,
-0.3174268901348114,
-0.3333774507045746,
-0.21366249024868011,
-0.46936047077178955,
-0.7212327718734741,
0.44845011830329895,
-0.0907793641090393,
-0.8004723787307739,
0.154255673289299,
-0.20103412866592407,
-0.21805433928966522,
0.35769984126091003,
-0.8474316596984863,
1.1284435987472534,
0.20178622007369995,
-0.028304634615778923,
-0.008413288742303848,
-0.8821108937263489,
0.2028183788061142,
0.11755067110061646,
-0.08784788846969604,
-0.08807877451181412,
-0.22676309943199158,
0.8415185809135437,
-0.41669905185699463,
0.8252601623535156,
-0.22276829183101654,
0.4381834864616394,
0.3708731532096863,
-0.27438896894454956,
0.36671268939971924,
-0.13544782996177673,
-0.17803682386875153,
-0.0753510519862175,
-0.07167740911245346,
-0.4948580265045166,
-0.6273258328437805,
0.683141827583313,
-0.897253692150116,
-0.3729105591773987,
-0.3734153211116791,
-0.6500557661056519,
-0.0065460242331027985,
0.15872447192668915,
0.43798181414604187,
0.345428466796875,
0.10263163596391678,
0.7281721234321594,
0.4530993103981018,
-0.28150084614753723,
0.7899426817893982,
-0.02469487488269806,
0.12382030487060547,
-0.580141007900238,
0.7477074265480042,
0.0879129022359848,
0.14838342368602753,
0.592595100402832,
0.35052600502967834,
-0.3644411861896515,
-0.383074015378952,
-0.22364218533039093,
0.36570850014686584,
-0.6188952922821045,
-0.13695578277111053,
-1.1608463525772095,
-0.531955361366272,
-0.6587842702865601,
0.07886070013046265,
-0.08119191974401474,
-0.5191909670829773,
-0.47609809041023254,
-0.20484498143196106,
0.3073349893093109,
0.28426212072372437,
-0.006341911852359772,
0.5633299350738525,
-0.6351571083068848,
0.23932945728302002,
0.30722302198410034,
-0.0066405716352164745,
-0.047809354960918427,
-0.8424264788627625,
-0.1764601469039917,
0.07604043185710907,
-0.3723411560058594,
-0.8832026720046997,
0.5969340205192566,
0.3128897547721863,
0.6242565512657166,
0.06100791320204735,
0.05798495188355446,
0.5582388043403625,
-0.5993529558181763,
0.9554833173751831,
0.037497956305742264,
-1.0444434881210327,
0.34990084171295166,
-0.1922515481710434,
0.48339739441871643,
0.589142382144928,
0.33617737889289856,
-0.5095277428627014,
-0.3183716833591461,
-0.7534452676773071,
-1.005036473274231,
0.6921822428703308,
0.6573050022125244,
0.5832805037498474,
-0.3019082844257355,
0.408358097076416,
-0.3861338198184967,
0.207231804728508,
-1.1741626262664795,
-0.4225471615791321,
-0.4246274530887604,
-0.5493118166923523,
-0.3905288875102997,
-0.38437896966934204,
0.1966368556022644,
-0.48788362741470337,
0.7139225602149963,
0.10374998301267624,
0.8478440046310425,
0.28174713253974915,
-0.444467157125473,
0.38937145471572876,
0.19484227895736694,
0.5899794697761536,
0.41688764095306396,
-0.07122623175382614,
0.38658058643341064,
0.2981788218021393,
-0.3350371718406677,
0.03408198058605194,
0.5169742107391357,
-0.18428298830986023,
0.19946618378162384,
0.36349478363990784,
0.959063708782196,
0.4553799629211426,
-0.41892582178115845,
0.7880932092666626,
0.03522470220923424,
-0.3018191456794739,
-0.2369411438703537,
-0.10788112878799438,
0.4301002025604248,
0.3914974629878998,
0.2348770797252655,
0.12148299813270569,
0.03950659558176994,
-0.34172436594963074,
0.4891926050186157,
0.12250350415706635,
-0.3362939953804016,
-0.002557210624217987,
0.6889532804489136,
-0.03919452056288719,
-0.28296607732772827,
0.8900964856147766,
-0.2251078337430954,
-0.7310875058174133,
0.5058834552764893,
0.5954645872116089,
1.0602672100067139,
0.05476134642958641,
0.38444045186042786,
0.3828505575656891,
0.3926803171634674,
-0.13347333669662476,
-0.08698515594005585,
-0.08642452955245972,
-0.7153363823890686,
-0.20867660641670227,
-0.7374975681304932,
0.019907403737306595,
0.004214432556182146,
-0.5125731229782104,
0.15312114357948303,
-0.18584313988685608,
0.04462983086705208,
-0.06467115879058838,
-0.2131338119506836,
-0.45949822664260864,
0.0028177581261843443,
0.026001686230301857,
0.8149553537368774,
-0.875120997428894,
0.882198691368103,
0.6299168467521667,
-0.656470775604248,
-0.7011927366256714,
0.12874363362789154,
-0.3791225850582123,
-0.8056681752204895,
0.4371258020401001,
0.3912842273712158,
0.2700379490852356,
0.254018098115921,
-0.5220240950584412,
-0.7930346727371216,
1.4183930158615112,
0.385689914226532,
-0.23366710543632507,
-0.2905639111995697,
0.1884818971157074,
0.4439668655395508,
-0.4124065339565277,
0.2929926812648773,
0.4889693856239319,
0.33549565076828003,
0.02037913352251053,
-0.7044132947921753,
0.2393694519996643,
-0.28196874260902405,
0.20338040590286255,
-0.09531930834054947,
-0.5369147062301636,
1.124185562133789,
0.16429921984672546,
0.0024959139991551638,
0.35761430859565735,
0.7840351462364197,
0.24065101146697998,
-0.06922940164804459,
0.33373919129371643,
0.7753010392189026,
0.40486517548561096,
-0.04649801924824715,
1.0834839344024658,
-0.3408072292804718,
0.7720970511436462,
1.0802677869796753,
0.18044063448905945,
1.1552575826644897,
0.603523313999176,
-0.14400778710842133,
0.660873532295227,
0.4341840445995331,
-0.2692277431488037,
0.7483395338058472,
0.13164222240447998,
-0.13625755906105042,
-0.04708755388855934,
0.1405106633901596,
-0.14003679156303406,
0.5042160749435425,
0.07748094946146011,
-0.9199216365814209,
-0.23936624825000763,
0.10797958076000214,
0.05054687336087227,
-0.04014953225851059,
-0.03796454891562462,
0.5942368507385254,
0.23936046659946442,
-0.6181169748306274,
0.34434133768081665,
0.28042903542518616,
0.9048991203308105,
-0.4340997040271759,
0.17905698716640472,
-0.10596302896738052,
0.3509516417980194,
0.13022145628929138,
-0.6522014141082764,
0.4823213517665863,
-0.18332216143608093,
-0.05910000205039978,
-0.3081326186656952,
0.6600056290626526,
-0.5776722431182861,
-0.6643062233924866,
0.2297220230102539,
0.4657317101955414,
0.13055309653282166,
-0.17935329675674438,
-1.2853401899337769,
-0.22745263576507568,
0.07197172194719315,
-0.42491403222084045,
0.26367491483688354,
0.3334803879261017,
0.5023824572563171,
0.5980273485183716,
0.3304445445537567,
-0.23153644800186157,
0.22831891477108002,
-0.07650353014469147,
0.6996436715126038,
-0.5542009472846985,
-0.5093111395835876,
-1.1529537439346313,
0.5881468057632446,
-0.2927677631378174,
-0.3997897505760193,
0.8729015588760376,
0.49969860911369324,
0.7174763679504395,
-0.23875701427459717,
0.520413339138031,
-0.22987088561058044,
0.1779165267944336,
-0.5104442834854126,
0.9330493807792664,
-0.3745010197162628,
-0.18516504764556885,
-0.26908209919929504,
-1.0220928192138672,
-0.24550488591194153,
1.0583513975143433,
-0.35188448429107666,
0.09131363779306412,
0.9846741557121277,
0.9032078981399536,
-0.31107521057128906,
-0.1615428328514099,
0.1267051249742508,
0.3490244746208191,
0.07682622969150543,
0.5281261801719666,
0.415548175573349,
-0.8275381326675415,
0.8874398469924927,
-0.6944625377655029,
0.057050663977861404,
-0.003380263689905405,
-0.8382813930511475,
-0.9609732031822205,
-0.8839877843856812,
-0.38036802411079407,
-0.36361950635910034,
0.012045196257531643,
0.9266994595527649,
0.5953410863876343,
-0.7469828128814697,
-0.11093335598707199,
-0.4636545181274414,
-0.17003785073757172,
-0.11191324144601822,
-0.3186282217502594,
0.4774002134799957,
-0.4625723958015442,
-0.8007781505584717,
0.17775431275367737,
-0.08093170821666718,
0.08488455414772034,
-0.1701670140028,
0.15483516454696655,
-0.8294286727905273,
0.1415477842092514,
0.5094295144081116,
-0.1922539472579956,
-0.7363587617874146,
-0.2835994064807892,
-0.08111441880464554,
-0.411493182182312,
-0.056004274636507034,
0.46720781922340393,
-0.5877737402915955,
0.09352865815162659,
0.5105521082878113,
0.6640714406967163,
0.6957536935806274,
-0.18003436923027039,
0.4916039705276489,
-0.819118082523346,
0.2761540412902832,
0.08049727976322174,
0.7371851801872253,
0.4111170470714569,
-0.1595211625099182,
0.45751723647117615,
0.4354875385761261,
-0.5116885900497437,
-0.649377167224884,
-0.1534244865179062,
-1.0006499290466309,
-0.34658628702163696,
1.2274491786956787,
-0.4299680292606354,
-0.34070885181427,
0.2070196270942688,
-0.2264091670513153,
0.5002384185791016,
-0.15990795195102692,
0.5430827140808105,
0.8665401339530945,
0.10278110951185226,
-0.4516931176185608,
-0.3571585714817047,
0.13418030738830566,
0.5829201340675354,
-0.5498172640800476,
-0.20046693086624146,
0.13281510770320892,
0.39862892031669617,
0.15245628356933594,
0.303862988948822,
-0.030131151899695396,
0.08851581811904907,
0.17823529243469238,
-0.06875147670507431,
-0.292536199092865,
0.004707713611423969,
-0.43177053332328796,
0.27364581823349,
-0.4392988085746765,
-0.3908901512622833
] |
fxmarty/really-tiny-falcon-testing | fxmarty | "2023-09-16T12:45:28Z" | 109,383 | 0 | transformers | [
"transformers",
"pytorch",
"falcon",
"text-generation",
"custom_code",
"license:mit",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] | text-generation | "2023-09-16T08:46:32Z" | ---
license: mit
---
tiny = <10 MB
| [
-0.8103154301643372,
-0.4784998595714569,
0.9054239988327026,
0.28122422099113464,
-0.30396023392677307,
-0.29734617471694946,
-0.18075399100780487,
-0.35962560772895813,
0.9720426797866821,
0.14471033215522766,
-0.4084586501121521,
0.49418193101882935,
-0.6357101798057556,
-0.04707900807261467,
-0.21762648224830627,
0.48107290267944336,
0.8310436606407166,
-0.12290570884943008,
-0.11823282390832901,
-0.2948164641857147,
-0.3686332404613495,
0.46863144636154175,
-0.9310221672058105,
0.16095687448978424,
0.5669405460357666,
1.0579215288162231,
0.7682209014892578,
0.8896350264549255,
0.9197595715522766,
0.20124873518943787,
-0.5606514811515808,
-0.536960244178772,
-0.34327179193496704,
-0.5916649699211121,
0.33680301904678345,
-0.5095895528793335,
-0.47470441460609436,
0.058007221668958664,
0.942619800567627,
0.9262649416923523,
0.3834318518638611,
1.017609715461731,
-0.28604063391685486,
1.0217312574386597,
-0.55677729845047,
-0.3573310673236847,
-0.03252416104078293,
-0.05179528519511223,
-0.1420743465423584,
0.5793942213058472,
-0.21032929420471191,
-0.6182332038879395,
-0.2603772282600403,
-0.46160224080085754,
0.13119632005691528,
0.7675665616989136,
0.7486926317214966,
0.5974747538566589,
-0.6728691458702087,
-0.04275621846318245,
-0.42429208755493164,
0.5032806396484375,
-0.5383227467536926,
0.11963444203138351,
0.3281758725643158,
0.26143380999565125,
-0.05574227124452591,
-0.8311125636100769,
-0.5020436644554138,
0.20344312489032745,
-0.3087308406829834,
-0.679614245891571,
-0.9361633062362671,
-0.19245269894599915,
0.8858328461647034,
0.44804880023002625,
-0.6514416933059692,
-0.19930581748485565,
-0.37340912222862244,
-0.3434124290943146,
0.5869279503822327,
0.5432000756263733,
0.48529869318008423,
-0.17220436036586761,
0.04450967162847519,
0.18321487307548523,
-1.0409166812896729,
-0.28897950053215027,
0.3507055342197418,
0.44037890434265137,
-0.5981242060661316,
0.2221813201904297,
-0.03255702555179596,
0.42123422026634216,
0.7668439745903015,
-0.3083671033382416,
-0.23698289692401886,
-0.45693039894104004,
-0.627612292766571,
0.24469222128391266,
0.6932619214057922,
0.33722028136253357,
-0.2384326457977295,
0.01848844811320305,
-0.08437282592058182,
0.4700147211551666,
0.3907865881919861,
-1.5428329706192017,
-0.8267993927001953,
0.015365161933004856,
-0.6588220000267029,
-0.4481564462184906,
-0.23797746002674103,
-0.748733639717102,
-0.3694171607494354,
0.25150302052497864,
0.8325084447860718,
-0.1309460997581482,
-0.12923796474933624,
-0.32268500328063965,
-0.24947170913219452,
-0.19206655025482178,
0.2637668550014496,
-0.9752212166786194,
0.6471390724182129,
-0.010484309867024422,
0.7929450869560242,
0.36309847235679626,
0.27063944935798645,
-0.2327963262796402,
-0.048368506133556366,
-0.6900333166122437,
0.7205825448036194,
-0.059245772659778595,
-0.7167573571205139,
-0.8528605103492737,
0.26278427243232727,
0.031656038016080856,
-0.6583675742149353,
0.10529068857431412,
-0.4237830936908722,
-0.02658403478562832,
-0.4835767447948456,
-0.12533394992351532,
-0.024004187434911728,
-0.17275477945804596,
-0.9368802309036255,
0.6079211831092834,
0.3996617794036865,
-0.7859305739402771,
0.5920253992080688,
-0.1766108125448227,
-0.6741535067558289,
0.0633847638964653,
-0.24806846678256989,
-0.4240141808986664,
0.846346378326416,
-0.5537956357002258,
-0.05515998601913452,
-0.26565518975257874,
-0.22281904518604279,
-0.3966381251811981,
-0.7939056754112244,
-0.03744584321975708,
-0.200906440615654,
0.7858820557594299,
0.22274090349674225,
0.08774924278259277,
0.0663057193160057,
-1.1143009662628174,
0.4452855885028839,
-0.005561024881899357,
-0.6790362596511841,
-0.2243744283914566,
-0.6017163991928101,
-0.16693973541259766,
-0.06352444738149643,
0.21444229781627655,
-0.8510182499885559,
0.1127014309167862,
-0.2053343951702118,
0.7122930884361267,
0.15739765763282776,
-0.0687175765633583,
1.1578426361083984,
-0.1194533035159111,
0.2856103777885437,
-0.07174509018659592,
0.4614552855491638,
0.40573999285697937,
-0.3175147473812103,
-0.8160783648490906,
-0.5572076439857483,
0.6850424408912659,
-0.5056371092796326,
-0.6253313422203064,
0.12043303996324539,
-0.7237900495529175,
-0.3638730049133301,
-0.6654718518257141,
-0.006528332829475403,
0.05786814168095589,
-0.150978684425354,
-0.26553061604499817,
-0.17520172894001007,
-0.37078019976615906,
-1.0924160480499268,
0.27698227763175964,
-0.3158092200756073,
-0.3184953033924103,
0.3372001051902771,
0.619970977306366,
-0.2305299937725067,
0.795921266078949,
-0.5549188852310181,
-0.7636765241622925,
-0.2877195477485657,
-0.29469045996665955,
0.21837233006954193,
0.4457095265388489,
0.7775050401687622,
-0.45380058884620667,
-0.7729063034057617,
0.10445646196603775,
-0.1405729204416275,
-0.04542005807161331,
-0.19020333886146545,
0.3828445076942444,
-0.31498172879219055,
-0.02074451558291912,
-0.760917603969574,
0.6453920602798462,
0.5737000703811646,
-0.7616488337516785,
0.041473209857940674,
-0.8320545554161072,
-0.12427467107772827,
-0.4151996672153473,
-0.20511940121650696,
-0.30254799127578735,
-0.45460936427116394,
-0.14707671105861664,
0.09780066460371017,
0.6128295660018921,
-0.3535344898700714,
-1.0216143131256104,
0.624217689037323,
-0.7681977152824402,
-0.36778777837753296,
-0.6282593011856079,
0.11794637143611908,
0.12306129187345505,
0.11994040012359619,
-0.6866115927696228,
1.4744399785995483,
0.2609615623950958,
-0.7252286076545715,
-0.04863467440009117,
0.18202975392341614,
0.03389228507876396,
0.3177867829799652,
-0.47155705094337463,
-0.04441061615943909,
0.47785431146621704,
-0.17354033887386322,
-0.5681438446044922,
-0.5509330630302429,
-0.24186237156391144,
-0.47521060705184937,
0.3047652244567871,
-0.09045751392841339,
-0.7199651598930359,
-0.377541720867157,
-0.964634358882904,
0.45445260405540466,
0.8442082405090332,
-0.43387457728385925,
0.37852951884269714,
0.5701385736465454,
0.11524633318185806,
0.4676292836666107,
-0.9341338276863098,
-0.0670221745967865,
-0.2011348307132721,
-0.6831122636795044,
-0.021673617884516716,
0.12136756628751755,
-0.12270057946443558,
0.508579671382904,
-0.41523030400276184,
-0.08962050825357437,
-0.04721895977854729,
0.39451223611831665,
-0.2900855839252472,
-0.479937881231308,
-0.0512382909655571,
0.0596102811396122,
-0.23002059757709503,
0.09152849018573761,
0.17922435700893402,
0.307976633310318,
-0.8176450729370117,
0.34871307015419006,
-0.3503727912902832,
0.2728253901004791,
0.35663679242134094,
0.9590104222297668,
0.9275588393211365,
0.5938099026679993,
-0.2123129665851593,
-0.11633267253637314,
-0.19251428544521332,
-0.5197862386703491,
-0.5350266098976135,
-0.619993269443512,
-0.2865951955318451,
-0.7866383194923401,
0.6920520663261414,
0.014187728054821491,
-0.7332448959350586,
0.6692935228347778,
-0.15044963359832764,
-0.40131792426109314,
0.5378074049949646,
1.0135990381240845,
0.2164687067270279,
0.17858321964740753,
-0.03240254148840904,
0.22051015496253967,
-0.8790486454963684,
0.10295576602220535,
-0.646793007850647,
-0.8590375185012817,
-0.623384416103363,
-0.1843850463628769,
0.4508585035800934,
0.5507484078407288,
-0.8460412621498108,
0.6039167046546936,
-0.6281259655952454,
0.6133804321289062,
0.6126577258110046,
0.20190460979938507,
-0.13118328154087067,
-0.4382043480873108,
-0.09744153916835785,
-0.05976599454879761,
-1.1161277294158936,
-0.49124860763549805,
0.701479971408844,
0.26922607421875,
0.8133249282836914,
0.7456513047218323,
0.31259986758232117,
0.44444963335990906,
0.1729137897491455,
-0.6104925274848938,
0.9214245080947876,
-0.43390607833862305,
-0.8276621103286743,
-0.23238959908485413,
-0.200108140707016,
-0.7685175538063049,
-0.0340380035340786,
-0.35992231965065,
-0.8609043955802917,
0.3161335587501526,
0.2380160242319107,
-1.1036937236785889,
0.5545065999031067,
-1.141589641571045,
1.0719521045684814,
0.37285658717155457,
0.1557479202747345,
-0.08176135271787643,
-0.8828201293945312,
0.13837462663650513,
-0.29340794682502747,
0.21588604152202606,
-0.23235748708248138,
-0.6324342489242554,
1.0541986227035522,
-0.7472721934318542,
0.5545013546943665,
-0.05526379868388176,
0.5402562022209167,
0.46938830614089966,
0.5870922207832336,
0.22030827403068542,
0.018552133813500404,
0.34648004174232483,
0.01607457734644413,
0.763940691947937,
-0.7252140045166016,
-0.5315437912940979,
0.8302586674690247,
-0.5445059537887573,
-0.40795835852622986,
-0.23994579911231995,
-0.10202053934335709,
0.2147456854581833,
0.12259496003389359,
0.5644837617874146,
0.1721358597278595,
0.37606075406074524,
0.5693004727363586,
1.0576163530349731,
-0.11869647353887558,
1.0030797719955444,
0.2329988181591034,
-0.35587769746780396,
-0.15404009819030762,
0.8818526268005371,
0.26986387372016907,
0.3736589848995209,
0.3935883343219757,
0.6588188409805298,
0.039258938282728195,
-0.5195906162261963,
-0.9393879175186157,
0.6835108399391174,
-0.3996545970439911,
-0.220419779419899,
-0.5417004823684692,
0.00738354679197073,
-0.48225894570350647,
-0.04613910987973213,
-0.7597753405570984,
-0.8726635575294495,
-0.29616472125053406,
0.46678510308265686,
0.3859078884124756,
0.4436802864074707,
-0.4514995217323303,
1.2902652025222778,
-0.9750922918319702,
0.05817820876836777,
0.2637938857078552,
0.5195637941360474,
0.264981746673584,
-0.9386148452758789,
-0.374013215303421,
-0.4225679039955139,
-0.3164743483066559,
-0.7283715605735779,
0.19114534556865692,
-0.029549244791269302,
-0.0947854295372963,
1.048431634902954,
0.2473880499601364,
0.6076999306678772,
-0.4951484203338623,
0.9524286985397339,
0.44181889295578003,
-0.8525737524032593,
0.9068356156349182,
-0.13072887063026428,
0.42300131916999817,
0.5639356374740601,
-0.04971585422754288,
-0.19392068684101105,
0.18864430487155914,
-1.4676953554153442,
-0.3326124846935272,
0.6969274282455444,
0.1939847618341446,
0.2869318425655365,
-0.21006429195404053,
-0.0594642199575901,
-0.02742837741971016,
0.5798055529594421,
-0.4836530089378357,
-0.5659593343734741,
0.7533305287361145,
0.18815946578979492,
0.2876114845275879,
-0.6512739062309265,
-0.042796771973371506,
-0.4970161020755768,
0.30983614921569824,
0.004987876396626234,
1.0178502798080444,
-0.24685022234916687,
-0.11712364852428436,
-0.10138685256242752,
0.005663107614964247,
0.8681907057762146,
0.1983647346496582,
-0.3868698179721832,
0.5882077217102051,
0.2581813335418701,
-1.0896416902542114,
0.4543919265270233,
-0.9951985478401184,
-0.3164145052433014,
0.4027669131755829,
0.5480926632881165,
0.5742300748825073,
0.7877287268638611,
-0.3091135025024414,
0.7151950597763062,
-0.19161958992481232,
0.21667692065238953,
-0.015904488041996956,
0.22495435178279877,
0.1875026524066925,
-0.09578050673007965,
-0.06952568888664246,
0.2951461672782898,
-0.04863186553120613,
-0.35539525747299194,
0.06754466146230698,
0.165927916765213,
-0.6090618968009949,
-0.5627197027206421,
1.0862518548965454,
0.23486043512821198,
-0.21632298827171326,
0.43962159752845764,
-0.6330273747444153,
0.16385617852210999,
0.8394585251808167,
-0.07696270942687988,
0.5962143540382385,
0.4068419933319092,
0.07926573604345322,
0.1409182995557785,
0.5381863713264465,
-0.01618815027177334,
0.3213757574558258,
-0.1738455593585968,
-0.4118523597717285,
0.38705548644065857,
-0.5125263333320618,
-0.002085174899548292,
0.15116281807422638,
-0.6922497153282166,
-0.06210007891058922,
-0.9563602805137634,
-0.2654053270816803,
0.37477341294288635,
0.7808915972709656,
-0.7211016416549683,
0.5964804887771606,
-0.029477817937731743,
1.4838474988937378,
-0.7009225487709045,
1.2010667324066162,
0.7320907711982727,
-0.6489793062210083,
-1.184672236442566,
-0.5317989587783813,
0.3742537200450897,
-0.5331713557243347,
0.7070774435997009,
0.1215272769331932,
0.27535948157310486,
-0.08482081443071365,
-0.2678263485431671,
-0.7432218790054321,
0.7794710397720337,
0.4158090651035309,
-0.5853294134140015,
0.17665110528469086,
-0.11698909848928452,
0.46116873621940613,
-0.3880102336406708,
0.13488948345184326,
0.8285493850708008,
0.3940334916114807,
-0.20510411262512207,
-0.87298583984375,
-0.0712161511182785,
0.08708604425191879,
0.18553908169269562,
0.6087146401405334,
-1.076816439628601,
1.0027101039886475,
-0.4665184020996094,
-0.41589102149009705,
0.25465768575668335,
0.13175401091575623,
-0.26656273007392883,
0.4993155002593994,
0.4433874487876892,
0.6173692345619202,
0.35665586590766907,
-0.30577537417411804,
1.0710251331329346,
-0.08893419802188873,
0.38224631547927856,
0.7798328399658203,
0.2622651755809784,
0.8011146783828735,
0.7977813482284546,
-0.7455372214317322,
-0.32302969694137573,
1.097314476966858,
0.37268027663230896,
0.7030396461486816,
-0.06330490857362747,
-0.5022693276405334,
0.17118419706821442,
0.04952619597315788,
-0.1711750030517578,
-0.26227977871894836,
0.22896626591682434,
-0.35120823979377747,
-0.2832006812095642,
0.2662167251110077,
-0.12492208927869797,
-0.007404169999063015,
-0.9729968309402466,
1.0199476480484009,
0.2979016900062561,
0.5810253024101257,
0.14532002806663513,
-0.2595446705818176,
0.6288209557533264,
-0.10401717573404312,
0.3322327733039856,
-0.8869161009788513,
0.2796576917171478,
-0.07741304486989975,
-1.0530223846435547,
0.5884055495262146,
-0.07942695170640945,
-0.7341289520263672,
-0.09014467149972916,
1.0598113536834717,
0.3226931691169739,
-0.3065807521343231,
0.09610884636640549,
0.3828921318054199,
0.5780499577522278,
-0.32755452394485474,
-0.03797009959816933,
0.5573809742927551,
0.27574506402015686,
-0.12432784587144852,
0.9391984343528748,
0.9407364726066589,
-0.17936870455741882,
1.2168301343917847,
0.07035312801599503,
0.794337272644043,
0.2365843504667282,
-0.26223763823509216,
0.7150419354438782,
-0.9116494059562683,
-0.8262912631034851,
-0.6500455141067505,
-0.20018866658210754,
-0.012854592874646187,
-0.048484932631254196,
0.9174317121505737,
0.8059969544410706,
0.8656293749809265,
-0.542946457862854,
0.005692846141755581,
-0.5507127642631531,
0.5515472888946533,
-0.07226260751485825,
0.7587939500808716,
-0.7804676294326782,
0.540752112865448,
0.33165884017944336,
-0.8560336232185364,
-0.08769252151250839,
0.4456539452075958,
-0.12194476276636124,
-0.6939513087272644,
0.6771500706672668,
0.5727017521858215,
-0.4534936845302582,
0.26050013303756714,
0.9873594641685486,
-0.15124012529850006,
-0.15433287620544434,
0.49474021792411804,
0.45786523818969727,
-0.8854012489318848,
0.6009308695793152,
-0.5712339282035828,
0.2799334228038788,
-0.4830676019191742,
-0.8337442278862,
-0.6575592756271362,
0.10560444742441177,
-0.4823489487171173,
-0.0704062357544899,
-0.5351333618164062,
0.7076979875564575,
0.9484761357307434,
-0.4766286313533783,
0.3095337450504303,
0.5243297815322876,
0.25417330861091614,
0.10072558373212814,
-0.12133883684873581,
0.43139171600341797,
0.41824811697006226,
-0.18758313357830048,
0.11589353531599045,
0.6977627873420715,
0.4445333480834961,
-0.03100602887570858,
-0.11488812416791916,
0.23392412066459656,
0.2624887526035309,
0.6753093004226685,
0.16132338345050812,
-0.594985842704773,
-0.7981500029563904,
-0.4721252918243408,
-0.3608861267566681,
0.014477782882750034,
0.6958903670310974,
-0.8605726957321167,
-0.3569953739643097,
0.40962010622024536,
0.586652934551239,
0.20981904864311218,
-0.26401323080062866,
-0.47315168380737305,
-1.332924723625183,
0.7444260716438293,
0.08598808944225311,
0.12091536819934845,
-0.10683567076921463,
-0.532098114490509,
0.8172811269760132,
0.3800570070743561,
-0.5648397207260132,
-0.8653176426887512,
-0.22424589097499847,
-1.3861777782440186,
-0.44564008712768555,
0.5614265203475952,
0.1786200851202011,
-0.7384063005447388,
0.4575827717781067,
-0.09000662714242935,
-0.5362159013748169,
-0.38865867257118225,
0.40379905700683594,
0.5889443159103394,
-0.13686802983283997,
-0.5058383345603943,
-0.8024967312812805,
0.5826326608657837,
-0.10285745561122894,
-0.7052920460700989,
-0.10273498296737671,
0.46748605370521545,
0.49034565687179565,
0.432484894990921,
0.8597750067710876,
0.27083560824394226,
0.732426643371582,
1.4082300662994385,
-0.3059109151363373,
-0.013448091223835945,
-0.6733936071395874,
-0.4539125859737396,
0.19661983847618103,
-0.044128384441137314,
-0.6809717416763306
] |
liuhaotian/llava-v1.5-13b | liuhaotian | "2023-10-16T21:53:56Z" | 109,160 | 312 | transformers | [
"transformers",
"pytorch",
"llava",
"text-generation",
"has_space",
"region:us"
] | text-generation | "2023-10-05T18:27:40Z" | ---
inference: false
---
<br>
<br>
# LLaVA Model Card
## Model details
**Model type:**
LLaVA is an open-source chatbot trained by fine-tuning LLaMA/Vicuna on GPT-generated multimodal instruction-following data.
It is an auto-regressive language model, based on the transformer architecture.
**Model date:**
LLaVA-v1.5-13B was trained in September 2023.
**Paper or resources for more information:**
https://llava-vl.github.io/
## License
Llama 2 is licensed under the LLAMA 2 Community License,
Copyright (c) Meta Platforms, Inc. All Rights Reserved.
**Where to send questions or comments about the model:**
https://github.com/haotian-liu/LLaVA/issues
## Intended use
**Primary intended uses:**
The primary use of LLaVA is research on large multimodal models and chatbots.
**Primary intended users:**
The primary intended users of the model are researchers and hobbyists in computer vision, natural language processing, machine learning, and artificial intelligence.
## Training dataset
- 558K filtered image-text pairs from LAION/CC/SBU, captioned by BLIP.
- 158K GPT-generated multimodal instruction-following data.
- 450K academic-task-oriented VQA data mixture.
- 40K ShareGPT data.
## Evaluation dataset
A collection of 12 benchmarks, including 5 academic VQA benchmarks and 7 recent benchmarks specifically proposed for instruction-following LMMs. | [
-0.002152090659365058,
-0.9718990325927734,
0.32070106267929077,
0.26145029067993164,
-0.4267979562282562,
0.22144998610019684,
-0.016056334599852562,
-0.475232869386673,
0.2576642334461212,
0.571759819984436,
-0.5921945571899414,
-0.5719680786132812,
-0.5779269933700562,
-0.14283183217048645,
-0.4318650960922241,
0.9802940487861633,
0.05585672706365585,
-0.10550854355096817,
-0.30746421217918396,
0.15324516594409943,
-0.8147533535957336,
-0.4292680621147156,
-0.589434027671814,
-0.33119842410087585,
0.5925964713096619,
0.582754909992218,
0.5987037420272827,
0.5226525664329529,
0.43243446946144104,
0.35509249567985535,
-0.025639720261096954,
0.2560995817184448,
-0.6385775804519653,
0.02542620338499546,
0.29675304889678955,
-0.7468369007110596,
-0.759189248085022,
-0.22232398390769958,
0.5569047331809998,
-0.09873512387275696,
-0.3577783405780792,
0.3392140567302704,
0.005846182815730572,
0.34762442111968994,
-0.23766151070594788,
0.6533102989196777,
-0.859781801700592,
-0.24729810655117035,
-0.4117366671562195,
-0.09954214841127396,
-0.4766298532485962,
-0.2574174702167511,
-0.3139849901199341,
-0.5672023296356201,
-0.27680692076683044,
0.11178312450647354,
1.0620036125183105,
0.5487266778945923,
-0.3663458526134491,
-0.21811933815479279,
-0.6879104375839233,
0.7381000518798828,
-0.6788070201873779,
0.28842848539352417,
0.48411500453948975,
0.7650482654571533,
-0.15851794183254242,
-0.6795778870582581,
-0.6613550186157227,
-0.26067057251930237,
0.03814525902271271,
0.16326089203357697,
-0.48775145411491394,
0.0076133087277412415,
0.07002054899930954,
0.34278857707977295,
-0.4452393651008606,
0.27115175127983093,
-0.6118006110191345,
-0.02330656722187996,
0.5934016704559326,
0.34591415524482727,
0.14734214544296265,
-0.1923927217721939,
-0.4731214642524719,
-0.13121014833450317,
-0.5135616660118103,
-0.01884639263153076,
0.596415102481842,
0.22951501607894897,
-0.4325979948043823,
0.7862327098846436,
-0.21096009016036987,
0.4107624292373657,
-0.024124635383486748,
-0.42923104763031006,
0.4897567629814148,
-0.12646766006946564,
-0.5170688033103943,
-0.3045189082622528,
0.973507285118103,
0.26002007722854614,
0.21597260236740112,
0.2157890796661377,
-0.2546447813510895,
0.10208076983690262,
0.2795702815055847,
-0.5268182754516602,
-0.0855179950594902,
0.20112700760364532,
-0.4224685728549957,
-0.5230905413627625,
-0.6878555417060852,
-0.7304059863090515,
-0.3454526662826538,
-0.21675729751586914,
0.22757166624069214,
-0.37178564071655273,
-0.2829170525074005,
-0.1836804449558258,
0.43759649991989136,
0.5896992087364197,
0.48335400223731995,
-0.8972295522689819,
0.1392270028591156,
0.5402425527572632,
0.6940504312515259,
-0.11425185203552246,
-0.21462121605873108,
0.08584177494049072,
-0.10105787962675095,
-0.10018474608659744,
1.1287412643432617,
-0.6769535541534424,
-0.4408712685108185,
0.022700563073158264,
0.10021607577800751,
-0.024417484179139137,
-0.2656131684780121,
0.7508773803710938,
-0.5910890698432922,
0.24190941452980042,
0.16701696813106537,
-0.5091493129730225,
-0.18775993585586548,
0.34415432810783386,
-0.6719186902046204,
1.1636396646499634,
-0.06471545249223709,
-0.6293906569480896,
0.01711791753768921,
-0.6371541023254395,
-0.0018968071090057492,
0.1972249448299408,
-0.17441831529140472,
-0.4032229483127594,
-0.16498400270938873,
0.19224968552589417,
0.2800236642360687,
-0.6001743078231812,
0.5406180024147034,
-0.08977653831243515,
-0.3104558289051056,
0.15694135427474976,
-0.8343929648399353,
0.7947986721992493,
0.2931699752807617,
0.02916807495057583,
0.26582497358322144,
-0.9631261229515076,
-0.2503623068332672,
0.37584125995635986,
-0.3938405215740204,
-0.06514821946620941,
0.02078893780708313,
0.04829595237970352,
-0.043344609439373016,
0.6890058517456055,
-0.49346446990966797,
0.5189422965049744,
-0.12099501490592957,
0.1182313859462738,
0.9184356927871704,
-0.24663200974464417,
0.22659915685653687,
-0.31277352571487427,
0.6947093605995178,
-0.05538579076528549,
0.5574312806129456,
-0.25778427720069885,
-0.9410361647605896,
-0.9285377264022827,
-0.35147133469581604,
0.07109283655881882,
1.0920459032058716,
-0.7282409071922302,
0.29980015754699707,
-0.2871478796005249,
-0.7576928734779358,
-0.8133119940757751,
0.29353439807891846,
0.41396504640579224,
0.5087135434150696,
0.27577778697013855,
-0.18204273283481598,
-0.6490464210510254,
-1.1264058351516724,
0.0771024152636528,
-0.5028817057609558,
0.044885504990816116,
0.4381526708602905,
0.44223394989967346,
-0.5289737582206726,
0.739751398563385,
-0.35280898213386536,
-0.41830694675445557,
-0.2755427062511444,
-0.09315264970064163,
0.2784348726272583,
0.22398333251476288,
0.3539339303970337,
-0.5135708451271057,
-0.5171989798545837,
0.026892060413956642,
-0.8801225423812866,
-0.10866782069206238,
-0.07777568697929382,
-0.2886313498020172,
0.33151179552078247,
0.3060908615589142,
-0.6157587170600891,
0.6632972955703735,
0.9124041199684143,
-0.13849085569381714,
0.4474353790283203,
0.003987668082118034,
-0.07354001700878143,
-1.2148581743240356,
-0.14068621397018433,
-0.1878732293844223,
-0.18113845586776733,
-0.5653920769691467,
-0.12284243106842041,
-0.12032659351825714,
0.10984869301319122,
-0.6063233017921448,
0.6532716751098633,
-0.23652634024620056,
0.09371097385883331,
-0.4034629166126251,
0.03451266512274742,
-0.15744395554065704,
0.7650919556617737,
-0.11172186583280563,
0.9730951189994812,
0.4867466986179352,
-0.40092381834983826,
0.5585073232650757,
0.5315752625465393,
-0.26087668538093567,
0.5030319094657898,
-0.9327753186225891,
0.24608629941940308,
-0.021016748622059822,
0.1632433384656906,
-1.2251613140106201,
-0.2755933403968811,
0.5733256340026855,
-0.5630267858505249,
0.3229541480541229,
-0.08927236497402191,
-0.6955293416976929,
-0.24656139314174652,
-0.09655292332172394,
0.2808399796485901,
0.853926420211792,
-0.46027547121047974,
0.8006260395050049,
0.47834399342536926,
0.2010968178510666,
-0.7617465853691101,
-0.7671035528182983,
0.026942865923047066,
-0.24441733956336975,
-0.5480186343193054,
0.07040227204561234,
-0.2256026417016983,
-0.14508451521396637,
-0.13630257546901703,
0.30675795674324036,
-0.19086742401123047,
-0.07864581793546677,
0.46033191680908203,
0.501308023929596,
-0.0423976369202137,
0.25230786204338074,
0.005602722056210041,
-0.09131652861833572,
-0.11202063411474228,
0.34310296177864075,
0.710620641708374,
-0.2668801248073578,
-0.3383815884590149,
-0.8184853196144104,
0.006814706604927778,
0.31037405133247375,
0.0754561573266983,
0.7285813689231873,
0.6013278365135193,
-0.08528200536966324,
0.29124870896339417,
-0.7096221446990967,
0.03670525923371315,
-0.549678385257721,
0.4378823935985565,
-0.33001354336738586,
-0.6945658326148987,
0.5764304995536804,
0.0513463020324707,
0.463888943195343,
0.404746413230896,
0.8089507818222046,
-0.2200501561164856,
0.672004759311676,
0.7869352698326111,
-0.20518870651721954,
0.8115766644477844,
-0.08176754415035248,
-0.04903377220034599,
-0.854475736618042,
-0.4050637185573578,
-0.24512533843517303,
-0.20278488099575043,
-0.7856359481811523,
-0.6306213736534119,
-0.016664374619722366,
-0.22455915808677673,
-0.332670122385025,
0.43593576550483704,
-0.4307665526866913,
0.4354366958141327,
0.6580435633659363,
0.08655304461717606,
0.31354036927223206,
0.15813174843788147,
0.15768024325370789,
0.08145949244499207,
-0.512626588344574,
-0.8022345900535583,
1.4087138175964355,
0.6887780427932739,
1.0392537117004395,
0.05708722770214081,
0.7346256375312805,
0.34127750992774963,
0.4391907751560211,
-0.7398796677589417,
0.6743729114532471,
0.03177813068032265,
-0.6992447376251221,
-0.2895106375217438,
-0.11897559463977814,
-1.0373765230178833,
0.07630583643913269,
-0.1312982439994812,
-0.7056500911712646,
-0.06253747642040253,
0.3044602572917938,
0.19790631532669067,
0.3923783004283905,
-0.7819923758506775,
0.6248239278793335,
-0.404392272233963,
-0.15335439145565033,
-0.1424075961112976,
-0.4618874490261078,
0.6461994647979736,
-0.045214541256427765,
0.24431441724300385,
-0.2753494083881378,
-0.034390889108181,
0.5312511920928955,
-0.13588905334472656,
1.503686547279358,
-0.05366235598921776,
-0.3264979124069214,
0.5415521860122681,
0.020124314352869987,
0.5278763175010681,
-0.04066969081759453,
0.16957028210163116,
0.5174509882926941,
-0.20014667510986328,
-0.4286927878856659,
-0.37408334016799927,
0.6583186388015747,
-1.3305087089538574,
-0.725919783115387,
-0.28724461793899536,
-0.5393952131271362,
0.044077981263399124,
0.012288814410567284,
0.14017003774642944,
0.09830429404973984,
-0.16081362962722778,
0.024016123265028,
0.5544559955596924,
-0.4075595736503601,
0.22538501024246216,
0.3687087893486023,
-0.3522869050502777,
-0.46781978011131287,
0.8823486566543579,
-0.1953842043876648,
0.21099337935447693,
0.48982664942741394,
-0.03143221512436867,
-0.16570812463760376,
-0.2470788061618805,
-0.4531358480453491,
0.42491281032562256,
-0.8140316009521484,
-0.39242249727249146,
-0.4570062756538391,
-0.46217137575149536,
-0.2863980233669281,
0.2519497871398926,
-0.5962343811988831,
-0.2767380475997925,
-0.6240778565406799,
-0.016662241891026497,
0.6798872351646423,
0.7688367962837219,
0.21830767393112183,
0.7486199736595154,
-0.49514883756637573,
0.23564568161964417,
0.48366719484329224,
0.37594154477119446,
-0.10881510376930237,
-0.9373925924301147,
0.004350738134235144,
-0.0015429414343088865,
-0.5430824756622314,
-0.7968748211860657,
0.5417280793190002,
0.2150323987007141,
0.731675386428833,
0.14287212491035461,
-0.2729862928390503,
0.7308976650238037,
-0.5967764258384705,
0.8701823949813843,
0.15128637850284576,
-0.6448057889938354,
0.6643272042274475,
-0.1861431747674942,
0.36439236998558044,
0.3558495044708252,
0.2280018925666809,
-0.404765784740448,
-0.4054776132106781,
-0.5646953582763672,
-0.7351580262184143,
0.561606764793396,
0.23783835768699646,
0.508449912071228,
-0.03627714142203331,
0.27635714411735535,
0.1715676486492157,
0.1729830652475357,
-1.1340912580490112,
-0.5468729138374329,
-0.3436475098133087,
-0.39199841022491455,
0.15628932416439056,
-0.6166519522666931,
-0.1176055371761322,
-0.10291564464569092,
0.6593042016029358,
-0.11852054297924042,
0.72165846824646,
-0.26110151410102844,
-0.09050694108009338,
0.021553093567490578,
0.23729723691940308,
0.855441153049469,
0.32251179218292236,
-0.22284789383411407,
-0.34448763728141785,
0.300624817609787,
-0.7668638825416565,
0.015111913904547691,
-0.04474800080060959,
-0.15075021982192993,
-0.08468744158744812,
0.422685444355011,
1.1532175540924072,
0.1454448699951172,
-0.7173759341239929,
0.3931908905506134,
-0.3540916442871094,
-0.2751486599445343,
-0.7603805065155029,
0.05168939754366875,
0.11578801274299622,
0.5745495557785034,
0.21613307297229767,
-0.18119798600673676,
-0.0029931494500488043,
-0.3006778955459595,
-0.15638196468353271,
0.3262990415096283,
-0.2272384613752365,
-0.37286853790283203,
0.7396595478057861,
0.203059583902359,
-0.5460566878318787,
0.628904402256012,
0.06117594242095947,
-0.11437790840864182,
0.4759247899055481,
0.5409656763076782,
0.8135161995887756,
-0.29883715510368347,
0.19642119109630585,
0.47989627718925476,
0.3627425730228424,
0.13223494589328766,
0.4169350862503052,
-0.07207751274108887,
-0.6312650442123413,
-0.393219918012619,
-0.6059019565582275,
-0.6202800869941711,
0.1508180946111679,
-0.43806102871894836,
0.5280860662460327,
-0.36376649141311646,
-0.2337365746498108,
-0.2900748550891876,
0.01689746417105198,
-0.8388845324516296,
-0.04776040092110634,
0.34333184361457825,
0.8987643718719482,
-0.7749431729316711,
1.2718523740768433,
0.40633323788642883,
-0.5627050995826721,
-0.6616083383560181,
-0.3750781714916229,
0.05063909292221069,
-1.4792598485946655,
0.8638912439346313,
-0.07737679034471512,
0.005220483522862196,
-0.2870505154132843,
-0.8925719857215881,
-1.131919026374817,
1.4608334302902222,
0.27455082535743713,
-1.0378798246383667,
-0.16639448702335358,
0.12700988352298737,
0.6707099080085754,
-0.3914967477321625,
0.5531593561172485,
0.4732421636581421,
0.3113909959793091,
0.38988158106803894,
-1.1359715461730957,
-0.2646770775318146,
-0.3842847943305969,
0.03876390680670738,
-0.2036527544260025,
-1.0608481168746948,
0.8483614325523376,
0.060234248638153076,
-0.1395503431558609,
0.1554947942495346,
0.8372443914413452,
0.4015907943248749,
0.19961434602737427,
0.43635666370391846,
0.3468465507030487,
0.7377025485038757,
0.09860038757324219,
0.9997382760047913,
-0.4010482728481293,
0.10859107226133347,
1.1952463388442993,
-0.11765213310718536,
0.9742235541343689,
0.4237299859523773,
-0.2008284479379654,
0.7969234585762024,
0.5253997445106506,
-0.0653109923005104,
0.6045442223548889,
-0.0746777281165123,
0.11324130743741989,
-0.1292068362236023,
0.10059228539466858,
-0.341561496257782,
0.6897397637367249,
0.5861358642578125,
-0.4374701678752899,
-0.013776445761322975,
-0.15159659087657928,
0.059582386165857315,
-0.10788989067077637,
-0.057665981352329254,
0.7768301367759705,
-0.03357091546058655,
-0.30678674578666687,
0.8306041955947876,
-0.20317815244197845,
0.8973097205162048,
-0.6061630845069885,
-0.22664111852645874,
-0.5569108724594116,
0.04682290181517601,
0.03469983488321304,
-0.7304534912109375,
0.24195486307144165,
0.20124460756778717,
0.14580415189266205,
-0.052535999566316605,
0.7676694989204407,
-0.26214420795440674,
-0.5948865413665771,
0.23523174226284027,
0.4578574001789093,
0.47870463132858276,
0.49047547578811646,
-0.9321665167808533,
0.48163965344429016,
0.12399525195360184,
-0.40821993350982666,
0.2702953815460205,
0.4087657928466797,
-0.2240484654903412,
1.0622413158416748,
0.469279408454895,
-0.12972792983055115,
0.0902848020195961,
0.13172215223312378,
1.1573361158370972,
-0.4776146113872528,
-0.172260582447052,
-0.7770997881889343,
0.5926745533943176,
-0.01884515769779682,
-0.5165269374847412,
0.6858580112457275,
0.35955342650413513,
0.5544660091400146,
-0.0001288977509830147,
0.6772523522377014,
0.11016242951154709,
0.4762986898422241,
-0.3863448202610016,
0.3799278438091278,
-0.6331490874290466,
0.48645448684692383,
-0.07274342328310013,
-0.7413467168807983,
-0.20888514816761017,
0.6047604084014893,
-0.17112348973751068,
-0.11641576141119003,
0.28714022040367126,
0.822399914264679,
0.14190629124641418,
-0.19783930480480194,
0.5971450209617615,
0.2722078561782837,
0.5895599126815796,
0.599338173866272,
0.8831497430801392,
-0.651973307132721,
0.8807771801948547,
-0.11007458716630936,
-0.2664424479007721,
-0.5126488208770752,
-0.7400152087211609,
-1.2738248109817505,
-0.5995484590530396,
-0.22120705246925354,
-0.11173708736896515,
0.13927188515663147,
0.8002057671546936,
0.47040870785713196,
-0.47786062955856323,
-0.43368446826934814,
0.14183880388736725,
0.10062050819396973,
0.10850830376148224,
-0.1624470204114914,
0.18279141187667847,
-0.2739705741405487,
-0.8159661889076233,
0.3000812530517578,
-0.07888737320899963,
0.20198935270309448,
-0.5501949787139893,
-0.05982685089111328,
-0.22984786331653595,
0.23173770308494568,
0.5996007323265076,
0.4125935733318329,
-1.0042624473571777,
-0.24572519958019257,
0.1986445039510727,
-0.19208002090454102,
0.3173914849758148,
0.1359357237815857,
-0.7496036291122437,
0.36198005080223083,
0.24308039247989655,
0.2951371967792511,
0.5156806707382202,
-0.16748212277889252,
0.27728554606437683,
-0.7561793923377991,
0.41384637355804443,
0.056097593158483505,
0.23988580703735352,
0.32521793246269226,
-0.4257483184337616,
0.48722031712532043,
-0.0650278702378273,
-0.8254791498184204,
-0.8664366006851196,
0.18663200736045837,
-1.107584834098816,
0.10900068283081055,
1.3698008060455322,
0.08783017843961716,
-0.6838418841362,
0.08532491326332092,
-0.514690637588501,
0.20315712690353394,
-0.6795020699501038,
0.7667090892791748,
0.42048323154449463,
-0.04472077265381813,
-0.5033759474754333,
-0.8717041015625,
0.19957152009010315,
-0.13033372163772583,
-0.9573013782501221,
-0.05430406332015991,
0.43233105540275574,
0.2557111978530884,
0.030319739133119583,
0.9055074453353882,
0.006386635825037956,
0.0385536253452301,
0.20545421540737152,
0.5083205103874207,
-0.10690433531999588,
-0.3074791133403778,
-0.2049064189195633,
-0.2552867829799652,
0.13742735981941223,
-0.4991185963153839
] |
eugenesiow/edsr-base | eugenesiow | "2021-07-28T09:04:00Z" | 108,836 | 5 | transformers | [
"transformers",
"EDSR",
"super-image",
"image-super-resolution",
"dataset:eugenesiow/Div2k",
"dataset:eugenesiow/Set5",
"dataset:eugenesiow/Set14",
"dataset:eugenesiow/BSD100",
"dataset:eugenesiow/Urban100",
"arxiv:1707.02921",
"arxiv:2104.07566",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"region:us"
] | null | "2022-03-02T23:29:05Z" | ---
license: apache-2.0
tags:
- super-image
- image-super-resolution
datasets:
- eugenesiow/Div2k
- eugenesiow/Set5
- eugenesiow/Set14
- eugenesiow/BSD100
- eugenesiow/Urban100
metrics:
- pnsr
- ssim
---
# Enhanced Deep Residual Networks for Single Image Super-Resolution (EDSR)
EDSR model pre-trained on DIV2K (800 images training, augmented to 4000 images, 100 images validation) for 2x, 3x and 4x image super resolution. It was introduced in the paper [Enhanced Deep Residual Networks for Single Image Super-Resolution](https://arxiv.org/abs/1707.02921) by Lim et al. (2017) and first released in [this repository](https://github.com/sanghyun-son/EDSR-PyTorch).
The goal of image super resolution is to restore a high resolution (HR) image from a single low resolution (LR) image. The image below shows the ground truth (HR), the bicubic upscaling x2 and EDSR upscaling x2.
![Comparing Bicubic upscaling against EDSR x2 upscaling on Set5 Image 4](images/Set5_4_compare.png "Comparing Bicubic upscaling against EDSR x2 upscaling on Set5 Image 4")
## Model description
EDSR is a model that uses both deeper and wider architecture (32 ResBlocks and 256 channels) to improve performance. It uses both global and local skip connections, and up-scaling is done at the end of the network. It doesn't use batch normalization layers (input and output have similar distributions, normalizing intermediate features may not be desirable) instead it uses constant scaling layers to ensure stable training. An L1 loss function (absolute error) is used instead of L2 (MSE), the authors showed better performance empirically and it requires less computation.
This is a base model (~5mb vs ~100mb) that includes just 16 ResBlocks and 64 channels.
## Intended uses & limitations
You can use the pre-trained models for upscaling your images 2x, 3x and 4x. You can also use the trainer to train a model on your own dataset.
### How to use
The model can be used with the [super_image](https://github.com/eugenesiow/super-image) library:
```bash
pip install super-image
```
Here is how to use a pre-trained model to upscale your image:
```python
from super_image import EdsrModel, ImageLoader
from PIL import Image
import requests
url = 'https://paperswithcode.com/media/datasets/Set5-0000002728-07a9793f_zA3bDjj.jpg'
image = Image.open(requests.get(url, stream=True).raw)
model = EdsrModel.from_pretrained('eugenesiow/edsr-base', scale=2) # scale 2, 3 and 4 models available
inputs = ImageLoader.load_image(image)
preds = model(inputs)
ImageLoader.save_image(preds, './scaled_2x.png') # save the output 2x scaled image to `./scaled_2x.png`
ImageLoader.save_compare(inputs, preds, './scaled_2x_compare.png') # save an output comparing the super-image with a bicubic scaling
```
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/eugenesiow/super-image-notebooks/blob/master/notebooks/Upscale_Images_with_Pretrained_super_image_Models.ipynb "Open in Colab")
## Training data
The models for 2x, 3x and 4x image super resolution were pretrained on [DIV2K](https://huggingface.co/datasets/eugenesiow/Div2k), a dataset of 800 high-quality (2K resolution) images for training, augmented to 4000 images and uses a dev set of 100 validation images (images numbered 801 to 900).
## Training procedure
### Preprocessing
We follow the pre-processing and training method of [Wang et al.](https://arxiv.org/abs/2104.07566).
Low Resolution (LR) images are created by using bicubic interpolation as the resizing method to reduce the size of the High Resolution (HR) images by x2, x3 and x4 times.
During training, RGB patches with size of 64×64 from the LR input are used together with their corresponding HR patches.
Data augmentation is applied to the training set in the pre-processing stage where five images are created from the four corners and center of the original image.
We need the huggingface [datasets](https://huggingface.co/datasets?filter=task_ids:other-other-image-super-resolution) library to download the data:
```bash
pip install datasets
```
The following code gets the data and preprocesses/augments the data.
```python
from datasets import load_dataset
from super_image.data import EvalDataset, TrainDataset, augment_five_crop
augmented_dataset = load_dataset('eugenesiow/Div2k', 'bicubic_x4', split='train')\
.map(augment_five_crop, batched=True, desc="Augmenting Dataset") # download and augment the data with the five_crop method
train_dataset = TrainDataset(augmented_dataset) # prepare the train dataset for loading PyTorch DataLoader
eval_dataset = EvalDataset(load_dataset('eugenesiow/Div2k', 'bicubic_x4', split='validation')) # prepare the eval dataset for the PyTorch DataLoader
```
### Pretraining
The model was trained on GPU. The training code is provided below:
```python
from super_image import Trainer, TrainingArguments, EdsrModel, EdsrConfig
training_args = TrainingArguments(
output_dir='./results', # output directory
num_train_epochs=1000, # total number of training epochs
)
config = EdsrConfig(
scale=4, # train a model to upscale 4x
)
model = EdsrModel(config)
trainer = Trainer(
model=model, # the instantiated model to be trained
args=training_args, # training arguments, defined above
train_dataset=train_dataset, # training dataset
eval_dataset=eval_dataset # evaluation dataset
)
trainer.train()
```
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/eugenesiow/super-image-notebooks/blob/master/notebooks/Train_super_image_Models.ipynb "Open in Colab")
## Evaluation results
The evaluation metrics include [PSNR](https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio#Quality_estimation_with_PSNR) and [SSIM](https://en.wikipedia.org/wiki/Structural_similarity#Algorithm).
Evaluation datasets include:
- Set5 - [Bevilacqua et al. (2012)](https://huggingface.co/datasets/eugenesiow/Set5)
- Set14 - [Zeyde et al. (2010)](https://huggingface.co/datasets/eugenesiow/Set14)
- BSD100 - [Martin et al. (2001)](https://huggingface.co/datasets/eugenesiow/BSD100)
- Urban100 - [Huang et al. (2015)](https://huggingface.co/datasets/eugenesiow/Urban100)
The results columns below are represented below as `PSNR/SSIM`. They are compared against a Bicubic baseline.
|Dataset |Scale |Bicubic |edsr-base |
|--- |--- |--- |--- |
|Set5 |2x |33.64/0.9292 |**38.02/0.9607** |
|Set5 |3x |30.39/0.8678 |**35.04/0.9403** |
|Set5 |4x |28.42/0.8101 |**32.12/0.8947** |
|Set14 |2x |30.22/0.8683 |**33.57/0.9172** |
|Set14 |3x |27.53/0.7737 |**30.93/0.8567** |
|Set14 |4x |25.99/0.7023 |**28.60/0.7815** |
|BSD100 |2x |29.55/0.8425 |**32.21/0.8999** |
|BSD100 |3x |27.20/0.7382 |**29.65/0.8204** |
|BSD100 |4x |25.96/0.6672 |**27.61/0.7363** |
|Urban100 |2x |26.66/0.8408 |**32.04/0.9276** |
|Urban100 |3x | |**29.23/0.8723** |
|Urban100 |4x |23.14/0.6573 |**26.02/0.7832** |
![Comparing Bicubic upscaling against x2 upscaling on Set5 Image 2](images/Set5_2_compare.png "Comparing Bicubic upscaling against x2 upscaling on Set5 Image 2")
You can find a notebook to easily run evaluation on pretrained models below:
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/eugenesiow/super-image-notebooks/blob/master/notebooks/Evaluate_Pretrained_super_image_Models.ipynb "Open in Colab")
## BibTeX entry and citation info
```bibtex
@InProceedings{Lim_2017_CVPR_Workshops,
author = {Lim, Bee and Son, Sanghyun and Kim, Heewon and Nah, Seungjun and Lee, Kyoung Mu},
title = {Enhanced Deep Residual Networks for Single Image Super-Resolution},
booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops},
month = {July},
year = {2017}
}
``` | [
-0.6590968370437622,
-0.4397125542163849,
0.057002775371074677,
0.0469842366874218,
-0.3024975657463074,
-0.022451041266322136,
-0.07754193246364594,
-0.4215385913848877,
0.18957671523094177,
0.10563583672046661,
-0.431314617395401,
-0.2587745785713196,
-0.5484015941619873,
0.09144625812768936,
0.03136369585990906,
0.9831750392913818,
0.00419378699734807,
0.3430677652359009,
-0.3793882727622986,
-0.2133745551109314,
-0.3604864478111267,
-0.384640097618103,
-0.5600682497024536,
-0.26110467314720154,
0.0039189658127725124,
0.31991860270500183,
0.5699754953384399,
0.5735578536987305,
0.8143747448921204,
0.34984007477760315,
-0.2008172869682312,
0.23001137375831604,
-0.6613377928733826,
-0.3980439305305481,
0.27210456132888794,
-0.19695337116718292,
-0.39536118507385254,
0.061986662447452545,
0.714625358581543,
0.40141940116882324,
0.03411884233355522,
0.3955652713775635,
0.1620669811964035,
0.8801654577255249,
-0.30924493074417114,
-0.020123599097132683,
-0.22054627537727356,
0.014544363133609295,
0.04163679480552673,
-0.07113893330097198,
-0.08482860773801804,
-0.4059436321258545,
-0.10138945281505585,
-0.6441369652748108,
0.5062430500984192,
0.0010298516135662794,
1.6001940965652466,
0.19331611692905426,
-0.006070116069167852,
0.014271952211856842,
-0.5085777044296265,
0.5943320393562317,
-0.5640811324119568,
0.3251233994960785,
0.2882732152938843,
0.041824501007795334,
-0.05267086625099182,
-0.8954987525939941,
-0.6210286021232605,
-0.21196867525577545,
-0.1876879632472992,
0.3524196147918701,
-0.24447864294052124,
-0.006186045706272125,
0.5008068084716797,
0.6965729594230652,
-0.5462690591812134,
-0.024321909993886948,
-0.6794189810752869,
-0.22772280871868134,
0.7149102091789246,
0.06519482284784317,
0.18996679782867432,
-0.20048360526561737,
-0.662666380405426,
-0.2528728246688843,
-0.4838328957557678,
0.25411131978034973,
0.2970424294471741,
-0.005715233739465475,
-0.26070642471313477,
0.23462001979351044,
-0.003028244711458683,
0.6102778315544128,
0.4346134066581726,
-0.11905708909034729,
0.5765336155891418,
-0.5734847784042358,
-0.3595982491970062,
-0.22519436478614807,
0.8216422200202942,
0.6570950746536255,
-0.010130801238119602,
0.12588094174861908,
-0.11287378519773483,
0.08373872935771942,
-0.12755104899406433,
-1.183315396308899,
-0.4210871756076813,
0.23600511252880096,
-0.517415463924408,
0.00045595577103085816,
-0.04754459857940674,
-0.7872652411460876,
-0.06721343100070953,
-0.46467745304107666,
0.5641929507255554,
-0.5102797746658325,
-0.2989845275878906,
-0.20750215649604797,
-0.07454604655504227,
0.3223116397857666,
0.18442726135253906,
-0.7248315811157227,
0.24993610382080078,
0.07701069861650467,
0.8942780494689941,
0.3655383586883545,
-0.3003558814525604,
-0.16449272632598877,
-0.21269066631793976,
-0.5844096541404724,
0.803696870803833,
-0.220259428024292,
-0.4080836772918701,
-0.46052759885787964,
0.18847191333770752,
-0.08998297899961472,
-0.6554092764854431,
0.5729547739028931,
-0.4069603681564331,
0.12297317385673523,
-0.256242036819458,
-0.27571994066238403,
-0.2445082813501358,
0.24580898880958557,
-0.3112850487232208,
1.4714956283569336,
0.4385376572608948,
-0.7910133600234985,
0.4842040240764618,
-0.3718564212322235,
-0.0650404542684555,
0.07899127900600433,
-0.1031223013997078,
-0.7664016485214233,
-0.05509462207555771,
0.4507593512535095,
0.46133100986480713,
-0.33849599957466125,
0.0537361241877079,
-0.3139771521091461,
-0.4104810953140259,
-0.05765535682439804,
-0.09283512830734253,
0.8195478916168213,
0.16944092512130737,
-0.2871527373790741,
0.22567565739154816,
-0.8524595499038696,
0.25167733430862427,
0.3660164475440979,
-0.28053390979766846,
-0.11670076847076416,
-0.6132327318191528,
0.031300805509090424,
0.3295636773109436,
0.24003498256206512,
-0.7398368120193481,
0.17468681931495667,
-0.11859504878520966,
0.40153175592422485,
0.7979021072387695,
-0.13368959724903107,
0.15492534637451172,
-0.27060526609420776,
0.27859368920326233,
-0.081184983253479,
0.28417113423347473,
-0.21075084805488586,
-0.25085216760635376,
-0.6911678910255432,
-0.6023319959640503,
0.557344913482666,
0.33843478560447693,
-0.41807669401168823,
0.5469522476196289,
-0.4113924503326416,
-0.7832810878753662,
-0.4721839725971222,
-0.010296574793756008,
0.4976028800010681,
0.6416946053504944,
0.5334039926528931,
-0.4775944650173187,
-0.6783831119537354,
-0.9448267817497253,
0.2466893345117569,
0.13924135267734528,
-0.04471001774072647,
0.3918026387691498,
0.6866589188575745,
-0.19912531971931458,
0.6865588426589966,
-0.5027221441268921,
-0.47717368602752686,
-0.18415352702140808,
-0.08378530293703079,
0.39454782009124756,
0.6341323852539062,
0.8153408169746399,
-0.7452770471572876,
-0.8309950828552246,
-0.08802418410778046,
-0.7296041250228882,
0.1343676596879959,
-0.09584551304578781,
-0.09596195071935654,
0.23732464015483856,
0.40362316370010376,
-0.5190085172653198,
0.5594883561134338,
0.5006430745124817,
-0.18087679147720337,
0.8547564148902893,
-0.6807370781898499,
0.4059343636035919,
-1.0869534015655518,
0.16186822950839996,
0.23700018227100372,
-0.20804446935653687,
-0.4392281174659729,
0.21670790016651154,
0.20491281151771545,
-0.16876858472824097,
-0.17439095675945282,
0.10987462103366852,
-0.814145028591156,
-0.22496269643306732,
-0.0645502433180809,
-0.14542441070079803,
0.16227661073207855,
0.6083441376686096,
0.009095330722630024,
0.7740657925605774,
0.8249170184135437,
-0.45588529109954834,
0.4470515847206116,
0.3339438736438751,
-0.402126669883728,
0.6146582365036011,
-0.9139587879180908,
0.38466840982437134,
-0.15767569839954376,
0.3498523235321045,
-1.2268896102905273,
-0.31148332357406616,
0.15795812010765076,
-0.6217107772827148,
0.6473646759986877,
-0.24955275654792786,
-0.4253619611263275,
-0.8174657821655273,
-0.48924630880355835,
0.2474469542503357,
0.47551774978637695,
-0.6171650886535645,
0.34137478470802307,
0.29262682795524597,
-0.018320554867386818,
-0.4603109657764435,
-0.6847886443138123,
-0.22135509550571442,
-0.13958773016929626,
-0.6094669103622437,
0.4751637876033783,
-0.18443146347999573,
0.2306569516658783,
0.2192285656929016,
-0.05824677646160126,
0.09837055206298828,
-0.4720930755138397,
0.4017515778541565,
0.6860279440879822,
-0.11342130601406097,
-0.21392375230789185,
-0.24163904786109924,
-0.09902453422546387,
-0.11327160894870758,
-0.047233715653419495,
0.569770872592926,
-0.5303387641906738,
0.015038970857858658,
-0.7551131844520569,
0.11205589771270752,
0.5941370129585266,
-0.15630924701690674,
0.7223771810531616,
0.7332149147987366,
-0.48934051394462585,
0.4369909167289734,
-0.5229617953300476,
-0.13811196386814117,
-0.43819668889045715,
0.5480716824531555,
-0.43551814556121826,
-0.38855695724487305,
0.6644577980041504,
-0.07717163860797882,
0.02963278628885746,
0.5288207530975342,
0.5531522631645203,
-0.1530105024576187,
0.9911440014839172,
0.3554939925670624,
0.1870271861553192,
0.4934288561344147,
-0.9795732498168945,
-0.021916260942816734,
-1.2168142795562744,
-0.5162389278411865,
-0.43012678623199463,
-0.439544677734375,
-0.4783683717250824,
-0.46865588426589966,
0.4032019376754761,
0.3731522560119629,
-0.4283773601055145,
0.49197450280189514,
-0.7224364280700684,
0.45540866255760193,
0.5804814100265503,
0.447980672121048,
-0.18682023882865906,
0.41330665349960327,
-0.24563978612422943,
-0.19649989902973175,
-0.723270833492279,
-0.26310867071151733,
1.162421703338623,
0.3442166745662689,
0.6675829887390137,
-0.25700515508651733,
0.48151159286499023,
0.11952324211597443,
0.3001803755760193,
-0.5290254950523376,
0.5164996385574341,
-0.13313691318035126,
-0.6803845167160034,
-0.15892405807971954,
-0.4441182315349579,
-0.9272217750549316,
0.27929604053497314,
-0.4454815685749054,
-0.7780684232711792,
0.5863518714904785,
0.2990085482597351,
-0.5940871238708496,
0.5127977132797241,
-0.8057759404182434,
0.8027718663215637,
-0.234148770570755,
-0.7830895781517029,
-0.0596419982612133,
-0.8932343125343323,
0.008956987410783768,
0.12986868619918823,
0.1609276831150055,
0.041978172957897186,
0.29185351729393005,
0.9023730754852295,
-0.5885584950447083,
0.4770788252353668,
-0.3114841878414154,
0.41729193925857544,
0.5160082578659058,
-0.25408631563186646,
0.49428197741508484,
-0.08449120819568634,
-0.09737814962863922,
0.5284284353256226,
0.23937466740608215,
-0.5292444229125977,
-0.3258025646209717,
0.6560699343681335,
-1.1125297546386719,
-0.30204278230667114,
-0.41657811403274536,
-0.5153312683105469,
0.031880661845207214,
0.20483626425266266,
0.6735653281211853,
0.7511897087097168,
0.20604436099529266,
0.4040496349334717,
0.48263993859291077,
-0.11246225982904434,
0.25783371925354004,
0.12050032615661621,
-0.15992292761802673,
-0.7349947690963745,
0.9001779556274414,
0.4288167655467987,
0.2422061264514923,
0.037351228296756744,
0.2482413500547409,
-0.5645704865455627,
-0.5698779225349426,
-0.6737830638885498,
0.33753493428230286,
-0.5407429337501526,
-0.5428090691566467,
-0.4111907184123993,
-0.21489812433719635,
-0.6984415650367737,
-0.15136109292507172,
-0.5016829371452332,
-0.10181174427270889,
-0.3218878209590912,
-0.057007014751434326,
0.23857149481773376,
0.4622723162174225,
-0.5953842997550964,
0.26165375113487244,
-0.6360564827919006,
0.25181344151496887,
0.11656930297613144,
0.16592015326023102,
-0.10814844071865082,
-0.9783721566200256,
-0.3336551785469055,
0.09708991646766663,
-0.5386646389961243,
-0.653616189956665,
0.5684623122215271,
0.2204718291759491,
0.43001922965049744,
0.36814266443252563,
-0.10408051311969757,
1.1128549575805664,
-0.12227890640497208,
0.6855970621109009,
0.5976081490516663,
-0.5098012685775757,
0.5896608233451843,
-0.10784085839986801,
0.07872772216796875,
0.4849007725715637,
0.6157463788986206,
-0.1706724464893341,
0.25187623500823975,
-0.781140923500061,
-0.9158552289009094,
0.7910638451576233,
0.025795288383960724,
0.1115993782877922,
0.4053579270839691,
0.5244438052177429,
-0.0978277176618576,
-0.03537487983703613,
-0.7108160853385925,
-0.36779823899269104,
-0.2821040153503418,
0.14187148213386536,
-0.060639459639787674,
-0.3256305456161499,
-0.13070571422576904,
-0.8894441723823547,
0.8177847862243652,
0.035960081964731216,
0.49600598216056824,
0.6507830619812012,
0.04219702631235123,
-0.33689478039741516,
-0.10882893204689026,
0.3055482804775238,
0.5808996558189392,
-0.5204575061798096,
-0.11151526868343353,
0.18484269082546234,
-0.6719381809234619,
0.12278342247009277,
0.3613901138305664,
-0.2288423776626587,
-0.23042181134223938,
0.23864637315273285,
0.9336126446723938,
-0.18713223934173584,
-0.1542777419090271,
0.40240493416786194,
-0.09434272348880768,
-0.5322102308273315,
-0.2013038843870163,
-0.19356393814086914,
-0.0637749582529068,
0.13929489254951477,
0.4441766142845154,
0.4591338634490967,
-0.007255325093865395,
-0.5186586976051331,
0.10731147974729538,
0.21487008035182953,
-0.47762998938560486,
-0.358012318611145,
0.7078452706336975,
0.05148208886384964,
0.057336848229169846,
0.914250373840332,
-0.36810413002967834,
-0.568897545337677,
0.9233331680297852,
0.6036006808280945,
0.34804776310920715,
-0.2369433045387268,
0.07611352205276489,
1.0781618356704712,
0.27193090319633484,
0.14357025921344757,
0.19620002806186676,
0.13050583004951477,
-0.6924973726272583,
-0.24235719442367554,
-0.6382184028625488,
0.029713604599237442,
0.4905078411102295,
-0.8131041526794434,
0.22935746610164642,
-0.48195356130599976,
-0.371029257774353,
0.06178674101829529,
0.4467580020427704,
-0.6894804835319519,
0.3456503748893738,
0.13464681804180145,
0.86083984375,
-0.7256157398223877,
0.5280338525772095,
0.9692901372909546,
-0.580785870552063,
-1.211954951286316,
-0.1389261931180954,
-0.24133093655109406,
-0.6784615516662598,
0.5069332718849182,
0.4369257092475891,
0.09160913527011871,
0.2649765908718109,
-0.5789328813552856,
-0.6460737586021423,
1.2225147485733032,
0.47490233182907104,
-0.6066271662712097,
0.2425224632024765,
-0.09332018345594406,
0.6138675212860107,
-0.3038780689239502,
0.5463932156562805,
0.4510464072227478,
0.27641239762306213,
0.39240628480911255,
-0.68488609790802,
0.12811222672462463,
-0.3323829770088196,
0.1700471192598343,
0.15272171795368195,
-0.9806327819824219,
0.8277282118797302,
-0.7764847278594971,
-0.2092675268650055,
0.1359115093946457,
0.6523951292037964,
0.2943340539932251,
0.3020817041397095,
0.4804714024066925,
1.0406486988067627,
0.6095153093338013,
-0.17403100430965424,
1.0922129154205322,
-0.3114761710166931,
0.8447097539901733,
0.8943213820457458,
0.09557782858610153,
0.5118388533592224,
0.38952258229255676,
-0.5574266910552979,
0.5060014724731445,
1.1962835788726807,
-0.36860087513923645,
0.575819194316864,
0.08588239550590515,
-0.056629277765750885,
-0.20169605314731598,
-0.13300418853759766,
-0.8004025220870972,
0.17365619540214539,
0.2950945198535919,
-0.3124764561653137,
-0.1745026856660843,
0.06797020137310028,
-0.07373352348804474,
-0.0997704416513443,
-0.5230133533477783,
0.46013620495796204,
-0.21614785492420197,
-0.46395254135131836,
0.9142735004425049,
-0.1812303364276886,
0.6276666522026062,
-0.5545327067375183,
0.010861645452678204,
-0.4032213091850281,
0.2997983992099762,
-0.5033189654350281,
-0.7111497521400452,
0.23358123004436493,
-0.23002900183200836,
-0.027127832174301147,
0.06869971007108688,
0.7267943620681763,
-0.18231812119483948,
-0.6410814523696899,
0.23907561600208282,
-0.0005696080042980611,
0.4915698170661926,
0.019215038046240807,
-0.9479108452796936,
0.03257372975349426,
0.03913356363773346,
-0.48660629987716675,
0.2645203471183777,
0.13900451362133026,
0.2444303333759308,
0.38003894686698914,
0.8742507696151733,
0.11727853864431381,
0.01612355187535286,
-0.1750057339668274,
1.203227162361145,
-0.14231844246387482,
-0.26780056953430176,
-0.6179187297821045,
0.3888598680496216,
-0.2730574607849121,
-0.34184378385543823,
0.6882142424583435,
0.9078197479248047,
1.0324434041976929,
-0.10972360521554947,
0.5289798378944397,
-0.5465917587280273,
0.22472697496414185,
-0.21664968132972717,
0.40907108783721924,
-0.6847991943359375,
-0.016761092469096184,
-0.2725876569747925,
-0.6879689693450928,
-0.22481995820999146,
0.7497382164001465,
-0.5122079849243164,
0.24520286917686462,
0.38490620255470276,
1.1417739391326904,
-0.14074312150478363,
-0.23806697130203247,
0.3233780860900879,
0.17536094784736633,
-0.0006806603050790727,
0.483634889125824,
0.6077781915664673,
-0.8512794971466064,
0.6641453504562378,
-0.567859411239624,
-0.5916807055473328,
-0.252821147441864,
-0.4952477812767029,
-0.6283628344535828,
-0.5546789169311523,
-0.5020213723182678,
-0.6021662950515747,
-0.09934448450803757,
0.7793350219726562,
1.1162405014038086,
-0.6981395483016968,
0.06310111284255981,
-0.045206405222415924,
-0.2053023874759674,
-0.42661723494529724,
-0.2170667052268982,
0.8177101016044617,
0.10756921023130417,
-0.8917235136032104,
-0.19189541041851044,
0.09150771796703339,
0.18913936614990234,
0.012030074372887611,
-0.24379628896713257,
-0.2953662574291229,
-0.17495660483837128,
0.44909629225730896,
0.3890126943588257,
-0.27720075845718384,
-0.22343073785305023,
-0.09374135732650757,
-0.04370911791920662,
0.41344785690307617,
0.5117011070251465,
-0.646395206451416,
0.5053855776786804,
0.46712830662727356,
0.3205045461654663,
0.6692515015602112,
0.11810226738452911,
-0.21605420112609863,
-0.5291920900344849,
0.2411223202943802,
-0.12332537025213242,
0.4549693763256073,
0.4108777940273285,
-0.5032307505607605,
0.6748512983322144,
0.6050318479537964,
-0.8076808452606201,
-0.8937386870384216,
-0.18953846395015717,
-0.9985855221748352,
-0.17367778718471527,
0.9786406755447388,
-0.49856817722320557,
-0.2947341501712799,
0.16943933069705963,
-0.45372703671455383,
0.3738385736942291,
-0.20004485547542572,
0.661134660243988,
0.4059390723705292,
-0.3254571557044983,
-0.284550279378891,
-0.3976450264453888,
0.1887369453907013,
0.17014454305171967,
-0.6697587966918945,
-0.0909823626279831,
0.48983967304229736,
0.5514846444129944,
0.4399285614490509,
0.6666296124458313,
-0.4203660786151886,
0.24368976056575775,
0.3860919177532196,
0.32865023612976074,
-0.3259392976760864,
-0.19813859462738037,
-0.196807399392128,
0.03001023456454277,
-0.2750396132469177,
-0.4973301887512207
] |
monologg/bert-base-cased-goemotions-original | monologg | "2021-05-19T23:48:33Z" | 108,416 | 7 | 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
] |
Helsinki-NLP/opus-mt-ROMANCE-en | Helsinki-NLP | "2023-08-16T11:25:14Z" | 107,869 | 6 | transformers | [
"transformers",
"pytorch",
"tf",
"rust",
"marian",
"text2text-generation",
"translation",
"roa",
"en",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | translation | "2022-03-02T23:29:04Z" | ---
tags:
- translation
license: apache-2.0
---
### opus-mt-ROMANCE-en
* source languages: fr,fr_BE,fr_CA,fr_FR,wa,frp,oc,ca,rm,lld,fur,lij,lmo,es,es_AR,es_CL,es_CO,es_CR,es_DO,es_EC,es_ES,es_GT,es_HN,es_MX,es_NI,es_PA,es_PE,es_PR,es_SV,es_UY,es_VE,pt,pt_br,pt_BR,pt_PT,gl,lad,an,mwl,it,it_IT,co,nap,scn,vec,sc,ro,la
* target languages: en
* OPUS readme: [fr+fr_BE+fr_CA+fr_FR+wa+frp+oc+ca+rm+lld+fur+lij+lmo+es+es_AR+es_CL+es_CO+es_CR+es_DO+es_EC+es_ES+es_GT+es_HN+es_MX+es_NI+es_PA+es_PE+es_PR+es_SV+es_UY+es_VE+pt+pt_br+pt_BR+pt_PT+gl+lad+an+mwl+it+it_IT+co+nap+scn+vec+sc+ro+la-en](https://github.com/Helsinki-NLP/OPUS-MT-train/blob/master/models/fr+fr_BE+fr_CA+fr_FR+wa+frp+oc+ca+rm+lld+fur+lij+lmo+es+es_AR+es_CL+es_CO+es_CR+es_DO+es_EC+es_ES+es_GT+es_HN+es_MX+es_NI+es_PA+es_PE+es_PR+es_SV+es_UY+es_VE+pt+pt_br+pt_BR+pt_PT+gl+lad+an+mwl+it+it_IT+co+nap+scn+vec+sc+ro+la-en/README.md)
* dataset: opus
* model: transformer
* pre-processing: normalization + SentencePiece
* download original weights: [opus-2020-04-01.zip](https://object.pouta.csc.fi/OPUS-MT-models/fr+fr_BE+fr_CA+fr_FR+wa+frp+oc+ca+rm+lld+fur+lij+lmo+es+es_AR+es_CL+es_CO+es_CR+es_DO+es_EC+es_ES+es_GT+es_HN+es_MX+es_NI+es_PA+es_PE+es_PR+es_SV+es_UY+es_VE+pt+pt_br+pt_BR+pt_PT+gl+lad+an+mwl+it+it_IT+co+nap+scn+vec+sc+ro+la-en/opus-2020-04-01.zip)
* test set translations: [opus-2020-04-01.test.txt](https://object.pouta.csc.fi/OPUS-MT-models/fr+fr_BE+fr_CA+fr_FR+wa+frp+oc+ca+rm+lld+fur+lij+lmo+es+es_AR+es_CL+es_CO+es_CR+es_DO+es_EC+es_ES+es_GT+es_HN+es_MX+es_NI+es_PA+es_PE+es_PR+es_SV+es_UY+es_VE+pt+pt_br+pt_BR+pt_PT+gl+lad+an+mwl+it+it_IT+co+nap+scn+vec+sc+ro+la-en/opus-2020-04-01.test.txt)
* test set scores: [opus-2020-04-01.eval.txt](https://object.pouta.csc.fi/OPUS-MT-models/fr+fr_BE+fr_CA+fr_FR+wa+frp+oc+ca+rm+lld+fur+lij+lmo+es+es_AR+es_CL+es_CO+es_CR+es_DO+es_EC+es_ES+es_GT+es_HN+es_MX+es_NI+es_PA+es_PE+es_PR+es_SV+es_UY+es_VE+pt+pt_br+pt_BR+pt_PT+gl+lad+an+mwl+it+it_IT+co+nap+scn+vec+sc+ro+la-en/opus-2020-04-01.eval.txt)
## Benchmarks
| testset | BLEU | chr-F |
|-----------------------|-------|-------|
| Tatoeba.fr.en | 62.2 | 0.750 |
| [
-0.35923290252685547,
-0.5922868251800537,
0.27230918407440186,
0.5058547258377075,
-0.38403111696243286,
-0.2664434313774109,
-0.24848371744155884,
-0.16856831312179565,
0.19447828829288483,
0.5041447281837463,
-0.7987039089202881,
-0.8311923742294312,
-0.5139806866645813,
0.3697238564491272,
-0.016180694103240967,
0.7807950377464294,
-0.11158376932144165,
0.4342159032821655,
0.4343465566635132,
-0.3049086928367615,
-0.35862216353416443,
-0.47357869148254395,
-0.30675646662712097,
-0.22888831794261932,
0.25695616006851196,
0.48111048340797424,
0.46179959177970886,
0.6093926429748535,
1.0310496091842651,
0.2825709283351898,
-0.30110228061676025,
-0.025844862684607506,
-0.5470876693725586,
-0.1727861613035202,
0.3998023569583893,
-0.5836536288261414,
-0.7889242172241211,
-0.06918610632419586,
1.1435736417770386,
0.35784101486206055,
0.1358143389225006,
0.30565303564071655,
-0.10929663479328156,
1.268431305885315,
-0.16906233131885529,
-0.08043013513088226,
-0.3743648827075958,
0.22137588262557983,
-0.3419530987739563,
-0.349877268075943,
-0.7247777581214905,
-0.2536848783493042,
0.14868663251399994,
-0.7767383456230164,
-0.06503106653690338,
0.2585551142692566,
1.625974178314209,
0.166233628988266,
-0.333901047706604,
-0.17548304796218872,
-0.5885854959487915,
1.2296721935272217,
-0.9240387082099915,
0.5439170598983765,
0.2030659317970276,
0.09696649014949799,
0.07840509712696075,
-0.4889889061450958,
-0.581499457359314,
-0.12017332017421722,
-0.4440985321998596,
0.41380277276039124,
-0.16909177601337433,
-0.048779066652059555,
0.603833019733429,
0.8662943840026855,
-0.8853523135185242,
-0.08399031311273575,
-0.7877687811851501,
-0.08915512263774872,
0.7346303462982178,
0.10453761368989944,
0.34480199217796326,
-0.12208971381187439,
-0.6919891238212585,
-0.5321856737136841,
-0.999180018901825,
0.4180346131324768,
0.36387479305267334,
0.3036937415599823,
-0.5679094791412354,
0.6962060928344727,
-0.01888222061097622,
0.768248975276947,
0.062472015619277954,
-0.14624568819999695,
0.8909493088722229,
-0.5492135286331177,
-0.4617229104042053,
-0.21376743912696838,
1.328494668006897,
0.4831227660179138,
0.31634292006492615,
0.06319903582334518,
-0.12977689504623413,
-0.03399212285876274,
-0.16624398529529572,
-0.9816030859947205,
-0.024584129452705383,
0.3157140016555786,
-0.43440914154052734,
0.025344334542751312,
-0.06739839166402817,
-0.7595101594924927,
0.25674447417259216,
-0.3416275084018707,
0.5608465671539307,
-0.8289699554443359,
-0.19207926094532013,
0.37482646107673645,
-0.14276710152626038,
0.5800068378448486,
0.03776165097951889,
-0.5681436657905579,
0.0364745557308197,
0.3292308449745178,
0.7286879420280457,
-0.4707038104534149,
-0.4565359354019165,
-0.693818211555481,
-0.14328336715698242,
-0.3351837396621704,
0.6676604747772217,
-0.3088599443435669,
-0.7106661796569824,
0.09798058867454529,
0.4951479434967041,
-0.40916895866394043,
-0.2787601053714752,
1.1904633045196533,
-0.28630325198173523,
0.6911137700080872,
-0.576106071472168,
-0.5826960802078247,
-0.39411458373069763,
0.30326831340789795,
-0.6841852068901062,
1.5218669176101685,
0.10198571532964706,
-0.8914759755134583,
0.13146258890628815,
-0.6959299445152283,
-0.3390589654445648,
-0.22087730467319489,
-0.04243301600217819,
-0.5333611965179443,
0.024802884086966515,
0.13829512894153595,
0.4539288878440857,
-0.39694005250930786,
0.08886168897151947,
0.17131872475147247,
-0.48635756969451904,
0.15254002809524536,
-0.30030810832977295,
1.171378493309021,
0.18122009932994843,
-0.5644931197166443,
0.2413441240787506,
-1.1453877687454224,
0.0835147425532341,
0.08816469460725784,
-0.497399240732193,
-0.3341773748397827,
-0.07835064083337784,
0.1699613332748413,
0.18991118669509888,
0.14874286949634552,
-0.6463916897773743,
0.261383980512619,
-0.7868926525115967,
0.11854270100593567,
0.6726517677307129,
-0.10839224606752396,
0.4407797157764435,
-0.5876795649528503,
0.6030638217926025,
0.0918768122792244,
-0.07435259968042374,
-0.12086011469364166,
-0.4909774363040924,
-1.0557414293289185,
-0.36029037833213806,
0.3284258246421814,
1.1580967903137207,
-0.7823793292045593,
0.8074737787246704,
-0.5458780527114868,
-0.8512730002403259,
-0.7177170515060425,
-0.08717760443687439,
0.9416050314903259,
0.2675535976886749,
0.5358194708824158,
-0.15191546082496643,
-0.316682904958725,
-1.1818528175354004,
-0.2438034862279892,
-0.2505796253681183,
0.09340174496173859,
0.2963693141937256,
0.7197073698043823,
-0.015883807092905045,
0.4647725224494934,
-0.5811025500297546,
-0.5478838682174683,
-0.25650566816329956,
-0.009097116068005562,
0.6353142261505127,
0.7381047010421753,
0.7348952889442444,
-0.8749359250068665,
-0.8728553056716919,
0.10710860788822174,
-0.6451157331466675,
-0.008170551620423794,
0.022448232397437096,
-0.3512803018093109,
0.1377577930688858,
0.2505127489566803,
-0.27451789379119873,
0.17598159611225128,
0.7333288192749023,
-0.6575907468795776,
0.8342704176902771,
-0.24511952698230743,
0.5413655638694763,
-1.2771036624908447,
0.12689480185508728,
-0.13857005536556244,
0.12270042300224304,
-0.7734799385070801,
0.08837634325027466,
0.10536058247089386,
0.15491127967834473,
-0.8283188343048096,
0.7923556566238403,
-0.7122862935066223,
0.13169746100902557,
0.482180118560791,
0.17739668488502502,
0.1800708770751953,
1.04754638671875,
-0.03245547413825989,
1.1360925436019897,
0.7799566388130188,
-0.575710117816925,
0.12816448509693146,
0.6210248470306396,
-0.44516488909721375,
0.5403066277503967,
-0.9049912691116333,
-0.370585173368454,
0.3593254089355469,
-0.3148380219936371,
-0.9981008768081665,
0.016730165109038353,
0.11370878666639328,
-0.7133691310882568,
0.3795485198497772,
-0.03550458326935768,
-0.6051246523857117,
-0.16787923872470856,
-0.35146960616111755,
0.3229348063468933,
0.715292751789093,
-0.16836026310920715,
0.659680187702179,
0.08197144418954849,
-0.03286132216453552,
-0.5809401273727417,
-1.2250192165374756,
-0.2588428258895874,
-0.31348729133605957,
-0.9591343402862549,
0.34038078784942627,
-0.5561785697937012,
-0.2888694405555725,
-0.047860659658908844,
0.2669565975666046,
-0.08079587668180466,
0.017783477902412415,
-0.002938810968771577,
0.31919947266578674,
-0.7035684585571289,
0.05358327180147171,
0.09175555408000946,
-0.1700594276189804,
-0.24891574680805206,
0.1310436725616455,
0.7728061676025391,
-0.6265019178390503,
-0.4069679081439972,
-0.7189303636550903,
0.2336539328098297,
0.9352986216545105,
-0.7034522891044617,
0.7426620125770569,
0.6489017605781555,
0.07971707731485367,
0.22046653926372528,
-0.5201821327209473,
-0.05428393557667732,
-0.48931342363357544,
0.1570763885974884,
-0.5341235399246216,
-1.0126348733901978,
0.9914204478263855,
0.27459195256233215,
0.40979188680648804,
1.0172024965286255,
0.5715837478637695,
0.13387209177017212,
0.7226024866104126,
0.4524253010749817,
-0.03413735702633858,
0.4618047773838043,
-0.787932276725769,
-0.3175445795059204,
-1.2360479831695557,
0.2357398271560669,
-0.7194036245346069,
-0.25018224120140076,
-0.9431710243225098,
-0.4153728187084198,
0.46549442410469055,
-0.010372482240200043,
-0.13490727543830872,
0.6051167249679565,
-0.5702529549598694,
0.3302156627178192,
0.6631518602371216,
-0.14814233779907227,
0.47196146845817566,
0.13658548891544342,
-0.5875934958457947,
-0.32498982548713684,
-0.46197032928466797,
-0.5232141017913818,
1.4100892543792725,
0.2769318222999573,
0.2129550278186798,
0.495484858751297,
0.5282884240150452,
0.15412624180316925,
0.16465961933135986,
-0.6561784148216248,
0.6577762961387634,
-0.43733638525009155,
-1.0094372034072876,
-0.43440723419189453,
-0.3613557517528534,
-0.7017505168914795,
0.6439104676246643,
-0.17043130099773407,
-0.7737959027290344,
0.47381746768951416,
-0.09913371503353119,
-0.3716421127319336,
0.3340173065662384,
-0.7053916454315186,
1.1846565008163452,
-0.19037391245365143,
-0.4557000696659088,
0.1384265124797821,
-0.649100661277771,
0.4704498052597046,
0.07477642595767975,
0.19899886846542358,
-0.26666930317878723,
0.14172080159187317,
0.8273416757583618,
-0.0851258784532547,
0.38010892271995544,
0.3093257248401642,
-0.2077789306640625,
0.2699272036552429,
0.2632772922515869,
0.7308961749076843,
-0.15379802882671356,
-0.4978892207145691,
0.24637995660305023,
0.08034864068031311,
-0.3699168562889099,
-0.12755990028381348,
0.6314497590065002,
-0.7225891947746277,
-0.4134694039821625,
-0.7166010141372681,
-0.6279283165931702,
0.0774829089641571,
0.47880813479423523,
0.6205567121505737,
0.9920810461044312,
-0.3330826759338379,
0.5992292165756226,
1.0208667516708374,
-0.45587673783302307,
0.48201948404312134,
0.9465583562850952,
-0.29867836833000183,
-0.8299197554588318,
0.9745416045188904,
0.08461153507232666,
0.7063181400299072,
0.6825889945030212,
0.08250432461500168,
-0.16226446628570557,
-0.6755317449569702,
-0.9025567173957825,
0.5135882496833801,
-0.38984909653663635,
0.008412630297243595,
-0.648817241191864,
-0.05429425090551376,
-0.3892119526863098,
-0.12315316498279572,
-0.3277556300163269,
-0.39319077134132385,
-0.25268176198005676,
-0.22451390326023102,
0.3933030962944031,
0.24251234531402588,
0.0024077873677015305,
0.6965341567993164,
-1.1348981857299805,
0.19070929288864136,
-0.220749169588089,
0.22879138588905334,
-0.5117208957672119,
-0.9058302640914917,
-0.3390001058578491,
-0.01821226440370083,
-0.46147531270980835,
-1.3058496713638306,
0.7758656740188599,
0.18465293943881989,
0.37040597200393677,
0.47132858633995056,
0.194675013422966,
0.5083037614822388,
-0.8471654057502747,
1.1764189004898071,
0.008365160785615444,
-0.8245065808296204,
0.5134410262107849,
-0.7330551147460938,
0.2692206799983978,
1.0092358589172363,
0.33161649107933044,
-0.5069848299026489,
-0.6481589674949646,
-0.8695341348648071,
-0.8797739744186401,
1.1513261795043945,
0.7563897967338562,
-0.1382419764995575,
0.2732962667942047,
-0.1288393884897232,
-0.2871227264404297,
0.15988653898239136,
-1.2063926458358765,
-0.7515531778335571,
0.39606934785842896,
-0.1302228718996048,
-0.25238528847694397,
-0.5357187390327454,
-0.27579909563064575,
-0.32625627517700195,
1.3301928043365479,
0.2817268371582031,
0.2976340353488922,
0.5595826506614685,
0.06831245124340057,
-0.2181757539510727,
0.40997928380966187,
1.0709128379821777,
0.4263761043548584,
-0.5077764987945557,
-0.22948314249515533,
0.22523871064186096,
-0.45718714594841003,
-0.031178077682852745,
0.09682156145572662,
-0.5043072700500488,
0.363748699426651,
0.5136137008666992,
1.0088821649551392,
0.21020154654979706,
-0.8347933292388916,
0.6208233833312988,
-0.20235225558280945,
-0.4253137409687042,
-0.753419041633606,
-0.09380215406417847,
0.039662133902311325,
0.07090608030557632,
0.14678382873535156,
-0.11578434705734253,
0.19967041909694672,
-0.44164910912513733,
0.1528083086013794,
0.17114970088005066,
-0.8986955881118774,
-0.32840394973754883,
0.3644627630710602,
0.1541684865951538,
-0.29515373706817627,
0.4048577845096588,
-0.41828951239585876,
-0.906144917011261,
0.6174106001853943,
0.17935746908187866,
1.1797523498535156,
-0.416226863861084,
-0.12855613231658936,
0.8636103868484497,
0.7818602323532104,
-0.09005056321620941,
0.6567603945732117,
0.2035662680864334,
-0.5379010438919067,
-0.35637375712394714,
-0.9235937595367432,
-0.03538791090250015,
0.13371816277503967,
-0.7215132713317871,
0.29699674248695374,
0.17207926511764526,
0.0630284771323204,
-0.4889439642429352,
0.16547948122024536,
-0.4087264835834503,
0.023302292451262474,
-0.4879533052444458,
1.0871424674987793,
-1.1450339555740356,
0.8691480159759521,
0.6084690690040588,
-0.6700124144554138,
-1.2419801950454712,
-0.08672486245632172,
-0.13544678688049316,
-0.5166460871696472,
0.7099506855010986,
0.23973239958286285,
0.11964762955904007,
0.12060956656932831,
-0.12489192187786102,
-1.0452224016189575,
1.1104915142059326,
0.0183495432138443,
-0.6649824380874634,
0.2617637813091278,
0.140454962849617,
0.800163209438324,
-0.32190173864364624,
0.3264114260673523,
0.589741587638855,
0.8657659292221069,
0.12364225834608078,
-1.2446677684783936,
-0.13677239418029785,
-0.8698057532310486,
-0.49080100655555725,
0.48724091053009033,
-0.8163687586784363,
1.1873174905776978,
0.19778834283351898,
-0.3119165599346161,
0.07422289252281189,
0.7042607665061951,
0.39936375617980957,
0.21819615364074707,
0.4377366304397583,
1.0200241804122925,
0.5156102180480957,
-0.6294785737991333,
1.1859021186828613,
-0.5942199230194092,
0.25343504548072815,
1.0426162481307983,
-0.007626448757946491,
1.0153647661209106,
0.3019990622997284,
-0.42959776520729065,
0.5930643081665039,
0.6087470650672913,
-0.2251683473587036,
0.3900294303894043,
0.03626614063978195,
-0.11658680438995361,
-0.30784574151039124,
0.12432775646448135,
-0.8388593792915344,
0.13223063945770264,
0.39814671874046326,
-0.4692893624305725,
0.18157625198364258,
-0.0520024448633194,
0.3181126117706299,
0.09954684972763062,
-0.055014271289110184,
0.6866665482521057,
0.05676551163196564,
-0.9376075267791748,
1.0377650260925293,
-0.1466064751148224,
0.6183829307556152,
-0.8142375349998474,
0.08473832905292511,
-0.17893777787685394,
0.41917774081230164,
0.08534681797027588,
-0.6884238123893738,
0.3078252375125885,
0.05040867626667023,
-0.2853606939315796,
-0.4397044777870178,
0.10512430965900421,
-0.7313497066497803,
-1.0470621585845947,
0.5119415521621704,
0.54246586561203,
0.37901315093040466,
0.02892157807946205,
-0.8540276885032654,
-0.029462037608027458,
0.5457468032836914,
-0.6116576194763184,
-0.1336064487695694,
0.7829879522323608,
0.3442571461200714,
0.5431808829307556,
0.7658113241195679,
0.35681116580963135,
0.3478432297706604,
-0.08357603847980499,
0.8585178852081299,
-0.6008971333503723,
-0.4641546308994293,
-0.8909550309181213,
0.8927655220031738,
0.01768060214817524,
-0.8212838172912598,
0.9825313687324524,
0.9788911938667297,
0.8275122046470642,
-0.21061749756336212,
0.4855712354183197,
-0.11503100395202637,
0.6955926418304443,
-0.7753722071647644,
0.6250817775726318,
-1.2078062295913696,
0.3682563006877899,
-0.3636431097984314,
-0.9361228942871094,
-0.24415096640586853,
0.4572487771511078,
-0.5337193608283997,
-0.35429129004478455,
0.9919667840003967,
0.9049992561340332,
0.09871178865432739,
-0.20512078702449799,
0.3551798462867737,
0.5365002751350403,
0.36924979090690613,
0.8381993174552917,
0.4643470346927643,
-1.1082549095153809,
0.6170379519462585,
-0.35793110728263855,
-0.10392063856124878,
-0.2947613000869751,
-0.6884555816650391,
-0.9014617800712585,
-0.6725264191627502,
-0.19136987626552582,
-0.43308061361312866,
-0.16116169095039368,
0.9526207447052002,
0.18903732299804688,
-0.9186709523200989,
-0.5516172647476196,
0.05007297918200493,
0.12992379069328308,
-0.29959428310394287,
-0.2439412921667099,
0.9139049649238586,
-0.18245865404605865,
-1.0245310068130493,
0.45258358120918274,
0.14909185469150543,
0.036500103771686554,
-0.24002742767333984,
-0.40847837924957275,
-0.5789960026741028,
0.12773500382900238,
0.3506872057914734,
0.16920340061187744,
-0.8036018013954163,
0.13873544335365295,
0.37654587626457214,
-0.43615421652793884,
0.25590547919273376,
0.2655040919780731,
-0.13133728504180908,
0.3771955072879791,
1.0769189596176147,
0.1658649444580078,
0.31011542677879333,
-0.13388998806476593,
0.5136138796806335,
-0.6763636469841003,
0.4404754638671875,
0.2502319812774658,
0.6599888205528259,
0.20376315712928772,
-0.02700684405863285,
0.8243979811668396,
0.3574196398258209,
-0.5361008048057556,
-1.1785529851913452,
0.0962926521897316,
-1.4322736263275146,
-0.015434128232300282,
1.4115678071975708,
-0.2995867133140564,
-0.394854336977005,
0.2830977737903595,
-0.25492051243782043,
0.06790898740291595,
-0.39937353134155273,
0.2727776765823364,
0.9593941569328308,
0.20538054406642914,
0.27594807744026184,
-0.80800861120224,
0.5980727672576904,
0.7786991000175476,
-0.7211840748786926,
-0.020978780463337898,
0.6014137864112854,
0.012316383421421051,
0.5964524149894714,
0.7543275952339172,
-0.36666181683540344,
0.2630182206630707,
-0.2830252945423126,
0.4444896876811981,
-0.09575727581977844,
-0.2066248506307602,
-0.2126644253730774,
-0.04214960336685181,
-0.17114819586277008,
-0.20130924880504608
] |
echarlaix/tiny-random-mistral | echarlaix | "2023-10-06T09:06:13Z" | 106,753 | 0 | transformers | [
"transformers",
"pytorch",
"mistral",
"text-generation",
"license:apache-2.0",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] | text-generation | "2023-10-06T08:53:48Z" | ---
license: apache-2.0
---
| [
-0.12853388488292694,
-0.18616782128810883,
0.6529127359390259,
0.4943625330924988,
-0.19319313764572144,
0.23607465624809265,
0.36071982979774475,
0.05056332051753998,
0.5793652534484863,
0.740013837814331,
-0.6508103013038635,
-0.2378396987915039,
-0.710224986076355,
-0.04782581701874733,
-0.3894752264022827,
0.8470761775970459,
-0.09598272293806076,
0.024004854261875153,
0.047120071947574615,
-0.14317826926708221,
-0.6121037602424622,
-0.04771740734577179,
-1.0524537563323975,
-0.06787490844726562,
0.3002279996871948,
0.5120972990989685,
0.8275896310806274,
0.39602896571159363,
0.5030564069747925,
1.7515558004379272,
-0.08836919069290161,
-0.22754427790641785,
-0.45892032980918884,
0.4223068356513977,
-0.33277371525764465,
-0.42133718729019165,
-0.2624166011810303,
-0.07449338585138321,
0.32380399107933044,
0.790371298789978,
-0.38104110956192017,
0.19328099489212036,
-0.22438454627990723,
1.008224368095398,
-0.8202074766159058,
0.22630876302719116,
-0.16698351502418518,
0.14053204655647278,
0.042308706790208817,
-0.14591927826404572,
-0.1326323002576828,
-0.6440033912658691,
0.06469469517469406,
-0.899596095085144,
0.1027495265007019,
-0.04461126774549484,
0.8789561986923218,
0.21909058094024658,
-0.5102370977401733,
-0.0459773913025856,
-0.6883594989776611,
1.0972508192062378,
-0.17556026577949524,
0.7615712881088257,
0.4507811963558197,
0.45288562774658203,
-0.5849329829216003,
-1.178217887878418,
-0.4441864490509033,
-0.13579002022743225,
0.14722809195518494,
0.30556100606918335,
-0.3453029692173004,
-0.022343844175338745,
0.10801105946302414,
0.5610314011573792,
-0.5003758072853088,
-0.311959445476532,
-0.9579929113388062,
-0.18164916336536407,
0.6820483207702637,
0.319308340549469,
0.834044337272644,
0.1873151659965515,
-0.7347195744514465,
0.12866291403770447,
-1.3239703178405762,
0.07650735974311829,
0.6465023756027222,
0.239467591047287,
-0.554598867893219,
0.8594784736633301,
-0.28587982058525085,
0.626249372959137,
0.2728465497493744,
-0.1164526641368866,
0.2784252464771271,
-0.23030735552310944,
-0.2735062837600708,
0.033087607473134995,
0.34597301483154297,
0.8204491138458252,
0.16248634457588196,
-0.019984982907772064,
-0.22123965620994568,
0.0020717978477478027,
0.2684449553489685,
-0.7935096025466919,
-0.4712669551372528,
0.1926696002483368,
-0.558952808380127,
-0.0910850465297699,
0.4327022135257721,
-1.0976827144622803,
-0.4812980592250824,
-0.1879846155643463,
0.05468139797449112,
-0.5451693534851074,
-0.3697946071624756,
0.07273250073194504,
-0.79254150390625,
-0.1243419200181961,
0.570950984954834,
-0.6230252981185913,
0.43974608182907104,
0.533625602722168,
0.7861635684967041,
0.2330387681722641,
-0.23613610863685608,
-0.6695019602775574,
0.48848265409469604,
-0.8661867380142212,
0.36860740184783936,
-0.3073781132698059,
-0.8298640251159668,
-0.09631050378084183,
0.5393159985542297,
0.20664852857589722,
-0.6653256416320801,
0.7074045538902283,
-0.5496984720230103,
-0.07806532829999924,
-0.4308285415172577,
-0.2432200014591217,
0.17460417747497559,
0.11115431040525436,
-0.6238909363746643,
0.9402233362197876,
0.5551108121871948,
-0.584109902381897,
0.31701239943504333,
-0.4869506359100342,
-0.6865583658218384,
0.26748135685920715,
-0.008750975131988525,
-0.047152332961559296,
0.3279528021812439,
-0.15983973443508148,
-0.0020511597394943237,
0.10505761206150055,
0.008299741894006729,
-0.21891699731349945,
-0.4786304235458374,
0.06349936127662659,
0.151650071144104,
1.25368332862854,
0.4083622097969055,
-0.3771882951259613,
-0.13140122592449188,
-1.0526149272918701,
0.025432661175727844,
0.0505015105009079,
-0.42306768894195557,
-0.2504565119743347,
-0.14882194995880127,
-0.20381587743759155,
0.4307260811328888,
0.2118472456932068,
-0.813115119934082,
0.22643625736236572,
-0.2064024657011032,
0.364496648311615,
0.8222091794013977,
0.2703101634979248,
0.39760565757751465,
-0.6625286340713501,
0.6563138365745544,
0.2076188325881958,
0.49590179324150085,
0.35404202342033386,
-0.3845822811126709,
-0.9641586542129517,
-0.442161500453949,
-0.10117404907941818,
0.2975531220436096,
-0.7744957804679871,
0.5847322940826416,
0.012979604303836823,
-0.5836705565452576,
-0.4465281367301941,
-0.15488101541996002,
0.2755330502986908,
-0.06606576591730118,
0.03334902226924896,
-0.4049779176712036,
-0.7394417524337769,
-1.0127898454666138,
-0.13788150250911713,
-0.5021388530731201,
-0.21892830729484558,
0.3160586357116699,
0.2617739737033844,
-0.34290042519569397,
0.7610747814178467,
-0.6059278249740601,
-0.704064130783081,
-0.13973554968833923,
-0.0995984673500061,
0.6187719702720642,
0.9297672510147095,
0.749138355255127,
-0.7224893569946289,
-0.8973818421363831,
-0.056230708956718445,
-0.5420039892196655,
-0.020044349133968353,
0.038149889558553696,
-0.18260693550109863,
-0.10514980554580688,
0.22352531552314758,
-0.6100803017616272,
0.8851073980331421,
0.43224984407424927,
-0.681546688079834,
0.5210590958595276,
-0.4444413483142853,
0.6073803901672363,
-0.8642839193344116,
-0.2911490201950073,
-0.16823577880859375,
-0.1976117193698883,
-0.7090160846710205,
0.19411544501781464,
-0.3002234101295471,
-0.33029863238334656,
-0.7474032044410706,
0.5274897813796997,
-0.9497010707855225,
-0.18781527876853943,
-0.33672773838043213,
-0.03423111140727997,
0.25807833671569824,
0.19490505754947662,
-0.23560254275798798,
0.8900529742240906,
0.9160482287406921,
-0.7121306657791138,
0.5487277507781982,
0.3930906653404236,
-0.1920013427734375,
0.7131237387657166,
-0.3887738585472107,
0.05161993205547333,
-0.12344931066036224,
0.14374595880508423,
-1.126388430595398,
-0.561158299446106,
0.13677382469177246,
-0.712703287601471,
0.17686958611011505,
-0.16556859016418457,
-0.09428537636995316,
-0.6608465313911438,
-0.33806395530700684,
0.25910091400146484,
0.48612290620803833,
-0.47969940304756165,
0.6188148260116577,
0.5728040337562561,
0.02651876211166382,
-0.5307406783103943,
-0.7206818461418152,
0.20418110489845276,
0.039646461606025696,
-0.5569695830345154,
0.3011690080165863,
0.006543457508087158,
-0.6622446775436401,
-0.371124804019928,
-0.26354190707206726,
-0.6043857336044312,
-0.2267974615097046,
0.7826986312866211,
0.1199423298239708,
-0.09012264013290405,
-0.20310267806053162,
-0.3199536204338074,
-0.06167525798082352,
0.30487415194511414,
-0.07575298100709915,
0.7232834696769714,
-0.33623749017715454,
-0.17850083112716675,
-0.887734055519104,
0.652754545211792,
0.9970465302467346,
0.09446714073419571,
0.806644082069397,
0.46324217319488525,
-0.35647475719451904,
-0.1304660439491272,
-0.3535459041595459,
-0.15120601654052734,
-0.685774564743042,
-0.1806798279285431,
-0.5322476625442505,
-0.5411434769630432,
0.40530654788017273,
0.10101459175348282,
-0.0021042972803115845,
0.5167046785354614,
0.2533605694770813,
-0.28806859254837036,
0.7550324201583862,
1.034340739250183,
0.1391797959804535,
0.3602915108203888,
-0.2854715585708618,
0.6341594457626343,
-0.8329949378967285,
-0.34052175283432007,
-0.4548071026802063,
-0.2563585042953491,
-0.31214389204978943,
-0.10750849545001984,
0.5791022181510925,
0.2818215489387512,
-0.4463467597961426,
0.1250680536031723,
-0.5994209051132202,
0.6587361693382263,
0.6273988485336304,
0.5719727873802185,
0.1997303068637848,
-0.46199458837509155,
0.19982971251010895,
0.04816687852144241,
-0.45745599269866943,
-0.4009109139442444,
0.7711143493652344,
0.2399624139070511,
0.8364022374153137,
0.20927050709724426,
0.4957774877548218,
0.33375421166419983,
0.2528058588504791,
-0.6318977475166321,
0.2009797990322113,
-0.22282809019088745,
-1.245961308479309,
-0.206426739692688,
-0.16551318764686584,
-1.0080583095550537,
-0.11792082339525223,
-0.18288995325565338,
-0.8406620025634766,
0.2665729820728302,
-0.19225634634494781,
-0.6640645265579224,
0.5206149220466614,
-0.5103875398635864,
0.69347083568573,
-0.23555898666381836,
-0.2817087769508362,
0.11930079013109207,
-0.6889920830726624,
0.5254612565040588,
0.3667147755622864,
0.29168397188186646,
-0.37968993186950684,
-0.3192872405052185,
0.5068994760513306,
-0.881224513053894,
0.44081127643585205,
-0.10564978420734406,
0.19428130984306335,
0.5358879566192627,
0.4153591990470886,
0.3823971152305603,
0.28699052333831787,
-0.2459377944469452,
-0.23415414988994598,
0.2250344604253769,
-0.7581346035003662,
-0.27754613757133484,
0.9095459580421448,
-0.7519428730010986,
-0.8586915731430054,
-0.6954255700111389,
-0.30644941329956055,
0.28865277767181396,
0.02781464159488678,
0.7154772281646729,
0.6456884145736694,
-0.18821057677268982,
0.23776991665363312,
0.7208225727081299,
-0.0146945184096694,
0.7235562801361084,
0.29411184787750244,
-0.4056646227836609,
-0.6169787645339966,
0.7182320356369019,
0.2627044916152954,
0.05162655562162399,
0.028327951207756996,
0.3058736026287079,
-0.17546698451042175,
-0.15078596770763397,
-0.6318323612213135,
-0.06395323574542999,
-0.7465729117393494,
-0.0927949845790863,
-0.7541396617889404,
-0.2507742643356323,
-0.7114590406417847,
-0.8068137764930725,
-0.7080163955688477,
-0.45604395866394043,
-0.43011948466300964,
-0.23352204263210297,
0.5163108706474304,
1.1627086400985718,
-0.2613152861595154,
0.8011051416397095,
-0.8900954723358154,
0.41936296224594116,
0.4969540238380432,
0.7519731521606445,
-0.11061006784439087,
-0.6746935844421387,
-0.07836239039897919,
-0.5338755249977112,
-0.29485058784484863,
-1.0156972408294678,
0.31774646043777466,
-0.03688591718673706,
0.40537136793136597,
0.42938894033432007,
0.25190269947052,
0.49392756819725037,
-0.30073118209838867,
1.1130688190460205,
0.7274302244186401,
-0.803381085395813,
0.519527792930603,
-0.7635002136230469,
0.16122324764728546,
0.9363659620285034,
0.54477459192276,
-0.4417075514793396,
-0.15113934874534607,
-1.025976538658142,
-0.843137264251709,
0.5963036417961121,
0.15439945459365845,
0.016843896359205246,
0.01821417547762394,
0.03168272227048874,
0.29466384649276733,
0.3591304123401642,
-0.7847291231155396,
-0.8240220546722412,
-0.13851122558116913,
0.25803306698799133,
0.31456053256988525,
-0.1648542582988739,
-0.3003871440887451,
-0.611615777015686,
0.8711391091346741,
0.18286482989788055,
0.3546231985092163,
0.12073354423046112,
0.04369349032640457,
-0.35506919026374817,
0.14787021279335022,
0.5522999167442322,
1.2529057264328003,
-0.40983331203460693,
0.3673911392688751,
0.1751260608434677,
-0.6540069580078125,
0.6494997143745422,
-0.3036349415779114,
-0.021784601733088493,
0.6203135251998901,
0.17760884761810303,
0.28528398275375366,
0.315599262714386,
-0.3621427118778229,
0.6047801971435547,
-0.029422052204608917,
-0.17758512496948242,
-0.7005696296691895,
0.15866968035697937,
0.029350608587265015,
0.27507954835891724,
0.4392024278640747,
0.24443313479423523,
0.08246771991252899,
-1.0602877140045166,
0.5711055397987366,
0.24493910372257233,
-0.8676618337631226,
-0.3011006712913513,
0.7047957181930542,
0.4075389802455902,
-0.47599563002586365,
0.38749054074287415,
0.012702330946922302,
-0.6710241436958313,
0.5987741351127625,
0.5510413646697998,
0.7569674253463745,
-0.4702427089214325,
0.3088020086288452,
0.6245602965354919,
0.06711331009864807,
0.20550549030303955,
0.6923202872276306,
0.03149382025003433,
-0.44738656282424927,
0.23022446036338806,
-0.5986733436584473,
-0.1468990594148636,
0.13735318183898926,
-0.8047426342964172,
0.351533442735672,
-0.9312615394592285,
-0.24089956283569336,
0.08751589059829712,
0.11761097609996796,
-0.6130945086479187,
0.6674696207046509,
-0.008524954319000244,
0.9280490875244141,
-0.8549083471298218,
0.9626278281211853,
0.8559581637382507,
-0.31830817461013794,
-0.7709448337554932,
-0.33556753396987915,
0.02013934776186943,
-0.6660526990890503,
0.7108278274536133,
-0.18973003327846527,
-0.41207411885261536,
-0.09323947876691818,
-0.622982919216156,
-1.0003730058670044,
0.030618250370025635,
0.017415650188922882,
-0.4625031054019928,
0.4454794228076935,
-0.5157257318496704,
0.3289681673049927,
-0.19169732928276062,
0.30509495735168457,
0.7719469666481018,
0.7958452701568604,
0.22960808873176575,
-0.6354780197143555,
-0.4466685652732849,
-0.010276071727275848,
-0.16682815551757812,
0.4545809030532837,
-1.0710972547531128,
0.967736542224884,
-0.4652574360370636,
-0.34733209013938904,
0.2706642150878906,
0.797762393951416,
0.2538500428199768,
0.3524126708507538,
0.6219537258148193,
0.9016807079315186,
0.36450111865997314,
-0.31178343296051025,
0.7276745438575745,
0.2426338493824005,
0.4152539074420929,
0.7364203333854675,
-0.22712187469005585,
0.5403846502304077,
0.8906413316726685,
-0.786162257194519,
0.5381765365600586,
0.7879031896591187,
0.16047371923923492,
0.7758157253265381,
0.5944145917892456,
-0.611952543258667,
-0.1185941994190216,
-0.1464141309261322,
-0.6171560287475586,
0.1979752480983734,
0.052926212549209595,
-0.11974738538265228,
-0.2846010625362396,
-0.13567376136779785,
0.12295057624578476,
0.2836454212665558,
-0.5959328413009644,
0.606866717338562,
0.34341585636138916,
-0.6328282356262207,
0.21025103330612183,
-0.25779569149017334,
0.6709501147270203,
-0.5978154540061951,
0.02733636647462845,
-0.226993590593338,
0.41810402274131775,
-0.4618742763996124,
-1.007582426071167,
0.47138404846191406,
-0.2920241355895996,
-0.40551304817199707,
-0.26942431926727295,
0.8072363138198853,
-0.22133907675743103,
-0.5572860240936279,
0.37486034631729126,
0.13466592133045197,
0.41473662853240967,
0.40145981311798096,
-0.548729419708252,
0.047790080308914185,
0.13760165870189667,
-0.20061805844306946,
0.3601190149784088,
0.2973729372024536,
0.25488772988319397,
0.7100128531455994,
0.5052477717399597,
0.22198708355426788,
0.25694364309310913,
-0.18668605387210846,
0.8387458324432373,
-0.9102796316146851,
-0.8167635202407837,
-0.9497333765029907,
0.3849896192550659,
0.025727711617946625,
-0.880144476890564,
0.7920305728912354,
0.7652608156204224,
0.5113964080810547,
-0.4877890348434448,
0.4755283296108246,
-0.326479434967041,
0.5047136545181274,
-0.13870958983898163,
1.001089096069336,
-0.760762631893158,
-0.29587265849113464,
-0.030554059892892838,
-0.9216439723968506,
-0.2533753216266632,
0.5375741720199585,
0.1540832668542862,
-0.14608067274093628,
0.4385907053947449,
0.44216376543045044,
0.022173406556248665,
0.25223150849342346,
0.32861006259918213,
0.06042787432670593,
0.14508451521396637,
0.5510438680648804,
1.0931141376495361,
-0.43394410610198975,
0.18694786727428436,
-0.4923475384712219,
-0.4536249041557312,
-0.4153490662574768,
-0.9548057913780212,
-0.6640313863754272,
-0.48185449838638306,
-0.2973935008049011,
-0.5915579199790955,
0.11726461350917816,
0.9300885796546936,
0.9018137454986572,
-0.6256728172302246,
-0.41243645548820496,
0.25713539123535156,
0.30293411016464233,
-0.2295418381690979,
-0.146267831325531,
0.2736492455005646,
-0.006407544948160648,
-0.7211178541183472,
0.3930943012237549,
0.807976245880127,
0.3887130320072174,
0.08444006741046906,
-0.07217127084732056,
-0.4407080411911011,
0.026101574301719666,
0.5373561382293701,
0.5729561448097229,
-0.6281182169914246,
-0.4099644422531128,
-0.5328317880630493,
-0.21386730670928955,
0.15529435873031616,
0.48077550530433655,
-0.5166378617286682,
0.32661110162734985,
0.8128959536552429,
0.17017659544944763,
0.7187885642051697,
-0.0022492259740829468,
0.6678642630577087,
-0.8970246315002441,
0.4446259140968323,
0.3953385353088379,
0.5681870579719543,
0.08998038619756699,
-0.7339164614677429,
0.9820241928100586,
0.49674350023269653,
-0.6334057450294495,
-1.0034242868423462,
0.03079957515001297,
-1.193113923072815,
-0.3788175582885742,
0.9890843629837036,
-0.09595765173435211,
-0.9597458839416504,
-0.36448943614959717,
-0.3677716851234436,
0.07989637553691864,
-0.33809733390808105,
0.35498204827308655,
0.8268195986747742,
-0.2538071274757385,
-0.2204185128211975,
-0.9505581855773926,
0.4752943515777588,
0.3102525472640991,
-0.5886632204055786,
-0.05114369094371796,
0.329391211271286,
0.45236870646476746,
0.3009701371192932,
0.5239557027816772,
0.10428227484226227,
0.8970529437065125,
0.25200390815734863,
0.30491405725479126,
-0.04526621103286743,
-0.590078592300415,
-0.0160664189606905,
0.2621477246284485,
0.04487839341163635,
-0.6869441270828247
] |
Helsinki-NLP/opus-mt-sv-en | Helsinki-NLP | "2023-08-16T12:05:00Z" | 106,583 | 7 | transformers | [
"transformers",
"pytorch",
"tf",
"rust",
"marian",
"text2text-generation",
"translation",
"sv",
"en",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | translation | "2022-03-02T23:29:04Z" | ---
tags:
- translation
license: apache-2.0
---
### opus-mt-sv-en
* source languages: sv
* target languages: en
* OPUS readme: [sv-en](https://github.com/Helsinki-NLP/OPUS-MT-train/blob/master/models/sv-en/README.md)
* dataset: opus
* model: transformer-align
* pre-processing: normalization + SentencePiece
* download original weights: [opus-2020-02-26.zip](https://object.pouta.csc.fi/OPUS-MT-models/sv-en/opus-2020-02-26.zip)
* test set translations: [opus-2020-02-26.test.txt](https://object.pouta.csc.fi/OPUS-MT-models/sv-en/opus-2020-02-26.test.txt)
* test set scores: [opus-2020-02-26.eval.txt](https://object.pouta.csc.fi/OPUS-MT-models/sv-en/opus-2020-02-26.eval.txt)
## Benchmarks
| testset | BLEU | chr-F |
|-----------------------|-------|-------|
| Tatoeba.sv.en | 64.5 | 0.763 |
| [
-0.2163640558719635,
-0.36500459909439087,
0.2751232087612152,
0.481477290391922,
-0.5598294138908386,
-0.4175136983394623,
-0.4926906228065491,
-0.07063695043325424,
0.010699481703341007,
0.55113285779953,
-0.7984572052955627,
-0.6835935115814209,
-0.6259167194366455,
0.2287963330745697,
-0.08829693496227264,
0.8448259234428406,
-0.17986008524894714,
0.6855788230895996,
0.14607398211956024,
-0.5059101581573486,
-0.36330005526542664,
-0.4406987726688385,
-0.4493201673030853,
-0.3353036046028137,
0.34742310643196106,
0.381408154964447,
0.30323776602745056,
0.5281307697296143,
1.0195772647857666,
0.24774469435214996,
-0.08482003957033157,
-0.011908406391739845,
-0.5021907091140747,
0.0030741263180971146,
0.10187418758869171,
-0.6749717593193054,
-0.7498193383216858,
-0.17784707248210907,
1.1767542362213135,
0.4340766966342926,
-0.00441405875608325,
0.4834003448486328,
-0.0388760045170784,
1.0374095439910889,
-0.33891555666923523,
0.10231011360883713,
-0.6492470502853394,
0.06334242224693298,
-0.3650256097316742,
-0.28741323947906494,
-0.7568227052688599,
-0.29787349700927734,
0.22069400548934937,
-0.7185156345367432,
-0.0368901826441288,
0.12217450141906738,
1.5448914766311646,
0.39862677454948425,
-0.3679308295249939,
-0.11929536610841751,
-0.6898197531700134,
1.1843304634094238,
-0.8406124114990234,
0.7115927338600159,
0.46244367957115173,
0.3332229256629944,
0.20257337391376495,
-0.6481555700302124,
-0.3314225673675537,
0.09220938384532928,
-0.17370931804180145,
0.22431644797325134,
-0.1117420345544815,
-0.27339816093444824,
0.3433069586753845,
0.7350273132324219,
-0.8547191023826599,
-0.0012043258175253868,
-0.5987226366996765,
-0.03500539809465408,
0.7122647166252136,
0.12899166345596313,
0.1542331427335739,
-0.2552013099193573,
-0.4746052026748657,
-0.6206387281417847,
-0.8104211688041687,
0.1499432921409607,
0.4310300350189209,
0.31362929940223694,
-0.4971053898334503,
0.8238898515701294,
-0.15178754925727844,
0.6759284138679504,
-0.1108236089348793,
0.007057473063468933,
1.0615010261535645,
-0.49537894129753113,
-0.42035672068595886,
-0.23696643114089966,
1.2752702236175537,
0.3710929751396179,
0.061448972672224045,
0.03179347142577171,
-0.2630491554737091,
-0.25423258543014526,
0.16198156774044037,
-0.9764418005943298,
-0.10613350570201874,
0.16245003044605255,
-0.5558527708053589,
-0.1311945915222168,
0.0032864820677787066,
-0.6816933751106262,
0.24037659168243408,
-0.4804380536079407,
0.6659542918205261,
-0.7471157908439636,
-0.2105109840631485,
0.35667261481285095,
-0.052073072642087936,
0.45848536491394043,
-0.02334524877369404,
-0.6550862193107605,
0.20413294434547424,
0.4508136808872223,
0.787299633026123,
-0.4796161949634552,
-0.3141547739505768,
-0.5157950520515442,
-0.22578823566436768,
-0.06680543720722198,
0.7506644129753113,
-0.09605725854635239,
-0.41144442558288574,
-0.0730835422873497,
0.5208815336227417,
-0.35166487097740173,
-0.3445689380168915,
1.4313353300094604,
-0.3093777596950531,
0.7558838129043579,
-0.5606643557548523,
-0.5999770760536194,
-0.322862446308136,
0.4855223596096039,
-0.6239622235298157,
1.4662805795669556,
0.128168523311615,
-0.9243373870849609,
0.3265608251094818,
-0.8487278819084167,
-0.23655858635902405,
0.023930538445711136,
0.01596197485923767,
-0.7216978669166565,
0.06058596074581146,
0.12565648555755615,
0.5064012408256531,
-0.3498724102973938,
0.3167584240436554,
-0.033211659640073776,
-0.38532525300979614,
0.050433140248060226,
-0.3824140429496765,
1.0413620471954346,
0.27070415019989014,
-0.32854029536247253,
0.2370610386133194,
-1.041235089302063,
-0.0515383705496788,
-0.006539944559335709,
-0.5852754712104797,
-0.2998214364051819,
0.19285434484481812,
0.28690704703330994,
0.18100807070732117,
0.3891203701496124,
-0.7467846274375916,
0.28195154666900635,
-0.7149890661239624,
0.17530839145183563,
0.7536605596542358,
-0.3300245702266693,
0.41236791014671326,
-0.4775950312614441,
0.3593195378780365,
0.08922497928142548,
0.13150060176849365,
0.025950247421860695,
-0.46681302785873413,
-0.9602014422416687,
-0.3091398775577545,
0.6820987462997437,
1.1696721315383911,
-0.9125425815582275,
0.9271419644355774,
-0.7922232747077942,
-0.8879178762435913,
-0.8862079977989197,
-0.20512768626213074,
0.5566979646682739,
0.3413412272930145,
0.568718671798706,
-0.15736716985702515,
-0.5778786540031433,
-1.2037776708602905,
-0.17051087319850922,
-0.15845492482185364,
-0.28392493724823,
0.23706001043319702,
0.7089210152626038,
-0.12903782725334167,
0.5827349424362183,
-0.6175814867019653,
-0.4155641198158264,
-0.16537237167358398,
0.12861837446689606,
0.4840943515300751,
0.7089495062828064,
0.6163176894187927,
-0.9740343689918518,
-0.6415858268737793,
-0.0673041045665741,
-0.7412483096122742,
-0.09321904927492142,
0.13502293825149536,
-0.24331577122211456,
0.13751645386219025,
0.07051648199558258,
-0.3056054413318634,
0.0453035905957222,
0.6873598098754883,
-0.6248242259025574,
0.6425466537475586,
-0.15044435858726501,
0.314298540353775,
-1.5484485626220703,
0.16447791457176208,
-0.09940335899591446,
-0.093494713306427,
-0.4654475450515747,
-0.05614423751831055,
0.2659302353858948,
0.11287856847047806,
-0.9089440703392029,
0.5449666380882263,
-0.24188874661922455,
-0.17274783551692963,
0.3447796106338501,
0.0025058528408408165,
0.04244259372353554,
0.8386915326118469,
-0.06469883024692535,
0.8995239734649658,
0.7571455240249634,
-0.6047258973121643,
0.1891941875219345,
0.6340846419334412,
-0.5188934803009033,
0.4645553231239319,
-0.8755189776420593,
-0.2978833019733429,
0.301349937915802,
-0.08073028922080994,
-0.7579389810562134,
0.12154397368431091,
0.36002081632614136,
-0.7548548579216003,
0.4093931317329407,
-0.16878379881381989,
-0.8030937910079956,
-0.03516922518610954,
-0.3710145652294159,
0.46605703234672546,
0.7932165265083313,
-0.20170143246650696,
0.6989519000053406,
0.09839777648448944,
-0.07454472780227661,
-0.5906861424446106,
-1.0613499879837036,
-0.1728033572435379,
-0.36473068594932556,
-0.8144829869270325,
0.23975323140621185,
-0.4924395978450775,
0.0073130568489432335,
0.04807378351688385,
0.3294335901737213,
-0.10574240237474442,
0.018832659348845482,
0.0496688075363636,
0.30401042103767395,
-0.5359523892402649,
0.1758967787027359,
0.05142991244792938,
-0.16204597055912018,
-0.17594821751117706,
-0.21313530206680298,
0.6516503691673279,
-0.3740370571613312,
-0.2728304862976074,
-0.66157066822052,
0.056654322892427444,
0.7261080741882324,
-0.4504779875278473,
0.9041522741317749,
0.6190267205238342,
-0.14018359780311584,
0.2052895724773407,
-0.44628071784973145,
0.1417435258626938,
-0.4732618033885956,
0.18146912753582,
-0.5270437002182007,
-0.8424561023712158,
0.6048325896263123,
0.131417378783226,
0.5168828964233398,
0.9481377005577087,
0.6892991662025452,
0.016689104959368706,
0.7566729187965393,
0.3515283465385437,
0.015001684427261353,
0.5293890833854675,
-0.5434725880622864,
-0.24659396708011627,
-1.2262247800827026,
0.014670217409729958,
-0.8425540328025818,
-0.3124367296695709,
-0.9201191067695618,
-0.31048721075057983,
0.22691771388053894,
-0.011652248911559582,
-0.2550140917301178,
0.8018845915794373,
-0.650817334651947,
0.2220270186662674,
0.5817908644676208,
-0.19487321376800537,
0.27294740080833435,
0.020977552980184555,
-0.6427781581878662,
-0.3877021074295044,
-0.46293842792510986,
-0.5867918729782104,
1.3984336853027344,
0.4285410940647125,
0.34136125445365906,
0.2362552434206009,
0.4784266948699951,
0.006969143636524677,
0.22359120845794678,
-0.7093181610107422,
0.5367301106452942,
-0.42826059460639954,
-0.7305098176002502,
-0.3911883533000946,
-0.6191866397857666,
-0.8691493272781372,
0.5735194087028503,
-0.35860544443130493,
-0.5456732511520386,
0.16394977271556854,
-0.02600657381117344,
-0.029243404045701027,
0.42831528186798096,
-0.7187595367431641,
1.2201392650604248,
-0.04214382916688919,
-0.02257012203335762,
0.32010602951049805,
-0.5291016697883606,
0.27251777052879333,
-0.00787073839455843,
0.23662440478801727,
-0.24089249968528748,
0.15499339997768402,
0.7418813109397888,
-0.07257780432701111,
0.49629124999046326,
-0.07860276848077774,
-0.032825592905282974,
-0.03851403295993805,
0.020777033641934395,
0.49508005380630493,
-0.16931696236133575,
-0.44688722491264343,
0.4109038710594177,
0.04416511207818985,
-0.4629363417625427,
-0.18350620567798615,
0.5756545662879944,
-0.8183825612068176,
0.06074560806155205,
-0.47538748383522034,
-0.6615277528762817,
0.0773833841085434,
0.40402480959892273,
0.8122267723083496,
0.753275990486145,
-0.34071025252342224,
0.6333794593811035,
0.942928671836853,
-0.3255275785923004,
0.39095258712768555,
0.8637360334396362,
-0.14182227849960327,
-0.6439235806465149,
0.9937796592712402,
0.1999821662902832,
0.37880513072013855,
0.673853874206543,
0.0972464382648468,
-0.16252943873405457,
-0.8680874705314636,
-0.8263377547264099,
0.29899027943611145,
-0.333490252494812,
-0.16843624413013458,
-0.6901848316192627,
-0.03880642354488373,
-0.3370504677295685,
0.24919947981834412,
-0.6087626814842224,
-0.5870638489723206,
-0.22092148661613464,
-0.19357438385486603,
0.25030314922332764,
0.26114755868911743,
0.05710897222161293,
0.43701064586639404,
-1.1294347047805786,
0.2137533575296402,
-0.1503792554140091,
0.46717479825019836,
-0.5101641416549683,
-0.8283846974372864,
-0.493825227022171,
0.03768807277083397,
-0.6216133832931519,
-0.7177948355674744,
0.5153250098228455,
0.05886406823992729,
0.3399527668952942,
0.2920791208744049,
0.21708492934703827,
0.3558920621871948,
-0.831443190574646,
1.1328537464141846,
-0.07889831066131592,
-0.8101884722709656,
0.5100811123847961,
-0.4928249418735504,
0.49886196851730347,
1.0008512735366821,
0.29746904969215393,
-0.4280468821525574,
-0.6226469278335571,
-0.7423751354217529,
-0.9024917483329773,
0.903317391872406,
0.7869387865066528,
-0.14885002374649048,
0.2601642906665802,
-0.07255397737026215,
0.007946603000164032,
0.14829666912555695,
-1.208991289138794,
-0.4092435836791992,
0.02631762996315956,
-0.41226232051849365,
-0.2101951390504837,
-0.3041691184043884,
-0.16586217284202576,
-0.22431157529354095,
1.231242060661316,
0.17430008947849274,
0.26521095633506775,
0.4445098042488098,
-0.15190847218036652,
-0.21354562044143677,
0.36869585514068604,
1.148376226425171,
0.5159939527511597,
-0.5797359943389893,
-0.24374695122241974,
0.40173712372779846,
-0.5315456390380859,
-0.1294906735420227,
0.14637170732021332,
-0.4624227285385132,
0.31845182180404663,
0.48330968618392944,
1.204843521118164,
0.23346273601055145,
-0.6924629807472229,
0.5315124988555908,
-0.48370814323425293,
-0.48372915387153625,
-0.7686254382133484,
-0.18021617829799652,
0.11682190001010895,
0.04065171256661415,
0.2802303731441498,
0.13218747079372406,
0.18256919085979462,
-0.11389171332120895,
0.18537192046642303,
0.06833776086568832,
-0.7800878882408142,
-0.5851578712463379,
0.48526430130004883,
0.13872331380844116,
-0.394765704870224,
0.5348201990127563,
-0.40905454754829407,
-0.6204909086227417,
0.4302769899368286,
0.1598616987466812,
1.173799753189087,
-0.2484222799539566,
-0.21216395497322083,
0.7542924880981445,
0.6770968437194824,
-0.28255754709243774,
0.55226069688797,
0.12995554506778717,
-0.7775275707244873,
-0.6580820679664612,
-0.9450404644012451,
-0.18990300595760345,
0.1798451542854309,
-0.948538601398468,
0.43722692131996155,
0.3641243278980255,
0.05124736577272415,
-0.2880300283432007,
0.2522220313549042,
-0.556206226348877,
0.12785984575748444,
-0.35675257444381714,
1.194813847541809,
-1.1029635667800903,
0.9656357765197754,
0.6095533967018127,
-0.27259454131126404,
-0.892727792263031,
-0.19692105054855347,
-0.30744194984436035,
-0.42026299238204956,
0.672212541103363,
0.16436590254306793,
0.30941447615623474,
-0.1471834033727646,
-0.2537309229373932,
-0.8881838917732239,
1.25977623462677,
0.2694029211997986,
-0.6097111701965332,
0.03413574397563934,
0.10605435818433762,
0.5754959583282471,
-0.3868507742881775,
0.0016801307210698724,
0.4583805799484253,
0.7996346354484558,
0.15594862401485443,
-1.157280683517456,
-0.32453280687332153,
-0.6052507758140564,
-0.2960592210292816,
0.6358511447906494,
-0.6098164916038513,
1.027808427810669,
0.5227307081222534,
-0.164425790309906,
0.10622220486402512,
0.7205305099487305,
0.3498387634754181,
0.29055255651474,
0.5755447745323181,
1.231608271598816,
0.3875202536582947,
-0.5254514813423157,
1.1196430921554565,
-0.2921925485134125,
0.5278100967407227,
1.2910207509994507,
-0.07342594861984253,
1.013071894645691,
0.3356037437915802,
-0.12551486492156982,
0.5581403970718384,
0.6977062821388245,
-0.4058758318424225,
0.5751664042472839,
0.09605063498020172,
0.17359559237957,
-0.1480688601732254,
0.24837079644203186,
-0.7232139706611633,
0.3121245205402374,
0.18354743719100952,
-0.24564509093761444,
0.0949571505188942,
-0.0009423717274330556,
0.04328800365328789,
-0.06760559231042862,
-0.11657754331827164,
0.7022312879562378,
-0.048622436821460724,
-0.6862318515777588,
0.7365924715995789,
-0.039300885051488876,
0.7367969155311584,
-0.7679802179336548,
0.12152425944805145,
0.02682008594274521,
0.2520488202571869,
0.07565002143383026,
-0.6469917893409729,
0.49588367342948914,
0.023710377514362335,
-0.3592090904712677,
-0.4366309344768524,
0.2899990975856781,
-0.6345974206924438,
-0.9376954436302185,
0.4239485561847687,
0.41761597990989685,
0.4418458938598633,
0.12422550469636917,
-0.9696499705314636,
0.04194797948002815,
0.16473327577114105,
-0.679397463798523,
0.09046313166618347,
0.7223764061927795,
0.3168667256832123,
0.5565203428268433,
0.726474404335022,
0.254285603761673,
0.20727771520614624,
-0.036194004118442535,
0.7856466174125671,
-0.4733079969882965,
-0.5199148654937744,
-0.8963319659233093,
0.9158011674880981,
-0.14188550412654877,
-0.7314548492431641,
0.8034591674804688,
1.137489914894104,
1.1035816669464111,
-0.19243896007537842,
0.3833756148815155,
-0.015041612088680267,
0.7873470783233643,
-0.725104808807373,
0.7147965431213379,
-0.9996981620788574,
0.21024806797504425,
-0.21409405767917633,
-0.9991137981414795,
-0.2604329288005829,
0.3573484718799591,
-0.1945628970861435,
-0.42237550020217896,
0.8540738224983215,
0.6508151888847351,
-0.14597934484481812,
-0.239827960729599,
0.312330037355423,
0.3247217833995819,
0.23080439865589142,
0.5865515470504761,
0.40165582299232483,
-1.04911208152771,
0.6560883522033691,
-0.2665991187095642,
-0.050688281655311584,
-0.04417240992188454,
-0.8314359188079834,
-0.9514683485031128,
-0.7381144165992737,
-0.1746140420436859,
-0.2655429542064667,
-0.3148937225341797,
0.9605634808540344,
0.5499541163444519,
-0.9530859589576721,
-0.5417412519454956,
0.07619032263755798,
0.19971713423728943,
-0.20973563194274902,
-0.26196518540382385,
0.7028470039367676,
-0.316575825214386,
-1.0776382684707642,
0.515272855758667,
0.10623777657747269,
-0.0006238982896320522,
-0.08533263951539993,
-0.34135469794273376,
-0.5083845257759094,
-0.03020528145134449,
0.33036619424819946,
-0.00157748197671026,
-0.5688572525978088,
0.07012593001127243,
0.2078973352909088,
-0.1635609269142151,
0.392000287771225,
0.43743816018104553,
-0.27826833724975586,
0.27376213669776917,
0.970906674861908,
0.3959970772266388,
0.5357100963592529,
-0.1906377673149109,
0.6333118677139282,
-0.8211199045181274,
0.31545960903167725,
0.24890172481536865,
0.6587122082710266,
0.4021928012371063,
-0.1253187656402588,
0.8145699501037598,
0.2509945333003998,
-0.7109788656234741,
-1.1948387622833252,
0.11445436626672745,
-1.3358958959579468,
0.01915791817009449,
1.008792519569397,
-0.3748026192188263,
-0.3330634832382202,
0.29828187823295593,
-0.14953291416168213,
0.2345166802406311,
-0.3740483522415161,
0.37827834486961365,
1.0175468921661377,
0.44106385111808777,
0.15658897161483765,
-0.7829710245132446,
0.45693525671958923,
0.5433510541915894,
-0.7865298986434937,
-0.1718880534172058,
0.20876683294773102,
0.24274776875972748,
0.4316709637641907,
0.588772714138031,
-0.3323991298675537,
0.12111105769872665,
-0.3757275640964508,
0.5141273736953735,
-0.07284042239189148,
-0.2373129278421402,
-0.40213629603385925,
-0.04557618871331215,
-0.1364685595035553,
-0.36856818199157715
] |
TheBloke/Mistral-7B-OpenOrca-GPTQ | TheBloke | "2023-10-16T08:48:47Z" | 106,399 | 83 | transformers | [
"transformers",
"safetensors",
"mistral",
"text-generation",
"en",
"dataset:Open-Orca/OpenOrca",
"arxiv:2306.02707",
"arxiv:2301.13688",
"base_model:Open-Orca/Mistral-7B-OpenOrca",
"license:apache-2.0",
"text-generation-inference",
"4-bit",
"region:us"
] | text-generation | "2023-10-02T14:28:09Z" | ---
base_model: Open-Orca/Mistral-7B-OpenOrca
datasets:
- Open-Orca/OpenOrca
inference: false
language:
- en
library_name: transformers
license: apache-2.0
model_creator: OpenOrca
model_name: Mistral 7B OpenOrca
model_type: mistral
pipeline_tag: text-generation
prompt_template: '<|im_start|>system
{system_message}<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
'
quantized_by: TheBloke
---
<!-- header start -->
<!-- 200823 -->
<div style="width: auto; margin-left: auto; margin-right: auto">
<img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
</div>
<div style="display: flex; justify-content: space-between; width: 100%;">
<div style="display: flex; flex-direction: column; align-items: flex-start;">
<p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
</div>
<div style="display: flex; flex-direction: column; align-items: flex-end;">
<p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
</div>
</div>
<div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div>
<hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
<!-- header end -->
# Mistral 7B OpenOrca - GPTQ
- Model creator: [OpenOrca](https://huggingface.co/Open-Orca)
- Original model: [Mistral 7B OpenOrca](https://huggingface.co/Open-Orca/Mistral-7B-OpenOrca)
<!-- description start -->
## Description
This repo contains GPTQ model files for [OpenOrca's Mistral 7B OpenOrca](https://huggingface.co/Open-Orca/Mistral-7B-OpenOrca).
Multiple GPTQ parameter permutations are provided; see Provided Files below for details of the options provided, their parameters, and the software used to create them.
<!-- description end -->
<!-- repositories-available start -->
## Repositories available
* [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/Mistral-7B-OpenOrca-AWQ)
* [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Mistral-7B-OpenOrca-GPTQ)
* [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Mistral-7B-OpenOrca-GGUF)
* [OpenOrca's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/Open-Orca/Mistral-7B-OpenOrca)
<!-- repositories-available end -->
<!-- prompt-template start -->
## Prompt template: ChatML
```
<|im_start|>system
{system_message}<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
```
<!-- prompt-template end -->
<!-- README_GPTQ.md-provided-files start -->
## Provided files, and GPTQ parameters
Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
Each separate quant is in a different branch. See below for instructions on fetching from different branches.
Most GPTQ files are made with AutoGPTQ. Mistral models are currently made with Transformers.
<details>
<summary>Explanation of GPTQ parameters</summary>
- Bits: The bit size of the quantised model.
- GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value.
- Act Order: True or False. Also known as `desc_act`. True results in better quantisation accuracy. Some GPTQ clients have had issues with models that use Act Order plus Group Size, but this is generally resolved now.
- Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy.
- GPTQ dataset: The calibration dataset used during quantisation. Using a dataset more appropriate to the model's training can improve quantisation accuracy. Note that the GPTQ calibration dataset is not the same as the dataset used to train the model - please refer to the original model repo for details of the training dataset(s).
- Sequence Length: The length of the dataset sequences used for quantisation. Ideally this is the same as the model sequence length. For some very long sequence models (16+K), a lower sequence length may have to be used. Note that a lower sequence length does not limit the sequence length of the quantised model. It only impacts the quantisation accuracy on longer inference sequences.
- ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama models in 4-bit.
</details>
| Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
| ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
| [main](https://huggingface.co/TheBloke/Mistral-7B-OpenOrca-GPTQ/tree/main) | 4 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 32768 | 4.16 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
| [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/Mistral-7B-OpenOrca-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 32768 | 4.57 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
| [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/Mistral-7B-OpenOrca-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 32768 | 7.52 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. |
| [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/Mistral-7B-OpenOrca-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 32768 | 7.68 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. |
| [gptq-8bit-32g-actorder_True](https://huggingface.co/TheBloke/Mistral-7B-OpenOrca-GPTQ/tree/gptq-8bit-32g-actorder_True) | 8 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 32768 | 8.17 GB | No | 8-bit, with group size 32g and Act Order for maximum inference quality. |
| [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/Mistral-7B-OpenOrca-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 32768 | 4.30 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. |
<!-- README_GPTQ.md-provided-files end -->
<!-- README_GPTQ.md-download-from-branches start -->
## How to download, including from branches
### In text-generation-webui
To download from the `main` branch, enter `TheBloke/Mistral-7B-OpenOrca-GPTQ` in the "Download model" box.
To download from another branch, add `:branchname` to the end of the download name, eg `TheBloke/Mistral-7B-OpenOrca-GPTQ:gptq-4bit-32g-actorder_True`
### From the command line
I recommend using the `huggingface-hub` Python library:
```shell
pip3 install huggingface-hub
```
To download the `main` branch to a folder called `Mistral-7B-OpenOrca-GPTQ`:
```shell
mkdir Mistral-7B-OpenOrca-GPTQ
huggingface-cli download TheBloke/Mistral-7B-OpenOrca-GPTQ --local-dir Mistral-7B-OpenOrca-GPTQ --local-dir-use-symlinks False
```
To download from a different branch, add the `--revision` parameter:
```shell
mkdir Mistral-7B-OpenOrca-GPTQ
huggingface-cli download TheBloke/Mistral-7B-OpenOrca-GPTQ --revision gptq-4bit-32g-actorder_True --local-dir Mistral-7B-OpenOrca-GPTQ --local-dir-use-symlinks False
```
<details>
<summary>More advanced huggingface-cli download usage</summary>
If you remove the `--local-dir-use-symlinks False` parameter, the files will instead be stored in the central Huggingface cache directory (default location on Linux is: `~/.cache/huggingface`), and symlinks will be added to the specified `--local-dir`, pointing to their real location in the cache. This allows for interrupted downloads to be resumed, and allows you to quickly clone the repo to multiple places on disk without triggering a download again. The downside, and the reason why I don't list that as the default option, is that the files are then hidden away in a cache folder and it's harder to know where your disk space is being used, and to clear it up if/when you want to remove a download model.
The cache location can be changed with the `HF_HOME` environment variable, and/or the `--cache-dir` parameter to `huggingface-cli`.
For more documentation on downloading with `huggingface-cli`, please see: [HF -> Hub Python Library -> Download files -> Download from the CLI](https://huggingface.co/docs/huggingface_hub/guides/download#download-from-the-cli).
To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
```shell
pip3 install hf_transfer
```
And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
```shell
mkdir Mistral-7B-OpenOrca-GPTQ
HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/Mistral-7B-OpenOrca-GPTQ --local-dir Mistral-7B-OpenOrca-GPTQ --local-dir-use-symlinks False
```
Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
</details>
### With `git` (**not** recommended)
To clone a specific branch with `git`, use a command like this:
```shell
git clone --single-branch --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/Mistral-7B-OpenOrca-GPTQ
```
Note that using Git with HF repos is strongly discouraged. It will be much slower than using `huggingface-hub`, and will use twice as much disk space as it has to store the model files twice (it stores every byte both in the intended target folder, and again in the `.git` folder as a blob.)
<!-- README_GPTQ.md-download-from-branches end -->
<!-- README_GPTQ.md-text-generation-webui start -->
## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
It is strongly recommended to use the text-generation-webui one-click-installers unless you're sure you know how to make a manual install.
1. Click the **Model tab**.
2. Under **Download custom model or LoRA**, enter `TheBloke/Mistral-7B-OpenOrca-GPTQ`.
- To download from a specific branch, enter for example `TheBloke/Mistral-7B-OpenOrca-GPTQ:gptq-4bit-32g-actorder_True`
- see Provided Files above for the list of branches for each option.
3. Click **Download**.
4. The model will start downloading. Once it's finished it will say "Done".
5. In the top left, click the refresh icon next to **Model**.
6. In the **Model** dropdown, choose the model you just downloaded: `Mistral-7B-OpenOrca-GPTQ`
7. The model will automatically load, and is now ready for use!
8. If you want any custom settings, set them and then click **Save settings for this model** followed by **Reload the Model** in the top right.
* Note that you do not need to and should not set manual GPTQ parameters any more. These are set automatically from the file `quantize_config.json`.
9. Once you're ready, click the **Text Generation tab** and enter a prompt to get started!
<!-- README_GPTQ.md-text-generation-webui end -->
<!-- README_GPTQ.md-use-from-tgi start -->
## Serving this model from Text Generation Inference (TGI)
It's recommended to use TGI version 1.1.0 or later. The official Docker container is: `ghcr.io/huggingface/text-generation-inference:1.1.0`
Example Docker parameters:
```shell
--model-id TheBloke/Mistral-7B-OpenOrca-GPTQ --port 3000 --quantize gptq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
```
Example Python code for interfacing with TGI (requires huggingface-hub 0.17.0 or later):
```shell
pip3 install huggingface-hub
```
```python
from huggingface_hub import InferenceClient
endpoint_url = "https://your-endpoint-url-here"
prompt = "Tell me about AI"
prompt_template=f'''<|im_start|>system
{system_message}<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
'''
client = InferenceClient(endpoint_url)
response = client.text_generation(prompt,
max_new_tokens=128,
do_sample=True,
temperature=0.7,
top_p=0.95,
top_k=40,
repetition_penalty=1.1)
print(f"Model output: {response}")
```
<!-- README_GPTQ.md-use-from-tgi end -->
<!-- README_GPTQ.md-use-from-python start -->
## How to use this GPTQ model from Python code
### Install the necessary packages
Requires: Transformers 4.33.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later.
```shell
pip3 install transformers optimum
pip3 install auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/ # Use cu117 if on CUDA 11.7
```
If you have problems installing AutoGPTQ using the pre-built wheels, install it from source instead:
```shell
pip3 uninstall -y auto-gptq
git clone https://github.com/PanQiWei/AutoGPTQ
cd AutoGPTQ
git checkout v0.4.2
pip3 install .
```
### You can then use the following code
```python
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
model_name_or_path = "TheBloke/Mistral-7B-OpenOrca-GPTQ"
# To use a different branch, change revision
# For example: revision="gptq-4bit-32g-actorder_True"
model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
device_map="auto",
trust_remote_code=False,
revision="main")
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
prompt = "Tell me about AI"
prompt_template=f'''<|im_start|>system
{system_message}<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
'''
print("\n\n*** Generate:")
input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
print(tokenizer.decode(output[0]))
# Inference can also be done using transformers' pipeline
print("*** Pipeline:")
pipe = pipeline(
"text-generation",
model=model,
tokenizer=tokenizer,
max_new_tokens=512,
do_sample=True,
temperature=0.7,
top_p=0.95,
top_k=40,
repetition_penalty=1.1
)
print(pipe(prompt_template)[0]['generated_text'])
```
<!-- README_GPTQ.md-use-from-python end -->
<!-- README_GPTQ.md-compatibility start -->
## Compatibility
The files provided are tested to work with AutoGPTQ, both via Transformers and using AutoGPTQ directly. They should also work with [Occ4m's GPTQ-for-LLaMa fork](https://github.com/0cc4m/KoboldAI).
[ExLlama](https://github.com/turboderp/exllama) is compatible with Llama and Mistral models in 4-bit. Please see the Provided Files table above for per-file compatibility.
[Huggingface Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) is compatible with all GPTQ models.
<!-- README_GPTQ.md-compatibility end -->
<!-- footer start -->
<!-- 200823 -->
## Discord
For further support, and discussions on these models and AI in general, join us at:
[TheBloke AI's Discord server](https://discord.gg/theblokeai)
## Thanks, and how to contribute
Thanks to the [chirper.ai](https://chirper.ai) team!
Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training.
If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects.
Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
* Patreon: https://patreon.com/TheBlokeAI
* Ko-Fi: https://ko-fi.com/TheBlokeAI
**Special thanks to**: Aemon Algiz.
**Patreon special mentions**: Pierre Kircher, Stanislav Ovsiannikov, Michael Levine, Eugene Pentland, Andrey, 준교 김, Randy H, Fred von Graf, Artur Olbinski, Caitlyn Gatomon, terasurfer, Jeff Scroggin, James Bentley, Vadim, Gabriel Puliatti, Harry Royden McLaughlin, Sean Connelly, Dan Guido, Edmond Seymore, Alicia Loh, subjectnull, AzureBlack, Manuel Alberto Morcote, Thomas Belote, Lone Striker, Chris Smitley, Vitor Caleffi, Johann-Peter Hartmann, Clay Pascal, biorpg, Brandon Frisco, sidney chen, transmissions 11, Pedro Madruga, jinyuan sun, Ajan Kanaga, Emad Mostaque, Trenton Dambrowitz, Jonathan Leane, Iucharbius, usrbinkat, vamX, George Stoitzev, Luke Pendergrass, theTransient, Olakabola, Swaroop Kallakuri, Cap'n Zoog, Brandon Phillips, Michael Dempsey, Nikolai Manek, danny, Matthew Berman, Gabriel Tamborski, alfie_i, Raymond Fosdick, Tom X Nguyen, Raven Klaugh, LangChain4j, Magnesian, Illia Dulskyi, David Ziegler, Mano Prime, Luis Javier Navarrete Lozano, Erik Bjäreholt, 阿明, Nathan Dryer, Alex, Rainer Wilmers, zynix, TL, Joseph William Delisle, John Villwock, Nathan LeClaire, Willem Michiel, Joguhyik, GodLy, OG, Alps Aficionado, Jeffrey Morgan, ReadyPlayerEmma, Tiffany J. Kim, Sebastain Graf, Spencer Kim, Michael Davis, webtim, Talal Aujan, knownsqashed, John Detwiler, Imad Khwaja, Deo Leter, Jerry Meng, Elijah Stavena, Rooh Singh, Pieter, SuperWojo, Alexandros Triantafyllidis, Stephen Murray, Ai Maven, ya boyyy, Enrico Ros, Ken Nordquist, Deep Realms, Nicholas, Spiking Neurons AB, Elle, Will Dee, Jack West, RoA, Luke @flexchar, Viktor Bowallius, Derek Yates, Subspace Studios, jjj, Toran Billups, Asp the Wyvern, Fen Risland, Ilya, NimbleBox.ai, Chadd, Nitin Borwankar, Emre, Mandus, Leonard Tan, Kalila, K, Trailburnt, S_X, Cory Kujawski
Thank you to all my generous patrons and donaters!
And thank you again to a16z for their generous grant.
<!-- footer end -->
# Original model card: OpenOrca's Mistral 7B OpenOrca
<p><h1>🐋 TBD 🐋</h1></p>
![OpenOrca Logo](https://huggingface.co/datasets/Open-Orca/OpenOrca/resolve/main/OpenOrcaLogo.png "OpenOrca Logo")
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
# OpenOrca - Mistral - 7B - 8k
We have used our own [OpenOrca dataset](https://huggingface.co/datasets/Open-Orca/OpenOrca) to fine-tune on top of [Mistral 7B](https://huggingface.co/mistralai/Mistral-7B-v0.1).
This dataset is our attempt to reproduce the dataset generated for Microsoft Research's [Orca Paper](https://arxiv.org/abs/2306.02707).
We use [OpenChat](https://huggingface.co/openchat) packing, trained with [Axolotl](https://github.com/OpenAccess-AI-Collective/axolotl).
This release is trained on a curated filtered subset of most of our GPT-4 augmented data.
It is the same subset of our data as was used in our [OpenOrcaxOpenChat-Preview2-13B model](https://huggingface.co/Open-Orca/OpenOrcaxOpenChat-Preview2-13B).
HF Leaderboard evals place this model as #2 for all models smaller than 30B at release time, outperforming all but one 13B model.
TBD
Want to visualize our full (pre-filtering) dataset? Check out our [Nomic Atlas Map](https://atlas.nomic.ai/map/c1b88b47-2d9b-47e0-9002-b80766792582/2560fd25-52fe-42f1-a58f-ff5eccc890d2).
[<img src="https://huggingface.co/Open-Orca/OpenOrca-Preview1-13B/resolve/main/OpenOrca%20Nomic%20Atlas.png" alt="Atlas Nomic Dataset Map" width="400" height="400" />](https://atlas.nomic.ai/map/c1b88b47-2d9b-47e0-9002-b80766792582/2560fd25-52fe-42f1-a58f-ff5eccc890d2)
We are in-process with training more models, so keep a look out on our org for releases coming soon with exciting partners.
We will also give sneak-peak announcements on our Discord, which you can find here:
https://AlignmentLab.ai
or on the OpenAccess AI Collective Discord for more information about Axolotl trainer here:
https://discord.gg/5y8STgB3P3
# Prompt Template
We used [OpenAI's Chat Markup Language (ChatML)](https://github.com/openai/openai-python/blob/main/chatml.md) format, with `<|im_start|>` and `<|im_end|>` tokens added to support this.
## Example Prompt Exchange
TBD
# Evaluation
We have evaluated using the methodology and tools for the HuggingFace Leaderboard, and find that we have significantly improved upon the base model.
TBD
## HuggingFaceH4 Open LLM Leaderboard Performance
TBD
## GPT4ALL Leaderboard Performance
TBD
# Dataset
We used a curated, filtered selection of most of the GPT-4 augmented data from our OpenOrca dataset, which aims to reproduce the Orca Research Paper dataset.
# Training
We trained with 8x A6000 GPUs for 62 hours, completing 4 epochs of full fine tuning on our dataset in one training run.
Commodity cost was ~$400.
# Citation
```bibtex
@misc{mukherjee2023orca,
title={Orca: Progressive Learning from Complex Explanation Traces of GPT-4},
author={Subhabrata Mukherjee and Arindam Mitra and Ganesh Jawahar and Sahaj Agarwal and Hamid Palangi and Ahmed Awadallah},
year={2023},
eprint={2306.02707},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
@misc{longpre2023flan,
title={The Flan Collection: Designing Data and Methods for Effective Instruction Tuning},
author={Shayne Longpre and Le Hou and Tu Vu and Albert Webson and Hyung Won Chung and Yi Tay and Denny Zhou and Quoc V. Le and Barret Zoph and Jason Wei and Adam Roberts},
year={2023},
eprint={2301.13688},
archivePrefix={arXiv},
primaryClass={cs.AI}
}
```
| [
-0.5384148955345154,
-0.7811384797096252,
0.07722002267837524,
0.1964273452758789,
-0.17656376957893372,
-0.2537466883659363,
0.0600113719701767,
-0.5503934025764465,
0.21844784915447235,
0.39046451449394226,
-0.5074801445007324,
-0.5651549696922302,
-0.32600757479667664,
-0.10224028676748276,
-0.2658909559249878,
1.0740907192230225,
0.048734042793512344,
-0.20781774818897247,
-0.017850324511528015,
-0.33326655626296997,
-0.21657097339630127,
-0.42961156368255615,
-0.8545454144477844,
-0.15560172498226166,
0.4145908057689667,
0.11959052830934525,
0.9012930989265442,
0.512364387512207,
0.15428712964057922,
0.3159869611263275,
-0.11938141286373138,
-0.02394106052815914,
-0.6020355820655823,
-0.11871113628149033,
0.06731438636779785,
-0.3049459457397461,
-0.5931407809257507,
0.03603002056479454,
0.3906007707118988,
0.13824447989463806,
-0.3905144929885864,
0.24246104061603546,
0.090952068567276,
0.6972245573997498,
-0.5843778848648071,
0.18683576583862305,
-0.23640625178813934,
-0.017727376893162727,
-0.18908554315567017,
0.1952335238456726,
-0.07962024211883545,
-0.515274167060852,
0.1551944464445114,
-0.9008162617683411,
0.2538823187351227,
-0.044704653322696686,
1.1579004526138306,
0.12234965711832047,
-0.5583283305168152,
0.10547208786010742,
-0.3999691307544708,
0.5724692344665527,
-0.9004570245742798,
0.3425595462322235,
0.4614524841308594,
0.2710977792739868,
-0.3004853129386902,
-0.9355700612068176,
-0.5633260607719421,
-0.00431064423173666,
-0.1113208532333374,
0.3641800284385681,
-0.5222877264022827,
0.09433590620756149,
0.44883325695991516,
0.7598708271980286,
-0.8591644763946533,
-0.2275262475013733,
-0.30101725459098816,
-0.18856117129325867,
0.7733850479125977,
0.14221620559692383,
0.35632017254829407,
-0.13199396431446075,
-0.292371928691864,
-0.5644853711128235,
-0.5963510870933533,
0.23746998608112335,
0.295086145401001,
0.026811841875314713,
-0.6362074613571167,
0.44271624088287354,
-0.31064727902412415,
0.47768107056617737,
0.10906831175088882,
-0.1496123969554901,
0.3003653287887573,
-0.4841095209121704,
-0.45611119270324707,
-0.33190789818763733,
1.1612966060638428,
0.38577818870544434,
-0.2725563943386078,
0.27683037519454956,
-0.00895861815661192,
-0.10108903795480728,
-0.021328279748558998,
-0.9976974129676819,
-0.5116469860076904,
0.49834486842155457,
-0.4909546375274658,
-0.20400451123714447,
0.10443952679634094,
-0.7495128512382507,
-0.0038658143021166325,
-0.049235012382268906,
0.491790771484375,
-0.5784729719161987,
-0.40374961495399475,
0.1886027753353119,
-0.48297441005706787,
0.4557361900806427,
0.4450605809688568,
-0.6613130569458008,
0.5374049544334412,
0.34607359766960144,
0.7644222974777222,
0.11451788991689682,
-0.03800789266824722,
-0.2714528739452362,
0.10559286922216415,
-0.12243078649044037,
0.42049360275268555,
-0.1265213042497635,
-0.49201563000679016,
-0.25796017050743103,
0.3499804437160492,
0.031468987464904785,
-0.23762883245944977,
0.5790017247200012,
-0.23838850855827332,
0.4830123782157898,
-0.6339940428733826,
-0.39847129583358765,
-0.4870956242084503,
0.035147011280059814,
-0.679457426071167,
1.3750497102737427,
0.5031949281692505,
-0.975493848323822,
0.1851702779531479,
-0.5019740462303162,
-0.15151891112327576,
-0.08461377024650574,
0.013394116424024105,
-0.4874242842197418,
-0.08599583804607391,
0.2696453332901001,
0.27289634943008423,
-0.40660738945007324,
0.010187633335590363,
-0.39689815044403076,
-0.20339123904705048,
0.11624933779239655,
-0.47413891553878784,
1.344592809677124,
0.18731307983398438,
-0.4664989709854126,
-0.05038106068968773,
-0.5859513878822327,
0.07929322123527527,
0.4059506356716156,
-0.17151793837547302,
-0.14257971942424774,
-0.2911727726459503,
0.19668234884738922,
0.2104654759168625,
0.25861287117004395,
-0.39381980895996094,
0.46687978506088257,
-0.3061288893222809,
0.5801933407783508,
0.6021411418914795,
0.0351710207760334,
0.194926455616951,
-0.5019615888595581,
0.49386733770370483,
0.14628496766090393,
0.6515187621116638,
0.1428436040878296,
-0.7499300837516785,
-0.6878026723861694,
-0.2885165810585022,
0.24086488783359528,
0.5765243172645569,
-0.7700897455215454,
0.42441725730895996,
-0.1087474673986435,
-0.8120151162147522,
-0.34319785237312317,
-0.20600943267345428,
0.34295302629470825,
0.3375014662742615,
0.4417474865913391,
-0.47710058093070984,
-0.23302076756954193,
-0.7750194072723389,
0.11740085482597351,
-0.47389551997184753,
-0.004869109485298395,
0.538990318775177,
0.7640215754508972,
-0.1590430736541748,
0.8091834187507629,
-0.6847103238105774,
-0.1316949427127838,
0.1546495109796524,
0.03232695162296295,
0.3226918876171112,
0.5494107604026794,
0.8895244598388672,
-0.7503469586372375,
-0.53460294008255,
0.0060449824668467045,
-0.6459863185882568,
-0.03224267438054085,
0.04936321824789047,
-0.456635981798172,
0.22164998948574066,
0.002308263210579753,
-1.0701009035110474,
0.769233763217926,
0.505820095539093,
-0.5781606435775757,
0.8077114224433899,
-0.29233041405677795,
0.19578181207180023,
-1.1124635934829712,
0.14894163608551025,
0.13114924728870392,
-0.2897090017795563,
-0.37783530354499817,
0.12702956795692444,
-0.0849868506193161,
0.1454574167728424,
-0.44782477617263794,
0.7643513679504395,
-0.4958299696445465,
-0.0017738507594913244,
0.14438442885875702,
-0.11565744131803513,
0.28590506315231323,
0.5483173131942749,
-0.1574888676404953,
0.7866830229759216,
0.5714325904846191,
-0.41350722312927246,
0.5445019006729126,
0.40844589471817017,
0.06968006491661072,
0.2563456594944,
-0.8865787982940674,
0.09473998099565506,
0.05349345877766609,
0.4763832986354828,
-0.9735196828842163,
-0.23342537879943848,
0.5824224948883057,
-0.5056973099708557,
0.3746372163295746,
-0.3542685806751251,
-0.37776029109954834,
-0.39940500259399414,
-0.5977266430854797,
0.39695534110069275,
0.6567801833152771,
-0.42890504002571106,
0.4898736774921417,
0.40029507875442505,
0.06093530356884003,
-0.7028014063835144,
-0.5719528794288635,
-0.27301517128944397,
-0.26923736929893494,
-0.6335646510124207,
0.47633928060531616,
-0.10302040725946426,
-0.05174153670668602,
0.038910675793886185,
-0.10292009264230728,
-0.023700494319200516,
-0.14875778555870056,
0.5070412755012512,
0.26256921887397766,
-0.20427826046943665,
-0.2687513828277588,
0.20706012845039368,
0.07288343459367752,
-0.018914654850959778,
-0.38089218735694885,
0.3887300193309784,
-0.2807731330394745,
-0.08401975780725479,
-0.3885157108306885,
0.2193363457918167,
0.5264886021614075,
-0.013980845920741558,
0.8103759288787842,
0.8967123627662659,
-0.3729294538497925,
0.096067413687706,
-0.4878581762313843,
-0.15464453399181366,
-0.4794958233833313,
0.05071553215384483,
-0.26877686381340027,
-0.8311220407485962,
0.6884747743606567,
0.41889676451683044,
0.31496167182922363,
0.8192347288131714,
0.47066763043403625,
0.1163182482123375,
0.9111909866333008,
0.3862720727920532,
-0.21148087084293365,
0.4950425922870636,
-0.5846707224845886,
-0.22360415756702423,
-0.6767587661743164,
-0.17425398528575897,
-0.5011079907417297,
-0.16345945000648499,
-0.7688531279563904,
-0.5367605090141296,
0.4397183060646057,
0.3709222376346588,
-0.7404377460479736,
0.5906693339347839,
-0.7469793558120728,
0.15727102756500244,
0.6049779653549194,
0.3381040096282959,
0.17553405463695526,
0.05728235840797424,
-0.2009000927209854,
0.1413063257932663,
-0.5941724181175232,
-0.2649747431278229,
1.0269204378128052,
0.4165423810482025,
0.6614754796028137,
0.3215165138244629,
0.4300772249698639,
0.10483121871948242,
0.3077380359172821,
-0.4711291193962097,
0.43686947226524353,
0.006174101494252682,
-0.6777937412261963,
-0.3508303761482239,
-0.6085103154182434,
-0.9722339510917664,
0.23397523164749146,
-0.08601512014865875,
-0.8228552937507629,
0.4741627871990204,
-0.01075559202581644,
-0.323314368724823,
0.2932853102684021,
-0.646528422832489,
1.0654798746109009,
-0.03080371953547001,
-0.4218359887599945,
-0.02053104154765606,
-0.7271621227264404,
0.38159051537513733,
0.26448869705200195,
-0.05409660562872887,
-0.11154641956090927,
-0.18412162363529205,
0.7779031991958618,
-0.9034700989723206,
0.6589803695678711,
-0.323223739862442,
-0.04445573315024376,
0.5893613696098328,
-0.0726907029747963,
0.4575774669647217,
0.20417864620685577,
0.03536629304289818,
0.4346461296081543,
0.5794594883918762,
-0.4844156503677368,
-0.4189201891422272,
0.5405439138412476,
-1.0690876245498657,
-0.3882372975349426,
-0.5463266372680664,
-0.39840131998062134,
0.08752019703388214,
0.06571479141712189,
0.5259378552436829,
0.4846077859401703,
-0.18467821180820465,
0.0298402588814497,
0.6473137736320496,
-0.417906790971756,
0.39687561988830566,
0.29106608033180237,
-0.3157515525817871,
-0.6296238303184509,
0.7767833471298218,
0.04390599578619003,
0.18000511825084686,
0.290599524974823,
0.11351312696933746,
-0.45992201566696167,
-0.3684917390346527,
-0.6099876165390015,
0.39129483699798584,
-0.5037988424301147,
-0.39782291650772095,
-0.6599262952804565,
-0.2646471858024597,
-0.45626896619796753,
0.2646265923976898,
-0.3426635265350342,
-0.6574628949165344,
-0.4294673800468445,
0.10983370989561081,
0.9045258164405823,
0.4176606833934784,
-0.19745199382305145,
0.36121711134910583,
-0.8254190683364868,
0.23970310389995575,
0.34278690814971924,
0.1530376821756363,
0.05363616347312927,
-0.649277925491333,
-0.11392633616924286,
0.2552221119403839,
-0.6564996242523193,
-0.9609352946281433,
0.6322056651115417,
0.169871523976326,
0.3978821039199829,
0.5062193870544434,
0.17666587233543396,
0.8311343789100647,
-0.12484276294708252,
1.008731722831726,
0.2350858598947525,
-0.8388559818267822,
0.5020629167556763,
-0.5784589648246765,
0.1959993988275528,
0.45169734954833984,
0.6105727553367615,
-0.3495417833328247,
-0.27720358967781067,
-0.8080151677131653,
-0.7478027939796448,
0.49802500009536743,
0.45597103238105774,
-0.09369365870952606,
0.07667827606201172,
0.6390393972396851,
0.013669944368302822,
0.07554878294467926,
-0.7561063170433044,
-0.6161518692970276,
-0.36738380789756775,
-0.08166081458330154,
0.14593684673309326,
-0.007020729593932629,
-0.2955174148082733,
-0.5930629968643188,
0.9770434498786926,
-0.16780436038970947,
0.6702777743339539,
0.3357222080230713,
0.2402167171239853,
-0.04150620102882385,
-0.003156455233693123,
0.3323175013065338,
0.5299890041351318,
-0.2722020447254181,
-0.265912264585495,
0.10244908928871155,
-0.8617062568664551,
0.028534598648548126,
0.34697940945625305,
-0.06472934782505035,
-0.0511866919696331,
0.061618316918611526,
0.6834596395492554,
-0.12185869365930557,
-0.3166635036468506,
0.5911714434623718,
-0.39921101927757263,
-0.29306185245513916,
-0.3222845792770386,
0.2597099840641022,
0.16758058965206146,
0.40232351422309875,
0.2864704430103302,
-0.17580881714820862,
0.290201872587204,
-0.5155588388442993,
0.14662951231002808,
0.5162427425384521,
-0.30062711238861084,
-0.3332081437110901,
0.8289710283279419,
-0.15666380524635315,
0.2875412106513977,
0.6934131979942322,
-0.2346617877483368,
-0.310455322265625,
0.7204483151435852,
0.3594591021537781,
0.755371630191803,
-0.2251279354095459,
0.22671732306480408,
0.5928686857223511,
0.16169439256191254,
-0.1985674947500229,
0.4624607264995575,
-0.05909806489944458,
-0.6120103597640991,
-0.29541265964508057,
-0.6267508268356323,
-0.3084522783756256,
0.2040926069021225,
-0.8631978034973145,
0.20453865826129913,
-0.4496607780456543,
-0.45451807975769043,
-0.11139986664056778,
0.3152987062931061,
-0.6033003926277161,
0.23319973051548004,
-0.05862444266676903,
1.0257827043533325,
-0.7765321135520935,
0.8679057359695435,
0.5912259221076965,
-0.5106854438781738,
-1.0292387008666992,
-0.29171866178512573,
0.18470658361911774,
-0.5580145716667175,
0.13768582046031952,
-0.00258470862172544,
0.28603142499923706,
-0.02389463782310486,
-0.7221328020095825,
-0.811665952205658,
1.4254586696624756,
0.38731902837753296,
-0.44347894191741943,
-0.10687626898288727,
-0.043044984340667725,
0.3416459262371063,
-0.06001787260174751,
0.7930790781974792,
0.5683119893074036,
0.3499840795993805,
0.2562662363052368,
-0.9803376197814941,
0.4009104073047638,
-0.4408385157585144,
0.03449457883834839,
0.2566448748111725,
-0.9788411855697632,
0.9713912606239319,
0.03276880830526352,
-0.15575310587882996,
0.21936900913715363,
0.6765713095664978,
0.4295358657836914,
0.08276373893022537,
0.36669525504112244,
0.9413864612579346,
0.7075749635696411,
-0.4280867576599121,
1.1223245859146118,
-0.149229496717453,
0.5937969088554382,
0.7720697522163391,
0.13203616440296173,
0.7295290231704712,
0.17303690314292908,
-0.6485514044761658,
0.5859467387199402,
1.0144095420837402,
-0.013559151440858841,
0.3096259832382202,
-0.014496204443275928,
-0.39545512199401855,
0.008926193229854107,
0.05939124897122383,
-0.7582194805145264,
0.09429951757192612,
0.4142773747444153,
-0.19306889176368713,
-0.02311897836625576,
-0.16544604301452637,
0.1059347614645958,
-0.693904459476471,
-0.21287313103675842,
0.5868877172470093,
0.29163020849227905,
-0.25720280408859253,
0.8424901366233826,
-0.0029835170134902,
0.5672664046287537,
-0.5431199669837952,
-0.147865891456604,
-0.33117425441741943,
-0.08054715394973755,
-0.3521850109100342,
-0.720891535282135,
0.10898450016975403,
-0.2906622588634491,
-0.09955567866563797,
0.04792863875627518,
0.6605818271636963,
-0.1941487342119217,
-0.2873302400112152,
0.3155165910720825,
0.4941360056400299,
0.34434759616851807,
-0.22477157413959503,
-1.1184804439544678,
0.18413430452346802,
0.03267114609479904,
-0.6772764325141907,
0.4530527591705322,
0.5242735743522644,
0.07228419929742813,
0.6050933003425598,
0.6670901775360107,
-0.056692175567150116,
-0.016353070735931396,
-0.1381925493478775,
1.0300021171569824,
-0.7362786531448364,
-0.36622726917266846,
-0.6950258016586304,
0.6077284812927246,
-0.0835680216550827,
-0.48725569248199463,
0.7662014961242676,
0.6459177732467651,
0.7404085397720337,
0.086577869951725,
0.6192750930786133,
-0.4008067548274994,
0.13390588760375977,
-0.3099786341190338,
0.663824737071991,
-0.679980456829071,
-0.0042424132116138935,
-0.43786999583244324,
-0.8431249260902405,
-0.020934639498591423,
0.6871894001960754,
-0.11049182713031769,
0.24349242448806763,
0.4034319818019867,
0.9189821481704712,
-0.07283980399370193,
0.25208818912506104,
0.12518933415412903,
0.3549649715423584,
0.17568479478359222,
0.8520223498344421,
0.6117646098136902,
-0.9607760310173035,
0.41782039403915405,
-0.3716520071029663,
-0.32457226514816284,
-0.02951747365295887,
-0.7265947461128235,
-0.7845715284347534,
-0.5234520435333252,
-0.5684720873832703,
-0.7512507438659668,
-0.07842421531677246,
0.8379179239273071,
0.8052542209625244,
-0.672442615032196,
-0.3505348563194275,
-0.05352389067411423,
-0.02273557148873806,
-0.36713215708732605,
-0.31988441944122314,
0.44874370098114014,
0.3367387354373932,
-0.6373497843742371,
0.05639956146478653,
0.1049710363149643,
0.3540816009044647,
-0.14569897949695587,
-0.2805573344230652,
-0.09854376316070557,
-0.032669082283973694,
0.5847623944282532,
0.6143606305122375,
-0.5921562314033508,
-0.11099571734666824,
-0.19066956639289856,
-0.14324024319648743,
0.20406584441661835,
0.2846415638923645,
-0.7355977296829224,
0.05632191151380539,
0.5420581698417664,
0.20112092792987823,
0.9254735112190247,
0.06460694223642349,
0.353391170501709,
-0.3927880525588989,
0.14424502849578857,
0.029801608994603157,
0.34183916449546814,
-0.028649993240833282,
-0.44877031445503235,
0.6705989241600037,
0.37417712807655334,
-0.6540984511375427,
-0.6284443140029907,
-0.23924188315868378,
-1.3074971437454224,
-0.22868718206882477,
1.0174332857131958,
-0.23344196379184723,
-0.3986632823944092,
-0.03650078549981117,
-0.3358694314956665,
0.38048598170280457,
-0.6072667241096497,
0.26068899035453796,
0.44908666610717773,
-0.22209413349628448,
-0.33903074264526367,
-0.8297215700149536,
0.6261548399925232,
0.18019916117191315,
-0.8201894760131836,
0.004062717780470848,
0.5783315896987915,
0.40857183933258057,
0.053016405552625656,
0.7811846137046814,
-0.32848840951919556,
0.3175683617591858,
0.10757414251565933,
0.09209723025560379,
0.028902802616357803,
0.09099949151277542,
-0.338148832321167,
0.05037964507937431,
-0.25386732816696167,
0.011176453903317451
] |
baichuan-inc/Baichuan-7B | baichuan-inc | "2023-07-19T07:00:20Z" | 104,933 | 795 | transformers | [
"transformers",
"pytorch",
"baichuan",
"text-generation",
"custom_code",
"zh",
"en",
"arxiv:1910.07467",
"arxiv:2009.03300",
"endpoints_compatible",
"has_space",
"region:us"
] | text-generation | "2023-06-13T07:47:16Z" | ---
language:
- zh
- en
pipeline_tag: text-generation
inference: false
---
# Baichuan-7B
<!-- Provide a quick summary of what the model is/does. -->
Baichuan-7B是由百川智能开发的一个开源的大规模预训练模型。基于Transformer结构,在大约1.2万亿tokens上训练的70亿参数模型,支持中英双语,上下文窗口长度为4096。在标准的中文和英文权威benchmark(C-EVAL/MMLU)上均取得同尺寸最好的效果。
如果希望使用Baichuan-7B(如进行推理、Finetune等),我们推荐使用配套代码库[Baichuan-7B](https://github.com/baichuan-inc/Baichuan-7B)。
Baichuan-7B is an open-source large-scale pre-trained model developed by Baichuan Intelligent Technology. Based on the Transformer architecture, it is a model with 7 billion parameters trained on approximately 1.2 trillion tokens. It supports both Chinese and English, with a context window length of 4096. It achieves the best performance of its size on standard Chinese and English authoritative benchmarks (C-EVAL/MMLU).
If you wish to use Baichuan-7B (for inference, finetuning, etc.), we recommend using the accompanying code library [Baichuan-7B](https://github.com/baichuan-inc/Baichuan-7B).
## Why use Baichuan-7B
- 在同尺寸模型中Baichuan-7B达到了目前SOTA的水平,参考下面MMLU指标
- Baichuan-7B使用自有的中英文双语语料进行训练,在中文上进行优化,在C-Eval达到SOTA水平
- 不同于LLaMA完全禁止商业使用,Baichuan-7B使用更宽松的开源协议,允许用于商业目的
- Among models of the same size, Baichuan-7B has achieved the current state-of-the-art (SOTA) level, as evidenced by the following MMLU metrics.
- Baichuan-7B is trained on proprietary bilingual Chinese-English corpora, optimized for Chinese, and achieves SOTA performance on C-Eval.
- Unlike LLaMA, which completely prohibits commercial use, Baichuan-7B employs a more lenient open-source license, allowing for commercial purposes.
## How to Get Started with the Model
如下是一个使用Baichuan-7B进行1-shot推理的任务,根据作品给出作者名,正确输出为"夜雨寄北->李商隐"
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("baichuan-inc/Baichuan-7B", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("baichuan-inc/Baichuan-7B", device_map="auto", trust_remote_code=True)
inputs = tokenizer('登鹳雀楼->王之涣\n夜雨寄北->', return_tensors='pt')
inputs = inputs.to('cuda:0')
pred = model.generate(**inputs, max_new_tokens=64,repetition_penalty=1.1)
print(tokenizer.decode(pred.cpu()[0], skip_special_tokens=True))
```
The following is a task of performing 1-shot inference using Baichuan-7B, where the author's name is given based on the work, with the correct output being "One Hundred Years of Solitude->Gabriel Garcia Marquez"
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("baichuan-inc/Baichuan-7B", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("baichuan-inc/Baichuan-7B", device_map="auto", trust_remote_code=True)
inputs = tokenizer('Hamlet->Shakespeare\nOne Hundred Years of Solitude->', return_tensors='pt')
inputs = inputs.to('cuda:0')
pred = model.generate(**inputs, max_new_tokens=64,repetition_penalty=1.1)
print(tokenizer.decode(pred.cpu()[0], skip_special_tokens=True))
```
## Model Details
### Model Description
<!-- Provide a longer summary of what this model is. -->
- **Developed by:** 百川智能(Baichuan Intelligent Technology)
- **Email**: opensource@baichuan-inc.com
- **Language(s) (NLP):** Chinese/English
- **License:** [Baichuan-7B License](https://huggingface.co/baichuan-inc/Baichuan-7B/blob/main/baichuan-7B%20%E6%A8%A1%E5%9E%8B%E8%AE%B8%E5%8F%AF%E5%8D%8F%E8%AE%AE.pdf)
### Model Sources
<!-- Provide the basic links for the model. -->
整体模型基于标准的Transformer结构,我们采用了和LLaMA一样的模型设计
- **Position Embedding**:采用rotary-embedding,是现阶段被大多数模型采用的位置编码方案,具有很好的外推性。
- **Feedforward Layer**:采用SwiGLU,Feedforward变化为(8/3)倍的隐含层大小,即11008。
- **Layer Normalization**: 基于[RMSNorm](https://arxiv.org/abs/1910.07467)的Pre-Normalization。
具体参数和见下表
| Hyperparameter | Value |
|----------------|-------|
|n_parameters | 7000559616 |
|n_layers | 32 |
| n_heads | 32 |
| d_model | 4096 |
| vocab size | 64000 |
| sequence length | 4096 |
The overall model is based on the standard Transformer structure, and we have adopted the same model design as LLaMA:
- Position Embedding: We use rotary-embedding, which is the position encoding scheme adopted by most models at this stage, and it has excellent extrapolation capabilities.
- Feedforward Layer: We use SwiGLU. The feedforward changes to (8/3) times the size of the hidden layer, that is, 11008.
- Layer Normalization: Pre-Normalization based on [RMSNorm](https://arxiv.org/abs/1910.07467).
The specific parameters are as follows:
| Hyperparameter | Value |
|----------------|-------|
|n_parameters | 7000559616 |
|n_layers | 32 |
| n_heads | 32 |
| d_model | 4096 |
| vocab size | 64000 |
| sequence length | 4096 |
## Uses
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
### Downstream Use
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
我们同时开源出了和本模型配套的训练代码,允许进行高效的Finetune用于下游任务,具体参见[Baichuan-7B](https://github.com/baichuan-inc/Baichuan-7B)。
We have also open-sourced the training code that accompanies this model, allowing for efficient finetuning for downstream tasks. For more details, please refer to [Baichuan-7B](https://github.com/baichuan-inc/Baichuan-7B).
### Out-of-Scope Use
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
在没有充分评估风险和采取缓解措施的情况下投入生产使用;任何可能被视为不负责任或有害的使用案例。
Production use without adequate assessment of risks and mitigation; any use cases which may be considered irresponsible or harmful.
## Bias, Risks, and Limitations
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
Baichuan-7B可能会产生事实上不正确的输出,不应依赖它产生事实上准确的信息。Baichuan-7B是在各种公共数据集上进行训练的。尽管我们已经做出了巨大的努力来清洗预训练数据,但这个模型可能会生成淫秽、偏见或其他冒犯性的输出。
Baichuan-7B can produce factually incorrect output, and should not be relied on to produce factually accurate information. Baichuan-7B was trained on various public datasets. While great efforts have been taken to clean the pretraining data, it is possible that this model could generate lewd, biased or otherwise offensive outputs.
## Training Details
训练具体设置参见[Baichuan-7B](https://github.com/baichuan-inc/Baichuan-7B)。
For specific training settings, please refer to [Baichuan-7B](https://github.com/baichuan-inc/Baichuan-7B).
## Evaluation
### 中文评测
#### C-Eval
[CEval数据集](https://cevalbenchmark.com/index.html)是一个全面的中文基础模型评测数据集,涵盖了52个学科和四个难度的级别。我们使用该数据集的dev集作为few-shot的来源,在test集上进行了5-shot测试。
| Model 5-shot | Average | Avg(Hard) | STEM | Social Sciences | Humanities | Others |
|-----------------------------|---------|-----------|------|-----------------|------------|--------|
| GPT-4 | 68.7 | 54.9 | 67.1 | 77.6 | 64.5 | 67.8 |
| ChatGPT | 54.4 | 41.4 | 52.9 | 61.8 | 50.9 | 53.6 |
| Claude-v1.3 | 54.2 | 39.0 | 51.9 | 61.7 | 52.1 | 53.7 |
| Claude-instant-v1.0 | 45.9 | 35.5 | 43.1 | 53.8 | 44.2 | 45.4 |
| moss-moon-003-base (16B) | 27.4 | 24.5 | 27.0 | 29.1 | 27.2 | 26.9 |
| Ziya-LLaMA-13B-pretrain | 30.2 | 22.7 | 27.7 | 34.4 | 32.0 | 28.9 |
| LLaMA-7B-hf | 27.1 | 25.9 | 27.1 | 26.8 | 27.9 | 26.3 |
| ChatGLM-6B | 34.5 | 23.1 | 30.4 | 39.6 | 37.4 | 34.5 |
| Falcon-7B | 25.8 | 24.3 | 25.8 | 26.0 | 25.8 | 25.6 |
| Open-LLaMA-v2-pretrain (7B) | 24.0 | 22.5 | 23.1 | 25.3 | 25.2 | 23.2 |
| TigerBot-7B-base | 25.7 | 27.0 | 27.3 | 24.7 | 23.4 | 26.1 |
| Aquila-7B<sup>*</sup> | 25.5 | 25.2 | 25.6 | 24.6 | 25.2 | 26.6 |
| BLOOM-7B | 22.8 | 20.2 | 21.8 | 23.3 | 23.9 | 23.3 |
| BLOOMZ-7B | 35.7 | 25.8 | 31.3 | 43.5 | 36.6 | 35.6 |
| **Baichuan-7B** | 42.8 | 31.5 | 38.2 | 52.0 | 46.2 | 39.3 |
#### Gaokao
[Gaokao](https://github.com/ExpressAI/AI-Gaokao) 是一个以中国高考题作为评测大语言模型能力的数据集,用以评估模型的语言能力和逻辑推理能力。
我们只保留了其中的单项选择题,并对所有模型进行统一5-shot测试。
以下是测试的结果。
| Model | Average |
|-------------------------|-----------------|
| Open-LLaMA-v2-pretrain | 21.41 |
| Ziya-LLaMA-13B-pretrain | 23.17 |
| Falcon-7B | 23.98 |
| TigerBot-7B-base | 25.94 |
| LLaMA-7B | 27.81 |
| ChatGLM-6B | 21.41 |
| BLOOM-7B | 26.96 |
| BLOOMZ-7B | 28.72 |
| Aquila-7B<sup>*</sup> | 24.39 |
| **Baichuan-7B** | **36.24** |
#### AGIEval
[AGIEval](https://github.com/microsoft/AGIEval) 旨在评估模型的认知和解决问题相关的任务中的一般能力。
我们只保留了其中的四选一单项选择题,随机划分后对所有模型进行了统一5-shot测试。
| Model | Average |
|-------------------------|-----------------|
| Open-LLaMA-v2-pretrain | 23.49 |
| Ziya-LLaMA-13B-pretrain | 27.64 |
| Falcon-7B | 27.18 |
| TigerBot-7B-base | 25.19 |
| LLaMA-7B | 28.17 |
| ChatGLM-6B | 23.49 |
| BLOOM-7B | 26.55 |
| BLOOMZ-7B | 30.27 |
| Aquila-7B<sup>*</sup> | 25.58 |
| **Baichuan-7B** | **34.44** |
<sup>*</sup>其中Aquila模型来源于[智源官方网站](https://model.baai.ac.cn/model-detail/100098),仅做参考
### English Leaderboard
In addition to Chinese, we also tested the model's performance in English.
#### MMLU
[MMLU](https://arxiv.org/abs/2009.03300) is an English evaluation dataset that includes 57 multiple-choice tasks, covering elementary mathematics, American history, computer science, law, etc. The difficulty ranges from high school level to expert level, making it a mainstream LLM evaluation dataset.
We adopted the [open-source]((https://github.com/hendrycks/test)) evaluation scheme, and the final 5-shot results are as follows:
| Model | Humanities | Social Sciences | STEM | Other | Average |
|----------------------------------------|-----------:|:---------------:|:----:|:-----:|:-------:|
| LLaMA-7B<sup>2</sup> | 34.0 | 38.3 | 30.5 | 38.1 | 35.1 |
| Falcon-7B<sup>1</sup> | - | - | - | - | 35.0 |
| mpt-7B<sup>1</sup> | - | - | - | - | 35.6 |
| ChatGLM-6B<sup>0</sup> | 35.4 | 41.0 | 31.3 | 40.5 | 36.9 |
| BLOOM 7B<sup>0</sup> | 25.0 | 24.4 | 26.5 | 26.4 | 25.5 |
| BLOOMZ 7B<sup>0</sup> | 31.3 | 42.1 | 34.4 | 39.0 | 36.1 |
| moss-moon-003-base (16B)<sup>0</sup> | 24.2 | 22.8 | 22.4 | 24.4 | 23.6 |
| moss-moon-003-sft (16B)<sup>0</sup> | 30.5 | 33.8 | 29.3 | 34.4 | 31.9 |
| **Baichuan-7B<sup>0</sup>** | 38.4 | 48.9 | 35.6 | 48.1 | 42.3 |
The superscript in the Model column indicates the source of the results.
```
0:reimplemented
1:https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard
2:https://paperswithcode.com/sota/multi-task-language-understanding-on-mmlu
```
## Our Group
![WeChat](https://github.com/baichuan-inc/Baichuan-13B/blob/main/media/wechat.jpeg?raw=true)
| [
-0.402330219745636,
-0.7047737240791321,
0.08041279017925262,
0.5097503066062927,
-0.28565967082977295,
-0.2764339745044708,
-0.17296673357486725,
-0.3689904808998108,
0.04775229096412659,
0.3585107624530792,
-0.4583725929260254,
-0.5947907567024231,
-0.6247764825820923,
0.041545312851667404,
-0.3090614974498749,
0.8877605199813843,
0.06321878731250763,
0.14788691699504852,
0.3154408037662506,
-0.002215998014435172,
-0.5957149863243103,
-0.3052047789096832,
-0.7091030478477478,
-0.33844250440597534,
0.26627299189567566,
0.18343007564544678,
0.7192886471748352,
0.8080079555511475,
0.5939103364944458,
0.31743332743644714,
-0.24074165523052216,
0.148232564330101,
-0.553371012210846,
-0.2915925085544586,
0.1800730973482132,
-0.5132359266281128,
-0.60550856590271,
-0.03534311428666115,
0.556524395942688,
0.42889147996902466,
0.006996176205575466,
0.3543897271156311,
0.1551828682422638,
0.4151480793952942,
-0.43514031171798706,
0.2371577024459839,
-0.44032877683639526,
0.10940086841583252,
-0.24984760582447052,
0.10201159119606018,
-0.3390290439128876,
-0.30106064677238464,
-0.0949430987238884,
-0.5784355401992798,
0.4015357494354248,
0.08223024010658264,
1.4276424646377563,
0.14003628492355347,
-0.37108293175697327,
0.08010300993919373,
-0.5415023565292358,
0.9648560285568237,
-1.1047403812408447,
0.24342350661754608,
0.34521493315696716,
0.39689189195632935,
-0.09585459530353546,
-0.9102697968482971,
-0.7174327373504639,
-0.28227299451828003,
-0.35479727387428284,
0.39911752939224243,
-0.01911371573805809,
-0.048553917557001114,
0.40174150466918945,
0.4549826383590698,
-0.5107795596122742,
0.03812038153409958,
-0.6218461990356445,
-0.1527535319328308,
0.8152531981468201,
0.24089840054512024,
0.17784364521503448,
-0.49443817138671875,
-0.5729261040687561,
-0.07897240668535233,
-0.5188724994659424,
0.39220404624938965,
0.21727772057056427,
0.11741465330123901,
-0.391352117061615,
0.27155548334121704,
-0.22504585981369019,
0.547360360622406,
0.3779667317867279,
-0.23444484174251556,
0.47157609462738037,
-0.38810494542121887,
-0.43668830394744873,
-0.05501629039645195,
1.1494114398956299,
0.3306023180484772,
-0.05371320992708206,
0.06706687062978745,
-0.3484053611755371,
-0.11855987459421158,
0.049349550157785416,
-0.8282151222229004,
-0.29198500514030457,
0.3768942058086395,
-0.7559329867362976,
-0.4333651065826416,
0.2732454240322113,
-0.5993342995643616,
-0.031220197677612305,
-0.20963968336582184,
0.5592283010482788,
-0.4916381537914276,
-0.38319459557533264,
0.07362023741006851,
-0.04978489130735397,
0.4817342162132263,
0.19379554688930511,
-0.8468570709228516,
0.2030470222234726,
0.4701497256755829,
0.8669177293777466,
-0.10361792147159576,
-0.5657408237457275,
-0.1346723586320877,
0.043809548020362854,
-0.3092164993286133,
0.5673597455024719,
-0.14733365178108215,
-0.44633719325065613,
-0.21290403604507446,
0.42692479491233826,
-0.10432055592536926,
-0.4608754813671112,
0.4704645574092865,
-0.4007868468761444,
0.11031995713710785,
-0.29674163460731506,
-0.34231528639793396,
-0.4610859155654907,
0.24596090614795685,
-0.7075716853141785,
1.1434472799301147,
0.06563115119934082,
-0.825086772441864,
0.07494989037513733,
-0.5646569132804871,
-0.26551157236099243,
-0.16761691868305206,
-0.013029809109866619,
-0.5689141750335693,
-0.29474207758903503,
0.28645217418670654,
0.5150696635246277,
-0.44556158781051636,
0.3440787196159363,
-0.20094332098960876,
-0.44307225942611694,
0.1641966700553894,
-0.5975074768066406,
1.2877838611602783,
0.3735429346561432,
-0.6875606179237366,
0.19694404304027557,
-0.8811963796615601,
-0.17246702313423157,
0.41261303424835205,
-0.20090307295322418,
0.1061658188700676,
-0.33347541093826294,
0.09530873596668243,
0.2360079288482666,
0.4539843797683716,
-0.4419444501399994,
0.05904258042573929,
-0.4878687858581543,
0.5582886338233948,
0.8742520213127136,
0.01463981345295906,
0.3121020793914795,
-0.5882540345191956,
0.5061946511268616,
0.3285113573074341,
0.5504315495491028,
-0.24273552000522614,
-0.48790258169174194,
-1.1017062664031982,
-0.1792968213558197,
0.3657616376876831,
0.6177970767021179,
-0.5303073525428772,
0.7059598565101624,
-0.08781137317419052,
-0.8892987370491028,
-0.6091187596321106,
0.045549117028713226,
0.42586663365364075,
0.6550067067146301,
0.5751544237136841,
-0.066867895424366,
-0.5181053280830383,
-0.8556647300720215,
0.1802474707365036,
0.024742398411035538,
-0.009493596851825714,
0.1988389492034912,
0.6803706884384155,
-0.3088242709636688,
0.7296881079673767,
-0.4682192802429199,
-0.35698211193084717,
-0.2868468165397644,
-0.08591952919960022,
0.6766393780708313,
0.7331459522247314,
0.7354903817176819,
-0.724955677986145,
-0.5441416501998901,
0.03858780115842819,
-0.9493886232376099,
0.03288959711790085,
-0.18083195388317108,
-0.4841863214969635,
0.07869672030210495,
0.09518149495124817,
-0.68241286277771,
0.5341097712516785,
0.5000171661376953,
-0.16602730751037598,
0.8567533493041992,
-0.14722371101379395,
0.15742893517017365,
-1.2311855554580688,
0.16266784071922302,
-0.12034375220537186,
0.06148896738886833,
-0.5361328721046448,
0.13108913600444794,
0.22274015843868256,
0.08722200244665146,
-0.7248623371124268,
0.6255409717559814,
-0.5524880290031433,
0.31949716806411743,
-0.0959528312087059,
0.07390370965003967,
0.13604427874088287,
0.6702251434326172,
-0.027678120881319046,
0.584141731262207,
0.69981849193573,
-0.7031264305114746,
0.639811635017395,
0.3612099885940552,
-0.27138128876686096,
0.04542607069015503,
-0.8435392379760742,
-0.025657925754785538,
0.006308094598352909,
0.2814561426639557,
-0.8221627473831177,
-0.08223771303892136,
0.40242546796798706,
-0.5403261184692383,
0.18618160486221313,
-0.08706476539373398,
-0.20885160565376282,
-0.5980106592178345,
-0.4617559313774109,
0.3738267123699188,
0.6014636754989624,
-0.6085897088050842,
0.5634128451347351,
0.08588837832212448,
0.15584680438041687,
-0.7800517082214355,
-0.849062442779541,
-0.29073482751846313,
-0.2248164266347885,
-0.9244389533996582,
0.4682278335094452,
-0.07711392641067505,
0.11203261464834213,
-0.14963600039482117,
0.017326954752206802,
-0.05773409456014633,
-0.016193127259612083,
0.29441216588020325,
0.5941781997680664,
-0.37001678347587585,
-0.17244543135166168,
0.025581074878573418,
-0.0812264233827591,
0.032102953642606735,
-0.09143427014350891,
0.5909753441810608,
-0.2412276566028595,
-0.22733791172504425,
-0.6212752461433411,
0.09810367226600647,
0.3590366244316101,
-0.355503112077713,
0.7925894856452942,
0.8359591960906982,
-0.45870786905288696,
-0.11437056958675385,
-0.58205246925354,
-0.06529472768306732,
-0.5572066307067871,
0.3276539444923401,
-0.4372180998325348,
-0.48529210686683655,
0.8618217706680298,
0.2347671538591385,
0.19171279668807983,
0.875910758972168,
0.5759231448173523,
0.025304047390818596,
0.9665586948394775,
0.41971179842948914,
-0.18522430956363678,
0.46811315417289734,
-0.9421684145927429,
0.0760435238480568,
-0.8751134872436523,
-0.4163355827331543,
-0.43494701385498047,
-0.37048104405403137,
-0.623944878578186,
-0.2430349737405777,
0.3590259253978729,
0.15075813233852386,
-0.6565631031990051,
0.6135488152503967,
-0.6407146453857422,
0.13422748446464539,
0.7785877585411072,
0.34457695484161377,
0.12261979281902313,
-0.2862582504749298,
-0.11108357459306717,
0.20202502608299255,
-0.6825866103172302,
-0.4956130087375641,
0.9852275848388672,
0.49808141589164734,
0.8783305883407593,
0.06818602979183197,
0.6798487305641174,
0.07051250338554382,
0.23394152522087097,
-0.6961033344268799,
0.40978193283081055,
-0.1616695523262024,
-0.7146690487861633,
-0.2923279106616974,
-0.30338868498802185,
-1.0238345861434937,
0.3433438241481781,
-0.10990380495786667,
-0.6172100901603699,
0.2905068099498749,
0.15223808586597443,
-0.609439492225647,
0.32103249430656433,
-0.830970287322998,
1.0273810625076294,
-0.497073233127594,
-0.4309118986129761,
0.09362392127513885,
-0.7419955730438232,
0.5391943454742432,
0.09390077739953995,
0.1622457653284073,
0.036638546735048294,
0.31108397245407104,
0.8472680449485779,
-0.573533296585083,
0.7469130754470825,
-0.3011743128299713,
0.021106533706188202,
0.557885468006134,
-0.02325720340013504,
0.5262525677680969,
0.1326139122247696,
-0.17277207970619202,
0.589460551738739,
0.14569628238677979,
-0.5222095847129822,
-0.39800089597702026,
0.6807252764701843,
-1.0040332078933716,
-0.7437831163406372,
-0.49461790919303894,
-0.4235188066959381,
0.23995715379714966,
0.4512733519077301,
0.7028043866157532,
0.27033549547195435,
0.16497600078582764,
0.3937567174434662,
0.4666712284088135,
-0.36036917567253113,
0.6526100039482117,
0.36747777462005615,
-0.14267373085021973,
-0.42635220289230347,
0.7995826601982117,
0.26416364312171936,
0.2338891327381134,
0.3199950158596039,
0.277268648147583,
-0.25736626982688904,
-0.3983302116394043,
-0.45830631256103516,
0.31973615288734436,
-0.6535745859146118,
-0.3946271240711212,
-0.5379780530929565,
-0.6380223631858826,
-0.8184605240821838,
-0.052946917712688446,
-0.37035250663757324,
-0.1218835785984993,
-0.469829797744751,
-0.21850813925266266,
0.2020193338394165,
0.4411117732524872,
0.07894019782543182,
0.4817069470882416,
-0.9095913767814636,
0.39835962653160095,
0.19391533732414246,
0.19569994509220123,
0.22482791543006897,
-0.8992270231246948,
-0.46918126940727234,
0.30237478017807007,
-0.6307471394538879,
-0.8429462909698486,
0.5574790835380554,
-0.007411514408886433,
0.7084463834762573,
0.7317521572113037,
0.08929812908172607,
0.7019547820091248,
-0.39429765939712524,
1.0744510889053345,
0.2627045512199402,
-0.9440666437149048,
0.6337001919746399,
-0.27529004216194153,
0.1412287950515747,
0.15494313836097717,
0.43237847089767456,
-0.36967846751213074,
-0.19016972184181213,
-0.6909284591674805,
-0.7877306342124939,
0.8695706129074097,
0.30333083868026733,
0.06583493202924728,
0.10610882937908173,
0.15187886357307434,
0.06039060652256012,
0.02448907122015953,
-1.0083833932876587,
-0.5163872838020325,
-0.6450053453445435,
-0.17435123026371002,
0.01865244098007679,
-0.07001443952322006,
-0.05620400607585907,
-0.4743906259536743,
0.8371518850326538,
0.12881344556808472,
0.47999435663223267,
0.24841521680355072,
-0.19596771895885468,
0.11608322709798813,
-0.13929986953735352,
0.5078946352005005,
0.5624723434448242,
-0.25272488594055176,
0.0034282938577234745,
0.3791370987892151,
-0.6517866253852844,
0.01811542920768261,
0.20596836507320404,
-0.42216113209724426,
0.0032734666019678116,
0.4817006289958954,
1.0111794471740723,
-0.036350999027490616,
-0.3817582130432129,
0.5586116313934326,
0.08779920637607574,
-0.1127636581659317,
-0.46973544359207153,
0.3037455976009369,
-0.017567388713359833,
0.30753886699676514,
0.3407016098499298,
-0.023691438138484955,
0.1295163929462433,
-0.35638293623924255,
-0.010083329863846302,
0.16842645406723022,
-0.1996304988861084,
-0.32293906807899475,
0.9897773861885071,
0.1386909931898117,
-0.19886234402656555,
0.48462575674057007,
-0.1443525105714798,
-0.5324295163154602,
1.0090789794921875,
0.6595723032951355,
0.7949984669685364,
-0.33369287848472595,
0.044635821133852005,
0.7274379134178162,
0.39112719893455505,
-0.16120798885822296,
0.14859558641910553,
0.1153835579752922,
-0.648431658744812,
-0.05234924331307411,
-0.7135981917381287,
-0.028017349541187286,
0.3008132874965668,
-0.5781309008598328,
0.5841121673583984,
-0.5419087409973145,
-0.33897438645362854,
-0.012925867922604084,
0.12599629163742065,
-0.7895215153694153,
0.4935687482357025,
0.005894388072192669,
1.0349169969558716,
-0.7741023302078247,
0.8878132700920105,
0.49875393509864807,
-0.8746652007102966,
-1.1048152446746826,
-0.142024427652359,
-0.21240435540676117,
-0.9322296380996704,
0.6709080338478088,
0.2788218855857849,
0.009272480383515358,
-0.0501290038228035,
-0.7086638808250427,
-0.950961172580719,
1.6071295738220215,
0.3554324805736542,
-0.5000996589660645,
-0.09051743894815445,
0.05612507089972496,
0.4768936336040497,
-0.12132380902767181,
0.5601370334625244,
0.48372241854667664,
0.5007787346839905,
-0.04428168386220932,
-0.9773988723754883,
0.26836150884628296,
-0.46812623739242554,
0.22506533563137054,
-0.2622961103916168,
-1.256617784500122,
1.2824794054031372,
-0.1548282355070114,
-0.08913582563400269,
0.09592117369174957,
0.8200796246528625,
0.3043324053287506,
0.28587836027145386,
0.4611106812953949,
0.4134780764579773,
0.5784338712692261,
-0.1249392181634903,
0.8830163478851318,
-0.45456889271736145,
0.6666339039802551,
0.8565026521682739,
0.12248986959457397,
0.6098281741142273,
0.08931241929531097,
-0.47054219245910645,
0.5077505707740784,
0.8758471608161926,
-0.4572788178920746,
0.4538463354110718,
-0.03416464850306511,
-0.1503087431192398,
-0.08441466838121414,
0.11314603686332703,
-0.7495765089988708,
0.3323492407798767,
0.1952095478773117,
-0.4318868815898895,
0.13491785526275635,
-0.05633544921875,
0.1079273447394371,
-0.280977338552475,
-0.28022533655166626,
0.4420973062515259,
0.14115466177463531,
-0.5826584100723267,
0.9497355222702026,
0.2025321125984192,
0.9162577986717224,
-0.6573300957679749,
0.0297087449580431,
-0.47546064853668213,
0.12494281679391861,
-0.4329214096069336,
-0.5952098965644836,
0.01850370317697525,
-0.05089395120739937,
-0.19928693771362305,
0.1074158176779747,
0.6611369252204895,
-0.2944047152996063,
-0.65215665102005,
0.36969733238220215,
0.0649324581027031,
0.1491556465625763,
0.03870286047458649,
-0.773011326789856,
-0.07221539318561554,
0.07898589223623276,
-0.5096032619476318,
0.11330834776163101,
0.5009305477142334,
0.0855567455291748,
0.7362712025642395,
0.6861953139305115,
0.09782544523477554,
0.37072619795799255,
0.07580836117267609,
0.847794771194458,
-0.8245918154716492,
-0.4916251301765442,
-0.7093410491943359,
0.7369706630706787,
-0.050902217626571655,
-0.38474521040916443,
0.8032101392745972,
0.6464433670043945,
1.021490216255188,
-0.2404186725616455,
0.8298816680908203,
-0.2194187492132187,
0.30773991346359253,
-0.5033683776855469,
0.9278106093406677,
-0.5136922597885132,
0.16155816614627838,
-0.3088497817516327,
-0.8530803322792053,
-0.0970211997628212,
0.8356744050979614,
-0.2465098649263382,
0.2625831961631775,
0.711713969707489,
1.024268627166748,
-0.08359725028276443,
-0.02666630782186985,
0.2598806619644165,
0.4763742685317993,
0.35350853204727173,
0.7771095037460327,
0.6690934300422668,
-0.9996193051338196,
0.7340547442436218,
-0.8426229953765869,
-0.2759048342704773,
-0.21283358335494995,
-0.6043208241462708,
-0.8364983201026917,
-0.47633346915245056,
-0.13524433970451355,
-0.39520666003227234,
-0.2452150285243988,
0.8422864079475403,
0.7403631806373596,
-1.0153943300247192,
-0.4179976284503937,
0.06588532775640488,
0.061820290982723236,
-0.4761001467704773,
-0.29229649901390076,
0.6543290615081787,
-0.25003907084465027,
-0.9411234259605408,
0.10134521871805191,
-0.07502950727939606,
0.11077689379453659,
-0.29901018738746643,
-0.230259507894516,
-0.3310268521308899,
-0.05750057473778725,
0.5293098092079163,
0.09249936044216156,
-0.8169065117835999,
-0.20430265367031097,
0.3401517868041992,
-0.21294155716896057,
0.09973384439945221,
0.19768649339675903,
-0.5298686027526855,
0.29250675439834595,
0.5004934072494507,
0.42466023564338684,
0.5998920798301697,
0.0025326621253043413,
0.22141824662685394,
-0.3974684774875641,
0.23719079792499542,
0.0354718454182148,
0.5103718042373657,
0.11468342691659927,
-0.4920894205570221,
0.5231608748435974,
0.4522407352924347,
-0.5743662118911743,
-0.7195472121238708,
-0.1906014233827591,
-1.1690316200256348,
-0.1786337047815323,
1.2333948612213135,
-0.3666139245033264,
-0.4273110330104828,
0.2556751072406769,
-0.4674086570739746,
0.6847041845321655,
-0.3218815326690674,
0.901256263256073,
0.5822772979736328,
-0.05123409628868103,
-0.09641366451978683,
-0.5620798468589783,
0.22565507888793945,
0.3054223656654358,
-0.6952751278877258,
-0.29596155881881714,
0.2554548382759094,
0.3202081322669983,
0.22742854058742523,
0.43121546506881714,
-0.05721210315823555,
0.359011173248291,
0.11089642345905304,
0.17679829895496368,
-0.2608412504196167,
-0.14941653609275818,
-0.17780077457427979,
-0.07133731991052628,
-0.17804516851902008,
-0.4923688471317291
] |
d4data/biomedical-ner-all | d4data | "2023-07-02T07:28:28Z" | 104,750 | 103 | transformers | [
"transformers",
"pytorch",
"safetensors",
"distilbert",
"token-classification",
"Token Classification",
"en",
"license:apache-2.0",
"co2_eq_emissions",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | token-classification | "2022-06-19T14:04:18Z" | ---
license: apache-2.0
language:
- en
tags:
- Token Classification
co2_eq_emissions: 0.0279399890043426
widget:
- text: "CASE: A 28-year-old previously healthy man presented with a 6-week history of palpitations.
The symptoms occurred during rest, 2–3 times per week, lasted up to 30 minutes at a time and were associated with dyspnea.
Except for a grade 2/6 holosystolic tricuspid regurgitation murmur (best heard at the left sternal border with inspiratory accentuation), physical examination yielded unremarkable findings."
example_title: "example 1"
- text: "A 63-year-old woman with no known cardiac history presented with a sudden onset of dyspnea requiring intubation and ventilatory support out of hospital.
She denied preceding symptoms of chest discomfort, palpitations, syncope or infection.
The patient was afebrile and normotensive, with a sinus tachycardia of 140 beats/min."
example_title: "example 2"
- text: "A 48 year-old female presented with vaginal bleeding and abnormal Pap smears.
Upon diagnosis of invasive non-keratinizing SCC of the cervix, she underwent a radical hysterectomy with salpingo-oophorectomy which demonstrated positive spread to the pelvic lymph nodes and the parametrium.
Pathological examination revealed that the tumour also extensively involved the lower uterine segment."
example_title: "example 3"
---
## About the Model
An English Named Entity Recognition model, trained on Maccrobat to recognize the bio-medical entities (107 entities) from a given text corpus (case reports etc.). This model was built on top of distilbert-base-uncased
- Dataset: Maccrobat https://figshare.com/articles/dataset/MACCROBAT2018/9764942
- Carbon emission: 0.0279399890043426 Kg
- Training time: 30.16527 minutes
- GPU used : 1 x GeForce RTX 3060 Laptop GPU
Checkout the tutorial video for explanation of this model and corresponding python library: https://youtu.be/xpiDPdBpS18
## Usage
The easiest way is to load the inference api from huggingface and second method is through the pipeline object offered by transformers library.
```python
from transformers import pipeline
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("d4data/biomedical-ner-all")
model = AutoModelForTokenClassification.from_pretrained("d4data/biomedical-ner-all")
pipe = pipeline("ner", model=model, tokenizer=tokenizer, aggregation_strategy="simple") # pass device=0 if using gpu
pipe("""The patient reported no recurrence of palpitations at follow-up 6 months after the ablation.""")
```
## Author
This model is part of the Research topic "AI in Biomedical field" conducted by Deepak John Reji, Shaina Raza. If you use this work (code, model or dataset), please star at:
> https://github.com/dreji18/Bio-Epidemiology-NER
## You can support me here :)
<a href="https://www.buymeacoffee.com/deepakjohnreji" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a> | [
-0.3453802466392517,
-0.5887095332145691,
0.5892553329467773,
0.01833651214838028,
-0.15519490838050842,
0.02725500613451004,
0.11677920073270798,
-0.6006391644477844,
0.49101522564888,
0.49792400002479553,
-0.5243527889251709,
-0.509122908115387,
-0.5828561782836914,
0.3983782231807709,
-0.18764320015907288,
1.1049838066101074,
-0.14015913009643555,
0.1103777065873146,
-0.12392725050449371,
-0.05477209389209747,
-0.20705892145633698,
-0.534600019454956,
-0.9011290669441223,
-0.41976305842399597,
0.4500074088573456,
0.15369541943073273,
0.28445443511009216,
0.4775180518627167,
0.676967978477478,
0.3377460837364197,
-0.039239007979631424,
-0.12056609243154526,
-0.1355765014886856,
-0.2248838096857071,
0.01240016333758831,
-0.3469337821006775,
-0.30713951587677,
0.03605560213327408,
0.5388545393943787,
0.5281920433044434,
-0.2068924903869629,
0.19705255329608917,
-0.08363346755504608,
0.3753913938999176,
-0.20720471441745758,
0.203576922416687,
-0.519801676273346,
0.16052013635635376,
-0.031872279942035675,
0.0952172502875328,
-0.2904581129550934,
-0.08570300042629242,
0.17649461328983307,
-0.4951189160346985,
0.2651636004447937,
0.20948225259780884,
1.254486322402954,
0.31662529706954956,
-0.4091022312641144,
-0.31000083684921265,
-0.4233386814594269,
0.6297322511672974,
-0.8456535339355469,
0.5030669569969177,
0.37220609188079834,
0.167036235332489,
-0.20058131217956543,
-0.9664997458457947,
-0.6225100159645081,
-0.22228839993476868,
-0.16166952252388,
0.07564020901918411,
-0.26592370867729187,
0.07732316851615906,
0.5031676292419434,
0.5013996362686157,
-0.5710583925247192,
-0.05989160016179085,
-0.548989474773407,
-0.5228332281112671,
0.3940122127532959,
0.06838365644216537,
0.3654094338417053,
-0.23420166969299316,
-0.471530944108963,
0.12006334215402603,
-0.14406946301460266,
0.14731921255588531,
0.058489616960287094,
0.10787460207939148,
-0.3379422724246979,
0.4336816072463989,
-0.17643532156944275,
0.5768835544586182,
0.25214114785194397,
-0.2193981558084488,
0.8511947989463806,
-0.22758926451206207,
-0.4092209041118622,
0.17005552351474762,
1.0524801015853882,
0.034050822257995605,
0.07416065037250519,
0.05285027623176575,
-0.0546993687748909,
0.02909884974360466,
0.21453186869621277,
-1.239616870880127,
-0.46621131896972656,
0.40963926911354065,
-0.4749819040298462,
-0.23328980803489685,
-0.2010098546743393,
-0.6570313572883606,
-0.02076728083193302,
-0.14706556499004364,
0.2736973464488983,
-0.6501848101615906,
-0.26591962575912476,
0.12790806591510773,
-0.10297253727912903,
0.22112323343753815,
0.00013007533561903983,
-0.7926033735275269,
0.3999163806438446,
0.28146833181381226,
0.9873921871185303,
0.030699556693434715,
-0.03564254567027092,
-0.10745256394147873,
0.01556302234530449,
0.006255500018596649,
0.6566986441612244,
-0.3257658779621124,
-0.3373253047466278,
-0.4151449501514435,
0.4706401526927948,
-0.1388443261384964,
-0.44110217690467834,
0.49661582708358765,
-0.2535267472267151,
0.2551594078540802,
-0.028685957193374634,
-0.6697273254394531,
-0.44385507702827454,
0.23906514048576355,
-0.6372959017753601,
0.7747932076454163,
0.19420385360717773,
-1.03642737865448,
0.40594273805618286,
-0.736555814743042,
-0.4244568943977356,
0.17906588315963745,
-0.19467997550964355,
-0.8390003442764282,
-0.10830612480640411,
0.15936361253261566,
0.5289720296859741,
-0.06903426349163055,
0.28929030895233154,
-0.44859778881073,
0.021576033905148506,
0.3142394423484802,
-0.2474457025527954,
1.0650629997253418,
0.21722978353500366,
-0.27498069405555725,
-0.2038377821445465,
-0.9387521147727966,
-0.25500497221946716,
0.45339062809944153,
-0.22563397884368896,
-0.3054606020450592,
-0.32877305150032043,
0.04073803871870041,
0.1722261607646942,
0.13503636419773102,
-0.8835147619247437,
0.2765922546386719,
-0.45636576414108276,
0.7321459650993347,
0.3725525438785553,
0.30654314160346985,
0.1400938481092453,
-0.2851015627384186,
0.4096967577934265,
0.28367364406585693,
0.20155124366283417,
0.02720266580581665,
-0.6254870295524597,
-0.43646538257598877,
-0.7263714671134949,
0.608922004699707,
0.6023660898208618,
-0.4967050850391388,
0.3382345139980316,
0.1259801685810089,
-0.538977324962616,
-0.6940016150474548,
-0.10822325199842453,
0.22640372812747955,
0.9289406538009644,
0.48973211646080017,
-0.33726760745048523,
-0.7079246640205383,
-1.024585247039795,
0.1735183596611023,
-0.19869284331798553,
-0.12369813770055771,
0.5603266358375549,
0.8839223980903625,
-0.7578107118606567,
0.7695842385292053,
-0.5821321606636047,
-0.2646990418434143,
0.062436092644929886,
0.1453154981136322,
0.5352513790130615,
0.7313082218170166,
0.6456384062767029,
-0.7237144112586975,
-0.2665003836154938,
-0.12548208236694336,
-0.8068495392799377,
-0.027942799031734467,
0.03179090470075607,
-0.17221680283546448,
0.11342733353376389,
0.2044418305158615,
-0.5863502621650696,
0.4751633405685425,
0.4571761190891266,
-0.3066406846046448,
0.5165643095970154,
-0.22039178013801575,
0.24409176409244537,
-1.3631620407104492,
0.3671475350856781,
0.03312087431550026,
-0.35757923126220703,
-0.5195882320404053,
-0.04108979180455208,
0.04304724186658859,
-0.19202877581119537,
-0.4868012070655823,
0.6091465950012207,
-0.5249669551849365,
0.18732944130897522,
-0.19791269302368164,
-0.31140297651290894,
0.27756375074386597,
0.4627484083175659,
0.2962024509906769,
0.372836709022522,
0.5228518843650818,
-0.6674584150314331,
0.24712783098220825,
0.6181837320327759,
-0.30350273847579956,
0.41749274730682373,
-0.7778559923171997,
0.025483068078756332,
0.06490492075681686,
0.31601330637931824,
-0.8965282440185547,
-0.3910886347293854,
0.5613607168197632,
-0.7113984823226929,
0.49770790338516235,
-0.09797631204128265,
-0.3440587818622589,
-0.6517539024353027,
0.14541274309158325,
0.4919505715370178,
0.6205098628997803,
-0.5309066772460938,
0.7672041058540344,
0.5958841443061829,
-0.10101412236690521,
-0.5528388023376465,
-0.9262069463729858,
-0.17498831450939178,
-0.28121456503868103,
-0.3559028208255768,
0.5724608898162842,
-0.21328435838222504,
0.03315800800919533,
0.007381978910416365,
-0.0706382617354393,
-0.3875793516635895,
0.14438678324222565,
0.385172575712204,
0.3295215964317322,
0.05087655037641525,
0.17155712842941284,
0.15557166934013367,
-0.16475611925125122,
0.13129398226737976,
0.04782651364803314,
0.4818562865257263,
-0.06244571506977081,
-0.06395414471626282,
-0.9256001710891724,
0.12552766501903534,
0.5305482149124146,
-0.11407157778739929,
0.7702798843383789,
0.5352075695991516,
-0.8218132257461548,
0.1750982105731964,
-0.6152828931808472,
-0.39461666345596313,
-0.4475204646587372,
0.21716918051242828,
-0.46742817759513855,
-0.5124852657318115,
0.7262463569641113,
-0.09582777321338654,
-0.06496187299489975,
0.5874316096305847,
0.615061342716217,
-0.04331621527671814,
0.9342622756958008,
0.4823589026927948,
-0.15654048323631287,
0.2154938280582428,
-0.3433832824230194,
0.10695841163396835,
-0.9207445979118347,
-0.4611016511917114,
-0.5350244045257568,
-0.14839038252830505,
-0.4400496482849121,
-0.18267923593521118,
0.10465601831674576,
-0.06822405755519867,
-0.37629377841949463,
0.49339058995246887,
-0.7928054332733154,
0.061658233404159546,
0.3282892107963562,
0.5053814053535461,
0.09508492052555084,
-0.07121451199054718,
-0.5608417987823486,
0.09913098067045212,
-0.5141523480415344,
-0.3608350157737732,
0.8063110113143921,
0.6578025817871094,
0.6264742612838745,
-0.09514366090297699,
0.8280951976776123,
0.11314583569765091,
0.33498165011405945,
-0.7277067303657532,
0.2700434625148773,
0.17207764089107513,
-0.823741614818573,
-0.02571314387023449,
-0.47125887870788574,
-1.1060690879821777,
-0.21852727234363556,
-0.40867942571640015,
-0.6956626176834106,
0.38246774673461914,
0.13892324268817902,
-0.4385598301887512,
0.3338903784751892,
-0.5240833759307861,
0.9080508947372437,
-0.363080769777298,
-0.11713585257530212,
0.10029210150241852,
-0.6372492909431458,
0.19140779972076416,
-0.11150135099887848,
0.30576178431510925,
-0.1265733391046524,
0.12274938821792603,
0.8249156475067139,
-0.4050005078315735,
0.7819374799728394,
-0.24020549654960632,
0.221085324883461,
0.24807871878147125,
-0.10054979473352432,
0.1784013956785202,
0.1680099219083786,
-0.13921566307544708,
0.8780883550643921,
0.16229447722434998,
-0.4056336581707001,
-0.17888402938842773,
0.6340894103050232,
-0.7769873738288879,
-0.22557052969932556,
-0.6875876784324646,
-0.3320639431476593,
0.17671512067317963,
0.33469218015670776,
0.4844275116920471,
0.4244222640991211,
-0.19872525334358215,
0.060357145965099335,
0.5297644734382629,
-0.397624135017395,
0.34347084164619446,
0.6049368381500244,
-0.17015162110328674,
-0.570502758026123,
0.5962927341461182,
0.016130242496728897,
-0.008817251771688461,
0.37116533517837524,
0.18718022108078003,
-0.405609667301178,
-0.4622366726398468,
-0.4733952283859253,
0.5359552502632141,
-0.3570486307144165,
-0.33258986473083496,
-1.0822323560714722,
-0.42694345116615295,
-0.5608370304107666,
0.05386127158999443,
-0.25918105244636536,
-0.03801211714744568,
-0.653446614742279,
-0.23295538127422333,
0.5876984000205994,
0.38533926010131836,
-0.05098680406808853,
0.374324768781662,
-0.6993611454963684,
0.16804039478302002,
-0.10597178339958191,
0.28474828600883484,
-0.1374630630016327,
-0.6604732871055603,
-0.06730251759290695,
0.05233525484800339,
-0.2647906243801117,
-1.0777342319488525,
0.7352733612060547,
0.12465035915374756,
0.6935688257217407,
0.49992674589157104,
-0.11163467913866043,
0.6164695024490356,
-0.6587086915969849,
0.5493835806846619,
0.28360509872436523,
-0.8150495290756226,
0.645612895488739,
-0.022050578147172928,
0.05952968820929527,
0.6287222504615784,
0.8027862310409546,
-0.3243046700954437,
-0.16390188038349152,
-0.8821434378623962,
-0.7956723570823669,
0.4362729489803314,
0.24020330607891083,
-0.1969892829656601,
-0.24945466220378876,
0.6966283917427063,
0.14382608234882355,
0.2488345205783844,
-0.9392642378807068,
-0.28937986493110657,
-0.1010546162724495,
-0.33265531063079834,
0.10663489997386932,
-0.1098455861210823,
0.02860003337264061,
-0.5343874096870422,
0.9579250812530518,
-0.019095629453659058,
0.4815903604030609,
0.5773198008537292,
-0.12865504622459412,
0.18147914111614227,
-0.01583673246204853,
0.2796182334423065,
0.2947411835193634,
-0.36062246561050415,
-0.2500351369380951,
0.1931539922952652,
-0.5038012266159058,
0.02469080500304699,
0.4046417772769928,
-0.07505808025598526,
0.12391089648008347,
0.1425410658121109,
0.8817408084869385,
0.135293647646904,
-0.5047430396080017,
0.41297659277915955,
-0.19144409894943237,
-0.38416004180908203,
-0.6283470392227173,
-0.1276741772890091,
0.04654078558087349,
0.22834140062332153,
0.16263756155967712,
-0.020461756736040115,
0.4828798770904541,
-0.38734862208366394,
0.44385668635368347,
0.5144509077072144,
-0.4698232114315033,
-0.23906196653842926,
0.85670006275177,
0.12470412254333496,
-0.3689117133617401,
0.8139894604682922,
-0.14033351838588715,
-0.4447951912879944,
0.9173619151115417,
0.5823070406913757,
0.6099764704704285,
-0.46681034564971924,
0.10684451460838318,
0.7598406076431274,
0.14588525891304016,
0.04430203139781952,
0.24231840670108795,
0.10423537343740463,
-0.7666884064674377,
-0.24557696282863617,
-0.9989332556724548,
-0.2941352128982544,
0.356739342212677,
-0.6621232628822327,
0.4609421193599701,
-0.5029947757720947,
-0.4173821806907654,
0.4701102674007416,
0.13166815042495728,
-0.7941592931747437,
0.419964998960495,
0.14324398338794708,
0.7897163033485413,
-0.9561793208122253,
0.7161589860916138,
0.7523193955421448,
-0.7471912503242493,
-0.8481969237327576,
-0.21906231343746185,
-0.08496689796447754,
-0.9795455932617188,
0.46200665831565857,
0.42992690205574036,
0.3227401673793793,
0.0776672437787056,
-0.4098169803619385,
-0.7828954458236694,
1.087504506111145,
0.08481927216053009,
-0.9313188791275024,
-0.0683814212679863,
-0.07872776687145233,
0.4857054650783539,
-0.4989895224571228,
0.6104989647865295,
0.5434384942054749,
0.2874172031879425,
0.152633398771286,
-0.908689558506012,
0.2259996235370636,
-0.2167988270521164,
-0.1615469604730606,
0.18780621886253357,
-0.6306546330451965,
0.7124326229095459,
-0.3234430253505707,
-0.10217273980379105,
0.0988132506608963,
0.45363062620162964,
0.2770753800868988,
0.5870581269264221,
0.45427247881889343,
0.8337938189506531,
0.9126141667366028,
0.05893658101558685,
1.019393801689148,
-0.5492972731590271,
0.5557810664176941,
0.7692593336105347,
-0.2443818897008896,
0.6148977875709534,
0.4190833270549774,
-0.27041417360305786,
0.8557403087615967,
0.9228901267051697,
-0.3080868124961853,
0.546104907989502,
0.1752561777830124,
-0.19451904296875,
0.01960381679236889,
0.03001115657389164,
-0.4478994905948639,
0.40837204456329346,
0.5399948954582214,
-0.7967103123664856,
0.10576450824737549,
0.3096335828304291,
0.030100999400019646,
-0.4039086103439331,
-0.23603814840316772,
0.8670692443847656,
0.17201213538646698,
-0.34809738397598267,
0.6496127247810364,
-0.19527874886989594,
0.6082776784896851,
-0.5082420706748962,
-0.1719382405281067,
0.142137348651886,
0.18202105164527893,
-0.23516568541526794,
-0.38616424798965454,
0.26435109972953796,
-0.23283043503761292,
-0.4045901894569397,
0.24488772451877594,
0.6540506482124329,
-0.3784277141094208,
-0.8069323301315308,
0.3763718605041504,
0.227045476436615,
0.6180213689804077,
0.07536496967077255,
-1.1448498964309692,
0.0002716084709390998,
0.13458193838596344,
-0.15965045988559723,
0.16078108549118042,
0.23794233798980713,
0.16765156388282776,
0.6418858766555786,
0.6745213866233826,
0.1125243753194809,
-0.4050722122192383,
-0.13093984127044678,
0.6371632814407349,
-0.6531379818916321,
-0.38527214527130127,
-0.9411644339561462,
0.3241361081600189,
-0.10610391199588776,
-0.14112146198749542,
0.42464780807495117,
0.7456703186035156,
0.7194076776504517,
-0.0380137674510479,
0.7388735413551331,
-0.16972202062606812,
0.7165695428848267,
-0.3375575542449951,
0.8797776103019714,
-0.655025839805603,
-0.045044947415590286,
-0.2556334435939789,
-0.5881238579750061,
-0.29797428846359253,
0.903553307056427,
-0.13777750730514526,
0.12253905832767487,
0.7179813981056213,
0.7067165374755859,
-0.1830388456583023,
-0.09758035093545914,
0.08353540301322937,
0.595547080039978,
0.20090876519680023,
0.41181910037994385,
0.21857950091362,
-0.49421006441116333,
0.19620001316070557,
-0.4871366620063782,
-0.5254213809967041,
-0.2815331518650055,
-0.9269852042198181,
-0.9512530565261841,
-0.4280577600002289,
-0.7002788186073303,
-0.6587294340133667,
-0.019035786390304565,
0.9359446167945862,
0.7930271029472351,
-1.0331742763519287,
0.2140580117702484,
-0.09680211544036865,
-0.20493517816066742,
-0.21443386375904083,
-0.22109277546405792,
0.31239113211631775,
0.09367240220308304,
-0.784184992313385,
0.030764730647206306,
0.11138510704040527,
0.24563783407211304,
0.000723563483916223,
0.1129937693476677,
-0.4631376564502716,
0.01443328894674778,
0.33675912022590637,
0.5948712229728699,
-0.6635209918022156,
-0.16694122552871704,
-0.1323358118534088,
-0.16142724454402924,
0.2919154167175293,
0.3405250310897827,
-0.8087664842605591,
0.3461451530456543,
0.2962758541107178,
0.6759771108627319,
0.6318182945251465,
-0.06760270893573761,
0.20439407229423523,
-0.3925747275352478,
0.16091977059841156,
0.2515254318714142,
0.8410658240318298,
0.408063679933548,
-0.7634373903274536,
0.5199016332626343,
0.5320465564727783,
-0.9233353137969971,
-0.753608226776123,
-0.028833776712417603,
-1.1793944835662842,
-0.2591797709465027,
0.9766037464141846,
-0.1530231237411499,
-0.5542728304862976,
-0.07761136442422867,
-0.28652599453926086,
0.6008644104003906,
-0.5639635324478149,
0.7206124067306519,
0.49771174788475037,
-0.3812192976474762,
-0.031948793679475784,
-0.5351159572601318,
0.31077834963798523,
0.13832761347293854,
-0.7134539484977722,
-0.44599276781082153,
0.38653048872947693,
0.8611744046211243,
0.19760636985301971,
0.7942629456520081,
-0.1849093735218048,
-0.01047813706099987,
0.037389833480119705,
0.4763311445713043,
-0.05699585750699043,
-0.14187341928482056,
-0.3437345623970032,
-0.11668378859758377,
-0.2462472915649414,
-0.4334350526332855
] |
gsdf/Counterfeit-V2.5 | gsdf | "2023-03-14T17:41:46Z" | 104,703 | 1,475 | diffusers | [
"diffusers",
"stable-diffusion",
"stable-diffusion-diffusers",
"text-to-image",
"license:creativeml-openrail-m",
"endpoints_compatible",
"has_space",
"diffusers:StableDiffusionPipeline",
"region:us"
] | text-to-image | "2023-02-02T14:02:11Z" | ---
license: creativeml-openrail-m
tags:
- stable-diffusion
- stable-diffusion-diffusers
- text-to-image
- diffusers
inference: true
---
# Update
V2.5 has been updated for ease of use as anime-style model.
I use this embedding for negative prompts.
https://huggingface.co/datasets/gsdf/EasyNegative
Share by-products
V2.1…Feeling of use similar to V2.0
V2.2…NSFW model
# Counterfeit-V2.5 e.g.
![sample1](https://huggingface.co/gsdf/Counterfeit-V2.5/resolve/main/V2.5_sample/sample01.png)
```
((masterpiece,best quality)),1girl, solo, animal ears, rabbit, barefoot, knees up, dress, sitting, rabbit ears, short sleeves, looking at viewer, grass, short hair, smile, white hair, puffy sleeves, outdoors, puffy short sleeves, bangs, on ground, full body, animal, white dress, sunlight, brown eyes, dappled sunlight, day, depth of field
Negative prompt: EasyNegative, extra fingers,fewer fingers,
Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 10, Size: 448x768, Denoising strength: 0.6, Hires upscale: 1.8, Hires upscaler: Latent
```
![sample2](https://huggingface.co/gsdf/Counterfeit-V2.5/resolve/main/V2.5_sample/sample02.png)
```
((masterpiece,best quality)),1girl, from below, solo, school uniform, serafuku, sky, cloud, black hair, skirt, sailor collar, looking at viewer, short hair, building, bangs, neckerchief, long sleeves, cloudy sky, power lines, shirt, cityscape, pleated skirt, scenery, blunt bangs, city, night, black sailor collar, closed mouth, black skirt, medium hair, school bag , holding bag
Negative prompt: EasyNegative, extra fingers,fewer fingers,
Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 10, Size: 832x512, Denoising strength: 0.6, Hires upscale: 1.8, Hires upscaler: Latent
```
![sample3](https://huggingface.co/gsdf/Counterfeit-V2.5/resolve/main/V2.5_sample/sample03.png)
```
((masterpiece,best quality)),2girls, black kimono, black legwear, black ribbon, black hair, cherry blossoms, day, flower, hair bun, hair ribbon, japanese clothes, kimono, long hair, looking at viewer, looking back, multiple girls, obi, outdoors, red eyes, red hair, ribbon, sandals, single hair bun, stairs, standing, statue, torii, tree, white kimono, yellow eyes
Negative prompt: EasyNegative, extra fingers,fewer fingers,
Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 10, Size: 640x960, Denoising strength: 0.58, Hires upscale: 1.8, Hires upscaler: Latent
```
![sample4](https://huggingface.co/gsdf/Counterfeit-V2.5/resolve/main/V2.5_sample/sample04.png)
```
((masterpiece,best quality)),1girl, bangs, blue eyes, blurry background, branch, brown hair, dappled sunlight, flower, from side, hair flower, hair ornament, japanese clothes, kimono, leaf, (maple leaf:1.9), obi, outdoors, sash, solo, sunlight, upper body
Negative prompt: EasyNegative, extra fingers,fewer fingers,
Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 10, Size: 864x512, Denoising strength: 0.58, Hires upscale: 1.8, Hires upscaler: Latent
```
![sample5](https://huggingface.co/gsdf/Counterfeit-V2.5/resolve/main/V2.5_sample/sample05.png)
```
((masterpiece,best quality))1girl, solo, black skirt, blue eyes, electric guitar, guitar, headphones, holding, holding plectrum, instrument, long hair, , music, one side up, pink hair, playing guiter, pleated skirt, black shirt, indoors
Negative prompt: EasyNegative, extra fingers,fewer fingers,
Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 10, Size: 864x512, Denoising strength: 0.58, Hires upscale: 1.8, Hires upscaler: Latent
```
![sample6](https://huggingface.co/gsdf/Counterfeit-V2.5/resolve/main/V2.5_sample/sample06.png)
```
((masterpiece,best quality)), 1girl, food, fruit, solo, skirt, shop, indoors, jacket, shopping, basket, jewelry, shirt, shelf, short hair, black hair, plaid skirt, black jacket, dutch angle, yellow eyes, looking at viewer
Negative prompt: EasyNegative, extra fingers,fewer fingers,
Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 10, Size: 864x512, Denoising strength: 0.58, Hires upscale: 1.8, Hires upscaler: Latent
```
| [
-0.7085145711898804,
-0.99311763048172,
0.20750661194324493,
0.23455733060836792,
-0.6101015210151672,
0.14762556552886963,
0.3781735897064209,
-0.7936205863952637,
0.886099636554718,
0.6458311080932617,
-0.8872440457344055,
-0.637644350528717,
-0.5914552211761475,
0.09474949538707733,
-0.22770249843597412,
0.8261343836784363,
0.13709647953510284,
0.18802885711193085,
-0.19041164219379425,
-0.21969415247440338,
-0.5195451378822327,
-0.46531397104263306,
-0.6946760416030884,
-0.2891189754009247,
-0.18837527930736542,
0.32641053199768066,
0.5544788837432861,
0.2596018612384796,
0.005405277479439974,
0.31970807909965515,
-0.07652780413627625,
-0.16286668181419373,
-0.4807310104370117,
-0.48927703499794006,
-0.10900186002254486,
-0.48232272267341614,
-0.8412363529205322,
0.6752027273178101,
0.17350856959819794,
0.10473962873220444,
0.07133311778306961,
0.39200884103775024,
-0.28590479493141174,
0.5053629875183105,
-0.10892698168754578,
-0.1056913211941719,
0.04905281215906143,
0.010407788679003716,
-0.413796067237854,
0.2150774747133255,
-0.19913403689861298,
-0.1985008716583252,
0.022669194266200066,
-0.9204726815223694,
0.3678039312362671,
-0.32420191168785095,
1.3833551406860352,
-0.09144056588411331,
-0.27593857049942017,
-0.07152089476585388,
-0.32938915491104126,
0.8791757225990295,
-0.7947999835014343,
0.3408811688423157,
0.15739122033119202,
0.39404383301734924,
-0.0356675423681736,
-0.8549131751060486,
-0.9915026426315308,
0.15254072844982147,
-0.5613895058631897,
0.4940897822380066,
-0.5375550985336304,
-0.48272398114204407,
0.6415999531745911,
0.6767008900642395,
-0.6008886098861694,
-0.21647043526172638,
-0.2949734032154083,
-0.40679609775543213,
0.7655148506164551,
-0.10237815976142883,
0.6658954620361328,
-0.2047312706708908,
-0.5515994429588318,
-0.2513752579689026,
-0.8899385929107666,
0.24496802687644958,
0.5309120416641235,
-0.08875198662281036,
-0.690178632736206,
0.349403440952301,
-0.2818987965583801,
0.7404165863990784,
0.42025160789489746,
-0.26094377040863037,
0.6915041208267212,
-0.5587311387062073,
0.013990561477839947,
-0.47767016291618347,
0.8951154947280884,
0.5330935120582581,
0.16987855732440948,
0.3371303081512451,
0.029079465195536613,
0.08625458180904388,
-0.047000784426927567,
-1.096641182899475,
-0.2808597683906555,
0.21028941869735718,
-0.6124652028083801,
-0.4871772825717926,
0.01423587091267109,
-1.0141537189483643,
-0.009485357441008091,
-0.4255814850330353,
0.706699550151825,
-0.33642470836639404,
-0.3875372111797333,
0.07489996403455734,
-0.3118014633655548,
0.2075711041688919,
0.45583638548851013,
-0.3493448495864868,
0.1836157888174057,
0.2780919671058655,
0.6114739179611206,
0.23927591741085052,
0.10744764655828476,
-0.2806485593318939,
-0.42428407073020935,
-0.5218227505683899,
0.7332070469856262,
-0.34281185269355774,
-0.40687891840934753,
-0.7028157114982605,
0.5823519229888916,
0.12849286198616028,
-0.5702748894691467,
0.5329576134681702,
-0.23593127727508545,
0.198316752910614,
-0.36464646458625793,
-0.1574055254459381,
-0.4347367286682129,
0.14024272561073303,
-0.9141423106193542,
0.897269606590271,
0.27713635563850403,
-0.6324674487113953,
0.2758387327194214,
-0.40599438548088074,
-0.3054664731025696,
0.005938767455518246,
-0.19627705216407776,
-0.6761811971664429,
-0.27664950489997864,
0.33812302350997925,
0.30004680156707764,
-0.11321914941072464,
-0.3519226312637329,
-0.5005739331245422,
-0.776263952255249,
0.4525207281112671,
-0.3213536739349365,
1.3274574279785156,
0.13324427604675293,
-0.7793266773223877,
-0.31308355927467346,
-1.0379961729049683,
-0.23921449482440948,
0.5830451846122742,
0.3737305700778961,
-0.38106751441955566,
-0.7851117849349976,
0.14001446962356567,
0.3449934422969818,
0.3151308000087738,
-0.6117390990257263,
0.08281896263360977,
-0.3778781592845917,
0.2015867829322815,
0.5648871660232544,
0.40602704882621765,
0.17040665447711945,
-0.8193570375442505,
0.9177799820899963,
0.17117735743522644,
0.17745746672153473,
-0.35446402430534363,
-0.6891656517982483,
-0.6051797270774841,
-0.5319136381149292,
0.1890897899866104,
0.6724025011062622,
-0.7684958577156067,
0.29259032011032104,
0.12324436753988266,
-1.0179448127746582,
-0.6081531047821045,
-0.029947437345981598,
0.5047407150268555,
0.47253215312957764,
0.29476141929626465,
-0.7302036881446838,
-0.48241761326789856,
-0.8563472032546997,
0.014709320850670338,
0.06828609853982925,
-0.015748463571071625,
0.6958820819854736,
0.4900176227092743,
-0.19426178932189941,
0.7036329507827759,
-0.5333421230316162,
-0.6008248925209045,
0.00462791882455349,
0.3603266179561615,
0.9738287925720215,
0.6620827317237854,
1.1310341358184814,
-0.9212408661842346,
-0.5884350538253784,
-0.41726574301719666,
-0.5964953899383545,
-0.27690988779067993,
-0.18694864213466644,
-0.3342386782169342,
0.25055035948753357,
0.35915204882621765,
-0.7217456698417664,
0.6065549254417419,
0.46129003167152405,
-0.49599963426589966,
0.6853532195091248,
-0.10791218280792236,
0.3844815194606781,
-1.3005708456039429,
0.40211042761802673,
0.1375373899936676,
-0.0764399990439415,
-0.6667611598968506,
0.5886304378509521,
-0.15959659218788147,
0.059917233884334564,
-0.5371572375297546,
0.9293341040611267,
-0.5146949291229248,
0.260738343000412,
-0.14957349002361298,
0.09290885180234909,
0.2658090889453888,
0.5653787851333618,
0.34976062178611755,
0.6818841099739075,
0.44296994805336,
-0.2440168559551239,
0.5603373646736145,
0.43877848982810974,
-0.4022054970264435,
1.2219712734222412,
-0.967132031917572,
0.3604452311992645,
-0.2273021638393402,
0.34539633989334106,
-1.0821224451065063,
-0.12163234502077103,
0.8030145168304443,
-0.6531245112419128,
0.47881633043289185,
-0.41555386781692505,
-0.243832528591156,
-0.625300943851471,
-0.4396710991859436,
0.32525983452796936,
0.727587103843689,
-0.5314523577690125,
0.6977894306182861,
0.05656765028834343,
0.2054177224636078,
-0.8053404688835144,
-0.8986396193504333,
-0.06933700293302536,
-0.14711740612983704,
-0.3168601393699646,
0.32283347845077515,
-0.2453112155199051,
-0.028543483465909958,
-0.16117800772190094,
-0.18513409793376923,
0.1297391802072525,
0.10902979224920273,
0.3228156864643097,
0.5096696615219116,
-0.14763563871383667,
-0.2851826548576355,
-0.0025977352634072304,
-0.2369726151227951,
-0.037353016436100006,
-0.06984801590442657,
0.5578061938285828,
-0.05816586688160896,
-0.3201180398464203,
-0.5816441774368286,
0.16562166810035706,
0.7083604335784912,
-0.048053108155727386,
0.22537806630134583,
1.1994400024414062,
-0.46708130836486816,
0.24095498025417328,
-0.7643008828163147,
-0.4041222035884857,
-0.4843420684337616,
-0.07731340825557709,
-0.7697169184684753,
-0.5487865805625916,
0.9945541024208069,
0.33675238490104675,
-0.4344691336154938,
0.591070294380188,
0.2819964587688446,
0.02215678058564663,
0.9344857335090637,
0.20504823327064514,
-0.07980675995349884,
0.31256988644599915,
-0.9198659658432007,
0.06567268818616867,
-0.7567101120948792,
-0.26034364104270935,
-0.005176077131181955,
-0.41270530223846436,
-0.7561741471290588,
-0.519489586353302,
0.25359898805618286,
0.2907346189022064,
-0.20015670359134674,
0.5948266983032227,
-0.5861241221427917,
0.45893004536628723,
0.7934354543685913,
0.6850665807723999,
0.2803550958633423,
0.06685023009777069,
-0.02184971235692501,
-0.41082456707954407,
-0.3284854590892792,
-0.25491246581077576,
1.1066734790802002,
0.24491092562675476,
0.49550899863243103,
0.24987472593784332,
0.6395919919013977,
0.16234071552753448,
0.2688213586807251,
-0.714369535446167,
0.6088523864746094,
-0.4616173803806305,
-0.9598686695098877,
-0.057709261775016785,
-0.1509159952402115,
-0.6087917685508728,
0.008383303880691528,
-0.5804079174995422,
-0.8749461770057678,
0.6793248057365417,
0.1388416439294815,
-0.4170549213886261,
0.11510653793811798,
-0.4656836688518524,
1.0830650329589844,
-0.036356184631586075,
-0.44095417857170105,
-0.0735161080956459,
-0.6099475622177124,
0.42318183183670044,
-0.14313411712646484,
0.15348662436008453,
-0.15026699006557465,
0.20332005620002747,
0.7174319624900818,
-0.37239107489585876,
1.1385910511016846,
-0.22201691567897797,
-0.1306867152452469,
0.6086685061454773,
0.17206111550331116,
0.6428205966949463,
0.29586261510849,
0.2431631088256836,
0.518807590007782,
0.19149035215377808,
-0.32083186507225037,
-0.3936850428581238,
0.6538645029067993,
-0.6894012093544006,
-0.6507555246353149,
-0.4253101050853729,
0.009138128720223904,
0.19686239957809448,
0.5420879125595093,
0.8701838850975037,
0.7791765332221985,
-0.17538703978061676,
0.15912404656410217,
0.5420984029769897,
-0.21997196972370148,
0.1685800999403,
0.5698509812355042,
-0.23579449951648712,
-0.7635327577590942,
0.9393946528434753,
0.33820804953575134,
0.25440481305122375,
0.3859279751777649,
0.39138132333755493,
-0.5843240022659302,
-0.04941175878047943,
-0.7797639966011047,
0.6205453276634216,
-0.7153196930885315,
-0.03147754818201065,
-0.6252787113189697,
-0.12451934069395065,
-0.6046252250671387,
-0.06435827910900116,
-0.29391807317733765,
-0.39540794491767883,
-0.6731938123703003,
-0.05514756217598915,
0.70887291431427,
0.40007516741752625,
-0.45280754566192627,
0.08952292054891586,
-0.6273516416549683,
0.7304636240005493,
0.6269000172615051,
0.3330877423286438,
0.028343254700303078,
-0.5716928839683533,
0.24659954011440277,
0.23949462175369263,
-0.24109119176864624,
-1.1346601247787476,
0.4216952323913574,
-0.13679474592208862,
0.6684733629226685,
0.643319308757782,
0.17774419486522675,
0.8295196294784546,
0.03539389371871948,
0.943717360496521,
0.2654925286769867,
-0.9812167286872864,
0.4124690890312195,
-0.6220889687538147,
0.28826379776000977,
0.5677526593208313,
0.4724981486797333,
-0.6964023113250732,
-0.30941781401634216,
-0.9784789085388184,
-0.8511094450950623,
0.6693369150161743,
0.09176409244537354,
0.2528558373451233,
0.05178522691130638,
0.31740719079971313,
0.1754646897315979,
0.3518841564655304,
-0.9226487874984741,
-0.8115018606185913,
-0.7602303624153137,
-0.15301749110221863,
-0.25930291414260864,
-0.21886619925498962,
-0.04809042811393738,
-0.41785508394241333,
0.8959174156188965,
-0.14253860712051392,
0.3655555844306946,
0.23951344192028046,
0.21266549825668335,
-0.14825564622879028,
0.02479320764541626,
0.6311982870101929,
0.6307182908058167,
-0.3591672480106354,
-0.14791899919509888,
0.08800557255744934,
-0.8239105343818665,
0.4047735631465912,
0.17658837139606476,
-0.6679361462593079,
0.24861246347427368,
0.15214292705059052,
0.7365344166755676,
-0.04037047177553177,
-0.4051838219165802,
0.801389753818512,
0.03788271173834801,
-0.1822787970304489,
-0.7547333836555481,
-0.07705926150083542,
-0.06744424998760223,
0.2400587499141693,
0.39486491680145264,
0.1098446473479271,
0.3692614436149597,
-0.5843030214309692,
0.41112881898880005,
0.4385470151901245,
-0.38721486926078796,
-0.4001728594303131,
0.7642708420753479,
-0.20860296487808228,
-0.08456671983003616,
0.36718109250068665,
-0.7246249914169312,
-0.5603388547897339,
0.8877360820770264,
0.65571129322052,
0.7924888134002686,
-0.21542948484420776,
0.631147027015686,
1.1266926527023315,
0.22723378241062164,
-0.07947872579097748,
0.5998151302337646,
-0.06358221173286438,
-0.5173697471618652,
-0.25950273871421814,
-0.5315937995910645,
-0.4263850450515747,
0.6331080794334412,
-0.4891137480735779,
0.464437335729599,
-0.5867734551429749,
-0.20766553282737732,
-0.32747477293014526,
0.28120410442352295,
-0.4926253855228424,
0.5198779702186584,
-0.1749780774116516,
0.822398841381073,
-1.1157779693603516,
0.6288238167762756,
0.5014944672584534,
-0.5717238187789917,
-1.0726628303527832,
-0.3850586414337158,
0.4259631931781769,
-0.5356346964836121,
0.41567593812942505,
0.362344890832901,
0.0747244656085968,
-0.050355322659015656,
-0.7181789875030518,
-0.9921292066574097,
1.1938773393630981,
-0.08821241557598114,
-0.485904335975647,
0.3493965268135071,
-0.06567083299160004,
0.7494345307350159,
-0.364435613155365,
0.48690226674079895,
0.6111099123954773,
0.398501455783844,
0.7148959040641785,
-0.4276968836784363,
0.5359079241752625,
-0.8545162677764893,
-0.1802159994840622,
-0.0037826932966709137,
-0.9205672740936279,
0.9680199027061462,
-0.1062944233417511,
-0.4595736563205719,
0.6400250196456909,
0.41644078493118286,
0.8398342132568359,
0.7215976119041443,
0.5796633362770081,
1.063315987586975,
0.39910075068473816,
-0.281004399061203,
0.6515863537788391,
-0.2749283015727997,
0.08868741989135742,
1.0796446800231934,
0.2097872942686081,
0.5417674779891968,
0.34310516715049744,
-0.26316478848457336,
0.8319842219352722,
0.7345216274261475,
-0.6138995885848999,
0.3572164475917816,
0.13979673385620117,
0.04018716514110565,
-0.18589164316654205,
-0.14807695150375366,
-0.4468673765659332,
0.45912644267082214,
0.1638248711824417,
-0.1929338127374649,
0.21326905488967896,
0.024737171828746796,
0.0896095335483551,
0.13234655559062958,
-0.05359548330307007,
0.6378071904182434,
0.28841397166252136,
-0.46714818477630615,
0.5014775395393372,
-0.26616567373275757,
0.844628095626831,
-0.33673617243766785,
-0.47758767008781433,
-0.4651259481906891,
0.12151742726564407,
-0.11103848367929459,
-0.6188966035842896,
0.2070285528898239,
-0.27056223154067993,
0.0422678217291832,
-0.1399088054895401,
0.7071434855461121,
-0.28934213519096375,
-0.6872393488883972,
0.2632231116294861,
0.1130642369389534,
0.3162737786769867,
0.024990767240524292,
-0.8782835602760315,
-0.3330918252468109,
-0.10830412060022354,
-0.25496795773506165,
-0.24550721049308777,
0.2690122723579407,
-0.09240274876356125,
0.20077131688594818,
0.7340421676635742,
0.31604599952697754,
-0.43438151478767395,
0.09830280393362045,
0.32358068227767944,
-0.5891337394714355,
-0.5696238279342651,
-0.6315330862998962,
0.5958986878395081,
-0.3492347300052643,
-0.3939419090747833,
0.9996344447135925,
0.3163889944553375,
1.13271164894104,
-0.4456208348274231,
0.5203577876091003,
-0.1213812306523323,
0.6936187744140625,
-0.5239824652671814,
1.0410066843032837,
-0.8297610282897949,
0.024714916944503784,
-0.8037457466125488,
-0.7632431983947754,
-0.10694943368434906,
0.7689456343650818,
-0.1473345160484314,
0.210988387465477,
0.15227803587913513,
1.009461760520935,
-0.031717102974653244,
-0.2879859209060669,
-0.05151175335049629,
0.24245570600032806,
0.0903974398970604,
0.5981081128120422,
0.7575044631958008,
-1.1590735912322998,
0.27068638801574707,
-0.8526835441589355,
-0.1631677746772766,
-0.392090767621994,
-0.886011004447937,
-1.0926827192306519,
-0.5702536702156067,
-0.594243049621582,
-0.6147242784500122,
-0.5718263983726501,
0.7244809865951538,
0.7936137318611145,
-0.9374980330467224,
-0.058754999190568924,
0.04492924362421036,
0.12925578653812408,
-0.501800537109375,
-0.2960820496082306,
0.1733553260564804,
0.8126043677330017,
-0.9244515895843506,
0.08175120502710342,
0.0032744714990258217,
0.9840222001075745,
0.0028019468300044537,
-0.11781783401966095,
0.04667532444000244,
0.1239369809627533,
0.39425358176231384,
0.276015043258667,
-0.7050238847732544,
-0.20754623413085938,
0.40663352608680725,
-0.00021792766347061843,
-0.15347418189048767,
0.38963252305984497,
-0.6595108509063721,
0.545928955078125,
0.7029695510864258,
-0.04496869072318077,
0.8818020224571228,
0.09783510863780975,
0.12566953897476196,
-0.746514081954956,
0.23677858710289001,
-0.08662435412406921,
0.39141353964805603,
0.334975928068161,
-0.5449777245521545,
0.6089416146278381,
1.002119779586792,
-0.03639595955610275,
-0.6803162097930908,
0.30808964371681213,
-1.3944261074066162,
-0.3542793393135071,
0.8608548045158386,
-0.07406696677207947,
-0.45578137040138245,
0.06539950519800186,
-0.342855304479599,
0.3226696252822876,
0.009482918307185173,
0.5912424921989441,
0.6483860611915588,
0.267638623714447,
-0.46598267555236816,
-0.0761798769235611,
0.4045006036758423,
0.260797917842865,
-0.5102023482322693,
-0.3927048444747925,
0.5334810018539429,
0.4271754324436188,
0.6648619174957275,
0.9683748483657837,
-0.6127758026123047,
0.6416367888450623,
0.2345856875181198,
0.048757269978523254,
-0.17368271946907043,
0.015348350629210472,
-0.4280717074871063,
-0.16338466107845306,
-0.31181642413139343,
-0.22468137741088867
] |
facebook/dpr-question_encoder-single-nq-base | facebook | "2022-12-21T15:20:10Z" | 104,535 | 20 | transformers | [
"transformers",
"pytorch",
"tf",
"dpr",
"feature-extraction",
"en",
"dataset:nq_open",
"arxiv:2004.04906",
"arxiv:1702.08734",
"arxiv:1910.09700",
"license:cc-by-nc-4.0",
"has_space",
"region:us"
] | feature-extraction | "2022-03-02T23:29:05Z" | ---
language: en
license: cc-by-nc-4.0
tags:
- dpr
datasets:
- nq_open
inference: false
---
# `dpr-question_encoder-single-nq-base`
## Table of Contents
- [Model Details](#model-details)
- [How To Get Started With the Model](#how-to-get-started-with-the-model)
- [Uses](#uses)
- [Risks, Limitations and Biases](#risks-limitations-and-biases)
- [Training](#training)
- [Evaluation](#evaluation-results)
- [Environmental Impact](#environmental-impact)
- [Technical Specifications](#technical-specifications)
- [Citation Information](#citation-information)
- [Model Card Authors](#model-card-authors)
## Model Details
**Model Description:** [Dense Passage Retrieval (DPR)](https://github.com/facebookresearch/DPR) is a set of tools and models for state-of-the-art open-domain Q&A research. `dpr-question_encoder-single-nq-base` is the question encoder trained using the [Natural Questions (NQ) dataset](https://huggingface.co/datasets/nq_open) ([Lee et al., 2019](https://aclanthology.org/P19-1612/); [Kwiatkowski et al., 2019](https://aclanthology.org/Q19-1026/)).
- **Developed by:** See [GitHub repo](https://github.com/facebookresearch/DPR) for model developers
- **Model Type:** BERT-based encoder
- **Language(s):** [CC-BY-NC-4.0](https://github.com/facebookresearch/DPR/blob/main/LICENSE), also see [Code of Conduct](https://github.com/facebookresearch/DPR/blob/main/CODE_OF_CONDUCT.md)
- **License:** English
- **Related Models:**
- [`dpr-ctx_encoder-single-nq-base`](https://huggingface.co/facebook/dpr-ctx_encoder-single-nq-base)
- [`dpr-reader-single-nq-base`](https://huggingface.co/facebook/dpr-reader-single-nq-base)
- [`dpr-ctx_encoder-multiset-base`](https://huggingface.co/facebook/dpr-ctx_encoder-multiset-base)
- [`dpr-question_encoder-multiset-base`](https://huggingface.co/facebook/dpr-question_encoder-multiset-base)
- [`dpr-reader-multiset-base`](https://huggingface.co/facebook/dpr-reader-multiset-base)
- **Resources for more information:**
- [Research Paper](https://arxiv.org/abs/2004.04906)
- [GitHub Repo](https://github.com/facebookresearch/DPR)
- [Hugging Face DPR docs](https://huggingface.co/docs/transformers/main/en/model_doc/dpr)
- [BERT Base Uncased Model Card](https://huggingface.co/bert-base-uncased)
## How to Get Started with the Model
Use the code below to get started with the model.
```python
from transformers import DPRQuestionEncoder, DPRQuestionEncoderTokenizer
tokenizer = DPRQuestionEncoderTokenizer.from_pretrained("facebook/dpr-question_encoder-single-nq-base")
model = DPRQuestionEncoder.from_pretrained("facebook/dpr-question_encoder-single-nq-base")
input_ids = tokenizer("Hello, is my dog cute ?", return_tensors="pt")["input_ids"]
embeddings = model(input_ids).pooler_output
```
## Uses
#### Direct Use
`dpr-question_encoder-single-nq-base`, [`dpr-ctx_encoder-single-nq-base`](https://huggingface.co/facebook/dpr-ctx_encoder-single-nq-base), and [`dpr-reader-single-nq-base`](https://huggingface.co/facebook/dpr-reader-single-nq-base) can be used for the task of open-domain question answering.
#### Misuse and Out-of-scope Use
The model should not be used to intentionally create hostile or alienating environments for people. In addition, the set of DPR models was not trained to be factual or true representations of people or events, and therefore using the models to generate such content is out-of-scope for the abilities of this model.
## Risks, Limitations and Biases
**CONTENT WARNING: Readers should be aware this section may contain content that is disturbing, offensive, and can propogate historical and current stereotypes.**
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al., 2021](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al., 2021](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.
## Training
#### Training Data
This model was trained using the [Natural Questions (NQ) dataset](https://huggingface.co/datasets/nq_open) ([Lee et al., 2019](https://aclanthology.org/P19-1612/); [Kwiatkowski et al., 2019](https://aclanthology.org/Q19-1026/)). The model authors write that:
> [The dataset] was designed for end-to-end question answering. The questions were mined from real Google search queries and the answers were spans in Wikipedia articles identified by annotators.
#### Training Procedure
The training procedure is described in the [associated paper](https://arxiv.org/pdf/2004.04906.pdf):
> Given a collection of M text passages, the goal of our dense passage retriever (DPR) is to index all the passages in a low-dimensional and continuous space, such that it can retrieve efficiently the top k passages relevant to the input question for the reader at run-time.
> Our dense passage retriever (DPR) uses a dense encoder EP(·) which maps any text passage to a d- dimensional real-valued vectors and builds an index for all the M passages that we will use for retrieval. At run-time, DPR applies a different encoder EQ(·) that maps the input question to a d-dimensional vector, and retrieves k passages of which vectors are the closest to the question vector.
The authors report that for encoders, they used two independent BERT ([Devlin et al., 2019](https://aclanthology.org/N19-1423/)) networks (base, un-cased) and use FAISS ([Johnson et al., 2017](https://arxiv.org/abs/1702.08734)) during inference time to encode and index passages. See the paper for further details on training, including encoders, inference, positive and negative passages, and in-batch negatives.
## Evaluation
The following evaluation information is extracted from the [associated paper](https://arxiv.org/pdf/2004.04906.pdf).
#### Testing Data, Factors and Metrics
The model developers report the performance of the model on five QA datasets, using the top-k accuracy (k ∈ {20, 100}). The datasets were [NQ](https://huggingface.co/datasets/nq_open), [TriviaQA](https://huggingface.co/datasets/trivia_qa), [WebQuestions (WQ)](https://huggingface.co/datasets/web_questions), [CuratedTREC (TREC)](https://huggingface.co/datasets/trec), and [SQuAD v1.1](https://huggingface.co/datasets/squad).
#### Results
| | Top 20 | | | | | Top 100| | | | |
|:----:|:------:|:---------:|:--:|:----:|:-----:|:------:|:---------:|:--:|:----:|:-----:|
| | NQ | TriviaQA | WQ | TREC | SQuAD | NQ | TriviaQA | WQ | TREC | SQuAD |
| | 78.4 | 79.4 |73.2| 79.8 | 63.2 | 85.4 | 85.0 |81.4| 89.1 | 77.2 |
## Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). We present the hardware type and based on the [associated paper](https://arxiv.org/abs/2004.04906).
- **Hardware Type:** 8 32GB GPUs
- **Hours used:** Unknown
- **Cloud Provider:** Unknown
- **Compute Region:** Unknown
- **Carbon Emitted:** Unknown
## Technical Specifications
See the [associated paper](https://arxiv.org/abs/2004.04906) for details on the modeling architecture, objective, compute infrastructure, and training details.
## Citation Information
```bibtex
@inproceedings{karpukhin-etal-2020-dense,
title = "Dense Passage Retrieval for Open-Domain Question Answering",
author = "Karpukhin, Vladimir and Oguz, Barlas and Min, Sewon and Lewis, Patrick and Wu, Ledell and Edunov, Sergey and Chen, Danqi and Yih, Wen-tau",
booktitle = "Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)",
month = nov,
year = "2020",
address = "Online",
publisher = "Association for Computational Linguistics",
url = "https://www.aclweb.org/anthology/2020.emnlp-main.550",
doi = "10.18653/v1/2020.emnlp-main.550",
pages = "6769--6781",
}
```
## Model Card Authors
This model card was written by the team at Hugging Face. | [
-0.586880087852478,
-0.9441387057304382,
0.2977111339569092,
0.14997537434101105,
-0.13394564390182495,
-0.03902880474925041,
-0.10445038229227066,
-0.2708425521850586,
0.06241520121693611,
0.418156236410141,
-0.6881569027900696,
-0.38881054520606995,
-0.4510936439037323,
0.27942541241645813,
-0.3632228374481201,
0.8613712191581726,
0.042459722608327866,
0.037307336926460266,
-0.4203176498413086,
-0.10432790964841843,
-0.11735275387763977,
-0.6513913869857788,
-0.6043573021888733,
-0.05466877669095993,
0.30007004737854004,
0.0795527845621109,
0.6252558827400208,
0.3609734773635864,
0.5603354573249817,
0.2696557343006134,
-0.40063637495040894,
0.15903151035308838,
-0.5651834011077881,
-0.1726514995098114,
0.056555118411779404,
-0.19993063807487488,
-0.46258556842803955,
-0.03932677581906319,
0.698394238948822,
0.5417097210884094,
-0.0918479636311531,
0.29247817397117615,
0.07764347642660141,
0.6963761448860168,
-0.44701486825942993,
-0.007993814535439014,
-0.4344962239265442,
0.0379507839679718,
0.1598794013261795,
-0.034398797899484634,
-0.3054831027984619,
-0.5067552328109741,
0.014572580344974995,
-0.5127066373825073,
0.2836575210094452,
0.056227244436740875,
1.0955532789230347,
0.29354792833328247,
-0.3483121991157532,
-0.2844279110431671,
-0.4473670721054077,
0.7187005877494812,
-0.9098286628723145,
0.5159938335418701,
0.3855924904346466,
0.19080068171024323,
-0.001961171394214034,
-0.6566447019577026,
-0.9462711811065674,
-0.14206597208976746,
-0.14762665331363678,
0.1899920105934143,
-0.1525695025920868,
0.05160022899508476,
0.3948465883731842,
0.5086360573768616,
-0.7157732844352722,
-0.07952957600355148,
-0.37172606587409973,
-0.07726956903934479,
0.9166043996810913,
0.20422706007957458,
0.2389996498823166,
-0.46321552991867065,
-0.3578870892524719,
-0.2949366271495819,
-0.25832054018974304,
0.3293687403202057,
0.3323226273059845,
0.25953567028045654,
-0.31893208622932434,
0.5252718329429626,
-0.20389850437641144,
0.7353940010070801,
0.33612725138664246,
-0.14452967047691345,
0.5164363384246826,
-0.5968109369277954,
-0.061814043670892715,
-0.25056344270706177,
0.95634925365448,
0.33201926946640015,
0.1279107630252838,
-0.046282779425382614,
-0.1722394973039627,
-0.2890082597732544,
0.11756537109613419,
-0.9678091406822205,
-0.09999167174100876,
0.5560386776924133,
-0.40272778272628784,
-0.1438828706741333,
0.0769067257642746,
-0.8395788073539734,
-0.1633104383945465,
-0.0616719089448452,
0.44298815727233887,
-0.4883570671081543,
-0.39856281876564026,
0.42936971783638,
-0.34660202264785767,
0.5098791122436523,
0.21770423650741577,
-0.5970935225486755,
0.3455645740032196,
0.4659670293331146,
0.6608379483222961,
-0.006253472063690424,
-0.08569212257862091,
-0.11609984934329987,
-0.27184587717056274,
-0.029705364257097244,
0.5241015553474426,
-0.40845605731010437,
-0.20104606449604034,
-0.01771927811205387,
0.17475323379039764,
-0.21488112211227417,
-0.4233458936214447,
0.6151437163352966,
-0.6512876152992249,
0.37666410207748413,
-0.5377435088157654,
-0.6767851710319519,
-0.23418428003787994,
0.4513446092605591,
-0.711655855178833,
1.2326037883758545,
0.11840181797742844,
-0.9124544262886047,
0.09634245932102203,
-0.5663579702377319,
-0.11120688915252686,
-0.042058173567056656,
-0.07200948148965836,
-0.3920845687389374,
-0.27354541420936584,
0.481232613325119,
0.43774986267089844,
-0.2564968764781952,
0.2795742154121399,
-0.29566410183906555,
-0.47651851177215576,
0.3832739591598511,
-0.28748396039009094,
1.2672024965286255,
0.07946551591157913,
-0.16785894334316254,
-0.2482980638742447,
-0.6718714833259583,
0.030161697417497635,
0.4467758238315582,
-0.32508888840675354,
-0.08668743818998337,
-0.24912084639072418,
0.03965172544121742,
0.3426901400089264,
0.3613247275352478,
-0.8467768430709839,
0.0771191418170929,
-0.3017761707305908,
0.49424946308135986,
0.5556203722953796,
0.2586097717285156,
0.40039339661598206,
-0.4231943190097809,
0.5915289521217346,
0.038147933781147,
0.33391615748405457,
0.11812599003314972,
-0.5486602783203125,
-0.6597478985786438,
-0.19248074293136597,
0.3696599006652832,
0.6201827526092529,
-0.7756809592247009,
0.5867600440979004,
-0.30115535855293274,
-0.5961064696311951,
-0.6309865713119507,
-0.09061785042285919,
0.47697409987449646,
0.5638441443443298,
0.47826284170150757,
-0.08788809180259705,
-0.4547968804836273,
-0.7954438328742981,
-0.0059083616361021996,
-0.19124074280261993,
0.08830569684505463,
0.6421734690666199,
0.791630744934082,
-0.07064274698495865,
0.928555965423584,
-0.5738543272018433,
-0.0953926295042038,
-0.36933597922325134,
-0.20475974678993225,
0.2796413004398346,
0.4755820631980896,
0.6875872611999512,
-1.0723711252212524,
-0.5489785671234131,
-0.48275095224380493,
-0.7757043242454529,
0.2048148810863495,
-0.01371089182794094,
-0.24073410034179688,
0.14720289409160614,
0.40981432795524597,
-0.699549674987793,
0.3409501910209656,
0.34554168581962585,
-0.2918289601802826,
0.44577792286872864,
0.042285799980163574,
0.1673799306154251,
-0.9923849105834961,
0.19341710209846497,
0.023630162701010704,
0.14289918541908264,
-0.5964380502700806,
0.03331907466053963,
0.1022917777299881,
-0.08486789464950562,
-0.5026573538780212,
0.6835435032844543,
-0.32332268357276917,
0.07165541499853134,
0.16117660701274872,
0.2317866086959839,
0.3842177987098694,
0.789171040058136,
0.07328426092863083,
0.6819087266921997,
0.2878551781177521,
-0.71300208568573,
0.2055789828300476,
0.7488657832145691,
-0.24220040440559387,
0.254605770111084,
-0.8536084294319153,
0.36405229568481445,
-0.43764451146125793,
0.30308452248573303,
-1.0303611755371094,
-0.0734378769993782,
0.30928510427474976,
-0.7885904908180237,
0.2743380069732666,
-0.00830836407840252,
-0.69272780418396,
-0.6279804110527039,
-0.23975405097007751,
0.39524489641189575,
0.5470518469810486,
-0.4359203577041626,
0.40495288372039795,
0.3311988115310669,
-0.025267474353313446,
-0.829774796962738,
-0.7732819318771362,
-0.2820892333984375,
0.0020676616113632917,
-0.7276560068130493,
0.514113187789917,
-0.28617385029792786,
-0.03979649767279625,
0.2527979612350464,
0.03170716390013695,
-0.38208988308906555,
-0.011808296665549278,
0.013876531273126602,
0.12413547933101654,
-0.07382864505052567,
0.26601362228393555,
-0.09129617363214493,
0.29442647099494934,
0.12164855003356934,
0.1351725459098816,
0.5685393214225769,
-0.24376441538333893,
-0.18897853791713715,
-0.3193131983280182,
0.2983109652996063,
0.2373594045639038,
-0.4097103774547577,
0.8337127566337585,
0.6180779337882996,
-0.4557231664657593,
-0.07158596068620682,
-0.6140694618225098,
-0.37405213713645935,
-0.487211674451828,
0.5007498860359192,
-0.2511390745639801,
-1.051730990409851,
0.7025898694992065,
0.42828866839408875,
0.07982242107391357,
0.6071628332138062,
0.3670910894870758,
-0.11304280161857605,
0.9541981220245361,
0.4537426233291626,
0.09212429076433182,
0.4870334267616272,
-0.4919375777244568,
0.19387735426425934,
-0.8785407543182373,
-0.3185707628726959,
-0.4626029431819916,
-0.32351991534233093,
-0.5903368592262268,
-0.44543272256851196,
0.2221098244190216,
0.10602045059204102,
-0.5293620228767395,
0.28508076071739197,
-0.6790051460266113,
0.21680742502212524,
0.5170026421546936,
0.3507126569747925,
0.10124582797288895,
-0.07039007544517517,
-0.03504141420125961,
-0.11459480971097946,
-0.8947435021400452,
-0.34486716985702515,
1.1518583297729492,
0.46007269620895386,
0.5211014747619629,
0.010190672241151333,
0.7718711495399475,
0.13441942632198334,
-0.0528341606259346,
-0.4853372573852539,
0.7244157195091248,
-0.13995923101902008,
-0.9606174826622009,
-0.34546053409576416,
-0.5581836700439453,
-0.8645921349525452,
0.1528831422328949,
-0.1723092496395111,
-0.47069627046585083,
0.5600242018699646,
-0.11057417094707489,
-0.6371427178382874,
0.36623674631118774,
-0.44274476170539856,
0.99923175573349,
-0.4357900321483612,
-0.3813796639442444,
0.13975049555301666,
-0.650095522403717,
0.3369126617908478,
0.10981611162424088,
0.05694907158613205,
-0.035843316465616226,
-0.05287393182516098,
0.8573176860809326,
-0.19690124690532684,
0.8211509585380554,
-0.4224455654621124,
0.14584091305732727,
0.5881062746047974,
-0.2851887345314026,
0.21329323947429657,
0.13373583555221558,
-0.23976759612560272,
0.2969471514225006,
0.17988590896129608,
-0.3507939875125885,
-0.5362440347671509,
0.33449023962020874,
-0.9260153770446777,
-0.3220481872558594,
-0.48795652389526367,
-0.4211067259311676,
-0.0865057110786438,
0.09443123638629913,
0.25933584570884705,
0.49696600437164307,
-0.21830721199512482,
0.3130379617214203,
0.9262377023696899,
-0.6916579604148865,
0.3079516589641571,
0.5250709652900696,
-0.08422037214040756,
-0.4341719448566437,
0.6882280707359314,
0.15667927265167236,
0.18736229836940765,
0.6090665459632874,
-0.03445963189005852,
-0.5388798117637634,
-0.5242676138877869,
-0.41051992774009705,
0.34916120767593384,
-0.7799028158187866,
-0.2747751772403717,
-0.9561651349067688,
-0.5930187106132507,
-0.5988749265670776,
0.16516150534152985,
-0.3858921527862549,
-0.372485488653183,
-0.37534335255622864,
-0.16479499638080597,
0.5273080468177795,
0.4368104040622711,
0.060472939163446426,
0.13321085274219513,
-0.6929756999015808,
0.4131868779659271,
0.21969163417816162,
0.3140551745891571,
-0.02586757391691208,
-0.7845699787139893,
-0.23205280303955078,
0.3249567151069641,
-0.28035905957221985,
-0.8371159434318542,
0.4564899504184723,
0.2929122745990753,
0.6902251243591309,
0.04944874718785286,
0.4318568706512451,
0.5755534172058105,
-0.17850080132484436,
0.8527457118034363,
-0.2196713387966156,
-0.5478763580322266,
0.48631247878074646,
-0.24757349491119385,
0.23927482962608337,
0.7716891765594482,
0.6886914968490601,
-0.41223159432411194,
-0.1131400391459465,
-0.5876662135124207,
-0.8495237827301025,
0.6319333910942078,
0.19243964552879333,
0.23282378911972046,
-0.2941194176673889,
0.6256254315376282,
-0.17075754702091217,
0.3525506258010864,
-0.877405047416687,
-0.29668164253234863,
-0.22728843986988068,
-0.2413821816444397,
0.05298548936843872,
-0.30079516768455505,
0.029107151553034782,
-0.5554057955741882,
0.6466327905654907,
-0.06012692674994469,
0.7267791032791138,
0.6339951157569885,
-0.1759125292301178,
0.12004029005765915,
0.16516906023025513,
0.2905310094356537,
0.45700928568840027,
-0.5829168558120728,
-0.35995426774024963,
0.0759730339050293,
-0.503397524356842,
-0.04636891186237335,
0.3969266712665558,
-0.3448375165462494,
-0.01434470433741808,
0.23002371191978455,
0.8203917145729065,
0.12672582268714905,
-0.7641360759735107,
0.6751733422279358,
-0.21985316276550293,
-0.523724377155304,
-0.5558938980102539,
-0.2144925743341446,
0.015703905373811722,
0.2627975344657898,
0.3305954933166504,
-0.30093806982040405,
0.20999716222286224,
-0.3946506381034851,
0.23646783828735352,
0.38581663370132446,
-0.3709035813808441,
-0.0987192690372467,
0.6431403160095215,
0.16117611527442932,
-0.055145569145679474,
0.9074931144714355,
-0.5400553345680237,
-0.6761056184768677,
0.8005733489990234,
0.28141453862190247,
0.8208634853363037,
0.054395098239183426,
0.2806098461151123,
0.8646754026412964,
0.49900785088539124,
0.03766607493162155,
0.6190032362937927,
0.0765441283583641,
-0.9687479734420776,
-0.34185490012168884,
-0.806412398815155,
-0.3370889723300934,
0.14487797021865845,
-0.8018509745597839,
-0.001136898878030479,
-0.434903621673584,
-0.22220046818256378,
-0.19350017607212067,
0.21757985651493073,
-0.9192903637886047,
0.21578219532966614,
0.05613096058368683,
1.0168476104736328,
-0.7082074284553528,
0.49351781606674194,
0.7093963623046875,
-0.776740550994873,
-0.733633816242218,
-0.02729230746626854,
-0.23662592470645905,
-0.6715607643127441,
0.6197431683540344,
0.21647007763385773,
0.36435115337371826,
0.11865822970867157,
-0.6240524649620056,
-0.9356293678283691,
1.1779849529266357,
0.1980508267879486,
-0.45260462164878845,
-0.1693124920129776,
0.3188060224056244,
0.534311830997467,
-0.3228985369205475,
0.4889200031757355,
0.4266056716442108,
0.36648041009902954,
0.05190200358629227,
-0.8311898708343506,
0.28030702471733093,
-0.49153465032577515,
-0.19648654758930206,
-0.11655508726835251,
-0.8760572075843811,
1.0579371452331543,
-0.1856546700000763,
-0.2604622542858124,
-0.043500471860170364,
0.4810689389705658,
0.3670162260532379,
0.2322206199169159,
0.4170500934123993,
0.7584170699119568,
0.7126474380493164,
-0.15280663967132568,
1.1490726470947266,
-0.40922117233276367,
0.3670830726623535,
0.9037083387374878,
-0.12138016521930695,
0.9926023483276367,
0.2716144621372223,
-0.3349541127681732,
0.4978727102279663,
0.7503930330276489,
-0.15834784507751465,
0.5327518582344055,
0.08059801906347275,
-0.017624931409955025,
-0.27573975920677185,
-0.07564800977706909,
-0.5065784454345703,
0.36805832386016846,
0.21394027769565582,
-0.3390647768974304,
0.026983410120010376,
-0.030204104259610176,
-0.14630302786827087,
0.029620934277772903,
-0.1543152779340744,
0.7412120699882507,
0.03666461631655693,
-0.5714688301086426,
0.8633454442024231,
-0.10658945888280869,
0.8239488005638123,
-0.5194896459579468,
0.007027431391179562,
-0.30826178193092346,
0.24448874592781067,
-0.10859834402799606,
-0.847220778465271,
0.22434327006340027,
-0.11240631341934204,
-0.18861091136932373,
-0.2548758387565613,
0.6406804919242859,
-0.3848155438899994,
-0.6021353602409363,
0.3755127191543579,
0.682806670665741,
0.12902820110321045,
-0.27038145065307617,
-1.1621273756027222,
0.008866488002240658,
0.0362795889377594,
-0.3697676956653595,
0.2810693085193634,
0.3607494831085205,
0.2757045328617096,
0.6990619897842407,
0.42877158522605896,
-0.33193618059158325,
0.14361490309238434,
0.049236103892326355,
0.9954095482826233,
-0.7804691195487976,
-0.3288840055465698,
-0.5671756267547607,
0.658032238483429,
-0.17223834991455078,
-0.4175480902194977,
0.9029870629310608,
0.6213077306747437,
0.9968672394752502,
0.04154621437191963,
0.8272073864936829,
-0.2763408124446869,
0.6102300882339478,
-0.2978237569332123,
0.6922808885574341,
-0.7949701547622681,
0.09275788068771362,
-0.2776980400085449,
-0.7655037045478821,
0.08369995653629303,
0.6214262247085571,
-0.2818455100059509,
0.35814619064331055,
0.535804271697998,
0.8988823294639587,
0.10701674222946167,
0.09156104922294617,
0.002384871244430542,
0.16893041133880615,
0.08848641812801361,
0.6574997305870056,
0.6854199767112732,
-0.7945882678031921,
0.7072644829750061,
-0.6140891313552856,
-0.11075210571289062,
-0.1042102798819542,
-0.5544313192367554,
-0.9790342450141907,
-0.6012029051780701,
-0.49239519238471985,
-0.4979035258293152,
0.052600011229515076,
0.7136127352714539,
0.4572834372520447,
-0.6511410474777222,
-0.09440384060144424,
0.003306441940367222,
0.0018398475367575884,
-0.2935509979724884,
-0.27313897013664246,
0.42759597301483154,
-0.03337835520505905,
-0.6795318722724915,
0.08129246532917023,
-0.15383204817771912,
0.024935616180300713,
-0.27416735887527466,
-0.2535325884819031,
-0.5782467722892761,
0.062386978417634964,
0.452983558177948,
0.2517032325267792,
-0.6150891780853271,
-0.1836816668510437,
0.5218605995178223,
-0.15820187330245972,
0.04479636251926422,
0.20655621588230133,
-0.5721692442893982,
0.293632835149765,
0.6785988807678223,
0.7772879004478455,
0.655766487121582,
0.13325168192386627,
0.25544774532318115,
-0.7349562644958496,
0.032567098736763,
0.5692806243896484,
0.2395765483379364,
0.4259062707424164,
-0.4532676041126251,
0.5667843818664551,
0.17642271518707275,
-0.6422114968299866,
-0.9254094362258911,
-0.05586285889148712,
-1.1003084182739258,
-0.24343489110469818,
1.2981380224227905,
-0.07817158848047256,
-0.3063720166683197,
-0.03190105780959129,
-0.11758183687925339,
0.224143385887146,
-0.43920713663101196,
0.5073387622833252,
0.6259939074516296,
-0.10753508657217026,
-0.40633586049079895,
-0.7444283962249756,
0.41980624198913574,
0.28188902139663696,
-0.5733270049095154,
-0.19821618497371674,
0.38028407096862793,
0.31753280758857727,
0.062163203954696655,
0.8602476716041565,
-0.22218111157417297,
0.14857596158981323,
0.13699451088905334,
0.3029528558254242,
-0.1789160966873169,
0.07651986181735992,
-0.3578947186470032,
0.07876347750425339,
-0.26098018884658813,
-0.17561843991279602
] |
sentence-transformers/stsb-xlm-r-multilingual | sentence-transformers | "2022-06-15T21:42:42Z" | 103,424 | 20 | sentence-transformers | [
"sentence-transformers",
"pytorch",
"tf",
"xlm-roberta",
"feature-extraction",
"sentence-similarity",
"transformers",
"arxiv:1908.10084",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"region:us"
] | sentence-similarity | "2022-03-02T23:29:05Z" | ---
pipeline_tag: sentence-similarity
license: apache-2.0
tags:
- sentence-transformers
- feature-extraction
- sentence-similarity
- transformers
---
# sentence-transformers/stsb-xlm-r-multilingual
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
## Usage (Sentence-Transformers)
Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:
```
pip install -U sentence-transformers
```
Then you can use the model like this:
```python
from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]
model = SentenceTransformer('sentence-transformers/stsb-xlm-r-multilingual')
embeddings = model.encode(sentences)
print(embeddings)
```
## Usage (HuggingFace Transformers)
Without [sentence-transformers](https://www.SBERT.net), you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
```python
from transformers import AutoTokenizer, AutoModel
import torch
#Mean Pooling - Take attention mask into account for correct averaging
def mean_pooling(model_output, attention_mask):
token_embeddings = model_output[0] #First element of model_output contains all token embeddings
input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()
return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9)
# Sentences we want sentence embeddings for
sentences = ['This is an example sentence', 'Each sentence is converted']
# Load model from HuggingFace Hub
tokenizer = AutoTokenizer.from_pretrained('sentence-transformers/stsb-xlm-r-multilingual')
model = AutoModel.from_pretrained('sentence-transformers/stsb-xlm-r-multilingual')
# Tokenize sentences
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
# Compute token embeddings
with torch.no_grad():
model_output = model(**encoded_input)
# Perform pooling. In this case, max pooling.
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
print("Sentence embeddings:")
print(sentence_embeddings)
```
## Evaluation Results
For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name=sentence-transformers/stsb-xlm-r-multilingual)
## Full Model Architecture
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False})
)
```
## Citing & Authors
This model was trained by [sentence-transformers](https://www.sbert.net/).
If you find this model helpful, feel free to cite our publication [Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks](https://arxiv.org/abs/1908.10084):
```bibtex
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "http://arxiv.org/abs/1908.10084",
}
``` | [
-0.27075543999671936,
-0.7713855504989624,
0.3009950816631317,
0.4366309642791748,
-0.28281116485595703,
-0.19649352133274078,
-0.35122957825660706,
-0.07974988222122192,
0.184105783700943,
0.451156347990036,
-0.5379956960678101,
-0.5201292634010315,
-0.7084618806838989,
0.21204322576522827,
-0.42040953040122986,
0.8102631568908691,
-0.2980318069458008,
0.032050225883722305,
-0.2570744752883911,
-0.29453331232070923,
-0.3339918553829193,
-0.5271172523498535,
-0.3360436260700226,
-0.2062782645225525,
0.2845071852207184,
0.2398780882358551,
0.5106608271598816,
0.4607379734516144,
0.29279106855392456,
0.4590177834033966,
-0.017447667196393013,
0.2603275775909424,
-0.28751063346862793,
-0.08762431889772415,
0.09858117997646332,
-0.3941505551338196,
-0.059878312051296234,
0.13847115635871887,
0.6981173753738403,
0.5164380669593811,
-0.1216745674610138,
0.06831910461187363,
-0.02935866080224514,
0.32277804613113403,
-0.3663203716278076,
0.41269806027412415,
-0.5196682810783386,
0.2455659955739975,
0.12202819436788559,
-0.014096577651798725,
-0.6407263875007629,
-0.14163687825202942,
0.14554578065872192,
-0.3649480640888214,
0.12563860416412354,
0.27738526463508606,
1.1146913766860962,
0.2880426347255707,
-0.37903454899787903,
-0.2963491976261139,
-0.3503885269165039,
0.9325393438339233,
-0.8031318187713623,
0.3550433814525604,
0.15589290857315063,
-0.08652181178331375,
0.08486287295818329,
-0.9372837543487549,
-0.7361661791801453,
-0.1319734752178192,
-0.5167962908744812,
0.28594279289245605,
-0.36388924717903137,
-0.07865894585847855,
0.15948282182216644,
0.19812951982021332,
-0.786666750907898,
-0.10560382902622223,
-0.4717295169830322,
-0.21575342118740082,
0.4835274815559387,
0.040614161640405655,
0.48584917187690735,
-0.5829219222068787,
-0.5566619038581848,
-0.37429383397102356,
-0.1526297926902771,
-0.0467030368745327,
0.14443786442279816,
0.3340242803096771,
-0.4114310145378113,
0.8102092742919922,
0.1406324803829193,
0.5670616626739502,
-0.1164051741361618,
0.26034554839134216,
0.6762634515762329,
-0.4356808364391327,
-0.18664602935314178,
-0.019783612340688705,
1.1321557760238647,
0.2833681106567383,
0.28602221608161926,
-0.10354575514793396,
-0.14172211289405823,
0.08408655226230621,
0.19329816102981567,
-0.8320944309234619,
-0.2552374005317688,
0.24291998147964478,
-0.38139134645462036,
-0.1376112550497055,
0.2092212587594986,
-0.6645174026489258,
0.09458804875612259,
-0.06485667824745178,
0.7047384977340698,
-0.6688430905342102,
-0.013059190474450588,
0.2619360387325287,
-0.19341503083705902,
0.10551038384437561,
-0.3890838027000427,
-0.6458931565284729,
0.246480330824852,
0.22491483390331268,
1.065255045890808,
0.01175316795706749,
-0.583117663860321,
-0.4134707450866699,
-0.1104251965880394,
-0.04223534092307091,
0.7789915800094604,
-0.3705197274684906,
-0.13081666827201843,
0.1407206952571869,
0.31494203209877014,
-0.7086222767829895,
-0.3735199570655823,
0.5951200127601624,
-0.29654547572135925,
0.659099817276001,
0.17856326699256897,
-0.8004050850868225,
-0.21940994262695312,
0.12101113796234131,
-0.5292457342147827,
1.103150486946106,
0.20273064076900482,
-0.8706870675086975,
0.07267308980226517,
-0.799580454826355,
-0.3164883553981781,
-0.11410947144031525,
0.007291067857295275,
-0.7326350808143616,
-0.005641913041472435,
0.46778514981269836,
0.7125844955444336,
0.24148502945899963,
0.30954709649086,
-0.2148938775062561,
-0.3066846430301666,
0.4279194474220276,
-0.20407532155513763,
1.018663763999939,
0.18347395956516266,
-0.30918458104133606,
0.28434792160987854,
-0.4910413920879364,
-0.02329683117568493,
0.24638088047504425,
-0.17415298521518707,
-0.21955877542495728,
-0.09914381802082062,
0.3707769513130188,
0.3334820866584778,
0.16285239160060883,
-0.6490508317947388,
0.0979641005396843,
-0.5409255027770996,
0.8646748065948486,
0.5449430346488953,
-0.06422115862369537,
0.5757429599761963,
-0.2256646752357483,
0.3144644796848297,
0.44617414474487305,
-0.10550618916749954,
-0.38450637459754944,
-0.3714538812637329,
-0.923974335193634,
-0.3257538378238678,
0.30674001574516296,
0.6620573997497559,
-0.70624178647995,
0.9202554225921631,
-0.3986358046531677,
-0.424374520778656,
-0.6806809902191162,
0.043175164610147476,
0.17924198508262634,
0.3295118808746338,
0.6591168642044067,
-0.09075719118118286,
-0.6605452299118042,
-0.9657005071640015,
-0.0960545614361763,
0.08260776102542877,
0.22722825407981873,
0.2540590465068817,
0.7902860641479492,
-0.5156073570251465,
0.9680729508399963,
-0.6582302451133728,
-0.47169771790504456,
-0.596454918384552,
0.2913038730621338,
0.2463751882314682,
0.565456211566925,
0.5994918942451477,
-0.7342134714126587,
-0.550165593624115,
-0.37883928418159485,
-0.6762768626213074,
0.035048723220825195,
-0.25053688883781433,
-0.2050912231206894,
0.35458359122276306,
0.5661306977272034,
-0.8164139986038208,
0.2682230472564697,
0.6733523011207581,
-0.5661714673042297,
0.4459192454814911,
-0.3627876043319702,
-0.15287595987319946,
-1.4510250091552734,
0.06371507793664932,
0.11990322917699814,
-0.272780179977417,
-0.4509401023387909,
0.08720788359642029,
0.3156064450740814,
-0.14224979281425476,
-0.4320468008518219,
0.5514558553695679,
-0.5044208765029907,
0.10349787771701813,
0.008135161362588406,
0.5591690540313721,
0.009229387156665325,
0.7703396081924438,
0.010663852095603943,
0.6997112035751343,
0.5851916670799255,
-0.5543460249900818,
0.3240194618701935,
0.7179105877876282,
-0.48036590218544006,
0.2088443487882614,
-0.7434093356132507,
-0.10324744135141373,
-0.07461479306221008,
0.365490198135376,
-1.1512268781661987,
-0.008642972446978092,
0.24918824434280396,
-0.5526798963546753,
0.20230500400066376,
0.2535278797149658,
-0.6870912313461304,
-0.6082264184951782,
-0.3434901535511017,
0.14433299005031586,
0.40244612097740173,
-0.5454390645027161,
0.6157827377319336,
0.2901427149772644,
-0.2206898182630539,
-0.6405918598175049,
-1.0720924139022827,
0.09602390229701996,
-0.20869193971157074,
-0.7549861669540405,
0.5704917311668396,
-0.1998889148235321,
0.1468370258808136,
0.28963568806648254,
0.26103919744491577,
0.006622037384659052,
-0.06133903190493584,
-0.04393112659454346,
0.3252728581428528,
-0.10328448563814163,
0.15853318572044373,
0.15293101966381073,
-0.17313803732395172,
0.021203817799687386,
-0.21616464853286743,
0.7860574126243591,
-0.20705169439315796,
-0.09972807765007019,
-0.3666078746318817,
0.3111667037010193,
0.33081871271133423,
-0.30188918113708496,
1.0791617631912231,
1.1405853033065796,
-0.36151355504989624,
-0.11644448339939117,
-0.46872878074645996,
-0.2587410807609558,
-0.44901466369628906,
0.7854704260826111,
-0.18031246960163116,
-1.0107824802398682,
0.48875683546066284,
0.24801667034626007,
0.06554216146469116,
0.5891348719596863,
0.563934862613678,
0.03180789574980736,
0.9213051199913025,
0.6275082230567932,
-0.18639224767684937,
0.45525887608528137,
-0.6076588034629822,
0.4365059435367584,
-0.9298610687255859,
-0.05728808790445328,
-0.3850793242454529,
-0.21423523128032684,
-0.6939797401428223,
-0.44521793723106384,
0.24743866920471191,
-0.16788743436336517,
-0.23890909552574158,
0.6624387502670288,
-0.536356508731842,
0.17535221576690674,
0.5354449152946472,
0.06271585077047348,
-0.08271744847297668,
0.09069422632455826,
-0.5556011199951172,
-0.08234754204750061,
-0.783523678779602,
-0.5367132425308228,
0.7879428863525391,
0.3188856542110443,
0.4016767740249634,
-0.0999581515789032,
0.6424402594566345,
-0.0579390674829483,
0.06868907064199448,
-0.7204286456108093,
0.5471455454826355,
-0.3888472020626068,
-0.3942486643791199,
-0.25481337308883667,
-0.5079471468925476,
-0.9879775047302246,
0.5217221975326538,
-0.1854187697172165,
-0.8192675113677979,
-0.0018233987502753735,
-0.2589823007583618,
-0.3574192523956299,
0.3571835160255432,
-0.901350736618042,
1.1197550296783447,
-0.05177852883934975,
-0.1316872090101242,
-0.14841967821121216,
-0.7023732662200928,
0.20708127319812775,
0.1329883337020874,
0.2880861759185791,
0.014206133782863617,
-0.003887420054525137,
0.8567383289337158,
-0.23511502146720886,
0.8707973957061768,
-0.06968444585800171,
0.17720530927181244,
0.2105000764131546,
-0.2672094702720642,
0.26488521695137024,
-0.052976060658693314,
0.0007935325847938657,
0.14638791978359222,
-0.06939443945884705,
-0.32326698303222656,
-0.3867766857147217,
0.7404230833053589,
-1.0412139892578125,
-0.32551857829093933,
-0.5472040772438049,
-0.7679567933082581,
-0.06935275346040726,
0.2298593670129776,
0.27959588170051575,
0.48362311720848083,
-0.12750335037708282,
0.4198536276817322,
0.46000543236732483,
-0.5458271503448486,
0.7489857077598572,
0.22062672674655914,
-0.12226852029561996,
-0.5431802272796631,
0.6266315579414368,
0.1031029149889946,
0.027942389249801636,
0.5924084782600403,
0.18766213953495026,
-0.5552971363067627,
-0.1321641504764557,
-0.45764800906181335,
0.4779098927974701,
-0.5716502666473389,
-0.19998303055763245,
-1.153112769126892,
-0.5161343216896057,
-0.6879096627235413,
-0.04419906437397003,
-0.19995489716529846,
-0.4163404703140259,
-0.47490593791007996,
-0.31955134868621826,
0.3519205152988434,
0.4523561894893646,
-0.1106439158320427,
0.3542589247226715,
-0.8219590187072754,
0.22269666194915771,
0.04078742861747742,
0.1233052983880043,
-0.10139661282300949,
-0.7245955467224121,
-0.4361235797405243,
0.020998632535338402,
-0.4945162236690521,
-0.7667881846427917,
0.8732636570930481,
0.22286425530910492,
0.5962002277374268,
0.1656101942062378,
0.009054881520569324,
0.7012851238250732,
-0.5673195123672485,
0.8701543807983398,
0.12750843167304993,
-1.0523444414138794,
0.3236590325832367,
0.0010596041101962328,
0.43581005930900574,
0.25718119740486145,
0.3448743224143982,
-0.6832990646362305,
-0.4836401641368866,
-0.6222631931304932,
-1.1561652421951294,
0.8830752968788147,
0.40163013339042664,
0.5584332346916199,
-0.24746575951576233,
0.22588147222995758,
-0.1569153368473053,
0.10808053612709045,
-1.1987793445587158,
-0.5456388592720032,
-0.3775254487991333,
-0.5487926602363586,
-0.44768765568733215,
-0.2827293276786804,
0.16048459708690643,
-0.27714473009109497,
0.7975043654441833,
-0.004512740299105644,
0.694891631603241,
0.31301388144493103,
-0.5330749750137329,
0.11137185245752335,
0.28232747316360474,
0.5830766558647156,
0.2549065351486206,
-0.06688930094242096,
0.1883918046951294,
0.24191246926784515,
-0.31273579597473145,
-0.023368731141090393,
0.5608639121055603,
-0.04537678137421608,
0.2562583386898041,
0.3516623079776764,
0.9874582290649414,
0.5636253356933594,
-0.5085840821266174,
0.6330360174179077,
-0.10100629925727844,
-0.30708691477775574,
-0.4694646894931793,
-0.16561158001422882,
0.3432043492794037,
0.21364927291870117,
0.34428924322128296,
0.07203828543424606,
-0.1285368800163269,
-0.4297062158584595,
0.3518749177455902,
0.28398266434669495,
-0.41182947158813477,
-0.10071510076522827,
0.7357751131057739,
-0.03511881083250046,
-0.15479092299938202,
0.9056267142295837,
-0.26030316948890686,
-0.8390152454376221,
0.4818094074726105,
0.6572333574295044,
0.8915396928787231,
-0.05633610114455223,
0.37149834632873535,
0.6209323406219482,
0.37387508153915405,
-0.08090154081583023,
0.05228262394666672,
0.1551627814769745,
-1.0306007862091064,
-0.35435134172439575,
-0.6022727489471436,
0.023181771859526634,
-0.007358234375715256,
-0.5961463451385498,
0.26914355158805847,
0.07156845182180405,
-0.022570859640836716,
-0.1306510716676712,
0.05267633870244026,
-0.6288013458251953,
-0.011421168223023415,
0.05833979323506355,
0.852038562297821,
-0.9127405881881714,
0.7251459956169128,
0.7716842293739319,
-0.648709774017334,
-0.7830322980880737,
-0.20215192437171936,
-0.347512423992157,
-0.8168686628341675,
0.5215673446655273,
0.5311427712440491,
0.2570100724697113,
0.16194850206375122,
-0.49314048886299133,
-0.8851017355918884,
1.2711352109909058,
0.27665039896965027,
-0.4012945890426636,
-0.05574315786361694,
0.2681823670864105,
0.4313807189464569,
-0.49533742666244507,
0.3800565302371979,
0.32170602679252625,
0.4712083637714386,
-0.1535153090953827,
-0.676482617855072,
0.18684707581996918,
-0.33913108706474304,
0.13198137283325195,
-0.043284617364406586,
-0.6354187726974487,
0.9986501336097717,
-0.20253567397594452,
-0.23579972982406616,
0.18084479868412018,
0.8280396461486816,
0.35335105657577515,
-0.04440302774310112,
0.4644964039325714,
0.802017867565155,
0.5471560955047607,
-0.16356989741325378,
0.93216872215271,
-0.4903889298439026,
0.7439264059066772,
0.9290394186973572,
-0.08061570674180984,
0.9925586581230164,
0.44920605421066284,
-0.029645098373293877,
0.8367037177085876,
0.5203526616096497,
-0.2770087420940399,
0.5164774060249329,
0.10317930579185486,
0.08443181961774826,
-0.06693634390830994,
0.16413089632987976,
-0.18097013235092163,
0.3966302275657654,
0.19380444288253784,
-0.6107773780822754,
-0.057487551122903824,
0.17254701256752014,
0.18102894723415375,
0.10357315838336945,
0.04099956154823303,
0.5572291016578674,
0.2795707583427429,
-0.5497292280197144,
0.32683613896369934,
0.2592979073524475,
0.958021342754364,
-0.5120565891265869,
0.228261798620224,
-0.10137281566858292,
0.46649134159088135,
-0.0669783353805542,
-0.6524774432182312,
0.39874348044395447,
-0.1280636042356491,
-0.009394724853336811,
-0.35229212045669556,
0.5163020491600037,
-0.7617974877357483,
-0.7384291887283325,
0.4734991192817688,
0.6075994372367859,
0.008128802292048931,
0.09303588420152664,
-1.0717897415161133,
-0.032142601907253265,
0.007596252020448446,
-0.4838683605194092,
0.23276077210903168,
0.35873839259147644,
0.29351115226745605,
0.6666140556335449,
0.39917027950286865,
-0.08998489379882812,
0.10715607553720474,
0.2269827425479889,
0.7132956981658936,
-0.7152693867683411,
-0.6240144968032837,
-0.9284080862998962,
0.669087827205658,
-0.14992642402648926,
-0.2458217293024063,
0.8374118208885193,
0.7095283269882202,
0.9576265811920166,
-0.27686381340026855,
0.6651630401611328,
-0.1386268585920334,
0.31109189987182617,
-0.5254531502723694,
0.8066099882125854,
-0.5503695011138916,
-0.11679153889417648,
-0.3016293942928314,
-0.8801634311676025,
-0.39620229601860046,
1.0460174083709717,
-0.2964269816875458,
0.1789606660604477,
1.0231249332427979,
0.8563810586929321,
-0.15079982578754425,
-0.11773624271154404,
0.2342624068260193,
0.5344635844230652,
0.17011798918247223,
0.47434931993484497,
0.46648502349853516,
-0.7487217783927917,
0.7881242632865906,
-0.4817712604999542,
-0.0116860531270504,
-0.08115661144256592,
-0.7803140878677368,
-0.9332759380340576,
-0.8620755076408386,
-0.49569880962371826,
-0.2494392991065979,
-0.20319055020809174,
1.097339153289795,
0.6702172756195068,
-0.7642971873283386,
-0.3022997975349426,
-0.11412152647972107,
-0.10288158804178238,
-0.22963584959506989,
-0.3380696177482605,
0.5376512408256531,
-0.6194284558296204,
-0.8427860140800476,
0.1492227017879486,
0.02637157402932644,
0.030100375413894653,
-0.3547168970108032,
0.09838457405567169,
-0.5723340511322021,
0.12388333678245544,
0.6902340650558472,
-0.3184742033481598,
-0.6598197817802429,
-0.21598206460475922,
0.13859033584594727,
-0.2945488691329956,
0.02885807305574417,
0.42698466777801514,
-0.6155543923377991,
0.18592508137226105,
0.27071911096572876,
0.431510865688324,
0.6948668956756592,
-0.22321361303329468,
0.46869269013404846,
-0.8326762318611145,
0.23817922174930573,
-0.02629760093986988,
0.8542837500572205,
0.5145349502563477,
-0.25128695368766785,
0.5019169449806213,
0.19523052871227264,
-0.5273765921592712,
-0.7078772187232971,
-0.11503937840461731,
-1.1265078783035278,
-0.352079838514328,
1.2342114448547363,
-0.36956387758255005,
-0.33202970027923584,
0.13039237260818481,
-0.30676254630088806,
0.48722270131111145,
-0.3784526288509369,
0.7828115820884705,
0.842215359210968,
0.05725746974349022,
-0.35263389348983765,
-0.3113219738006592,
0.09573594480752945,
0.41119852662086487,
-0.6510920524597168,
-0.10694418847560883,
0.2348317950963974,
0.31144043803215027,
0.3091968894004822,
0.3018757402896881,
-0.14084090292453766,
-0.0645759105682373,
-0.10030917823314667,
0.1835254430770874,
-0.10627587884664536,
0.07134202122688293,
-0.34026357531547546,
0.14641334116458893,
-0.5056522488594055,
-0.19077208638191223
] |
kha-white/manga-ocr-base | kha-white | "2022-06-22T15:34:05Z" | 103,007 | 57 | transformers | [
"transformers",
"pytorch",
"vision-encoder-decoder",
"image-to-text",
"ja",
"dataset:manga109s",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"region:us"
] | image-to-text | "2022-03-02T23:29:05Z" | ---
language: ja
tags:
- image-to-text
license: apache-2.0
datasets:
- manga109s
---
# Manga OCR
Optical character recognition for Japanese text, with the main focus being Japanese manga.
It uses [Vision Encoder Decoder](https://huggingface.co/docs/transformers/model_doc/vision-encoder-decoder) framework.
Manga OCR can be used as a general purpose printed Japanese OCR, but its main goal was to provide a high quality
text recognition, robust against various scenarios specific to manga:
- both vertical and horizontal text
- text with furigana
- text overlaid on images
- wide variety of fonts and font styles
- low quality images
Code is available [here](https://github.com/kha-white/manga_ocr).
| [
-0.40002256631851196,
-0.3334890902042389,
0.5639917254447937,
-0.024577613919973373,
-0.5882101655006409,
-0.06892260909080505,
0.18951065838336945,
-0.6632318496704102,
0.28286445140838623,
0.7742468118667603,
-0.3336501121520996,
-0.8013505339622498,
-0.3881843686103821,
0.5813896059989929,
-0.40776917338371277,
0.7073240280151367,
-0.10249902307987213,
0.039856940507888794,
0.11432120949029922,
-0.2450495809316635,
-0.4139287769794464,
-0.5100988149642944,
-0.7979206442832947,
-0.2436261773109436,
0.5519822835922241,
0.45647767186164856,
0.6712010502815247,
0.5863293409347534,
0.9637483358383179,
0.26866796612739563,
0.03462213650345802,
0.15241169929504395,
-0.19104953110218048,
-0.1111779436469078,
0.02804819494485855,
-0.8025128245353699,
-0.15923583507537842,
-0.19723978638648987,
0.608380138874054,
0.004089762922376394,
0.1962110698223114,
-0.3591037094593048,
-0.1287200152873993,
0.7805948257446289,
-0.9344719052314758,
0.19559888541698456,
-0.07287304848432541,
0.7833965420722961,
-0.14388534426689148,
-0.3697476387023926,
-0.4352305829524994,
-0.24811424314975739,
-0.2858951687812805,
-0.6670675873756409,
0.10531261563301086,
-0.1665051281452179,
0.9087307453155518,
0.1319785863161087,
-0.42492392659187317,
-0.7662068605422974,
-0.9756523370742798,
0.3732801079750061,
-0.04838704317808151,
0.5135312080383301,
0.77557373046875,
0.42892366647720337,
0.4000783860683441,
-0.8852148056030273,
-0.56144118309021,
-0.03819075599312782,
-0.35328176617622375,
0.5268223285675049,
0.11392972618341446,
-0.006005157250910997,
0.4985601007938385,
0.7572967410087585,
-0.32437950372695923,
0.16106967628002167,
-0.4424324929714203,
-0.25220930576324463,
0.5213703513145447,
0.3762364387512207,
0.956608235836029,
-0.09687332808971405,
-0.26751917600631714,
-0.19101998209953308,
-0.302447110414505,
0.04817070811986923,
0.17950615286827087,
-0.13155406713485718,
0.014107334427535534,
0.8037301301956177,
0.03937311843037605,
0.6052818298339844,
-0.11082841455936432,
-0.4033110737800598,
0.28221064805984497,
-0.3653695583343506,
-0.031068630516529083,
0.29906418919563293,
0.8894940614700317,
0.6290766596794128,
0.34360069036483765,
-0.23342876136302948,
-0.21756888926029205,
0.2604595124721527,
0.45280465483665466,
-0.9585598707199097,
0.07825890928506851,
-0.23258914053440094,
-0.7570109367370605,
-0.28381478786468506,
0.18622028827667236,
-1.1493377685546875,
-0.660470724105835,
-0.11779288947582245,
0.2640765905380249,
-0.5330508351325989,
-0.05182173475623131,
0.3542061448097229,
-0.6844536066055298,
0.3666776418685913,
0.2786343991756439,
-1.0041143894195557,
0.056643370538949966,
0.14544451236724854,
1.0710054636001587,
-0.009077929891645908,
-0.0871182307600975,
0.03744818642735481,
0.07626685500144958,
-0.3280385434627533,
0.7688482999801636,
-0.3528309762477875,
-0.5468239188194275,
0.09356624633073807,
0.15243473649024963,
0.1182190328836441,
-0.15470069646835327,
0.7888561487197876,
-0.514375627040863,
0.12013120204210281,
-0.07865171134471893,
-0.12895482778549194,
-0.3820689022541046,
0.05520610138773918,
-1.1026842594146729,
0.8831691145896912,
-0.023686319589614868,
-0.8060617446899414,
0.5006556510925293,
-0.5327500104904175,
-0.6421456933021545,
0.0923541784286499,
-0.1707967072725296,
-0.5327204465866089,
0.10026275366544724,
0.28830718994140625,
0.22028297185897827,
-0.23865680396556854,
-0.6199992299079895,
0.09684974700212479,
-0.7058171033859253,
0.26449427008628845,
-0.4162333607673645,
0.6147577166557312,
0.3925415873527527,
-0.16257697343826294,
-0.29121285676956177,
-1.1028369665145874,
-0.2988685369491577,
0.41291311383247375,
-0.3952726721763611,
-0.6205606460571289,
0.21760746836662292,
0.1390048712491989,
-0.11767195165157318,
0.36367422342300415,
-0.6346966028213501,
0.3038882315158844,
-0.19054631888866425,
0.718549370765686,
0.1598825752735138,
-0.061964474618434906,
0.42212823033332825,
-0.01410625223070383,
0.33190739154815674,
-0.17240138351917267,
0.23957934975624084,
-0.3908766210079193,
-0.7245122194290161,
-0.6816233396530151,
-0.45827919244766235,
0.2661688029766083,
0.9254963397979736,
-0.8685290813446045,
0.4433826506137848,
0.09223233163356781,
-0.6782605648040771,
-0.3334948420524597,
-0.2009861320257187,
0.29690924286842346,
0.3487500548362732,
0.20034848153591156,
-0.601678192615509,
-0.4700586497783661,
-0.47306403517723083,
0.16569842398166656,
-0.14587515592575073,
0.10195396840572357,
-0.13342009484767914,
0.5155059099197388,
-0.3606882691383362,
0.6383369565010071,
-0.7520013451576233,
-0.6829659938812256,
-0.12246877700090408,
-0.03846757858991623,
0.3299677073955536,
0.36662840843200684,
0.4990443289279938,
-1.2568209171295166,
-0.8952784538269043,
0.5274754762649536,
-0.7467905282974243,
0.004409846384078264,
0.0866079330444336,
-0.28579843044281006,
0.18353085219860077,
0.8176360130310059,
-0.44951269030570984,
0.9054657220840454,
0.41094037890434265,
-0.4248501658439636,
0.42371729016304016,
-0.28092482686042786,
0.5944984555244446,
-1.1293219327926636,
0.32589370012283325,
0.03517740219831467,
-0.33705803751945496,
-0.6015200018882751,
0.3987184166908264,
0.20866917073726654,
-0.46534043550491333,
-0.026838799938559532,
0.1706307977437973,
-0.3953651487827301,
-0.20820625126361847,
-0.17981450259685516,
-0.06949876993894577,
0.20873470604419708,
0.49909719824790955,
0.6104222536087036,
0.9174779057502747,
0.058228712528944016,
-0.41330114006996155,
0.23668010532855988,
0.35643407702445984,
-0.5752192735671997,
0.8894770741462708,
-0.8149336576461792,
0.25466257333755493,
-0.39946988224983215,
-0.1627989560365677,
-1.1510730981826782,
-0.34310105443000793,
0.7839787006378174,
-0.2636337876319885,
0.32734671235084534,
0.173735573887825,
-0.8412677049636841,
-0.48675185441970825,
-0.18566589057445526,
0.3971478044986725,
0.6241349577903748,
-0.42563363909721375,
0.765792191028595,
0.3348676860332489,
0.24632346630096436,
-0.40344372391700745,
-1.1151827573776245,
-0.11768127977848053,
0.06263968348503113,
-0.057665396481752396,
0.3286340534687042,
0.09675484895706177,
0.42195776104927063,
0.061336833983659744,
0.22545525431632996,
-0.4638957381248474,
-0.10305050015449524,
0.21403354406356812,
0.06460029631853104,
-0.4040539562702179,
-0.08862985670566559,
0.11133106052875519,
-0.2981034517288208,
-0.4544326663017273,
0.21002697944641113,
0.7239256501197815,
0.1272704303264618,
-0.4221819341182709,
-0.7428101897239685,
0.4480706751346588,
0.9813061356544495,
-0.22697661817073822,
0.526297926902771,
0.6730712652206421,
-0.5802518129348755,
0.18489669263362885,
-0.29374054074287415,
0.13023322820663452,
-0.4691619277000427,
0.5655813813209534,
-0.6224120259284973,
-0.5920440554618835,
0.6594642996788025,
0.23197853565216064,
-0.2278868407011032,
0.6369717717170715,
0.34815287590026855,
-0.2088727205991745,
1.2116587162017822,
0.742987871170044,
-0.14169485867023468,
0.5721173286437988,
0.051943663507699966,
0.16597670316696167,
-0.9013596773147583,
-0.4468974471092224,
-0.8430827260017395,
-0.19906039535999298,
-0.18330615758895874,
-0.09861528873443604,
0.07281534373760223,
0.35913437604904175,
0.007888159714639187,
0.7119112014770508,
-0.9494677782058716,
0.8346891403198242,
0.5887216329574585,
0.4071955382823944,
0.732996940612793,
0.4070722758769989,
-0.023418113589286804,
-0.27660268545150757,
-0.2884301543235779,
-0.450188010931015,
0.769841730594635,
0.44540756940841675,
0.6467500925064087,
-0.14166945219039917,
0.5110936164855957,
0.4134237766265869,
0.15807783603668213,
-1.0863463878631592,
0.524141252040863,
-0.6489226222038269,
-0.741227388381958,
-0.18312957882881165,
-0.22539162635803223,
-1.0257205963134766,
0.12008417397737503,
-0.19458959996700287,
-0.5960488319396973,
0.5596300959587097,
-0.17765216529369354,
0.11817061901092529,
0.4597873091697693,
-0.47335511445999146,
0.7563925385475159,
0.03750544413924217,
0.4300746023654938,
0.06777714192867279,
-0.3048135042190552,
-0.12951038777828217,
-0.14850153028964996,
-0.05189468339085579,
0.23467880487442017,
-0.31399038434028625,
0.5049282908439636,
-0.31064414978027344,
0.9664520621299744,
0.19184669852256775,
-0.21576260030269623,
0.3251919150352478,
-0.3182229697704315,
0.08429577201604843,
-0.2352079302072525,
-0.12815624475479126,
0.4276075065135956,
0.053843382745981216,
0.1813429296016693,
-0.527092456817627,
-0.2944757640361786,
-0.9292089939117432,
0.0479532890021801,
-0.5744055509567261,
0.013273029588162899,
0.22314834594726562,
0.8493441343307495,
0.8980491757392883,
0.59288090467453,
-0.3459126353263855,
0.23353062570095062,
0.3879430890083313,
-0.15802228450775146,
0.05350043252110481,
0.44249939918518066,
-0.48248642683029175,
-0.8481693863868713,
1.0661541223526,
0.15711624920368195,
0.2512824237346649,
0.829940915107727,
0.24562621116638184,
-0.12869994342327118,
-0.38199949264526367,
-0.6334756016731262,
0.14320948719978333,
-1.0412317514419556,
-0.23011623322963715,
-0.4254419505596161,
-0.5335187315940857,
0.14378120005130768,
-0.3879499137401581,
-0.10614414513111115,
0.0724635198712349,
-0.6293603777885437,
0.23098914325237274,
0.23187287151813507,
0.6919846534729004,
0.10314254462718964,
0.4002729058265686,
-0.8426157832145691,
0.7673107385635376,
0.2540748715400696,
0.29006829857826233,
-0.2000165730714798,
0.04141939431428909,
-0.25431251525878906,
-0.10704798251390457,
-0.20336706936359406,
-0.9152401685714722,
0.29655858874320984,
0.21178142726421356,
0.31610971689224243,
0.5780381560325623,
-0.1696261167526245,
0.39293172955513,
-0.598530650138855,
0.6148495078086853,
0.6981785893440247,
-0.8625094890594482,
0.4994504451751709,
-0.11870437860488892,
0.3926111161708832,
0.7479720711708069,
0.775293231010437,
-0.6780146360397339,
-0.325324684381485,
0.2650708854198456,
-0.3421337902545929,
0.854577898979187,
0.23610985279083252,
0.028712421655654907,
0.32407453656196594,
0.5568444728851318,
0.14677974581718445,
0.16498298943042755,
-0.6173638701438904,
-0.12730523943901062,
-0.5011979341506958,
-0.5426048636436462,
-0.1965356171131134,
-0.38974708318710327,
0.14440922439098358,
-0.2572200894355774,
-0.029220547527074814,
-0.13124823570251465,
0.8195255398750305,
0.5373685956001282,
-0.12085415422916412,
-0.0049026524648070335,
-0.21692779660224915,
0.5429852604866028,
-0.07152698189020157,
-0.15511280298233032,
-0.14092469215393066,
-0.26720771193504333,
-1.3551592826843262,
0.19875523447990417,
-0.3521937429904938,
-0.6149857044219971,
0.044487882405519485,
0.35348227620124817,
0.9313427805900574,
-0.04453399032354355,
-0.3323090970516205,
0.25472143292427063,
-0.2391306757926941,
-0.4321232736110687,
-0.2552017271518707,
0.1390506625175476,
-0.23671340942382812,
0.03693016245961189,
0.4041878879070282,
0.09357775002717972,
0.42657676339149475,
-0.8620771765708923,
-0.12141161412000656,
0.05467015132308006,
-0.6004961729049683,
-0.11814497411251068,
0.5492602586746216,
0.27994856238365173,
-0.4988946318626404,
0.8087413311004639,
-0.06541991978883743,
-0.8093728423118591,
0.7970530986785889,
0.7495236396789551,
0.8936610221862793,
-0.11936008930206299,
0.3359176516532898,
0.5633562803268433,
0.5013137459754944,
-0.0724107027053833,
0.5116729736328125,
-0.17424821853637695,
-0.9682092070579529,
-0.1632966697216034,
-0.5705779790878296,
-0.639757513999939,
-0.291239470243454,
-0.6730348467826843,
0.6282818913459778,
-0.751598060131073,
-0.4036906659603119,
-0.05562810227274895,
-0.34114107489585876,
-0.35826241970062256,
0.49079033732414246,
0.2336409091949463,
0.8148581385612488,
-0.46387121081352234,
0.4732910096645355,
0.6834405660629272,
-0.7431498765945435,
-0.34170934557914734,
0.15366186201572418,
-0.12755832076072693,
-1.0827239751815796,
0.6288222074508667,
0.5588990449905396,
-0.19548408687114716,
0.1352711319923401,
-0.35875067114830017,
-0.6259280443191528,
0.9710740447044373,
-0.06801784783601761,
-0.4460821747779846,
-0.2838561236858368,
0.46843719482421875,
0.7211320400238037,
-0.23265740275382996,
0.24285702407360077,
0.20287522673606873,
0.41752105951309204,
0.06889137625694275,
-0.5842593908309937,
0.018993984907865524,
-0.44410011172294617,
0.15410064160823822,
0.42267969250679016,
-0.7431875467300415,
0.45694732666015625,
0.46399223804473877,
-0.5042164325714111,
0.32938092947006226,
0.4945237934589386,
-0.1141202300786972,
0.3824816048145294,
0.294595867395401,
0.5547654032707214,
0.45426565408706665,
-0.19799885153770447,
1.0633922815322876,
-0.08869680762290955,
0.24529868364334106,
0.36467665433883667,
0.019552016630768776,
0.7265124320983887,
0.06794027239084244,
-0.23259514570236206,
0.727135956287384,
0.3344818651676178,
-0.43949106335639954,
0.8351520895957947,
-0.35398709774017334,
0.19664360582828522,
0.08482309430837631,
0.03827619552612305,
-0.4516341984272003,
0.4567714035511017,
0.7396647930145264,
-0.49865928292274475,
0.25919070839881897,
0.2063940465450287,
-0.2932772636413574,
-0.12406696379184723,
-0.6722708344459534,
0.7827119827270508,
0.24770046770572662,
-0.4342464506626129,
0.3655601739883423,
0.10607124119997025,
0.7362150549888611,
-0.7887827754020691,
-0.00017284583009313792,
0.17042069137096405,
0.284442663192749,
-0.3141235411167145,
-1.1439881324768066,
0.5891031622886658,
-0.23169827461242676,
-0.3782694339752197,
0.23004727065563202,
1.1408582925796509,
-0.11993031948804855,
-0.4777287244796753,
0.3200289309024811,
-0.505974292755127,
0.12480899691581726,
-0.03122914396226406,
-0.5565372109413147,
0.3131047487258911,
-0.07175895571708679,
0.13478237390518188,
0.07293682545423508,
0.44600579142570496,
0.38248541951179504,
0.3587074875831604,
0.4386688768863678,
-0.17248742282390594,
-0.22703883051872253,
0.13915741443634033,
0.3401432931423187,
-0.5598678588867188,
-0.7286653518676758,
-0.7101510167121887,
0.5948948264122009,
-0.3115704357624054,
-0.6424615979194641,
0.979325532913208,
0.28720584511756897,
0.575359582901001,
-0.5624412298202515,
0.5017059445381165,
0.02209174446761608,
0.0036560525186359882,
-0.8283602595329285,
1.0466973781585693,
-0.9144758582115173,
-0.7027827501296997,
-0.5341057181358337,
-0.9804765582084656,
-0.8048903942108154,
1.0677915811538696,
0.10224582254886627,
-0.0910230502486229,
0.8516449332237244,
0.44210776686668396,
-0.06194565072655678,
0.2956961989402771,
0.28781306743621826,
-0.37878599762916565,
-0.11035076528787613,
0.3308981955051422,
0.6590157151222229,
-0.7591800093650818,
0.5579013228416443,
-0.28588294982910156,
-0.1739434152841568,
-0.48061278462409973,
-0.48452454805374146,
-1.314648151397705,
-0.7197496294975281,
-0.3409854769706726,
-0.4605806767940521,
-0.2285294234752655,
0.026809368282556534,
0.4945738911628723,
-0.7404348850250244,
0.023759303614497185,
-0.3253234028816223,
0.011146092787384987,
-0.012858129106462002,
-0.23615822196006775,
0.38555705547332764,
-0.01419110968708992,
-0.9223051071166992,
-0.31295403838157654,
0.39467164874076843,
0.14610053598880768,
-0.17435047030448914,
-0.026296671479940414,
0.1554977297782898,
0.0028955310117453337,
0.5318291187286377,
0.6996744871139526,
-0.12937624752521515,
0.035969387739896774,
0.02764379419386387,
-0.5554324388504028,
0.25728440284729004,
0.7925021052360535,
0.057829149067401886,
0.44277650117874146,
0.9106699824333191,
0.6625257730484009,
0.4963796138763428,
-0.3557855188846588,
0.5308785438537598,
-0.22532643377780914,
0.2292865365743637,
0.052889347076416016,
0.30661728978157043,
0.10853557288646698,
-0.6198814511299133,
0.672380268573761,
0.5364042520523071,
-0.5255420207977295,
-0.6445351243019104,
0.3157057762145996,
-0.8454900979995728,
-0.1605248749256134,
0.8866927027702332,
-0.055141374468803406,
-0.5748156309127808,
-0.21027691662311554,
-0.8456452488899231,
0.1521887481212616,
-0.25154030323028564,
0.20372514426708221,
0.7765417695045471,
0.37871190905570984,
-0.3726363480091095,
-0.20941302180290222,
0.30802810192108154,
-0.11136464774608612,
-0.6714367270469666,
-0.6745277047157288,
0.17022866010665894,
-0.01232447661459446,
0.8759298920631409,
0.8853647112846375,
-0.6221928596496582,
0.3935951888561249,
0.3383205831050873,
0.05997411906719208,
0.1015823483467102,
-0.3853389620780945,
-0.2896852493286133,
0.2813919186592102,
-0.2696135640144348,
-0.33046361804008484
] |
facebook/sam-vit-base | facebook | "2023-07-11T15:21:19Z" | 102,691 | 40 | transformers | [
"transformers",
"pytorch",
"tf",
"sam",
"mask-generation",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"region:us"
] | null | "2023-04-19T14:15:29Z" | ---
license: apache-2.0
---
# Model Card for Segment Anything Model (SAM) - ViT Base (ViT-B) version
<p>
<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/sam-architecture.png" alt="Model architecture">
<em> Detailed architecture of Segment Anything Model (SAM).</em>
</p>
# Table of Contents
0. [TL;DR](#TL;DR)
1. [Model Details](#model-details)
2. [Usage](#usage)
3. [Citation](#citation)
# TL;DR
[Link to original repository](https://github.com/facebookresearch/segment-anything)
| <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/sam-beancans.png" alt="Snow" width="600" height="600"> | <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/sam-dog-masks.png" alt="Forest" width="600" height="600"> | <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/sam-car-seg.png" alt="Mountains" width="600" height="600"> |
|---------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|
The **Segment Anything Model (SAM)** produces high quality object masks from input prompts such as points or boxes, and it can be used to generate masks for all objects in an image. It has been trained on a [dataset](https://segment-anything.com/dataset/index.html) of 11 million images and 1.1 billion masks, and has strong zero-shot performance on a variety of segmentation tasks.
The abstract of the paper states:
> We introduce the Segment Anything (SA) project: a new task, model, and dataset for image segmentation. Using our efficient model in a data collection loop, we built the largest segmentation dataset to date (by far), with over 1 billion masks on 11M licensed and privacy respecting images. The model is designed and trained to be promptable, so it can transfer zero-shot to new image distributions and tasks. We evaluate its capabilities on numerous tasks and find that its zero-shot performance is impressive -- often competitive with or even superior to prior fully supervised results. We are releasing the Segment Anything Model (SAM) and corresponding dataset (SA-1B) of 1B masks and 11M images at [https://segment-anything.com](https://segment-anything.com) to foster research into foundation models for computer vision.
**Disclaimer**: Content from **this** model card has been written by the Hugging Face team, and parts of it were copy pasted from the original [SAM model card](https://github.com/facebookresearch/segment-anything).
# Model Details
The SAM model is made up of 3 modules:
- The `VisionEncoder`: a VIT based image encoder. It computes the image embeddings using attention on patches of the image. Relative Positional Embedding is used.
- The `PromptEncoder`: generates embeddings for points and bounding boxes
- The `MaskDecoder`: a two-ways transformer which performs cross attention between the image embedding and the point embeddings (->) and between the point embeddings and the image embeddings. The outputs are fed
- The `Neck`: predicts the output masks based on the contextualized masks produced by the `MaskDecoder`.
# Usage
## Prompted-Mask-Generation
```python
from PIL import Image
import requests
from transformers import SamModel, SamProcessor
model = SamModel.from_pretrained("facebook/sam-vit-base")
processor = SamProcessor.from_pretrained("facebook/sam-vit-base")
img_url = "https://huggingface.co/ybelkada/segment-anything/resolve/main/assets/car.png"
raw_image = Image.open(requests.get(img_url, stream=True).raw).convert("RGB")
input_points = [[[450, 600]]] # 2D localization of a window
```
```python
inputs = processor(raw_image, input_points=input_points, return_tensors="pt").to("cuda")
outputs = model(**inputs)
masks = processor.image_processor.post_process_masks(outputs.pred_masks.cpu(), inputs["original_sizes"].cpu(), inputs["reshaped_input_sizes"].cpu())
scores = outputs.iou_scores
```
Among other arguments to generate masks, you can pass 2D locations on the approximate position of your object of interest, a bounding box wrapping the object of interest (the format should be x, y coordinate of the top right and bottom left point of the bounding box), a segmentation mask. At this time of writing, passing a text as input is not supported by the official model according to [the official repository](https://github.com/facebookresearch/segment-anything/issues/4#issuecomment-1497626844).
For more details, refer to this notebook, which shows a walk throught of how to use the model, with a visual example!
## Automatic-Mask-Generation
The model can be used for generating segmentation masks in a "zero-shot" fashion, given an input image. The model is automatically prompt with a grid of `1024` points
which are all fed to the model.
The pipeline is made for automatic mask generation. The following snippet demonstrates how easy you can run it (on any device! Simply feed the appropriate `points_per_batch` argument)
```python
from transformers import pipeline
generator = pipeline("mask-generation", device = 0, points_per_batch = 256)
image_url = "https://huggingface.co/ybelkada/segment-anything/resolve/main/assets/car.png"
outputs = generator(image_url, points_per_batch = 256)
```
Now to display the image:
```python
import matplotlib.pyplot as plt
from PIL import Image
import numpy as np
def show_mask(mask, ax, random_color=False):
if random_color:
color = np.concatenate([np.random.random(3), np.array([0.6])], axis=0)
else:
color = np.array([30 / 255, 144 / 255, 255 / 255, 0.6])
h, w = mask.shape[-2:]
mask_image = mask.reshape(h, w, 1) * color.reshape(1, 1, -1)
ax.imshow(mask_image)
plt.imshow(np.array(raw_image))
ax = plt.gca()
for mask in outputs["masks"]:
show_mask(mask, ax=ax, random_color=True)
plt.axis("off")
plt.show()
```
# Citation
If you use this model, please use the following BibTeX entry.
```
@article{kirillov2023segany,
title={Segment Anything},
author={Kirillov, Alexander and Mintun, Eric and Ravi, Nikhila and Mao, Hanzi and Rolland, Chloe and Gustafson, Laura and Xiao, Tete and Whitehead, Spencer and Berg, Alexander C. and Lo, Wan-Yen and Doll{\'a}r, Piotr and Girshick, Ross},
journal={arXiv:2304.02643},
year={2023}
}
``` | [
-0.49778690934181213,
-0.7382726073265076,
0.495624840259552,
0.07482849061489105,
-0.452328622341156,
-0.17359033226966858,
0.29994282126426697,
-0.5133920311927795,
0.6117766499519348,
0.45878180861473083,
-0.5820292830467224,
-0.6123925447463989,
-0.5723236799240112,
-0.27849459648132324,
-0.31517478823661804,
0.5788871645927429,
0.16648925840854645,
-0.1827995628118515,
-0.11042741686105728,
-0.07814350724220276,
-0.37815311551094055,
-0.43411004543304443,
-0.7098461389541626,
-0.04605863243341446,
0.21079115569591522,
0.11430421471595764,
0.69220370054245,
1.274360179901123,
0.511756956577301,
0.3055441975593567,
-0.183315709233284,
0.035201605409383774,
-0.05083226412534714,
-0.12445221841335297,
-0.014707662165164948,
-0.2964412271976471,
-0.2805468738079071,
0.01096897292882204,
0.7615921497344971,
0.4594722390174866,
0.014326267875730991,
0.260432630777359,
-0.3363378942012787,
0.47399723529815674,
-0.5045650005340576,
-0.013114511966705322,
-0.510589063167572,
-0.10870792716741562,
-0.164800226688385,
0.14100933074951172,
-0.18441066145896912,
-0.3410930037498474,
-0.03130025416612625,
-0.49597302079200745,
0.16780467331409454,
0.07846412807703018,
1.6212153434753418,
0.4283590018749237,
-0.13080863654613495,
0.0789966732263565,
-0.467350035905838,
0.5626707673072815,
-0.5608295798301697,
0.3257061541080475,
0.14125898480415344,
0.2760206162929535,
0.25195541977882385,
-0.8593418598175049,
-0.45895132422447205,
0.16751474142074585,
-0.21920110285282135,
0.04460359737277031,
-0.41126543283462524,
-0.14181384444236755,
0.3618558645248413,
0.24971868097782135,
-0.5287384390830994,
-0.3395470976829529,
-0.787058413028717,
-0.2117840200662613,
0.7903079986572266,
0.15881824493408203,
0.4124135673046112,
-0.6380001902580261,
-0.6651195287704468,
-0.2406993955373764,
-0.47171932458877563,
0.43867331743240356,
-0.01899399235844612,
0.042685553431510925,
-0.38774871826171875,
0.6062135100364685,
-0.2157544046640396,
0.8714368343353271,
0.36349523067474365,
-0.3775884211063385,
0.36257266998291016,
-0.08968859910964966,
-0.478095680475235,
-0.026163572445511818,
0.5708632469177246,
0.5592201948165894,
-0.11964982748031616,
0.06120496988296509,
-0.07398229092359543,
0.13771763443946838,
0.22529461979866028,
-1.0663644075393677,
-0.3745569884777069,
0.2638169229030609,
-0.5963593125343323,
-0.21258994936943054,
0.3181647062301636,
-0.574421226978302,
-0.10990038514137268,
-0.250846803188324,
0.5871605277061462,
-0.5563077330589294,
-0.17638999223709106,
0.0843316987156868,
-0.2426227629184723,
0.6160032153129578,
0.08402678370475769,
-0.5147001147270203,
-0.06572455167770386,
0.39547237753868103,
1.0046722888946533,
-0.139337956905365,
-0.1773875653743744,
-0.24483807384967804,
0.18442022800445557,
-0.27867186069488525,
0.9986786246299744,
-0.6810658574104309,
-0.2741796672344208,
-0.295908659696579,
0.49339759349823,
-0.3757020831108093,
-0.5183369517326355,
0.4494245648384094,
-0.32677707076072693,
-0.12973067164421082,
-0.13341212272644043,
-0.4123081862926483,
-0.5657153725624084,
0.1892847716808319,
-0.4947241544723511,
0.8893494009971619,
0.25348228216171265,
-0.5256736278533936,
0.2386702448129654,
-0.7688897252082825,
-0.42548930644989014,
-0.02555019035935402,
-0.0590926930308342,
-0.7194286584854126,
0.08594617992639542,
0.39759132266044617,
0.5662394165992737,
-0.05755476653575897,
0.129682719707489,
-0.46182629466056824,
-0.24081483483314514,
0.2439841479063034,
0.06001028046011925,
1.0312448740005493,
0.20536871254444122,
-0.47985801100730896,
0.23049798607826233,
-0.7504740357398987,
-0.010330433957278728,
0.47260192036628723,
0.15441609919071198,
-0.05461498722434044,
-0.30026865005493164,
-0.19312238693237305,
0.3994310200214386,
0.20008981227874756,
-0.6832931637763977,
-0.058390263468027115,
-0.0915040597319603,
0.6292526721954346,
0.7113980054855347,
0.472592830657959,
0.5630035996437073,
-0.5103192925453186,
0.5282672047615051,
0.13552621006965637,
0.5738272666931152,
-0.7608932256698608,
-0.6353325247764587,
-0.9551580548286438,
-0.7321105599403381,
0.1948832869529724,
0.414884477853775,
-0.4938840866088867,
0.47699058055877686,
0.03829261660575867,
-0.7076916098594666,
-0.5312731266021729,
-0.36060866713523865,
0.22296883165836334,
0.5096533298492432,
0.2077343463897705,
-0.48457181453704834,
-0.6161012649536133,
-1.0041980743408203,
0.2548843026161194,
-0.10518305748701096,
-0.046724673360586166,
0.4648779332637787,
0.5302676558494568,
-0.1773478090763092,
0.9549000263214111,
-0.9652088284492493,
-0.25884199142456055,
-0.006785319186747074,
-0.40665045380592346,
0.01143101416528225,
0.7217929363250732,
0.6431903839111328,
-0.7713882327079773,
-0.4981941878795624,
-0.17004035413265228,
-0.7553896307945251,
0.053337324410676956,
0.01731960102915764,
-0.417275607585907,
0.2101561427116394,
0.37165406346321106,
-0.7056280374526978,
0.7030329704284668,
0.25919944047927856,
-0.4452558755874634,
0.49121740460395813,
0.22287911176681519,
-0.04240642115473747,
-1.1116610765457153,
0.39365828037261963,
0.17226357758045197,
-0.38124725222587585,
-0.6592361330986023,
0.17680422961711884,
-0.0031148665584623814,
-0.38312116265296936,
-0.6677218079566956,
0.648017942905426,
-0.2301001399755478,
-0.07737129181623459,
-0.10547345131635666,
-0.015116487629711628,
0.28705668449401855,
0.7869811058044434,
0.20748873054981232,
0.31492289900779724,
0.8322456479072571,
-0.6306632161140442,
0.24196328222751617,
0.4493490159511566,
-0.4580140709877014,
0.8427857160568237,
-0.8286163210868835,
-0.028868427500128746,
-0.24326454102993011,
0.26178649067878723,
-1.0112745761871338,
-0.6085946559906006,
0.5236979722976685,
-0.441461443901062,
0.24201266467571259,
-0.24802157282829285,
-0.10999941825866699,
-0.39190104603767395,
-0.1805296093225479,
0.3603750467300415,
0.6520324349403381,
-0.5311980843544006,
0.5915994048118591,
0.6647294163703918,
-0.03960380330681801,
-0.21729247272014618,
-0.6034858822822571,
-0.3284924030303955,
-0.3257966935634613,
-0.9073367118835449,
0.5502551794052124,
0.02473677136003971,
-0.064726822078228,
0.2933119535446167,
-0.09017077088356018,
-0.025035975500941277,
-0.23086656630039215,
0.6642223596572876,
0.6351044774055481,
-0.10210112482309341,
-0.2114977091550827,
-0.03748399764299393,
-0.22330942749977112,
-0.04481755197048187,
-0.19477325677871704,
0.7410018444061279,
-0.13592298328876495,
-0.4857233166694641,
-0.6210229992866516,
0.144553542137146,
0.43696457147598267,
-0.47382843494415283,
0.3927554488182068,
0.70508873462677,
-0.4420936703681946,
-0.009793424047529697,
-0.7239055633544922,
-0.2197030782699585,
-0.48214080929756165,
0.29228585958480835,
-0.4119332432746887,
-0.9115742444992065,
0.7721080780029297,
0.09145107120275497,
0.013215331360697746,
0.731839120388031,
0.38736775517463684,
-0.16470491886138916,
1.0579794645309448,
0.6008100509643555,
0.13762691617012024,
0.5850791335105896,
-0.596763551235199,
0.2267439365386963,
-0.9722644686698914,
-0.6648688316345215,
-0.3049938678741455,
-0.45190611481666565,
-0.4171085059642792,
-0.717943012714386,
0.46548640727996826,
0.16497445106506348,
-0.5312187671661377,
0.5135840773582458,
-0.9185940027236938,
0.6030148267745972,
0.536282479763031,
0.19389447569847107,
-0.11553248018026352,
0.23796430230140686,
-0.04505930840969086,
0.17727716267108917,
-0.6753220558166504,
-0.27508196234703064,
0.7216536402702332,
0.33557748794555664,
0.46913576126098633,
-0.4219653606414795,
0.619825541973114,
0.06190367415547371,
0.08153580129146576,
-0.5668679475784302,
0.6334242224693298,
-0.0497015118598938,
-0.9207341074943542,
-0.07576368749141693,
-0.08067414164543152,
-0.8710023164749146,
0.3177701532840729,
0.0747092142701149,
-0.9562519788742065,
0.6620410084724426,
-0.018772590905427933,
-0.626725435256958,
0.6238657832145691,
-0.800994336605072,
0.9370078444480896,
-0.07267050445079803,
-0.1608235090970993,
0.3666142523288727,
-0.8129318356513977,
0.46403464674949646,
0.13654309511184692,
-0.07467718422412872,
-0.2706204950809479,
0.13796870410442352,
0.8376584649085999,
-0.3644354045391083,
0.8565386533737183,
-0.3835965096950531,
0.29377999901771545,
0.7456861734390259,
-0.1269611418247223,
0.40799686312675476,
-0.05043410882353783,
0.08104231208562851,
0.3418799936771393,
0.16328904032707214,
-0.5335661768913269,
-0.3689773380756378,
0.6232181191444397,
-0.7165407538414001,
-0.5410062074661255,
-0.39116379618644714,
-0.3300548493862152,
0.31962594389915466,
0.1744127869606018,
0.43356919288635254,
0.33710673451423645,
0.13931962847709656,
0.12950539588928223,
0.42110705375671387,
-0.32087862491607666,
0.5751916766166687,
0.25033193826675415,
-0.4083550274372101,
-0.6193549036979675,
1.1808664798736572,
0.06403443217277527,
0.24373045563697815,
0.10065659880638123,
-0.06736777722835541,
-0.32908302545547485,
-0.043473925441503525,
-0.5466492176055908,
0.4886850416660309,
-0.6135735511779785,
-0.5844134092330933,
-0.5857135057449341,
-0.6235134601593018,
-0.3514697253704071,
-0.4553198516368866,
-0.44589176774024963,
-0.5704141855239868,
-0.2455335557460785,
-0.06901384890079498,
0.3281673192977905,
0.4968828856945038,
-0.2429271638393402,
0.555230975151062,
-0.5291199088096619,
0.19927075505256653,
0.33936527371406555,
0.32105717062950134,
0.005053177010267973,
-0.5531261563301086,
-0.10464117676019669,
0.007654912769794464,
-0.6230446100234985,
-0.6296494007110596,
0.5071325302124023,
-0.08161814510822296,
0.4482998549938202,
0.6703097820281982,
-0.03641892597079277,
1.0299845933914185,
-0.25353357195854187,
0.8602388501167297,
0.2935957610607147,
-0.9119530916213989,
0.5327394008636475,
-0.1314598023891449,
0.24086324870586395,
0.3034343421459198,
0.29808637499809265,
-0.516054093837738,
-0.006222921889275312,
-0.9544218182563782,
-0.8413490653038025,
1.0928725004196167,
0.18910197913646698,
-0.10486667603254318,
0.0970601961016655,
0.3247651755809784,
-0.14661920070648193,
0.2459195852279663,
-0.7649551630020142,
-0.521070122718811,
-0.38305431604385376,
0.18734022974967957,
0.22367599606513977,
-0.07202434539794922,
-0.04853144660592079,
-0.525594174861908,
0.8238882422447205,
0.158075749874115,
0.7157347798347473,
0.3711242377758026,
-0.07125828415155411,
-0.17324012517929077,
-0.23581615090370178,
0.6512529850006104,
0.5967258214950562,
-0.33150821924209595,
0.02132665365934372,
-0.07809820026159286,
-0.18194057047367096,
0.11393573135137558,
0.23611801862716675,
-0.6255251169204712,
0.12936362624168396,
0.10632213950157166,
1.1497724056243896,
-0.13361616432666779,
-0.37581750750541687,
0.4312177002429962,
0.3037137985229492,
-0.3275260031223297,
-0.279642790555954,
0.1160498708486557,
0.08856873959302902,
0.48187899589538574,
0.46469646692276,
0.25780734419822693,
-0.07867099344730377,
-0.3879859149456024,
0.23467110097408295,
0.48911404609680176,
-0.47554895281791687,
-0.3538234233856201,
0.7324811816215515,
-0.05495850369334221,
-0.3436935544013977,
0.37021604180336,
-0.38591450452804565,
-0.7260339260101318,
0.8689256906509399,
0.5673912167549133,
0.9212589859962463,
-0.47073590755462646,
0.5648318529129028,
0.7763753533363342,
0.3401687741279602,
0.2464820146560669,
0.06925426423549652,
0.059838879853487015,
-0.4714125990867615,
-0.37424787878990173,
-0.934394359588623,
-0.106815405189991,
0.3149030804634094,
-0.4901175796985626,
0.24357615411281586,
-0.5759458541870117,
-0.133171945810318,
0.12129898369312286,
-0.1305866688489914,
-0.5455996990203857,
0.4571196734905243,
0.08246783912181854,
0.7756819725036621,
-0.8569983243942261,
0.5502051115036011,
0.7235029339790344,
-0.5364782810211182,
-0.9397026300430298,
-0.2177271544933319,
-0.12823162972927094,
-1.0633940696716309,
0.3141234815120697,
0.4469662308692932,
0.2385408729314804,
-0.017699746415019035,
-0.7648370265960693,
-1.0998749732971191,
1.2268943786621094,
0.3311700224876404,
-0.22410443425178528,
-0.0702192634344101,
0.24391159415245056,
0.11058161407709122,
-0.6718847751617432,
0.13679443299770355,
0.6138178706169128,
0.5855975151062012,
0.5452449321746826,
-0.44384413957595825,
0.27213189005851746,
-0.3212582767009735,
0.17869235575199127,
0.24371051788330078,
-0.9545214772224426,
0.9557468891143799,
-0.1548079401254654,
-0.3748836815357208,
0.10442017763853073,
0.42521387338638306,
0.39154261350631714,
0.4639475345611572,
0.6471686363220215,
0.7416322827339172,
0.49623236060142517,
-0.28369367122650146,
0.9905881285667419,
-0.37548139691352844,
0.2457532286643982,
0.7502789497375488,
0.016353080049157143,
0.5509530305862427,
0.2970927655696869,
-0.20541106164455414,
0.4706943929195404,
0.9293875694274902,
-0.487060546875,
0.5174358487129211,
-0.006348137278109789,
-0.04268142953515053,
-0.39896929264068604,
-0.38112279772758484,
-0.4407799243927002,
0.5495659112930298,
0.18144895136356354,
-0.5770993828773499,
-0.15553507208824158,
0.06559111922979355,
0.055152103304862976,
-0.4491059184074402,
-0.36500370502471924,
0.6271209716796875,
0.0414862334728241,
-0.5764980912208557,
0.6553624868392944,
0.23444868624210358,
0.38921648263931274,
-0.5796108245849609,
0.12138509005308151,
-0.251619815826416,
0.04652136564254761,
-0.39441221952438354,
-0.5913388729095459,
0.5977340936660767,
-0.10087594389915466,
-0.1346454918384552,
0.15867237746715546,
0.9136000871658325,
-0.2575989365577698,
-0.8198976516723633,
-0.010391570627689362,
0.17189505696296692,
0.3544899821281433,
-0.22672508656978607,
-0.8066815733909607,
0.39137816429138184,
0.28235435485839844,
-0.22830282151699066,
0.28576037287712097,
0.20436233282089233,
0.010483072139322758,
0.49692970514297485,
0.8136696815490723,
-0.06642501801252365,
0.2514530122280121,
-0.36130794882774353,
1.0739718675613403,
-0.7626831531524658,
-0.5396496653556824,
-0.7637970447540283,
0.8429388999938965,
-0.25978565216064453,
-0.09545107930898666,
0.6912805438041687,
0.777949869632721,
0.9247558116912842,
-0.07691634446382523,
0.5627771019935608,
-0.4415909945964813,
0.28175821900367737,
-0.18732093274593353,
0.5569199323654175,
-0.7502880692481995,
-0.1106499433517456,
-0.3084987699985504,
-1.1265108585357666,
-0.37401083111763,
0.9285165667533875,
-0.2388324737548828,
0.21067817509174347,
0.5853862762451172,
0.940635621547699,
-0.2009137123823166,
-0.052790068089962006,
0.26868295669555664,
0.1170988380908966,
0.19447405636310577,
0.3141629993915558,
0.6175724864006042,
-0.5486493706703186,
0.5808464884757996,
-0.837689220905304,
-0.09719804674386978,
-0.07316756993532181,
-0.6142728924751282,
-0.8256219029426575,
-0.8186766505241394,
-0.5601040124893188,
-0.32849860191345215,
-0.18073494732379913,
0.5954800844192505,
1.1982951164245605,
-0.6279756426811218,
-0.10096507519483566,
0.1302300989627838,
0.19432470202445984,
-0.19014102220535278,
-0.2321845442056656,
0.6799263954162598,
0.03802816569805145,
-0.9034543633460999,
0.11489574611186981,
0.5197608470916748,
0.10618285089731216,
-0.07920067012310028,
-0.045387186110019684,
-0.20871204137802124,
0.22614312171936035,
0.6408556699752808,
0.39858031272888184,
-0.6574414372444153,
-0.2566448748111725,
0.04310457035899162,
0.13958142697811127,
0.2667914628982544,
0.47042781114578247,
-0.4886355698108673,
0.41845494508743286,
0.3204286992549896,
0.4326625168323517,
0.8491961359977722,
0.3482499420642853,
-0.05104697495698929,
-0.62909996509552,
0.19148823618888855,
-0.08360323309898376,
0.30550339818000793,
0.42886191606521606,
-0.18210335075855255,
0.6270695328712463,
0.37051457166671753,
-0.525814414024353,
-0.874495804309845,
0.12788574397563934,
-1.2054470777511597,
-0.31825384497642517,
1.120177984237671,
-0.2708769738674164,
-0.7304567694664001,
0.18237626552581787,
-0.29182714223861694,
0.29168224334716797,
-0.4281383752822876,
0.5525744557380676,
0.30844852328300476,
-0.2267490178346634,
-0.32749485969543457,
-0.2133960872888565,
0.37415027618408203,
0.16413024067878723,
-0.7218135595321655,
-0.3987722396850586,
0.37613072991371155,
0.4135904312133789,
0.47774583101272583,
0.5050737261772156,
-0.2635840177536011,
0.18296033143997192,
0.036344014108181,
0.18143080174922943,
-0.3094222843647003,
-0.2954426109790802,
-0.2766270935535431,
0.33221450448036194,
-0.4506720304489136,
-0.6164786219596863
] |
kredor/punctuate-all | kredor | "2022-04-28T05:26:05Z" | 102,542 | 9 | transformers | [
"transformers",
"pytorch",
"xlm-roberta",
"token-classification",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | token-classification | "2022-04-09T12:05:11Z" | This is based on [Oliver Guhr's work](https://huggingface.co/oliverguhr/fullstop-punctuation-multilang-large). The difference is that it is a finetuned xlm-roberta-base instead of an xlm-roberta-large and on twelve languages instead of four. The languages are: English, German, French, Spanish, Bulgarian, Italian, Polish, Dutch, Czech, Portugese, Slovak, Slovenian.
----- report -----
precision recall f1-score support
0 0.99 0.99 0.99 73317475
. 0.94 0.95 0.95 4484845
, 0.86 0.86 0.86 6100650
? 0.88 0.85 0.86 136479
- 0.60 0.29 0.39 233630
: 0.71 0.49 0.58 152424
accuracy 0.98 84425503
macro avg 0.83 0.74 0.77 84425503
weighted avg 0.98 0.98 0.98 84425503
----- confusion matrix -----
t/p 0 . , ? - :
0 1.0 0.0 0.0 0.0 0.0 0.0
. 0.0 1.0 0.0 0.0 0.0 0.0
, 0.1 0.0 0.9 0.0 0.0 0.0
? 0.0 0.1 0.0 0.8 0.0 0.0
- 0.1 0.1 0.5 0.0 0.3 0.0
: 0.0 0.3 0.1 0.0 0.0 0.5 | [
-0.18277812004089355,
-0.7907647490501404,
0.809950053691864,
0.7422820329666138,
-0.16046848893165588,
0.19622468948364258,
-0.510479211807251,
-0.5080910921096802,
0.28158682584762573,
0.46269673109054565,
-0.32397565245628357,
-0.6296799778938293,
-0.5768265724182129,
0.5077997446060181,
-0.17031262814998627,
0.9739152193069458,
-0.28275617957115173,
0.08057702332735062,
0.2801373600959778,
-0.34496375918388367,
-0.4095117449760437,
-0.7307913303375244,
-0.6178849935531616,
-0.21805372834205627,
0.37321704626083374,
0.6041566729545593,
0.6958283185958862,
0.4390614628791809,
0.349480003118515,
0.21980145573616028,
-0.21590222418308258,
-0.05267636477947235,
-0.5449892282485962,
-0.2440929263830185,
0.12042591720819473,
-0.4364676773548126,
-0.32702142000198364,
-0.12052573263645172,
0.839282751083374,
0.3826234042644501,
-0.24158573150634766,
0.013014668598771095,
0.1409919112920761,
1.1359285116195679,
-0.5484979152679443,
0.29891207814216614,
-0.28480634093284607,
0.17485545575618744,
-0.20038756728172302,
0.1650175303220749,
-0.6392281651496887,
-0.13766907155513763,
-0.13420729339122772,
-0.8231942653656006,
-0.242021843791008,
0.24428071081638336,
1.1112219095230103,
-0.12450746446847916,
-0.6972324848175049,
-0.24696478247642517,
-0.8152958154678345,
1.0748839378356934,
-0.4477151334285736,
0.437849760055542,
0.21944285929203033,
0.2555038034915924,
-0.0006465103360824287,
-0.6535992622375488,
-0.9397110342979431,
0.04693497344851494,
-0.14669474959373474,
0.304069846868515,
-0.2820935547351837,
-0.07125693559646606,
0.44400906562805176,
0.5209847092628479,
-0.7882477641105652,
-0.3099402189254761,
-0.5256853699684143,
-0.07291208952665329,
0.4725464880466461,
-0.10655901581048965,
0.01877024956047535,
0.07461073249578476,
-0.5524353384971619,
-0.12372462451457977,
-0.9145758748054504,
-0.005581085570156574,
0.2756117880344391,
0.42545631527900696,
-0.4542067348957062,
0.645848274230957,
-0.1564207822084427,
0.865191638469696,
-0.01665951870381832,
-0.2970046401023865,
0.866072416305542,
-0.32883310317993164,
-0.47486791014671326,
-0.29290109872817993,
1.1263067722320557,
0.341097354888916,
0.8342335224151611,
0.058929961174726486,
-0.009227605536580086,
-0.18025167286396027,
-0.0147978775203228,
-0.7718433737754822,
-0.28815311193466187,
0.23893849551677704,
-0.37027961015701294,
0.06275925785303116,
0.2650619149208069,
-0.5640431642532349,
0.16578175127506256,
-0.47267207503318787,
0.4894617795944214,
-1.0485823154449463,
0.15525704622268677,
0.28277185559272766,
-0.07496187090873718,
0.267341285943985,
0.3910669982433319,
-0.5684448480606079,
0.2086961567401886,
0.5144350528717041,
1.0712279081344604,
-0.01528897788375616,
-0.41793379187583923,
-0.5643288493156433,
0.14991247653961182,
-0.24348406493663788,
0.9246461987495422,
-0.5923954844474792,
-0.4251055419445038,
0.258362740278244,
0.32242831587791443,
-0.35130900144577026,
-0.501636803150177,
0.9323483109474182,
-0.22406598925590515,
0.48491352796554565,
-0.5090667605400085,
-0.33123674988746643,
-0.3751692771911621,
0.4791649281978607,
-0.9312124252319336,
1.2778176069259644,
0.18759801983833313,
-0.5720043778419495,
0.31656333804130554,
-0.6618027091026306,
-0.7485523223876953,
-0.08786017447710037,
-0.26555097103118896,
-0.5089786648750305,
-0.28028959035873413,
0.13344067335128784,
0.08643654733896255,
-0.2726878523826599,
0.1951691061258316,
0.032944656908512115,
-0.49909186363220215,
0.23725895583629608,
-0.28800126910209656,
1.3909283876419067,
0.35408324003219604,
-0.3828072249889374,
0.0020266659557819366,
-1.2043404579162598,
0.3551420569419861,
-0.06779144704341888,
-0.8225321173667908,
-0.13245713710784912,
-0.4457852840423584,
0.2732703685760498,
0.7027599215507507,
0.3957032263278961,
-0.6280794143676758,
0.2649123966693878,
0.1369735598564148,
0.504234790802002,
0.588875949382782,
-0.009729903191328049,
0.16728873550891876,
-0.5240381360054016,
0.7156499624252319,
0.11224023997783661,
0.32549649477005005,
-0.3371562063694,
-0.7317354679107666,
-0.9010246396064758,
-0.715609073638916,
0.3680616319179535,
1.2092702388763428,
-0.6504302620887756,
0.8987359404563904,
-0.06208418682217598,
-0.2713328003883362,
-0.4248497486114502,
0.24804867804050446,
0.7678157687187195,
0.45570454001426697,
0.640841007232666,
-0.07312346994876862,
-0.5797917246818542,
-0.9804880619049072,
0.15922141075134277,
-0.19076070189476013,
0.11492174118757248,
-0.02751321531832218,
0.7678101062774658,
0.01214400865137577,
0.6253803968429565,
-0.7168100476264954,
-0.5042027235031128,
-0.08360923826694489,
-0.008600994013249874,
0.7651001811027527,
0.5222318768501282,
0.903946578502655,
-0.48238587379455566,
-1.1315054893493652,
-0.013143803924322128,
-0.6609410047531128,
0.15545646846294403,
-0.10699083656072617,
-0.447958379983902,
0.4184574782848358,
0.3737632930278778,
-0.9234033823013306,
0.5290523171424866,
0.5251350402832031,
-0.5063988566398621,
1.099905014038086,
-0.6121509075164795,
0.2940082550048828,
-1.2506054639816284,
0.5418780446052551,
-0.10066019743680954,
-0.17427444458007812,
-0.7115159034729004,
0.2968950569629669,
0.6168977618217468,
0.06633232533931732,
-0.5185793042182922,
0.6118320822715759,
-0.7765857577323914,
0.31475529074668884,
0.2192089557647705,
-0.15882064402103424,
0.21856525540351868,
0.6431853771209717,
-0.07881546765565872,
1.0334546566009521,
0.4421098232269287,
-0.4054819941520691,
0.2088354378938675,
0.5580843687057495,
-0.5271385312080383,
0.8830576539039612,
-0.6843969821929932,
-0.09828605502843857,
0.33213210105895996,
0.07885074615478516,
-1.2142196893692017,
0.15294578671455383,
0.06054382026195526,
-0.4963158369064331,
0.39622312784194946,
-0.12477778643369675,
-0.7408854961395264,
-0.45132917165756226,
-0.537591814994812,
0.3680080771446228,
0.5190642476081848,
-0.3959115743637085,
0.4201407730579376,
0.1663496047258377,
-0.3168681561946869,
-0.8109393119812012,
-0.971470832824707,
0.3035770058631897,
-0.129311203956604,
-0.8645561337471008,
0.20629176497459412,
-0.552186906337738,
-0.45412808656692505,
-0.38666602969169617,
0.22153928875923157,
-0.2654120922088623,
-0.16679130494594574,
-0.05135192349553108,
0.36627325415611267,
-0.33066681027412415,
0.07441256195306778,
-0.2286544144153595,
-0.014893918298184872,
-0.4074716567993164,
-0.019942212849855423,
0.9331862926483154,
-0.22128987312316895,
-0.013207273557782173,
-0.44674262404441833,
0.6631875038146973,
0.5590219497680664,
-0.34816616773605347,
0.627322256565094,
0.6260887384414673,
-0.1225973516702652,
0.2569744288921356,
-0.6799208521842957,
0.19729749858379364,
-0.45147740840911865,
0.21723830699920654,
-0.609208881855011,
-0.9020515084266663,
1.004379153251648,
0.5045740604400635,
-0.17021162807941437,
0.8087713718414307,
0.46709582209587097,
-0.06830272823572159,
0.8526504039764404,
0.7256946563720703,
-0.40013113617897034,
0.39067426323890686,
-0.1839088648557663,
0.10362932831048965,
-0.8530318140983582,
-0.3528573513031006,
-0.7690877914428711,
-0.2537756562232971,
-0.40894514322280884,
-0.3579089939594269,
0.3465713560581207,
0.03446502611041069,
-0.7422694563865662,
0.4220992624759674,
-0.3126703202724457,
0.5917323231697083,
0.9211469888687134,
-0.05786969140172005,
0.6695470213890076,
0.4103747010231018,
-0.617037296295166,
-0.2501929700374603,
-0.3716312348842621,
-0.3597184419631958,
1.2531229257583618,
-0.13001267611980438,
0.6586851477622986,
0.44175511598587036,
0.5585765242576599,
0.08892806619405746,
-0.03845081478357315,
-0.8647500872612,
0.35489383339881897,
-0.25835463404655457,
-0.9476696848869324,
-0.2641437351703644,
-0.4247724115848541,
-1.1907095909118652,
0.2121734470129013,
-0.47161558270454407,
-0.9580122828483582,
0.13438431918621063,
-0.11928772181272507,
-0.7075009942054749,
0.16176223754882812,
-0.7739813923835754,
0.8240295052528381,
-0.24618881940841675,
-0.2205059975385666,
-0.15430478751659393,
-0.6959632635116577,
0.34168392419815063,
-0.18501733243465424,
0.4663613736629486,
0.12496326863765717,
0.3591402769088745,
0.7222387790679932,
-0.6122307777404785,
0.6094433665275574,
0.010797053575515747,
-0.14996829628944397,
0.46106231212615967,
0.20997712016105652,
0.6033047437667847,
0.07763714343309402,
-0.09239379316568375,
0.2917756736278534,
-0.1860683262348175,
-0.3506741225719452,
-0.14805898070335388,
0.5602779984474182,
-0.8927476406097412,
-0.403049498796463,
-0.9262169599533081,
-0.8045060634613037,
-0.08859143406152725,
0.7354483604431152,
0.10498332232236862,
0.31132808327674866,
-0.25202393531799316,
0.3138102889060974,
0.46866950392723083,
-0.25113731622695923,
0.5166504979133606,
0.9390547871589661,
-0.23942860960960388,
-0.9862963557243347,
0.5026520490646362,
0.23624584078788757,
0.17223316431045532,
0.7860625386238098,
-0.04672563821077347,
-0.09971033781766891,
-0.18630418181419373,
-0.3768692910671234,
0.7513716816902161,
-0.5317694544792175,
-0.1423274576663971,
-0.5638812780380249,
-0.23355242609977722,
-0.7200199961662292,
-0.24404576420783997,
-0.0881209447979927,
-0.8041699528694153,
-0.12411890178918839,
-0.14847981929779053,
0.36330005526542664,
0.770825982093811,
-0.16666553914546967,
0.6392853260040283,
-0.8471224308013916,
0.10680130869150162,
0.2636559307575226,
0.24331596493721008,
-0.36034244298934937,
-0.8434659242630005,
-0.49532845616340637,
-0.040283478796482086,
-0.46869996190071106,
-0.8349068760871887,
0.5740901827812195,
0.43904414772987366,
0.6460005044937134,
0.8293874859809875,
-0.2138228863477707,
1.2449252605438232,
-0.7254894375801086,
0.8401795029640198,
0.6657785773277283,
-1.1656250953674316,
0.1624656319618225,
-0.3122098743915558,
0.489005446434021,
0.8179153800010681,
0.4243501126766205,
-1.011178970336914,
-0.49177974462509155,
-0.8523639440536499,
-1.1837228536605835,
0.8641288876533508,
0.2997336685657501,
-0.2826676070690155,
-0.1594245731830597,
0.03710654750466347,
0.20606544613838196,
0.31909316778182983,
-0.8295313715934753,
-0.45326441526412964,
0.06636843085289001,
-0.3807247579097748,
-0.3175518810749054,
-0.49754592776298523,
-0.5411173701286316,
-0.48423823714256287,
0.6994537711143494,
-0.034150950610637665,
0.4657575190067291,
0.1258438229560852,
-0.399218887090683,
-0.025325510650873184,
0.3031403422355652,
1.2721314430236816,
1.1437925100326538,
-0.4677456319332123,
0.17215363681316376,
-0.01833425648510456,
-0.7927806377410889,
0.036412790417671204,
0.08866096287965775,
-0.2499653846025467,
0.19159363210201263,
0.7668293118476868,
0.7715521454811096,
0.11048448085784912,
-0.8689067363739014,
0.6201047897338867,
0.024889351800084114,
-0.4558476209640503,
-1.0454792976379395,
-0.16945834457874298,
0.12824423611164093,
0.28575700521469116,
0.7885918617248535,
0.09260700643062592,
-0.16586783528327942,
-0.7781198024749756,
0.35885658860206604,
0.3573974668979645,
-0.25744500756263733,
-0.4206448197364807,
0.5131547451019287,
0.046156324446201324,
-0.15015451610088348,
0.8437255620956421,
-0.2911473214626312,
-0.5492189526557922,
0.7270988821983337,
0.7483985424041748,
0.483487993478775,
-0.47426021099090576,
0.09188491106033325,
0.8633495569229126,
0.5306562781333923,
-0.3265327215194702,
0.9864099025726318,
0.1584663987159729,
-0.8567993640899658,
-0.5883091688156128,
-0.4295442998409271,
-0.34728747606277466,
0.26840630173683167,
-0.9481796622276306,
0.3087173104286194,
-0.6126572489738464,
-0.11332567036151886,
-0.13001927733421326,
0.047112151980400085,
-0.9001905918121338,
0.32461777329444885,
-0.12495604157447815,
1.13615083694458,
-1.0359575748443604,
1.187348484992981,
0.7543138265609741,
-0.525263786315918,
-0.8157761693000793,
-0.18555255234241486,
-0.03598018363118172,
-1.5354572534561157,
0.697904109954834,
0.28874385356903076,
0.46526774764060974,
-0.40398743748664856,
-0.3540251553058624,
-1.1450856924057007,
1.0462868213653564,
0.4137105345726013,
-0.915423572063446,
-0.16117596626281738,
0.1606491655111313,
0.6776764392852783,
-0.3746764361858368,
0.49298396706581116,
0.6195711493492126,
0.9094575643539429,
0.13819848001003265,
-1.4017609357833862,
0.07673240453004837,
-0.37850403785705566,
-0.3591647446155548,
0.22834371030330658,
-1.0943986177444458,
1.5571285486221313,
-0.3425852060317993,
-0.16055063903331757,
0.069583460688591,
0.351765900850296,
0.47491535544395447,
-0.07345101237297058,
0.44015786051750183,
0.9945748448371887,
0.8985257148742676,
-0.2166755199432373,
0.8684332370758057,
-0.800719678401947,
0.62940514087677,
1.2824029922485352,
-0.3696751892566681,
1.0563955307006836,
0.7287042140960693,
-0.7329991459846497,
0.8151812553405762,
0.282916396856308,
-0.11313723027706146,
0.3973805606365204,
-0.2329075187444687,
-0.13837918639183044,
-0.23804563283920288,
0.5353730916976929,
-0.4684193432331085,
0.27102160453796387,
0.38312670588493347,
-0.6381251215934753,
-0.11041735112667084,
-0.2793293595314026,
0.789139986038208,
-0.1313886046409607,
0.03778344765305519,
0.49741894006729126,
0.21589690446853638,
-0.7488992810249329,
1.01031494140625,
0.012359626591205597,
0.5811250805854797,
-0.6351584792137146,
0.09326750785112381,
-0.2732516825199127,
0.48548266291618347,
-0.100455641746521,
-1.3023641109466553,
0.15741677582263947,
-0.06493575125932693,
-0.27363789081573486,
-0.002697394695132971,
0.2282634973526001,
-0.7879979610443115,
-0.7318472862243652,
0.4697283208370209,
0.5687978267669678,
0.09973959624767303,
-0.29518094658851624,
-0.7890214323997498,
-0.011372396722435951,
0.39081358909606934,
-0.3140857219696045,
0.04142620041966438,
0.6458159685134888,
-0.09739847481250763,
0.5729445815086365,
0.4087621867656708,
0.17580601572990417,
-0.0722290426492691,
-0.04068180173635483,
0.5412492752075195,
-1.1724263429641724,
-0.9007018208503723,
-0.8794877529144287,
0.7291361093521118,
-0.4071190655231476,
-0.654730498790741,
0.7312930226325989,
1.0338802337646484,
0.6804032921791077,
-0.4848077893257141,
0.9616913199424744,
-0.13847601413726807,
0.5079236030578613,
-0.7069664001464844,
0.6158259510993958,
-0.44180282950401306,
-0.3759046196937561,
-0.3519241213798523,
-1.1789441108703613,
-0.7502903938293457,
1.1151304244995117,
-0.09951583296060562,
-0.031202835962176323,
1.3566750288009644,
0.5037550330162048,
0.018881218507885933,
-0.3278624713420868,
0.5449087619781494,
0.6166680455207825,
0.14370039105415344,
1.0736324787139893,
0.3634437918663025,
-0.34488439559936523,
1.0019985437393188,
-0.16064453125,
-0.26185792684555054,
-0.28122496604919434,
-0.925197184085846,
-0.8130459785461426,
-0.6141563653945923,
-0.23320777714252472,
-0.476432204246521,
-0.025065867230296135,
0.8883451819419861,
0.45721426606178284,
-1.0655020475387573,
-0.48526623845100403,
0.3315163552761078,
-0.15258757770061493,
-0.2982221245765686,
-0.3197281062602997,
0.5347201228141785,
-0.15686264634132385,
-0.8225430250167847,
0.42216452956199646,
0.28336864709854126,
0.01764632947742939,
0.1883474886417389,
-0.2512963116168976,
-0.6081429719924927,
-0.09086329489946365,
0.8045839667320251,
0.36234521865844727,
-0.39257627725601196,
-0.6438193321228027,
-0.05632166936993599,
-0.14673176407814026,
0.5962557792663574,
0.5612114667892456,
-0.3629560172557831,
0.3450112044811249,
0.3567589223384857,
-0.08956944942474365,
0.6884272694587708,
-0.10221219807863235,
0.4516988694667816,
-0.7830321788787842,
0.6007022857666016,
-0.12273906171321869,
0.8761690855026245,
0.32726338505744934,
-0.2870713174343109,
0.6115370988845825,
0.5089784860610962,
-0.7607048153877258,
-0.541240930557251,
0.18822155892848969,
-1.4961292743682861,
-0.14046673476696014,
1.4769737720489502,
-0.3519088923931122,
-0.4225821793079376,
-0.18345679342746735,
-0.3487575054168701,
0.16061986982822418,
-0.9545877575874329,
0.9141904711723328,
1.0807321071624756,
0.007969575002789497,
0.12100327759981155,
-0.5442259311676025,
0.1651058942079544,
0.47181984782218933,
-0.5812641978263855,
-0.11415247619152069,
0.7677655220031738,
0.7487719655036926,
0.5504270792007446,
0.9088277816772461,
-0.4534217119216919,
0.32433250546455383,
-0.17225688695907593,
0.8369961977005005,
-0.0430094338953495,
-0.42486539483070374,
-0.23836705088615417,
0.15346604585647583,
0.05798782408237457,
-0.04787134379148483
] |
EK12317/Ekmix-Diffusion | EK12317 | "2023-03-20T15:28:39Z" | 102,191 | 57 | diffusers | [
"diffusers",
"stable-diffusion",
"stable-diffusion-diffusers",
"text-to-image",
"en",
"license:creativeml-openrail-m",
"endpoints_compatible",
"diffusers:StableDiffusionPipeline",
"region:us"
] | text-to-image | "2022-12-18T06:45:54Z" | ---
language:
- en
license: creativeml-openrail-m
tags:
- stable-diffusion
- stable-diffusion-diffusers
- text-to-image
- diffusers
inference: true
---
## Example:
”Negative prompt: (worst quality, low quality:1.4)” is really useful in anywhere
I think all models are great with correct Hires.fix
## Ekmix-Pastel
pastel but lines(with Hires.fix) (Merging the loras into the model.)
~~~
python networks\merge_lora.py --sd_model .\models\model.safetensors --save_to .\lora\2.safetensors --models .\lora\MagicLORA.pt .\lora\Jordan_3.safetensors .\lora\sttabi_v1.4-04.safetensors .\lora\xlimo768.pt .\lora\dpep2.pt --ratios 0.3 1 0.5 0.6 0.35
~~~
![](https://huggingface.co/EK12317/Ekmix-Diffusion/resolve/main/examples/xy_grid-0061-191289848-.png)
~~~
masterpiece,best quality,best quality,Amazing,beautiful detailed eyes,1girl,finely detail,Depth offield,extremely detailed CG unity 8k wallpaper,masterpiece,upper body,(vtuber minato aqua),pink hair,blue streaked hair, palace,holy,white long split mop dress ,mature female,standing,medium_breasts,silver-tiara,smile,black high heels,very long hair, body towards aside,jewelry,hair blue flower,grey eyes,close-up,
Negative prompt: (worst quality, low quality:1.3)
Steps: 30, Sampler: Euler a, CFG scale: 6, Seed: 191289851, Size: 512x768, Model hash: 0526445f65, Denoising strength: 0.5, Eta: 0.5, Clip skip: 2, ENSD: 31337, Hires resize: 856x1280, Hires steps: 30, Hires upscaler: Latent
~~~
pastel but lines(without hires fix) (better!)
![](https://huggingface.co/EK12317/Ekmix-Diffusion/resolve/main/examples/xy_grid-0078-2035526620.png)
~~~
{masterpiece},{best quality},{1girl,{{loli},black hair,blue eyes,very long hair,hair flower,hanfu,happy}},Amazing,beautiful detailed eyes,finely detail,Depth of field,extremely detailed CG,original,outdoors,beautiful detailed hand,beautiful detailed fingers,{{soaked},{wet through}},{body under water},standing,{beautiful detailed water,beautiful detailed sky,fluttered detailed splashs}
Negative prompt: (worst quality, low quality:1.3)
Steps: 30, Sampler: DPM++ 2M Karras, CFG scale: 6, Seed: 2035526620, Size: 768x512, Model hash: ca485b96f8, Eta: 0.5, Clip skip: 2, ENSD: 31337
~~~
## Ekmix-gen4
balance between anime and reality(Merging by block weighted merge.)
![0](https://huggingface.co/EK12317/Ekmix-Diffusion/resolve/main/examples/xy_grid-0273-620659051-masterpiece%2Cbest%20quality%2Cbest%20quality%2CAmazing%2Cbeautiful%20detailed%20eyes%2C1girl%2Cfinely%20detail%2CDepth%20offield%2Cextremely%20detailed%20CG%20un.png)
~~~
masterpiece,best quality,best quality,Amazing,beautiful detailed eyes,1girl,finely detail,Depth offield,extremely detailed CG unity 8k wallpaper,masterpiece,upper body,(vtuber minato aqua),pink hair,blue streaked hair, palace,holy,white long split mop dress ,mature female,standing,medium_breasts,silver-tiara,smile,black high heels,very long hair, body towards aside,jewelry,hair blue flower,grey eyes,close-up,
~~~
![1](https://huggingface.co/EK12317/Ekmix-Diffusion/resolve/main/examples/xy_grid-0274-439385113-%7Bmasterpiece%7D%2C%7Bbest%20quality%7D%2C%7B1girl%2C%7B%7Bloli%7D%2Cblack%20hair%2Cblue%20eyes%2Cvery%20long%20hair%2Chair%20flower%2Chanfu%2Chappy%7D%7D%2CAmazing%2Cbeautiful%20deta.png)
~~~
{masterpiece},{best quality},{1girl,{{loli},black hair,blue eyes,very long hair,hair flower,hanfu,happy}},Amazing,beautiful detailed eyes,finely detail,Depth of field,extremely detailed CG,original,outdoors,beautiful detailed hand,beautiful detailed fingers,{{soaked},{wet through}},{body under water},standing,{beautiful detailed water,beautiful detailed sky,fluttered detailed splashs},by Paul Hedley,
~~~
# Great hypernetworks
style1 and 2 are my favourite.
3,4 may need retrain.
![0](https://huggingface.co/EK12317/Ekmix-Diffusion/resolve/main/examples/xy_grid-0003-3253762592-%7Bmasterpiece%7D%2C%7Bbest%20quality%7D%2C%7B1girl%2C%7B%7Bloli%7D%2Cblack%20hair%2Cblue%20eyes%2Cvery%20long%20hair%2Chair%20flower%2Chanfu%2Chappy%7D%7D%2CAmazing%2Cbeautiful%20deta.png)
| [
-0.7168366312980652,
-0.9226812124252319,
0.6001108288764954,
0.3317742943763733,
-0.37321847677230835,
-0.2328975647687912,
0.10751530528068542,
-0.5979447364807129,
0.6602593660354614,
0.5479803681373596,
-0.6001960635185242,
-0.9782323241233826,
-0.5852234363555908,
0.004154128022491932,
-0.3447391092777252,
0.5845270752906799,
0.02954109013080597,
0.03679788485169411,
0.09879682213068008,
-0.015812989324331284,
-0.47839492559432983,
-0.18636907637119293,
-0.833194375038147,
-0.33111894130706787,
0.4148366451263428,
0.7244915962219238,
0.8239309787750244,
0.7964674830436707,
0.10732215642929077,
0.38172227144241333,
-0.3978348970413208,
0.021957525983452797,
-0.5610514283180237,
-0.024346327409148216,
0.03222089260816574,
-0.6690111756324768,
-0.883690595626831,
0.17249418795108795,
0.449931263923645,
0.22728508710861206,
-0.1334109604358673,
0.1845962405204773,
0.26979783177375793,
0.680167019367218,
-0.3166145384311676,
-0.12072952091693878,
-0.03253786265850067,
0.18035796284675598,
-0.26790475845336914,
0.19666117429733276,
-0.08988595008850098,
-0.1877240091562271,
-0.16721926629543304,
-0.8790273070335388,
0.29913386702537537,
0.030453460291028023,
1.4698855876922607,
-0.07691442966461182,
-0.21491780877113342,
0.19364790618419647,
-0.5039420127868652,
0.7786099910736084,
-0.7537148594856262,
0.1968556046485901,
0.38009005784988403,
0.24472829699516296,
-0.04839589074254036,
-0.8062812089920044,
-0.6343080401420593,
-0.01765814609825611,
-0.04486460238695145,
0.5514122247695923,
-0.3587903082370758,
-0.1834307760000229,
0.4412376582622528,
0.556728720664978,
-0.505617082118988,
0.14792340993881226,
-0.2839495539665222,
-0.22774216532707214,
0.6034231185913086,
0.260116845369339,
0.5860413908958435,
0.06820765137672424,
-0.3468152582645416,
-0.20912696421146393,
-0.611638069152832,
0.071540467441082,
0.5444905161857605,
-0.20023421943187714,
-0.49623551964759827,
0.5307865738868713,
-0.2733927071094513,
0.5205104947090149,
0.48984450101852417,
0.005072078667581081,
0.2109713852405548,
-0.17796070873737335,
-0.1231173500418663,
-0.24822330474853516,
0.8192020654678345,
0.6243329048156738,
-0.10137618333101273,
0.3379594087600708,
0.15999339520931244,
0.15937848389148712,
0.09300750494003296,
-1.0142313241958618,
-0.312704473733902,
0.5752438902854919,
-0.6394578218460083,
-0.4093565344810486,
-0.18878155946731567,
-0.9057292342185974,
0.016590630635619164,
-0.37062495946884155,
0.33909928798675537,
-0.38118040561676025,
-0.3545221984386444,
0.05414726957678795,
-0.24641455709934235,
0.25264856219291687,
0.471538782119751,
-0.2797262668609619,
-0.12690366804599762,
0.33596086502075195,
0.8170639872550964,
0.043075621128082275,
-0.12243908643722534,
0.10907110571861267,
-0.13926169276237488,
-0.5663307905197144,
0.7982174158096313,
-0.1672082543373108,
-0.3697308897972107,
-0.41370147466659546,
0.43229541182518005,
0.20750343799591064,
-0.6194857954978943,
0.8094515204429626,
-0.11698941886425018,
0.021746966987848282,
-0.4334304630756378,
-0.3846701979637146,
-0.32014182209968567,
0.02519688382744789,
-0.5373021960258484,
0.5435795783996582,
0.2460070252418518,
-0.8457828760147095,
0.1536700576543808,
-0.6708931922912598,
0.1620817631483078,
0.06813423335552216,
0.29342421889305115,
-0.6213885545730591,
-0.43577781319618225,
-0.057887934148311615,
0.4817226529121399,
0.07430869340896606,
-0.32317736744880676,
-0.794393002986908,
-0.2691584825515747,
0.2980361878871918,
0.05310020223259926,
1.072813868522644,
0.45166322588920593,
-0.4416574537754059,
-0.21276116371154785,
-0.8735995292663574,
0.1280122697353363,
0.39398157596588135,
-0.15010972321033478,
-0.17596259713172913,
-0.38045862317085266,
0.1271943300962448,
0.5331031084060669,
0.3336547017097473,
-0.4071456491947174,
-0.006727048195898533,
-0.21709592640399933,
0.35272660851478577,
0.7691562175750732,
0.19985653460025787,
0.34856221079826355,
-0.5626103281974792,
0.6166541576385498,
0.3999845087528229,
0.3808985948562622,
-0.15493862330913544,
-0.5613253116607666,
-1.2595938444137573,
-0.5506200790405273,
0.03563855215907097,
0.3676854372024536,
-0.731963574886322,
0.4388083815574646,
0.46460655331611633,
-0.9719498753547668,
-0.6122518181800842,
0.2076674997806549,
0.5340999364852905,
0.4764854609966278,
0.2681422233581543,
-0.39754971861839294,
-0.3552137613296509,
-1.170358419418335,
0.06254317611455917,
0.19070018827915192,
0.003382904687896371,
0.5112310647964478,
0.31255415081977844,
-0.5156940221786499,
0.6295326948165894,
-0.6243121027946472,
-0.2397228628396988,
-0.06324154138565063,
0.1130937933921814,
0.7029913067817688,
0.8342040181159973,
0.7630007266998291,
-0.8921743035316467,
-0.818050742149353,
-0.10912872850894928,
-0.7581683397293091,
-0.2084960788488388,
0.3522645831108093,
-0.7121975421905518,
0.07936415076255798,
0.0017339738551527262,
-0.7596884965896606,
0.41639623045921326,
0.556043267250061,
-0.7707600593566895,
0.8930703997612,
-0.3865458071231842,
0.588433027267456,
-1.3072969913482666,
0.3219780921936035,
0.3630713224411011,
-0.38366612792015076,
-0.7143806219100952,
0.6751194596290588,
-0.18706895411014557,
-0.0027495333924889565,
-0.7199230194091797,
0.6650444269180298,
-0.6156149506568909,
0.38418540358543396,
-0.3315947353839874,
0.12083807587623596,
0.16264458000659943,
0.6429582834243774,
0.07096980512142181,
0.28680169582366943,
0.7111681699752808,
-0.6849300861358643,
0.6042192578315735,
0.5917513370513916,
-0.1859295517206192,
1.0208470821380615,
-0.8754672408103943,
0.3197811543941498,
-0.12619967758655548,
0.03865816444158554,
-1.0158802270889282,
-0.33655622601509094,
0.6266618371009827,
-0.5576300621032715,
0.2723701298236847,
-0.2936808168888092,
-0.3328068256378174,
-0.46472400426864624,
-0.42028355598449707,
0.2354942411184311,
0.8378652930259705,
-0.4644272029399872,
0.3640517294406891,
0.1097223088145256,
0.001609250670298934,
-0.48064565658569336,
-0.8985294103622437,
0.024220244958996773,
-0.38425880670547485,
-0.7913426160812378,
0.26247143745422363,
-0.17602425813674927,
-0.2957589030265808,
-0.023432189598679543,
0.14734911918640137,
-0.31131240725517273,
-0.16511677205562592,
0.4406895041465759,
0.5606083273887634,
-0.34883028268814087,
-0.6840078830718994,
0.022992262616753578,
-0.11636227369308472,
-0.18823625147342682,
-0.01870506815612316,
0.4487658143043518,
-0.006821274291723967,
-0.32445791363716125,
-0.9116634130477905,
0.3755192160606384,
0.8181445598602295,
0.18416009843349457,
0.5634320378303528,
0.9581589102745056,
-0.24081328511238098,
0.11976466327905655,
-0.5705991387367249,
-0.19832147657871246,
-0.48286277055740356,
0.10585138201713562,
-0.0771557092666626,
-0.6873546242713928,
0.8438972234725952,
0.38286346197128296,
-0.07344170659780502,
0.7602983713150024,
0.3998795449733734,
-0.3369442820549011,
1.2886550426483154,
0.5243014693260193,
-0.10378917306661606,
0.5036556720733643,
-1.0127172470092773,
-0.04600461199879646,
-0.8537099361419678,
-0.19673298299312592,
-0.23286116123199463,
-0.5605844259262085,
-0.5988956689834595,
-0.412492573261261,
0.41372767090797424,
0.42308682203292847,
-0.3552870452404022,
0.7086691856384277,
-0.5019622445106506,
0.1588890105485916,
0.4655331075191498,
0.6892061233520508,
0.10854600369930267,
-0.1662839651107788,
-0.003896118840202689,
-0.14838115870952606,
-0.6059186458587646,
-0.2368185669183731,
0.7067064642906189,
0.2937144935131073,
0.5666359663009644,
0.09285427629947662,
0.5876967310905457,
0.3066311478614807,
0.11621091514825821,
-0.45794910192489624,
0.6032321453094482,
-0.17010505497455597,
-0.706544041633606,
-0.11827337741851807,
-0.3859747648239136,
-0.9915852546691895,
0.20857901871204376,
-0.5453255772590637,
-0.7378064393997192,
0.7448803782463074,
0.5366151928901672,
-0.39412054419517517,
0.22457899153232574,
-0.6814340949058533,
0.8065437078475952,
0.21465711295604706,
-0.7741549015045166,
-0.27834630012512207,
-0.5276000499725342,
0.4984593689441681,
0.19093839824199677,
0.09138517081737518,
-0.13983163237571716,
0.040172114968299866,
0.46570250391960144,
-0.7171151041984558,
0.6221021413803101,
-0.08592896163463593,
-0.0721229687333107,
0.6708974242210388,
0.2935016453266144,
0.4030294120311737,
0.10362750291824341,
0.3928029537200928,
0.35865575075149536,
-0.016114922240376472,
-0.5977258086204529,
-0.22178959846496582,
0.9105148911476135,
-0.730431079864502,
-0.469240665435791,
-0.10967517644166946,
-0.04239077866077423,
0.2267637699842453,
0.23648497462272644,
0.9407288432121277,
0.5502835512161255,
0.0496438667178154,
0.0546819269657135,
0.6972716450691223,
-0.2896416485309601,
0.3959691822528839,
0.24057833850383759,
-0.18326115608215332,
-0.5700422525405884,
0.9753902554512024,
0.20798565447330475,
0.5222408771514893,
-0.1076124832034111,
0.13885828852653503,
-0.06972014158964157,
-0.23763874173164368,
-0.35796257853507996,
0.48558905720710754,
-0.6918157935142517,
-0.2733064591884613,
-0.6634644865989685,
-0.31416982412338257,
-0.4153830409049988,
-0.23179535567760468,
-0.45091351866722107,
-0.19669635593891144,
-0.8598111867904663,
0.21079355478286743,
0.419981449842453,
0.3954014778137207,
-0.19263066351413727,
0.1783084124326706,
-0.7208200097084045,
0.4525056779384613,
0.3791162669658661,
0.35738641023635864,
0.10377748310565948,
-0.48275884985923767,
-0.1764102280139923,
0.2726932168006897,
-0.6323620676994324,
-1.0408552885055542,
0.6854380369186401,
-0.09697689861059189,
0.45080119371414185,
0.7573081851005554,
-0.31226298213005066,
0.7895214557647705,
-0.054168399423360825,
0.9161597490310669,
0.2772723138332367,
-0.5866991877555847,
0.33203041553497314,
-0.8379284739494324,
0.2575710415840149,
0.3852790892124176,
0.33878982067108154,
-0.6177217960357666,
-0.5231364369392395,
-0.9902040362358093,
-0.8898230791091919,
0.6893736124038696,
0.4777675271034241,
-0.17276154458522797,
0.17948651313781738,
0.4819212555885315,
-0.23725761473178864,
0.1473969966173172,
-0.6983278393745422,
-0.7226739525794983,
-0.2799932062625885,
0.08899689465761185,
-0.11952513456344604,
-0.3089539408683777,
0.07452179491519928,
-0.389029324054718,
1.0387746095657349,
0.025763383135199547,
0.5240793824195862,
0.48104557394981384,
0.2282623052597046,
-0.2199084758758545,
0.010374987497925758,
0.3479222059249878,
0.4453599452972412,
-0.06981875002384186,
-0.2743576467037201,
0.13540619611740112,
-0.4980703294277191,
0.2739086151123047,
-0.1766560822725296,
-0.27211499214172363,
0.09924609214067459,
0.1604532152414322,
0.4432322680950165,
-0.045280199497938156,
-0.2973431348800659,
0.5587125420570374,
0.07697993516921997,
-0.036454059183597565,
-0.2803533673286438,
0.3468649089336395,
0.23558948934078217,
0.49726781249046326,
0.005925794132053852,
0.26333102583885193,
0.535711944103241,
-0.5419751405715942,
0.03461521118879318,
0.3174199163913727,
-0.3810960054397583,
-0.38708746433258057,
0.8083169460296631,
-0.09855950623750687,
-0.22922572493553162,
0.44668251276016235,
-0.39503297209739685,
-0.5942933559417725,
0.9855029582977295,
0.5365564227104187,
0.8436455130577087,
-0.4120819568634033,
0.3310747444629669,
0.8965036869049072,
-0.21109910309314728,
-0.41113385558128357,
0.35774362087249756,
0.18974198400974274,
-0.5769644975662231,
-0.18654000759124756,
-0.596528172492981,
-0.17229712009429932,
0.2865264415740967,
-0.4243618845939636,
0.7757487297058105,
-0.5807042717933655,
-0.32288891077041626,
-0.2736407220363617,
-0.04531561955809593,
-0.4842754304409027,
0.25057974457740784,
0.16239406168460846,
0.962498664855957,
-1.034212350845337,
0.4626844525337219,
0.5884153842926025,
-0.4156341254711151,
-0.8957987427711487,
-0.31968608498573303,
0.14586347341537476,
-0.5134382247924805,
0.2690778076648712,
-0.03450692817568779,
0.04862159118056297,
-0.0015043027233332396,
-1.1613306999206543,
-0.8917518854141235,
1.2580238580703735,
0.41705071926116943,
-0.4806831181049347,
0.021955298259854317,
-0.27861136198043823,
0.6334789991378784,
-0.27995947003364563,
0.36789432168006897,
0.36323392391204834,
0.5877776741981506,
0.34578701853752136,
-0.5907608866691589,
0.043456267565488815,
-0.5526722073554993,
0.13966122269630432,
-0.06461866199970245,
-1.1732016801834106,
1.1069695949554443,
-0.12292233854532242,
-0.4083801507949829,
0.6026370525360107,
0.6120650172233582,
0.3995282053947449,
0.3747541010379791,
0.5081275701522827,
1.0399837493896484,
0.1117379367351532,
-0.148235023021698,
0.8739973902702332,
-0.29642513394355774,
0.4253140985965729,
0.5895566940307617,
0.40308064222335815,
0.4540911018848419,
0.013766005635261536,
-0.31407231092453003,
0.5491231083869934,
0.8741488456726074,
-0.1900157630443573,
0.22920309007167816,
-0.016887258738279343,
-0.08022625744342804,
-0.3159874379634857,
-0.1185281053185463,
-0.3774632215499878,
0.22554701566696167,
0.08274377137422562,
-0.328482985496521,
-0.04444010928273201,
-0.08879024535417557,
0.19986435770988464,
-0.007130723912268877,
-0.3448684811592102,
0.5509739518165588,
0.3509067893028259,
-0.35605812072753906,
0.7250962853431702,
-0.04397070035338402,
0.8607416749000549,
-0.49561235308647156,
-0.5079160332679749,
-0.4010712802410126,
0.0927836075425148,
-0.5033700466156006,
-0.782564640045166,
-0.007039210293442011,
-0.2666535973548889,
0.08847970515489578,
-0.1065959632396698,
0.6923247575759888,
-0.5263968706130981,
-0.43156951665878296,
0.2977699637413025,
0.09499936550855637,
0.48977774381637573,
-0.07589292526245117,
-1.0487943887710571,
-0.14042142033576965,
-0.04176599532365799,
-0.12468427419662476,
-0.021927956491708755,
0.315568208694458,
0.38101062178611755,
0.633507490158081,
0.5420399308204651,
0.38409513235092163,
-0.16087022423744202,
-0.2948732078075409,
0.5920860171318054,
-0.5351992845535278,
-0.6311457753181458,
-0.872850239276886,
0.6693463325500488,
-0.1921030730009079,
-0.3640803098678589,
0.9518036246299744,
0.4624529182910919,
0.565266489982605,
-0.28058096766471863,
0.42478615045547485,
-0.09355980157852173,
0.3133943974971771,
-0.4076663851737976,
0.9807895421981812,
-0.7266198992729187,
-0.21688641607761383,
-0.6992493271827698,
-1.1140230894088745,
0.06359472870826721,
0.5621293187141418,
0.2624182105064392,
0.08027723431587219,
0.32236701250076294,
0.822788655757904,
-0.2120891511440277,
-0.42247751355171204,
0.3640215992927551,
0.6005949974060059,
0.04215165972709656,
0.6224772334098816,
0.9389296770095825,
-0.4654223322868347,
0.09320871531963348,
-0.6520761847496033,
-0.301979660987854,
-0.5233173966407776,
-0.6757852435112,
-0.7332448363304138,
-0.6881342530250549,
-0.5413739085197449,
-0.7847495079040527,
-0.19132576882839203,
0.8382413387298584,
0.9584309458732605,
-0.6480523943901062,
-0.15274110436439514,
0.05763640254735947,
0.06250938028097153,
-0.3199499845504761,
-0.3171023428440094,
-0.05161776766180992,
0.3897886574268341,
-0.975213885307312,
-0.0042818826623260975,
0.19451719522476196,
0.624565601348877,
-0.24067610502243042,
-0.1300063580274582,
-0.0714176669716835,
-0.11105797439813614,
0.34752658009529114,
0.4000554084777832,
-0.41402125358581543,
-0.060665313154459,
-0.042806465178728104,
-0.040071696043014526,
0.22685685753822327,
0.31471365690231323,
-0.17367176711559296,
0.1716052144765854,
0.5758633017539978,
-0.1212751716375351,
0.5483869910240173,
0.017134852707386017,
0.2673586905002594,
-0.18552301824092865,
0.09663234651088715,
0.1174599900841713,
0.6505942940711975,
0.2507866322994232,
-0.7345944046974182,
0.39360347390174866,
0.6022862195968628,
-0.6972740888595581,
-0.5773289799690247,
0.15300939977169037,
-1.261062741279602,
-0.2445913851261139,
1.3342896699905396,
-0.21037602424621582,
-0.5119185447692871,
0.18570730090141296,
-0.6385971307754517,
0.25235527753829956,
-0.31494495272636414,
0.5772677659988403,
0.6641505360603333,
-0.07536737620830536,
-0.13405734300613403,
-0.45016834139823914,
0.2529919147491455,
0.17126376926898956,
-0.5792649388313293,
-0.18262463808059692,
0.7748119831085205,
0.5536217093467712,
0.4583439230918884,
0.5282343626022339,
-0.4551610052585602,
0.39965924620628357,
0.003430412383750081,
0.3547470271587372,
0.0004913931479677558,
-0.18217752873897552,
-0.4575148820877075,
-0.05429680645465851,
0.07938676327466965,
-0.23138688504695892
] |
Helsinki-NLP/opus-mt-mul-en | Helsinki-NLP | "2023-08-16T12:01:25Z" | 102,037 | 48 | transformers | [
"transformers",
"pytorch",
"tf",
"marian",
"text2text-generation",
"translation",
"ca",
"es",
"os",
"eo",
"ro",
"fy",
"cy",
"is",
"lb",
"su",
"an",
"sq",
"fr",
"ht",
"rm",
"cv",
"ig",
"am",
"eu",
"tr",
"ps",
"af",
"ny",
"ch",
"uk",
"sl",
"lt",
"tk",
"sg",
"ar",
"lg",
"bg",
"be",
"ka",
"gd",
"ja",
"si",
"br",
"mh",
"km",
"th",
"ty",
"rw",
"te",
"mk",
"or",
"wo",
"kl",
"mr",
"ru",
"yo",
"hu",
"fo",
"zh",
"ti",
"co",
"ee",
"oc",
"sn",
"mt",
"ts",
"pl",
"gl",
"nb",
"bn",
"tt",
"bo",
"lo",
"id",
"gn",
"nv",
"hy",
"kn",
"to",
"io",
"so",
"vi",
"da",
"fj",
"gv",
"sm",
"nl",
"mi",
"pt",
"hi",
"se",
"as",
"ta",
"et",
"kw",
"ga",
"sv",
"ln",
"na",
"mn",
"gu",
"wa",
"lv",
"jv",
"el",
"my",
"ba",
"it",
"hr",
"ur",
"ce",
"nn",
"fi",
"mg",
"rn",
"xh",
"ab",
"de",
"cs",
"he",
"zu",
"yi",
"ml",
"mul",
"en",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | translation | "2022-03-02T23:29:04Z" | ---
language:
- ca
- es
- os
- eo
- ro
- fy
- cy
- is
- lb
- su
- an
- sq
- fr
- ht
- rm
- cv
- ig
- am
- eu
- tr
- ps
- af
- ny
- ch
- uk
- sl
- lt
- tk
- sg
- ar
- lg
- bg
- be
- ka
- gd
- ja
- si
- br
- mh
- km
- th
- ty
- rw
- te
- mk
- or
- wo
- kl
- mr
- ru
- yo
- hu
- fo
- zh
- ti
- co
- ee
- oc
- sn
- mt
- ts
- pl
- gl
- nb
- bn
- tt
- bo
- lo
- id
- gn
- nv
- hy
- kn
- to
- io
- so
- vi
- da
- fj
- gv
- sm
- nl
- mi
- pt
- hi
- se
- as
- ta
- et
- kw
- ga
- sv
- ln
- na
- mn
- gu
- wa
- lv
- jv
- el
- my
- ba
- it
- hr
- ur
- ce
- nn
- fi
- mg
- rn
- xh
- ab
- de
- cs
- he
- zu
- yi
- ml
- mul
- en
tags:
- translation
license: apache-2.0
---
### mul-eng
* source group: Multiple languages
* target group: English
* OPUS readme: [mul-eng](https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/mul-eng/README.md)
* model: transformer
* source language(s): abk acm ady afb afh_Latn afr akl_Latn aln amh ang_Latn apc ara arg arq ary arz asm ast avk_Latn awa aze_Latn bak bam_Latn bel bel_Latn ben bho bod bos_Latn bre brx brx_Latn bul bul_Latn cat ceb ces cha che chr chv cjy_Hans cjy_Hant cmn cmn_Hans cmn_Hant cor cos crh crh_Latn csb_Latn cym dan deu dsb dtp dws_Latn egl ell enm_Latn epo est eus ewe ext fao fij fin fkv_Latn fra frm_Latn frr fry fuc fuv gan gcf_Latn gil gla gle glg glv gom gos got_Goth grc_Grek grn gsw guj hat hau_Latn haw heb hif_Latn hil hin hnj_Latn hoc hoc_Latn hrv hsb hun hye iba ibo ido ido_Latn ike_Latn ile_Latn ilo ina_Latn ind isl ita izh jav jav_Java jbo jbo_Cyrl jbo_Latn jdt_Cyrl jpn kab kal kan kat kaz_Cyrl kaz_Latn kek_Latn kha khm khm_Latn kin kir_Cyrl kjh kpv krl ksh kum kur_Arab kur_Latn lad lad_Latn lao lat_Latn lav ldn_Latn lfn_Cyrl lfn_Latn lij lin lit liv_Latn lkt lld_Latn lmo ltg ltz lug lzh lzh_Hans mad mah mai mal mar max_Latn mdf mfe mhr mic min mkd mlg mlt mnw moh mon mri mwl mww mya myv nan nau nav nds niu nld nno nob nob_Hebr nog non_Latn nov_Latn npi nya oci ori orv_Cyrl oss ota_Arab ota_Latn pag pan_Guru pap pau pdc pes pes_Latn pes_Thaa pms pnb pol por ppl_Latn prg_Latn pus quc qya qya_Latn rap rif_Latn roh rom ron rue run rus sag sah san_Deva scn sco sgs shs_Latn shy_Latn sin sjn_Latn slv sma sme smo sna snd_Arab som spa sqi srp_Cyrl srp_Latn stq sun swe swg swh tah tam tat tat_Arab tat_Latn tel tet tgk_Cyrl tha tir tlh_Latn tly_Latn tmw_Latn toi_Latn ton tpw_Latn tso tuk tuk_Latn tur tvl tyv tzl tzl_Latn udm uig_Arab uig_Cyrl ukr umb urd uzb_Cyrl uzb_Latn vec vie vie_Hani vol_Latn vro war wln wol wuu xal xho yid yor yue yue_Hans yue_Hant zho zho_Hans zho_Hant zlm_Latn zsm_Latn zul zza
* target language(s): eng
* model: transformer
* pre-processing: normalization + SentencePiece (spm32k,spm32k)
* download original weights: [opus2m-2020-08-01.zip](https://object.pouta.csc.fi/Tatoeba-MT-models/mul-eng/opus2m-2020-08-01.zip)
* test set translations: [opus2m-2020-08-01.test.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/mul-eng/opus2m-2020-08-01.test.txt)
* test set scores: [opus2m-2020-08-01.eval.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/mul-eng/opus2m-2020-08-01.eval.txt)
## Benchmarks
| testset | BLEU | chr-F |
|-----------------------|-------|-------|
| newsdev2014-hineng.hin.eng | 8.5 | 0.341 |
| newsdev2015-enfi-fineng.fin.eng | 16.8 | 0.441 |
| newsdev2016-enro-roneng.ron.eng | 31.3 | 0.580 |
| newsdev2016-entr-tureng.tur.eng | 16.4 | 0.422 |
| newsdev2017-enlv-laveng.lav.eng | 21.3 | 0.502 |
| newsdev2017-enzh-zhoeng.zho.eng | 12.7 | 0.409 |
| newsdev2018-enet-esteng.est.eng | 19.8 | 0.467 |
| newsdev2019-engu-gujeng.guj.eng | 13.3 | 0.385 |
| newsdev2019-enlt-liteng.lit.eng | 19.9 | 0.482 |
| newsdiscussdev2015-enfr-fraeng.fra.eng | 26.7 | 0.520 |
| newsdiscusstest2015-enfr-fraeng.fra.eng | 29.8 | 0.541 |
| newssyscomb2009-ceseng.ces.eng | 21.1 | 0.487 |
| newssyscomb2009-deueng.deu.eng | 22.6 | 0.499 |
| newssyscomb2009-fraeng.fra.eng | 25.8 | 0.530 |
| newssyscomb2009-huneng.hun.eng | 15.1 | 0.430 |
| newssyscomb2009-itaeng.ita.eng | 29.4 | 0.555 |
| newssyscomb2009-spaeng.spa.eng | 26.1 | 0.534 |
| news-test2008-deueng.deu.eng | 21.6 | 0.491 |
| news-test2008-fraeng.fra.eng | 22.3 | 0.502 |
| news-test2008-spaeng.spa.eng | 23.6 | 0.514 |
| newstest2009-ceseng.ces.eng | 19.8 | 0.480 |
| newstest2009-deueng.deu.eng | 20.9 | 0.487 |
| newstest2009-fraeng.fra.eng | 25.0 | 0.523 |
| newstest2009-huneng.hun.eng | 14.7 | 0.425 |
| newstest2009-itaeng.ita.eng | 27.6 | 0.542 |
| newstest2009-spaeng.spa.eng | 25.7 | 0.530 |
| newstest2010-ceseng.ces.eng | 20.6 | 0.491 |
| newstest2010-deueng.deu.eng | 23.4 | 0.517 |
| newstest2010-fraeng.fra.eng | 26.1 | 0.537 |
| newstest2010-spaeng.spa.eng | 29.1 | 0.561 |
| newstest2011-ceseng.ces.eng | 21.0 | 0.489 |
| newstest2011-deueng.deu.eng | 21.3 | 0.494 |
| newstest2011-fraeng.fra.eng | 26.8 | 0.546 |
| newstest2011-spaeng.spa.eng | 28.2 | 0.549 |
| newstest2012-ceseng.ces.eng | 20.5 | 0.485 |
| newstest2012-deueng.deu.eng | 22.3 | 0.503 |
| newstest2012-fraeng.fra.eng | 27.5 | 0.545 |
| newstest2012-ruseng.rus.eng | 26.6 | 0.532 |
| newstest2012-spaeng.spa.eng | 30.3 | 0.567 |
| newstest2013-ceseng.ces.eng | 22.5 | 0.498 |
| newstest2013-deueng.deu.eng | 25.0 | 0.518 |
| newstest2013-fraeng.fra.eng | 27.4 | 0.537 |
| newstest2013-ruseng.rus.eng | 21.6 | 0.484 |
| newstest2013-spaeng.spa.eng | 28.4 | 0.555 |
| newstest2014-csen-ceseng.ces.eng | 24.0 | 0.517 |
| newstest2014-deen-deueng.deu.eng | 24.1 | 0.511 |
| newstest2014-fren-fraeng.fra.eng | 29.1 | 0.563 |
| newstest2014-hien-hineng.hin.eng | 14.0 | 0.414 |
| newstest2014-ruen-ruseng.rus.eng | 24.0 | 0.521 |
| newstest2015-encs-ceseng.ces.eng | 21.9 | 0.481 |
| newstest2015-ende-deueng.deu.eng | 25.5 | 0.519 |
| newstest2015-enfi-fineng.fin.eng | 17.4 | 0.441 |
| newstest2015-enru-ruseng.rus.eng | 22.4 | 0.494 |
| newstest2016-encs-ceseng.ces.eng | 23.0 | 0.500 |
| newstest2016-ende-deueng.deu.eng | 30.1 | 0.560 |
| newstest2016-enfi-fineng.fin.eng | 18.5 | 0.461 |
| newstest2016-enro-roneng.ron.eng | 29.6 | 0.562 |
| newstest2016-enru-ruseng.rus.eng | 22.0 | 0.495 |
| newstest2016-entr-tureng.tur.eng | 14.8 | 0.415 |
| newstest2017-encs-ceseng.ces.eng | 20.2 | 0.475 |
| newstest2017-ende-deueng.deu.eng | 26.0 | 0.523 |
| newstest2017-enfi-fineng.fin.eng | 19.6 | 0.465 |
| newstest2017-enlv-laveng.lav.eng | 16.2 | 0.454 |
| newstest2017-enru-ruseng.rus.eng | 24.2 | 0.510 |
| newstest2017-entr-tureng.tur.eng | 15.0 | 0.412 |
| newstest2017-enzh-zhoeng.zho.eng | 13.7 | 0.412 |
| newstest2018-encs-ceseng.ces.eng | 21.2 | 0.486 |
| newstest2018-ende-deueng.deu.eng | 31.5 | 0.564 |
| newstest2018-enet-esteng.est.eng | 19.7 | 0.473 |
| newstest2018-enfi-fineng.fin.eng | 15.1 | 0.418 |
| newstest2018-enru-ruseng.rus.eng | 21.3 | 0.490 |
| newstest2018-entr-tureng.tur.eng | 15.4 | 0.421 |
| newstest2018-enzh-zhoeng.zho.eng | 12.9 | 0.408 |
| newstest2019-deen-deueng.deu.eng | 27.0 | 0.529 |
| newstest2019-fien-fineng.fin.eng | 17.2 | 0.438 |
| newstest2019-guen-gujeng.guj.eng | 9.0 | 0.342 |
| newstest2019-lten-liteng.lit.eng | 22.6 | 0.512 |
| newstest2019-ruen-ruseng.rus.eng | 24.1 | 0.503 |
| newstest2019-zhen-zhoeng.zho.eng | 13.9 | 0.427 |
| newstestB2016-enfi-fineng.fin.eng | 15.2 | 0.428 |
| newstestB2017-enfi-fineng.fin.eng | 16.8 | 0.442 |
| newstestB2017-fien-fineng.fin.eng | 16.8 | 0.442 |
| Tatoeba-test.abk-eng.abk.eng | 2.4 | 0.190 |
| Tatoeba-test.ady-eng.ady.eng | 1.1 | 0.111 |
| Tatoeba-test.afh-eng.afh.eng | 1.7 | 0.108 |
| Tatoeba-test.afr-eng.afr.eng | 53.0 | 0.672 |
| Tatoeba-test.akl-eng.akl.eng | 5.9 | 0.239 |
| Tatoeba-test.amh-eng.amh.eng | 25.6 | 0.464 |
| Tatoeba-test.ang-eng.ang.eng | 11.7 | 0.289 |
| Tatoeba-test.ara-eng.ara.eng | 26.4 | 0.443 |
| Tatoeba-test.arg-eng.arg.eng | 35.9 | 0.473 |
| Tatoeba-test.asm-eng.asm.eng | 19.8 | 0.365 |
| Tatoeba-test.ast-eng.ast.eng | 31.8 | 0.467 |
| Tatoeba-test.avk-eng.avk.eng | 0.4 | 0.119 |
| Tatoeba-test.awa-eng.awa.eng | 9.7 | 0.271 |
| Tatoeba-test.aze-eng.aze.eng | 37.0 | 0.542 |
| Tatoeba-test.bak-eng.bak.eng | 13.9 | 0.395 |
| Tatoeba-test.bam-eng.bam.eng | 2.2 | 0.094 |
| Tatoeba-test.bel-eng.bel.eng | 36.8 | 0.549 |
| Tatoeba-test.ben-eng.ben.eng | 39.7 | 0.546 |
| Tatoeba-test.bho-eng.bho.eng | 33.6 | 0.540 |
| Tatoeba-test.bod-eng.bod.eng | 1.1 | 0.147 |
| Tatoeba-test.bre-eng.bre.eng | 14.2 | 0.303 |
| Tatoeba-test.brx-eng.brx.eng | 1.7 | 0.130 |
| Tatoeba-test.bul-eng.bul.eng | 46.0 | 0.621 |
| Tatoeba-test.cat-eng.cat.eng | 46.6 | 0.636 |
| Tatoeba-test.ceb-eng.ceb.eng | 17.4 | 0.347 |
| Tatoeba-test.ces-eng.ces.eng | 41.3 | 0.586 |
| Tatoeba-test.cha-eng.cha.eng | 7.9 | 0.232 |
| Tatoeba-test.che-eng.che.eng | 0.7 | 0.104 |
| Tatoeba-test.chm-eng.chm.eng | 7.3 | 0.261 |
| Tatoeba-test.chr-eng.chr.eng | 8.8 | 0.244 |
| Tatoeba-test.chv-eng.chv.eng | 11.0 | 0.319 |
| Tatoeba-test.cor-eng.cor.eng | 5.4 | 0.204 |
| Tatoeba-test.cos-eng.cos.eng | 58.2 | 0.643 |
| Tatoeba-test.crh-eng.crh.eng | 26.3 | 0.399 |
| Tatoeba-test.csb-eng.csb.eng | 18.8 | 0.389 |
| Tatoeba-test.cym-eng.cym.eng | 23.4 | 0.407 |
| Tatoeba-test.dan-eng.dan.eng | 50.5 | 0.659 |
| Tatoeba-test.deu-eng.deu.eng | 39.6 | 0.579 |
| Tatoeba-test.dsb-eng.dsb.eng | 24.3 | 0.449 |
| Tatoeba-test.dtp-eng.dtp.eng | 1.0 | 0.149 |
| Tatoeba-test.dws-eng.dws.eng | 1.6 | 0.061 |
| Tatoeba-test.egl-eng.egl.eng | 7.6 | 0.236 |
| Tatoeba-test.ell-eng.ell.eng | 55.4 | 0.682 |
| Tatoeba-test.enm-eng.enm.eng | 28.0 | 0.489 |
| Tatoeba-test.epo-eng.epo.eng | 41.8 | 0.591 |
| Tatoeba-test.est-eng.est.eng | 41.5 | 0.581 |
| Tatoeba-test.eus-eng.eus.eng | 37.8 | 0.557 |
| Tatoeba-test.ewe-eng.ewe.eng | 10.7 | 0.262 |
| Tatoeba-test.ext-eng.ext.eng | 25.5 | 0.405 |
| Tatoeba-test.fao-eng.fao.eng | 28.7 | 0.469 |
| Tatoeba-test.fas-eng.fas.eng | 7.5 | 0.281 |
| Tatoeba-test.fij-eng.fij.eng | 24.2 | 0.320 |
| Tatoeba-test.fin-eng.fin.eng | 35.8 | 0.534 |
| Tatoeba-test.fkv-eng.fkv.eng | 15.5 | 0.434 |
| Tatoeba-test.fra-eng.fra.eng | 45.1 | 0.618 |
| Tatoeba-test.frm-eng.frm.eng | 29.6 | 0.427 |
| Tatoeba-test.frr-eng.frr.eng | 5.5 | 0.138 |
| Tatoeba-test.fry-eng.fry.eng | 25.3 | 0.455 |
| Tatoeba-test.ful-eng.ful.eng | 1.1 | 0.127 |
| Tatoeba-test.gcf-eng.gcf.eng | 16.0 | 0.315 |
| Tatoeba-test.gil-eng.gil.eng | 46.7 | 0.587 |
| Tatoeba-test.gla-eng.gla.eng | 20.2 | 0.358 |
| Tatoeba-test.gle-eng.gle.eng | 43.9 | 0.592 |
| Tatoeba-test.glg-eng.glg.eng | 45.1 | 0.623 |
| Tatoeba-test.glv-eng.glv.eng | 3.3 | 0.119 |
| Tatoeba-test.gos-eng.gos.eng | 20.1 | 0.364 |
| Tatoeba-test.got-eng.got.eng | 0.1 | 0.041 |
| Tatoeba-test.grc-eng.grc.eng | 2.1 | 0.137 |
| Tatoeba-test.grn-eng.grn.eng | 1.7 | 0.152 |
| Tatoeba-test.gsw-eng.gsw.eng | 18.2 | 0.334 |
| Tatoeba-test.guj-eng.guj.eng | 21.7 | 0.373 |
| Tatoeba-test.hat-eng.hat.eng | 34.5 | 0.502 |
| Tatoeba-test.hau-eng.hau.eng | 10.5 | 0.295 |
| Tatoeba-test.haw-eng.haw.eng | 2.8 | 0.160 |
| Tatoeba-test.hbs-eng.hbs.eng | 46.7 | 0.623 |
| Tatoeba-test.heb-eng.heb.eng | 33.0 | 0.492 |
| Tatoeba-test.hif-eng.hif.eng | 17.0 | 0.391 |
| Tatoeba-test.hil-eng.hil.eng | 16.0 | 0.339 |
| Tatoeba-test.hin-eng.hin.eng | 36.4 | 0.533 |
| Tatoeba-test.hmn-eng.hmn.eng | 0.4 | 0.131 |
| Tatoeba-test.hoc-eng.hoc.eng | 0.7 | 0.132 |
| Tatoeba-test.hsb-eng.hsb.eng | 41.9 | 0.551 |
| Tatoeba-test.hun-eng.hun.eng | 33.2 | 0.510 |
| Tatoeba-test.hye-eng.hye.eng | 32.2 | 0.487 |
| Tatoeba-test.iba-eng.iba.eng | 9.4 | 0.278 |
| Tatoeba-test.ibo-eng.ibo.eng | 5.8 | 0.200 |
| Tatoeba-test.ido-eng.ido.eng | 31.7 | 0.503 |
| Tatoeba-test.iku-eng.iku.eng | 9.1 | 0.164 |
| Tatoeba-test.ile-eng.ile.eng | 42.2 | 0.595 |
| Tatoeba-test.ilo-eng.ilo.eng | 29.7 | 0.485 |
| Tatoeba-test.ina-eng.ina.eng | 42.1 | 0.607 |
| Tatoeba-test.isl-eng.isl.eng | 35.7 | 0.527 |
| Tatoeba-test.ita-eng.ita.eng | 54.8 | 0.686 |
| Tatoeba-test.izh-eng.izh.eng | 28.3 | 0.526 |
| Tatoeba-test.jav-eng.jav.eng | 10.0 | 0.282 |
| Tatoeba-test.jbo-eng.jbo.eng | 0.3 | 0.115 |
| Tatoeba-test.jdt-eng.jdt.eng | 5.3 | 0.140 |
| Tatoeba-test.jpn-eng.jpn.eng | 18.8 | 0.387 |
| Tatoeba-test.kab-eng.kab.eng | 3.9 | 0.205 |
| Tatoeba-test.kal-eng.kal.eng | 16.9 | 0.329 |
| Tatoeba-test.kan-eng.kan.eng | 16.2 | 0.374 |
| Tatoeba-test.kat-eng.kat.eng | 31.1 | 0.493 |
| Tatoeba-test.kaz-eng.kaz.eng | 24.5 | 0.437 |
| Tatoeba-test.kek-eng.kek.eng | 7.4 | 0.192 |
| Tatoeba-test.kha-eng.kha.eng | 1.0 | 0.154 |
| Tatoeba-test.khm-eng.khm.eng | 12.2 | 0.290 |
| Tatoeba-test.kin-eng.kin.eng | 22.5 | 0.355 |
| Tatoeba-test.kir-eng.kir.eng | 27.2 | 0.470 |
| Tatoeba-test.kjh-eng.kjh.eng | 2.1 | 0.129 |
| Tatoeba-test.kok-eng.kok.eng | 4.5 | 0.259 |
| Tatoeba-test.kom-eng.kom.eng | 1.4 | 0.099 |
| Tatoeba-test.krl-eng.krl.eng | 26.1 | 0.387 |
| Tatoeba-test.ksh-eng.ksh.eng | 5.5 | 0.256 |
| Tatoeba-test.kum-eng.kum.eng | 9.3 | 0.288 |
| Tatoeba-test.kur-eng.kur.eng | 9.6 | 0.208 |
| Tatoeba-test.lad-eng.lad.eng | 30.1 | 0.475 |
| Tatoeba-test.lah-eng.lah.eng | 11.6 | 0.284 |
| Tatoeba-test.lao-eng.lao.eng | 4.5 | 0.214 |
| Tatoeba-test.lat-eng.lat.eng | 21.5 | 0.402 |
| Tatoeba-test.lav-eng.lav.eng | 40.2 | 0.577 |
| Tatoeba-test.ldn-eng.ldn.eng | 0.8 | 0.115 |
| Tatoeba-test.lfn-eng.lfn.eng | 23.0 | 0.433 |
| Tatoeba-test.lij-eng.lij.eng | 9.3 | 0.287 |
| Tatoeba-test.lin-eng.lin.eng | 2.4 | 0.196 |
| Tatoeba-test.lit-eng.lit.eng | 44.0 | 0.597 |
| Tatoeba-test.liv-eng.liv.eng | 1.6 | 0.115 |
| Tatoeba-test.lkt-eng.lkt.eng | 2.0 | 0.113 |
| Tatoeba-test.lld-eng.lld.eng | 18.3 | 0.312 |
| Tatoeba-test.lmo-eng.lmo.eng | 25.4 | 0.395 |
| Tatoeba-test.ltz-eng.ltz.eng | 35.9 | 0.509 |
| Tatoeba-test.lug-eng.lug.eng | 5.1 | 0.357 |
| Tatoeba-test.mad-eng.mad.eng | 2.8 | 0.123 |
| Tatoeba-test.mah-eng.mah.eng | 5.7 | 0.175 |
| Tatoeba-test.mai-eng.mai.eng | 56.3 | 0.703 |
| Tatoeba-test.mal-eng.mal.eng | 37.5 | 0.534 |
| Tatoeba-test.mar-eng.mar.eng | 22.8 | 0.470 |
| Tatoeba-test.mdf-eng.mdf.eng | 2.0 | 0.110 |
| Tatoeba-test.mfe-eng.mfe.eng | 59.2 | 0.764 |
| Tatoeba-test.mic-eng.mic.eng | 9.0 | 0.199 |
| Tatoeba-test.mkd-eng.mkd.eng | 44.3 | 0.593 |
| Tatoeba-test.mlg-eng.mlg.eng | 31.9 | 0.424 |
| Tatoeba-test.mlt-eng.mlt.eng | 38.6 | 0.540 |
| Tatoeba-test.mnw-eng.mnw.eng | 2.5 | 0.101 |
| Tatoeba-test.moh-eng.moh.eng | 0.3 | 0.110 |
| Tatoeba-test.mon-eng.mon.eng | 13.5 | 0.334 |
| Tatoeba-test.mri-eng.mri.eng | 8.5 | 0.260 |
| Tatoeba-test.msa-eng.msa.eng | 33.9 | 0.520 |
| Tatoeba-test.multi.eng | 34.7 | 0.518 |
| Tatoeba-test.mwl-eng.mwl.eng | 37.4 | 0.630 |
| Tatoeba-test.mya-eng.mya.eng | 15.5 | 0.335 |
| Tatoeba-test.myv-eng.myv.eng | 0.8 | 0.118 |
| Tatoeba-test.nau-eng.nau.eng | 9.0 | 0.186 |
| Tatoeba-test.nav-eng.nav.eng | 1.3 | 0.144 |
| Tatoeba-test.nds-eng.nds.eng | 30.7 | 0.495 |
| Tatoeba-test.nep-eng.nep.eng | 3.5 | 0.168 |
| Tatoeba-test.niu-eng.niu.eng | 42.7 | 0.492 |
| Tatoeba-test.nld-eng.nld.eng | 47.9 | 0.640 |
| Tatoeba-test.nog-eng.nog.eng | 12.7 | 0.284 |
| Tatoeba-test.non-eng.non.eng | 43.8 | 0.586 |
| Tatoeba-test.nor-eng.nor.eng | 45.5 | 0.619 |
| Tatoeba-test.nov-eng.nov.eng | 26.9 | 0.472 |
| Tatoeba-test.nya-eng.nya.eng | 33.2 | 0.456 |
| Tatoeba-test.oci-eng.oci.eng | 17.9 | 0.370 |
| Tatoeba-test.ori-eng.ori.eng | 14.6 | 0.305 |
| Tatoeba-test.orv-eng.orv.eng | 11.0 | 0.283 |
| Tatoeba-test.oss-eng.oss.eng | 4.1 | 0.211 |
| Tatoeba-test.ota-eng.ota.eng | 4.1 | 0.216 |
| Tatoeba-test.pag-eng.pag.eng | 24.3 | 0.468 |
| Tatoeba-test.pan-eng.pan.eng | 16.4 | 0.358 |
| Tatoeba-test.pap-eng.pap.eng | 53.2 | 0.628 |
| Tatoeba-test.pau-eng.pau.eng | 3.7 | 0.173 |
| Tatoeba-test.pdc-eng.pdc.eng | 45.3 | 0.569 |
| Tatoeba-test.pms-eng.pms.eng | 14.0 | 0.345 |
| Tatoeba-test.pol-eng.pol.eng | 41.7 | 0.588 |
| Tatoeba-test.por-eng.por.eng | 51.4 | 0.669 |
| Tatoeba-test.ppl-eng.ppl.eng | 0.4 | 0.134 |
| Tatoeba-test.prg-eng.prg.eng | 4.1 | 0.198 |
| Tatoeba-test.pus-eng.pus.eng | 6.7 | 0.233 |
| Tatoeba-test.quc-eng.quc.eng | 3.5 | 0.091 |
| Tatoeba-test.qya-eng.qya.eng | 0.2 | 0.090 |
| Tatoeba-test.rap-eng.rap.eng | 17.5 | 0.230 |
| Tatoeba-test.rif-eng.rif.eng | 4.2 | 0.164 |
| Tatoeba-test.roh-eng.roh.eng | 24.6 | 0.464 |
| Tatoeba-test.rom-eng.rom.eng | 3.4 | 0.212 |
| Tatoeba-test.ron-eng.ron.eng | 45.2 | 0.620 |
| Tatoeba-test.rue-eng.rue.eng | 21.4 | 0.390 |
| Tatoeba-test.run-eng.run.eng | 24.5 | 0.392 |
| Tatoeba-test.rus-eng.rus.eng | 42.7 | 0.591 |
| Tatoeba-test.sag-eng.sag.eng | 3.4 | 0.187 |
| Tatoeba-test.sah-eng.sah.eng | 5.0 | 0.177 |
| Tatoeba-test.san-eng.san.eng | 2.0 | 0.172 |
| Tatoeba-test.scn-eng.scn.eng | 35.8 | 0.410 |
| Tatoeba-test.sco-eng.sco.eng | 34.6 | 0.520 |
| Tatoeba-test.sgs-eng.sgs.eng | 21.8 | 0.299 |
| Tatoeba-test.shs-eng.shs.eng | 1.8 | 0.122 |
| Tatoeba-test.shy-eng.shy.eng | 1.4 | 0.104 |
| Tatoeba-test.sin-eng.sin.eng | 20.6 | 0.429 |
| Tatoeba-test.sjn-eng.sjn.eng | 1.2 | 0.095 |
| Tatoeba-test.slv-eng.slv.eng | 37.0 | 0.545 |
| Tatoeba-test.sma-eng.sma.eng | 4.4 | 0.147 |
| Tatoeba-test.sme-eng.sme.eng | 8.9 | 0.229 |
| Tatoeba-test.smo-eng.smo.eng | 37.7 | 0.483 |
| Tatoeba-test.sna-eng.sna.eng | 18.0 | 0.359 |
| Tatoeba-test.snd-eng.snd.eng | 28.1 | 0.444 |
| Tatoeba-test.som-eng.som.eng | 23.6 | 0.472 |
| Tatoeba-test.spa-eng.spa.eng | 47.9 | 0.645 |
| Tatoeba-test.sqi-eng.sqi.eng | 46.9 | 0.634 |
| Tatoeba-test.stq-eng.stq.eng | 8.1 | 0.379 |
| Tatoeba-test.sun-eng.sun.eng | 23.8 | 0.369 |
| Tatoeba-test.swa-eng.swa.eng | 6.5 | 0.193 |
| Tatoeba-test.swe-eng.swe.eng | 51.4 | 0.655 |
| Tatoeba-test.swg-eng.swg.eng | 18.5 | 0.342 |
| Tatoeba-test.tah-eng.tah.eng | 25.6 | 0.249 |
| Tatoeba-test.tam-eng.tam.eng | 29.1 | 0.437 |
| Tatoeba-test.tat-eng.tat.eng | 12.9 | 0.327 |
| Tatoeba-test.tel-eng.tel.eng | 21.2 | 0.386 |
| Tatoeba-test.tet-eng.tet.eng | 9.2 | 0.215 |
| Tatoeba-test.tgk-eng.tgk.eng | 12.7 | 0.374 |
| Tatoeba-test.tha-eng.tha.eng | 36.3 | 0.531 |
| Tatoeba-test.tir-eng.tir.eng | 9.1 | 0.267 |
| Tatoeba-test.tlh-eng.tlh.eng | 0.2 | 0.084 |
| Tatoeba-test.tly-eng.tly.eng | 2.1 | 0.128 |
| Tatoeba-test.toi-eng.toi.eng | 5.3 | 0.150 |
| Tatoeba-test.ton-eng.ton.eng | 39.5 | 0.473 |
| Tatoeba-test.tpw-eng.tpw.eng | 1.5 | 0.160 |
| Tatoeba-test.tso-eng.tso.eng | 44.7 | 0.526 |
| Tatoeba-test.tuk-eng.tuk.eng | 18.6 | 0.401 |
| Tatoeba-test.tur-eng.tur.eng | 40.5 | 0.573 |
| Tatoeba-test.tvl-eng.tvl.eng | 55.0 | 0.593 |
| Tatoeba-test.tyv-eng.tyv.eng | 19.1 | 0.477 |
| Tatoeba-test.tzl-eng.tzl.eng | 17.7 | 0.333 |
| Tatoeba-test.udm-eng.udm.eng | 3.4 | 0.217 |
| Tatoeba-test.uig-eng.uig.eng | 11.4 | 0.289 |
| Tatoeba-test.ukr-eng.ukr.eng | 43.1 | 0.595 |
| Tatoeba-test.umb-eng.umb.eng | 9.2 | 0.260 |
| Tatoeba-test.urd-eng.urd.eng | 23.2 | 0.426 |
| Tatoeba-test.uzb-eng.uzb.eng | 19.0 | 0.342 |
| Tatoeba-test.vec-eng.vec.eng | 41.1 | 0.409 |
| Tatoeba-test.vie-eng.vie.eng | 30.6 | 0.481 |
| Tatoeba-test.vol-eng.vol.eng | 1.8 | 0.143 |
| Tatoeba-test.war-eng.war.eng | 15.9 | 0.352 |
| Tatoeba-test.wln-eng.wln.eng | 12.6 | 0.291 |
| Tatoeba-test.wol-eng.wol.eng | 4.4 | 0.138 |
| Tatoeba-test.xal-eng.xal.eng | 0.9 | 0.153 |
| Tatoeba-test.xho-eng.xho.eng | 35.4 | 0.513 |
| Tatoeba-test.yid-eng.yid.eng | 19.4 | 0.387 |
| Tatoeba-test.yor-eng.yor.eng | 19.3 | 0.327 |
| Tatoeba-test.zho-eng.zho.eng | 25.8 | 0.448 |
| Tatoeba-test.zul-eng.zul.eng | 40.9 | 0.567 |
| Tatoeba-test.zza-eng.zza.eng | 1.6 | 0.125 |
### System Info:
- hf_name: mul-eng
- source_languages: mul
- target_languages: eng
- opus_readme_url: https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/mul-eng/README.md
- original_repo: Tatoeba-Challenge
- tags: ['translation']
- languages: ['ca', 'es', 'os', 'eo', 'ro', 'fy', 'cy', 'is', 'lb', 'su', 'an', 'sq', 'fr', 'ht', 'rm', 'cv', 'ig', 'am', 'eu', 'tr', 'ps', 'af', 'ny', 'ch', 'uk', 'sl', 'lt', 'tk', 'sg', 'ar', 'lg', 'bg', 'be', 'ka', 'gd', 'ja', 'si', 'br', 'mh', 'km', 'th', 'ty', 'rw', 'te', 'mk', 'or', 'wo', 'kl', 'mr', 'ru', 'yo', 'hu', 'fo', 'zh', 'ti', 'co', 'ee', 'oc', 'sn', 'mt', 'ts', 'pl', 'gl', 'nb', 'bn', 'tt', 'bo', 'lo', 'id', 'gn', 'nv', 'hy', 'kn', 'to', 'io', 'so', 'vi', 'da', 'fj', 'gv', 'sm', 'nl', 'mi', 'pt', 'hi', 'se', 'as', 'ta', 'et', 'kw', 'ga', 'sv', 'ln', 'na', 'mn', 'gu', 'wa', 'lv', 'jv', 'el', 'my', 'ba', 'it', 'hr', 'ur', 'ce', 'nn', 'fi', 'mg', 'rn', 'xh', 'ab', 'de', 'cs', 'he', 'zu', 'yi', 'ml', 'mul', 'en']
- src_constituents: {'sjn_Latn', 'cat', 'nan', 'spa', 'ile_Latn', 'pap', 'mwl', 'uzb_Latn', 'mww', 'hil', 'lij', 'avk_Latn', 'lad_Latn', 'lat_Latn', 'bos_Latn', 'oss', 'epo', 'ron', 'fry', 'cym', 'toi_Latn', 'awa', 'swg', 'zsm_Latn', 'zho_Hant', 'gcf_Latn', 'uzb_Cyrl', 'isl', 'lfn_Latn', 'shs_Latn', 'nov_Latn', 'bho', 'ltz', 'lzh', 'kur_Latn', 'sun', 'arg', 'pes_Thaa', 'sqi', 'uig_Arab', 'csb_Latn', 'fra', 'hat', 'liv_Latn', 'non_Latn', 'sco', 'cmn_Hans', 'pnb', 'roh', 'chv', 'ibo', 'bul_Latn', 'amh', 'lfn_Cyrl', 'eus', 'fkv_Latn', 'tur', 'pus', 'afr', 'brx_Latn', 'nya', 'acm', 'ota_Latn', 'cha', 'ukr', 'xal', 'slv', 'lit', 'zho_Hans', 'tmw_Latn', 'kjh', 'ota_Arab', 'war', 'tuk', 'sag', 'myv', 'hsb', 'lzh_Hans', 'ara', 'tly_Latn', 'lug', 'brx', 'bul', 'bel', 'vol_Latn', 'kat', 'gan', 'got_Goth', 'vro', 'ext', 'afh_Latn', 'gla', 'jpn', 'udm', 'mai', 'ary', 'sin', 'tvl', 'hif_Latn', 'cjy_Hant', 'bre', 'ceb', 'mah', 'nob_Hebr', 'crh_Latn', 'prg_Latn', 'khm', 'ang_Latn', 'tha', 'tah', 'tzl', 'aln', 'kin', 'tel', 'ady', 'mkd', 'ori', 'wol', 'aze_Latn', 'jbo', 'niu', 'kal', 'mar', 'vie_Hani', 'arz', 'yue', 'kha', 'san_Deva', 'jbo_Latn', 'gos', 'hau_Latn', 'rus', 'quc', 'cmn', 'yor', 'hun', 'uig_Cyrl', 'fao', 'mnw', 'zho', 'orv_Cyrl', 'iba', 'bel_Latn', 'tir', 'afb', 'crh', 'mic', 'cos', 'swh', 'sah', 'krl', 'ewe', 'apc', 'zza', 'chr', 'grc_Grek', 'tpw_Latn', 'oci', 'mfe', 'sna', 'kir_Cyrl', 'tat_Latn', 'gom', 'ido_Latn', 'sgs', 'pau', 'tgk_Cyrl', 'nog', 'mlt', 'pdc', 'tso', 'srp_Cyrl', 'pol', 'ast', 'glg', 'pms', 'fuc', 'nob', 'qya', 'ben', 'tat', 'kab', 'min', 'srp_Latn', 'wuu', 'dtp', 'jbo_Cyrl', 'tet', 'bod', 'yue_Hans', 'zlm_Latn', 'lao', 'ind', 'grn', 'nav', 'kaz_Cyrl', 'rom', 'hye', 'kan', 'ton', 'ido', 'mhr', 'scn', 'som', 'rif_Latn', 'vie', 'enm_Latn', 'lmo', 'npi', 'pes', 'dan', 'fij', 'ina_Latn', 'cjy_Hans', 'jdt_Cyrl', 'gsw', 'glv', 'khm_Latn', 'smo', 'umb', 'sma', 'gil', 'nld', 'snd_Arab', 'arq', 'mri', 'kur_Arab', 'por', 'hin', 'shy_Latn', 'sme', 'rap', 'tyv', 'dsb', 'moh', 'asm', 'lad', 'yue_Hant', 'kpv', 'tam', 'est', 'frm_Latn', 'hoc_Latn', 'bam_Latn', 'kek_Latn', 'ksh', 'tlh_Latn', 'ltg', 'pan_Guru', 'hnj_Latn', 'cor', 'gle', 'swe', 'lin', 'qya_Latn', 'kum', 'mad', 'cmn_Hant', 'fuv', 'nau', 'mon', 'akl_Latn', 'guj', 'kaz_Latn', 'wln', 'tuk_Latn', 'jav_Java', 'lav', 'jav', 'ell', 'frr', 'mya', 'bak', 'rue', 'ita', 'hrv', 'izh', 'ilo', 'dws_Latn', 'urd', 'stq', 'tat_Arab', 'haw', 'che', 'pag', 'nno', 'fin', 'mlg', 'ppl_Latn', 'run', 'xho', 'abk', 'deu', 'hoc', 'lkt', 'lld_Latn', 'tzl_Latn', 'mdf', 'ike_Latn', 'ces', 'ldn_Latn', 'egl', 'heb', 'vec', 'zul', 'max_Latn', 'pes_Latn', 'yid', 'mal', 'nds'}
- tgt_constituents: {'eng'}
- src_multilingual: True
- tgt_multilingual: False
- prepro: normalization + SentencePiece (spm32k,spm32k)
- url_model: https://object.pouta.csc.fi/Tatoeba-MT-models/mul-eng/opus2m-2020-08-01.zip
- url_test_set: https://object.pouta.csc.fi/Tatoeba-MT-models/mul-eng/opus2m-2020-08-01.test.txt
- src_alpha3: mul
- tgt_alpha3: eng
- short_pair: mul-en
- chrF2_score: 0.518
- bleu: 34.7
- brevity_penalty: 1.0
- ref_len: 72346.0
- src_name: Multiple languages
- tgt_name: English
- train_date: 2020-08-01
- src_alpha2: mul
- tgt_alpha2: en
- prefer_old: False
- long_pair: mul-eng
- helsinki_git_sha: 480fcbe0ee1bf4774bcbe6226ad9f58e63f6c535
- transformers_git_sha: 2207e5d8cb224e954a7cba69fa4ac2309e9ff30b
- port_machine: brutasse
- port_time: 2020-08-21-14:41 | [
-0.8312808275222778,
-0.5384901762008667,
0.23190337419509888,
0.5125420093536377,
-0.10317957401275635,
-0.18529877066612244,
0.08821462094783783,
-0.5027198791503906,
0.6446036696434021,
-0.22575165331363678,
-0.47159719467163086,
-0.2387375831604004,
-0.4615587890148163,
0.41888874769210815,
0.0925893485546112,
0.5604729056358337,
-0.08140531927347183,
0.18398967385292053,
0.2746061086654663,
-0.21925480663776398,
-0.4184221625328064,
-0.010510840453207493,
-0.8813311457633972,
-0.09286440908908844,
0.10026941448450089,
0.5558480024337769,
0.5434956550598145,
0.4929133355617523,
0.5329636931419373,
0.38641366362571716,
-0.14524061977863312,
0.05465302616357803,
0.07191019505262375,
-0.23518939316272736,
0.11337752640247345,
-0.6734708547592163,
-0.5022739768028259,
-0.08586924523115158,
0.7684879899024963,
0.6438242793083191,
0.4739959239959717,
0.4388068616390228,
0.22181709110736847,
1.0683852434158325,
-0.48063528537750244,
-0.1991203874349594,
-0.13381671905517578,
0.037504132837057114,
-0.29814428091049194,
-0.32070037722587585,
-0.5150845646858215,
-0.6110644340515137,
-0.14220769703388214,
-0.7157042622566223,
0.19465434551239014,
0.001713777077384293,
1.5147764682769775,
-0.06387019902467728,
-0.33794182538986206,
-0.1476762294769287,
-0.48331472277641296,
1.0226942300796509,
-0.8559581637382507,
0.40231752395629883,
0.49559465050697327,
-0.19951866567134857,
-0.07218868285417557,
-0.5043666958808899,
-0.7064720392227173,
0.21935084462165833,
-0.34977632761001587,
0.7601435780525208,
0.04790423810482025,
-0.4505578279495239,
0.09439341723918915,
0.48168525099754333,
-0.7157161831855774,
0.1681021898984909,
-0.5997095108032227,
-0.12887895107269287,
0.9253650903701782,
0.21190689504146576,
0.29144594073295593,
-0.4123484790325165,
-0.7335091829299927,
-0.42409780621528625,
-0.6351909637451172,
0.658628523349762,
0.3896957337856293,
0.13756123185157776,
-0.41980603337287903,
0.7612013220787048,
-0.25614675879478455,
0.5059617757797241,
0.4193393886089325,
-0.08891230076551437,
0.694441556930542,
-0.7089998722076416,
-0.6706286072731018,
-0.22845187783241272,
1.0661628246307373,
0.6593116521835327,
-0.16157211363315582,
0.3129633069038391,
0.12111959606409073,
0.16696910560131073,
-0.5648282170295715,
-0.916594386100769,
-0.013200818561017513,
0.20224608480930328,
-0.34833982586860657,
0.0053096977062523365,
0.13262586295604706,
-1.3436343669891357,
0.06913717091083527,
-0.09772200882434845,
0.4393440783023834,
-0.759651243686676,
-0.4187098741531372,
0.36049985885620117,
-0.10027825832366943,
0.5442450046539307,
0.22677983343601227,
-0.49441099166870117,
0.32972756028175354,
0.3370649814605713,
0.9008328914642334,
-0.34221407771110535,
-0.27605727314949036,
-0.08077727258205414,
-0.1222580149769783,
-0.4845268726348877,
0.8772544264793396,
-0.32654160261154175,
-0.48577702045440674,
-0.3508037030696869,
0.21191009879112244,
-0.5121342539787292,
-0.22629688680171967,
0.7734606266021729,
-0.1187526136636734,
0.6220443844795227,
-0.5989487767219543,
-0.631497323513031,
-0.27820315957069397,
0.21523596346378326,
-0.517133355140686,
1.2760121822357178,
0.12354061752557755,
-1.1493510007858276,
0.5675544738769531,
-0.6534672379493713,
0.16740623116493225,
-0.01054408773779869,
-0.04786361753940582,
-0.4967859983444214,
-0.32038891315460205,
0.4421449303627014,
0.217673197388649,
-0.46031302213668823,
-0.06026634946465492,
-0.21052339673042297,
-0.3997495472431183,
0.0535382479429245,
-0.42204368114471436,
1.236175298690796,
0.4860226511955261,
-0.581101655960083,
-0.15197400748729706,
-0.976373553276062,
0.33800438046455383,
0.20147529244422913,
-0.4510310888290405,
-0.015979722142219543,
-0.5651800036430359,
-0.20794956386089325,
0.4162180721759796,
0.3393241763114929,
-0.7597521543502808,
0.04349127411842346,
-0.8768218755722046,
0.008678139187395573,
1.1159459352493286,
0.09115924686193466,
0.46018093824386597,
-0.8369899988174438,
0.5073429942131042,
0.2922704219818115,
0.17841999232769012,
0.21259401738643646,
-0.636728823184967,
-1.0586977005004883,
-0.23619574308395386,
0.4944848120212555,
0.7723526954650879,
-0.6985470056533813,
0.6400546431541443,
-0.15833422541618347,
-1.0262385606765747,
-0.6773920059204102,
-0.16422010958194733,
0.6539969444274902,
0.3562440872192383,
0.3824116587638855,
-0.04601320996880531,
-0.6322474479675293,
-1.1571990251541138,
-0.42402318120002747,
-0.1532711386680603,
0.1494339257478714,
0.16292600333690643,
0.8844585418701172,
0.03598268702626228,
0.8252205848693848,
-0.7562807202339172,
-0.3289487361907959,
-0.22264252603054047,
-0.15103648602962494,
0.635802149772644,
0.8029442429542542,
0.7545499205589294,
-0.8422448635101318,
-1.314386010169983,
0.013522433117032051,
-0.6612658500671387,
0.041977569460868835,
-0.008325138129293919,
-0.308825820684433,
0.4704870581626892,
0.20920027792453766,
-0.6323925852775574,
0.6831454634666443,
0.5663037300109863,
-0.7290540337562561,
0.8043844699859619,
-0.3614427447319031,
0.5977921485900879,
-1.2482154369354248,
0.2019023895263672,
0.07357370108366013,
0.18115897476673126,
-0.5223841071128845,
0.022116171196103096,
-0.0180276520550251,
0.19795837998390198,
-0.4848257899284363,
0.7811973094940186,
-0.9024580121040344,
-0.022439243271946907,
0.6157973408699036,
0.453522264957428,
-0.08145582675933838,
0.8145528435707092,
-0.30499136447906494,
1.1223894357681274,
0.7467505931854248,
-0.6902332901954651,
0.2236442267894745,
0.2066192775964737,
-0.32456740736961365,
0.5315364003181458,
-0.6107872724533081,
-0.20829249918460846,
0.13116897642612457,
-0.021124722436070442,
-1.131453275680542,
-0.02031954564154148,
0.24756941199302673,
-0.8114074468612671,
0.18205711245536804,
0.1866796910762787,
-0.3999073803424835,
-0.6642645597457886,
-0.930133044719696,
0.31536704301834106,
0.369297593832016,
-0.20509588718414307,
0.3350055515766144,
0.18068672716617584,
-0.10524598509073257,
-0.7064545154571533,
-0.7923750877380371,
-0.345624178647995,
-0.17457835376262665,
-0.7855745553970337,
0.5024083256721497,
-0.30321580171585083,
-0.2398902177810669,
0.12936201691627502,
-0.34852325916290283,
-0.2234637290239334,
-0.2601514756679535,
0.045062355697155,
0.1940237581729889,
-0.28841835260391235,
-0.21699605882167816,
-0.3034624755382538,
-0.2260827124118805,
-0.1661866009235382,
0.19224093854427338,
0.5957880020141602,
-0.31196528673171997,
-0.48911333084106445,
-0.6053521633148193,
0.3440839648246765,
0.7381776571273804,
-0.3685726821422577,
0.7670539021492004,
0.39295434951782227,
-0.28612154722213745,
0.17771634459495544,
-0.6059360504150391,
0.03305887430906296,
-0.5744979977607727,
0.313138872385025,
-0.6120191216468811,
-0.8280061483383179,
0.8090639114379883,
0.19197893142700195,
0.25904613733291626,
1.2075124979019165,
0.5472426414489746,
0.034591156989336014,
1.0352504253387451,
0.2467065304517746,
0.33596569299697876,
0.41786080598831177,
-0.6963428854942322,
0.07380741834640503,
-0.798152506351471,
-0.5345662236213684,
-0.69867342710495,
-0.5525067448616028,
-0.9303258061408997,
-0.41930049657821655,
0.5055848360061646,
0.017831558361649513,
-0.4022529721260071,
0.5668618679046631,
-0.7509356141090393,
0.0720473900437355,
0.6195485591888428,
0.16544479131698608,
0.15340489149093628,
-0.3842383027076721,
-0.3018700182437897,
-0.2955194115638733,
-0.4265490174293518,
-0.3605527877807617,
1.2866746187210083,
0.3676152229309082,
0.6152862906455994,
0.32948675751686096,
0.8045935034751892,
0.23318178951740265,
0.021697532385587692,
-0.4360618591308594,
0.7277675271034241,
0.17695759236812592,
-0.9183611273765564,
-0.5166760683059692,
-0.18955878913402557,
-1.027073860168457,
0.46035268902778625,
-0.054100487381219864,
-0.6925272941589355,
0.558980405330658,
0.008264889009296894,
-0.3175780773162842,
0.37776875495910645,
-0.8592131733894348,
0.732434093952179,
-0.19614459574222565,
-0.7598230242729187,
0.1493474245071411,
-0.6891244053840637,
0.23785991966724396,
0.1624709814786911,
0.25524765253067017,
-0.05379190295934677,
0.0332331657409668,
1.1570966243743896,
-0.70136958360672,
0.31181061267852783,
-0.34964826703071594,
-0.02563721127808094,
0.6502229571342468,
0.12883254885673523,
0.5463687777519226,
0.2664435803890228,
-0.14651454985141754,
-0.38180121779441833,
0.07295212149620056,
-0.6046122908592224,
-0.057559043169021606,
0.8969383835792542,
-0.8651989102363586,
-0.8239787220954895,
-0.9211265444755554,
-0.07503663748502731,
0.05716639384627342,
0.1372484564781189,
0.5596100687980652,
0.7211490273475647,
-0.07662064582109451,
0.4426504075527191,
0.7026992440223694,
-0.3719651699066162,
0.8868057727813721,
0.23094242811203003,
-0.0082137705758214,
-0.6367522478103638,
0.9071801900863647,
0.29489684104919434,
0.5576030611991882,
0.565352737903595,
0.23806984722614288,
-0.25032827258110046,
-0.26447200775146484,
-0.48728853464126587,
0.30188897252082825,
-0.40668347477912903,
-0.62271648645401,
-0.839846134185791,
-0.3157077431678772,
-0.6322407722473145,
-0.42521214485168457,
-0.6134451627731323,
-0.6529895663261414,
-0.1136426255106926,
-0.28796863555908203,
0.45204851031303406,
0.49375075101852417,
-0.42044419050216675,
0.10675395280122757,
-0.422906756401062,
0.05457311123609543,
0.09414348751306534,
0.2230130434036255,
-0.32078251242637634,
-0.8387544751167297,
-0.3043385446071625,
0.15394406020641327,
-0.601256787776947,
-1.4105569124221802,
0.7436512112617493,
0.06401315331459045,
0.3799176812171936,
0.39458081126213074,
-0.010079425759613514,
0.977487325668335,
-0.10158222168684006,
1.2736554145812988,
0.1934245079755783,
-0.9060695767402649,
0.684838593006134,
-0.13976764678955078,
0.4326415956020355,
0.6722738742828369,
0.4084206521511078,
-0.3126797080039978,
-0.8746443390846252,
-0.9158816337585449,
-0.9292494058609009,
0.7379816174507141,
0.3859713077545166,
-0.3161289691925049,
-0.11217569559812546,
-0.1946655809879303,
-0.026294156908988953,
-0.5136118531227112,
-0.938169002532959,
-0.917406439781189,
0.11189758777618408,
-0.05686071142554283,
0.1383514255285263,
-0.2840527892112732,
0.03879832848906517,
-0.5842328071594238,
0.7935148477554321,
0.29961249232292175,
0.6364839673042297,
0.7035387754440308,
0.02380443550646305,
0.10455331951379776,
0.5980252027511597,
0.989869236946106,
0.4949240982532501,
-0.30558404326438904,
0.19616961479187012,
0.6581084132194519,
-0.7989861369132996,
0.34166261553764343,
-0.11312724649906158,
-0.4263937175273895,
0.22732020914554596,
0.31370222568511963,
0.3746538460254669,
0.06712096184492111,
-0.11944884806871414,
0.5006464123725891,
-0.06270067393779755,
-0.5270920991897583,
-0.6695836186408997,
-0.20201607048511505,
0.16413724422454834,
-0.02152276039123535,
0.3254711925983429,
0.2624838650226593,
0.03849029913544655,
-0.5538356304168701,
0.2864227294921875,
0.17569184303283691,
-0.3278515338897705,
-0.251484215259552,
0.6363425254821777,
0.1457003802061081,
-0.1568395495414734,
-0.02521088905632496,
-0.4190117120742798,
-0.6618492603302002,
0.9668311476707458,
0.6412445306777954,
0.6734957695007324,
-0.5976542234420776,
-0.0723780021071434,
1.1015620231628418,
0.17100293934345245,
0.012827867642045021,
0.593336284160614,
0.6711207628250122,
-0.33593764901161194,
-0.1438942700624466,
-0.7518153786659241,
0.07060572504997253,
0.11705538630485535,
-0.6596950888633728,
0.38800257444381714,
-0.28521984815597534,
-0.4051074981689453,
-0.10006840527057648,
0.5251268148422241,
-0.8298035264015198,
0.5225388407707214,
-0.5412928462028503,
1.3295994997024536,
-1.1370066404342651,
0.6617798805236816,
0.8500056862831116,
-0.7589426040649414,
-1.1689337491989136,
-0.2530360817909241,
-0.15736912190914154,
-0.4357663691043854,
0.7868685722351074,
-0.0879506841301918,
0.00008315052400575951,
-0.04490556940436363,
-0.34456461668014526,
-1.2357314825057983,
1.3779422044754028,
-0.021511651575565338,
-0.2467646449804306,
0.2327861189842224,
-0.07949020713567734,
0.5948200225830078,
0.004635938443243504,
0.6661298274993896,
0.6089071035385132,
0.9529180526733398,
-0.02159288339316845,
-1.0705450773239136,
0.308003693819046,
-0.8205869793891907,
-0.3296450972557068,
0.2803826928138733,
-1.0226367712020874,
1.3753331899642944,
-0.0020001186057925224,
-0.37264201045036316,
-0.32409098744392395,
0.6423587203025818,
0.299866259098053,
0.3505236506462097,
0.4111781418323517,
0.757440447807312,
0.42921182513237,
-0.3310406506061554,
0.8911422491073608,
-0.2707710564136505,
0.3725956976413727,
0.8359905481338501,
0.003613729029893875,
0.8928471207618713,
0.5122913122177124,
-0.8081321716308594,
0.31369492411613464,
0.9108670949935913,
-0.05665238946676254,
0.55195552110672,
0.11140255630016327,
-0.3821759521961212,
-0.12240058928728104,
0.03443494811654091,
-0.8120846152305603,
0.32302871346473694,
0.25871384143829346,
0.000655928160995245,
0.06694192439317703,
-0.29509344696998596,
0.40874728560447693,
0.3417610824108124,
-0.09371401369571686,
0.6235352754592896,
0.13651956617832184,
-0.8743159174919128,
0.667932391166687,
0.04906412214040756,
1.0898319482803345,
-0.4836272597312927,
0.11195102334022522,
-0.4746076464653015,
0.3958032727241516,
-0.31328004598617554,
-1.0676602125167847,
0.40402117371559143,
0.03287971392273903,
-0.23343463242053986,
-0.03242257982492447,
0.5266293883323669,
-0.381865531206131,
-0.6475932002067566,
0.5428961515426636,
0.5112443566322327,
0.21192991733551025,
0.43004170060157776,
-0.5718939900398254,
-0.2674849033355713,
0.16186174750328064,
-0.6733219623565674,
0.1669577807188034,
0.6591662764549255,
0.2662172019481659,
0.7248650193214417,
0.4424453377723694,
0.2699131667613983,
0.5831144452095032,
-0.5063312649726868,
0.7995850443840027,
-0.614563524723053,
-0.4532298147678375,
-1.1628817319869995,
0.5432319045066833,
-0.41875356435775757,
-0.5915172100067139,
1.2075332403182983,
1.0962975025177002,
0.9265592098236084,
-0.0671854317188263,
0.6439231038093567,
-0.5438816547393799,
0.6028110980987549,
-0.2584711015224457,
0.610707700252533,
-0.7320598363876343,
-0.1800396591424942,
-0.10635542124509811,
-0.7930111885070801,
-0.10539721697568893,
0.6598668098449707,
-0.16215823590755463,
0.2456008791923523,
1.2167680263519287,
0.8037731051445007,
0.2118791788816452,
-0.0165345948189497,
0.11361584812402725,
0.17401814460754395,
0.24245284497737885,
1.0266104936599731,
0.4406830668449402,
-0.8964049220085144,
0.5697924494743347,
-0.33570757508277893,
-0.05920708179473877,
-0.363827645778656,
-0.6011504530906677,
-0.6740847826004028,
-0.7659039497375488,
-0.16669903695583344,
-0.45976129174232483,
-0.4708888828754425,
0.99140465259552,
0.2890799045562744,
-0.82076096534729,
-0.3249967396259308,
0.10162602365016937,
0.1614326387643814,
-0.5222885012626648,
-0.34073132276535034,
1.018371820449829,
-0.0841061919927597,
-1.0008186101913452,
0.16612304747104645,
-0.03794477507472038,
0.1724414974451065,
0.2601768970489502,
-0.29898086190223694,
-0.7252134084701538,
0.40516284108161926,
0.27094072103500366,
0.28882256150245667,
-0.5920894145965576,
-0.38463759422302246,
0.36870259046554565,
-0.5566970705986023,
0.41909751296043396,
0.02654431015253067,
-0.3709022104740143,
0.1541028916835785,
1.11086106300354,
0.24120870232582092,
0.6612046360969543,
0.13347452878952026,
0.2876255512237549,
-0.5478499531745911,
0.43584245443344116,
0.0770062729716301,
0.3159101605415344,
0.07335437089204788,
-0.44118764996528625,
0.8242780566215515,
0.28291088342666626,
-0.5436570048332214,
-0.977451741695404,
-0.14156262576580048,
-1.1322605609893799,
-0.038394443690776825,
1.2057355642318726,
-0.17822222411632538,
-0.27824723720550537,
0.06127852573990822,
-0.3510996699333191,
0.4416173994541168,
-0.4830511510372162,
0.343540757894516,
0.5684685111045837,
-0.14465804398059845,
0.13905669748783112,
-0.9241619110107422,
0.4683111608028412,
0.6066815853118896,
-0.9842269420623779,
-0.1966501772403717,
0.2372465282678604,
0.2969258725643158,
0.6001818776130676,
1.0741735696792603,
-0.5123583674430847,
0.06773345917463303,
0.3286391794681549,
0.06704667955636978,
0.03759253770112991,
0.02765706740319729,
0.0038439424242824316,
0.12706170976161957,
-0.1531677395105362,
-0.5953786373138428
] |
cerspense/zeroscope_v2_576w | cerspense | "2023-07-01T07:24:16Z" | 101,398 | 358 | diffusers | [
"diffusers",
"text-to-video",
"license:cc-by-nc-4.0",
"has_space",
"diffusers:TextToVideoSDPipeline",
"region:us"
] | text-to-video | "2023-06-21T19:10:41Z" | ---
pipeline_tag: text-to-video
license: cc-by-nc-4.0
---
![model example](https://i.imgur.com/1mrNnh8.png)
# zeroscope_v2 576w
A watermark-free Modelscope-based video model optimized for producing high-quality 16:9 compositions and a smooth video output. This model was trained from the [original weights](https://huggingface.co/damo-vilab/modelscope-damo-text-to-video-synthesis) using 9,923 clips and 29,769 tagged frames at 24 frames, 576x320 resolution.<br />
zeroscope_v2_567w is specifically designed for upscaling with [zeroscope_v2_XL](https://huggingface.co/cerspense/zeroscope_v2_XL) using vid2vid in the [1111 text2video](https://github.com/kabachuha/sd-webui-text2video) extension by [kabachuha](https://github.com/kabachuha). Leveraging this model as a preliminary step allows for superior overall compositions at higher resolutions in zeroscope_v2_XL, permitting faster exploration in 576x320 before transitioning to a high-resolution render. See some [example outputs](https://www.youtube.com/watch?v=HO3APT_0UA4) that have been upscaled to 1024x576 using zeroscope_v2_XL. (courtesy of [dotsimulate](https://www.instagram.com/dotsimulate/))<br />
zeroscope_v2_576w uses 7.9gb of vram when rendering 30 frames at 576x320
### Using it with the 1111 text2video extension
1. Download files in the zs2_576w folder.
2. Replace the respective files in the 'stable-diffusion-webui\models\ModelScope\t2v' directory.
### Upscaling recommendations
For upscaling, it's recommended to use [zeroscope_v2_XL](https://huggingface.co/cerspense/zeroscope_v2_XL) via vid2vid in the 1111 extension. It works best at 1024x576 with a denoise strength between 0.66 and 0.85. Remember to use the same prompt that was used to generate the original clip. <br />
### Usage in 🧨 Diffusers
Let's first install the libraries required:
```bash
$ pip install diffusers transformers accelerate torch
```
Now, generate a video:
```py
import torch
from diffusers import DiffusionPipeline, DPMSolverMultistepScheduler
from diffusers.utils import export_to_video
pipe = DiffusionPipeline.from_pretrained("cerspense/zeroscope_v2_576w", torch_dtype=torch.float16)
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
pipe.enable_model_cpu_offload()
prompt = "Darth Vader is surfing on waves"
video_frames = pipe(prompt, num_inference_steps=40, height=320, width=576, num_frames=24).frames
video_path = export_to_video(video_frames)
```
Here are some results:
<table>
<tr>
Darth vader is surfing on waves.
<br>
<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/darthvader_cerpense.gif"
alt="Darth vader surfing in waves."
style="width: 576;" />
</center></td>
</tr>
</table>
### Known issues
Lower resolutions or fewer frames could lead to suboptimal output. <br />
Thanks to [camenduru](https://github.com/camenduru), [kabachuha](https://github.com/kabachuha), [ExponentialML](https://github.com/ExponentialML), [dotsimulate](https://www.instagram.com/dotsimulate/), [VANYA](https://twitter.com/veryVANYA), [polyware](https://twitter.com/polyware_ai), [tin2tin](https://github.com/tin2tin)<br /> | [
-0.5513668656349182,
-0.6337980628013611,
0.5015774965286255,
0.04022904112935066,
-0.4996037781238556,
-0.17321214079856873,
-0.02311120741069317,
-0.10945096611976624,
0.3334084153175354,
0.3280734717845917,
-0.463049054145813,
-0.39718618988990784,
-0.7356583476066589,
-0.3383590579032898,
-0.41816335916519165,
0.8118635416030884,
-0.07741433382034302,
-0.09725446999073029,
-0.201689675450325,
-0.006573215592652559,
-0.38389748334884644,
-0.15579096972942352,
-0.22631436586380005,
-0.2746833264827728,
-0.12475946545600891,
0.7618229389190674,
0.5659302473068237,
0.7066575288772583,
0.5067617893218994,
0.286700040102005,
-0.01883118413388729,
0.15313464403152466,
-0.5856668949127197,
-0.08698927611112595,
0.0453341044485569,
-0.13377176225185394,
-0.5234138369560242,
-0.015055506490170956,
0.9107245206832886,
-0.05754287540912628,
-0.039567336440086365,
0.617485761642456,
-0.09986672550439835,
0.5949662327766418,
-0.6553440690040588,
0.014535045251250267,
-0.10556339472532272,
-0.04786958172917366,
-0.19277244806289673,
-0.21673782169818878,
-0.13931767642498016,
-0.004727678373456001,
0.018691668286919594,
-0.893744707107544,
0.39252182841300964,
-0.23140184581279755,
1.3861162662506104,
0.35840290784835815,
-0.44567450881004333,
0.4634597897529602,
-0.7941398620605469,
0.7793183326721191,
-0.7863647937774658,
0.43204793334007263,
0.03529147431254387,
0.35928139090538025,
0.05223311111330986,
-0.7868799567222595,
-0.3798893392086029,
0.05930354818701744,
0.327170729637146,
0.5180734992027283,
-0.5016440153121948,
0.025950618088245392,
0.44739192724227905,
0.49491265416145325,
-0.6187740564346313,
-0.005251901689916849,
-0.4848959147930145,
0.07496009767055511,
0.6791722178459167,
0.1516619771718979,
0.26208609342575073,
-0.3090241551399231,
-0.3424324691295624,
-0.5447264909744263,
-0.2742132544517517,
0.1098179817199707,
0.15567275881767273,
-0.2785029411315918,
-0.6063674688339233,
0.6936266422271729,
-0.1917984038591385,
0.5514093041419983,
0.3005507290363312,
-0.23823964595794678,
0.1989448219537735,
-0.20892241597175598,
-0.4910508692264557,
-0.1479230374097824,
0.6505091190338135,
0.8694860339164734,
0.13739939033985138,
0.46095848083496094,
0.06808581203222275,
0.3147885203361511,
0.25005412101745605,
-1.2225792407989502,
-0.2628355324268341,
0.27291449904441833,
-0.39406728744506836,
-0.2463034689426422,
0.0038369272369891405,
-1.1503156423568726,
0.016093596816062927,
-0.1018773540854454,
0.6573441624641418,
-0.3321949243545532,
-0.5102354884147644,
0.03203268349170685,
-0.5338093638420105,
0.13603101670742035,
0.34456273913383484,
-0.7150886058807373,
0.3474571108818054,
0.21660549938678741,
0.9919183254241943,
0.2707085609436035,
0.04131181910634041,
-0.5831170678138733,
0.13444706797599792,
-0.33587560057640076,
0.5638009309768677,
-0.10950344800949097,
-0.4608696699142456,
-0.23227037489414215,
-0.019182100892066956,
0.3843356668949127,
-0.3975895345211029,
0.4272136688232422,
-0.2953164279460907,
0.24071209132671356,
-0.06208578497171402,
-0.664337694644928,
-0.26359108090400696,
-0.09495913237333298,
-0.27268466353416443,
1.0815322399139404,
0.3853487968444824,
-0.7528316974639893,
0.12191697955131531,
-0.5707132816314697,
0.0892200767993927,
-0.05174369737505913,
-0.1296272873878479,
-0.5643274188041687,
0.1063741073012352,
0.03090740367770195,
0.17845608294010162,
-0.2965918481349945,
-0.1110289990901947,
-0.32571858167648315,
-0.4207637310028076,
0.06252695620059967,
-0.5203731060028076,
0.7084528803825378,
0.21340924501419067,
-0.5362193584442139,
0.20649972558021545,
-0.8828794956207275,
0.11723662912845612,
0.11160216480493546,
0.048228830099105835,
-0.03887217491865158,
-0.19495894014835358,
0.13727611303329468,
0.170805886387825,
-0.02151300385594368,
-0.6661846041679382,
-0.041723135858774185,
-0.459637850522995,
0.46790188550949097,
0.6352172493934631,
0.02673209086060524,
0.5174509882926941,
-0.2145477682352066,
0.5855751037597656,
0.05079745873808861,
0.40654420852661133,
-0.03866563364863396,
-0.7199094891548157,
-0.7900758385658264,
-0.1543305665254593,
-0.012747681699693203,
0.3688899874687195,
-0.6479333639144897,
-0.03879296034574509,
-0.27340182662010193,
-0.8802928328514099,
-0.4402559995651245,
0.15822991728782654,
0.41854339838027954,
0.7734891772270203,
0.48643559217453003,
-0.8421899676322937,
-0.5963768362998962,
-0.7272958755493164,
0.29722777009010315,
-0.1909470558166504,
-0.4767015278339386,
0.2968490421772003,
0.3930869400501251,
-0.03185175359249115,
0.8166270852088928,
-0.8664171695709229,
-0.46162495017051697,
0.06412714719772339,
-0.08183029294013977,
0.30499646067619324,
0.2980005145072937,
0.7907063364982605,
-0.7038107514381409,
-0.5171633958816528,
-0.03786000236868858,
-0.8808774948120117,
0.06377076357603073,
0.18828196823596954,
-0.14979779720306396,
0.0271601639688015,
0.2338753044605255,
-0.6702577471733093,
0.45039647817611694,
0.7117781043052673,
-0.4562110900878906,
0.6583524346351624,
-0.623466432094574,
0.2130742222070694,
-1.1087311506271362,
-0.07442401349544525,
0.5715643763542175,
-0.3769964575767517,
-0.5787228345870972,
0.07668896019458771,
0.03916548937559128,
-0.0901556983590126,
-0.640243411064148,
0.4419780373573303,
-0.42696431279182434,
-0.07703837007284164,
-0.17805694043636322,
0.16630572080612183,
0.2128661572933197,
0.37552064657211304,
0.0025517165195196867,
0.6062208414077759,
0.5818541049957275,
-0.4536905884742737,
0.640347957611084,
0.28728702664375305,
-0.14077158272266388,
0.483486145734787,
-0.9716969132423401,
-0.12334579974412918,
-0.15052375197410583,
0.06311529129743576,
-0.9327133297920227,
-0.6684865951538086,
0.159812331199646,
-0.818958580493927,
0.26018163561820984,
-0.3098352253437042,
-0.2098451554775238,
-0.36912816762924194,
-0.7790327072143555,
0.29931262135505676,
0.9921311736106873,
-0.3175305128097534,
0.34295257925987244,
0.5297229886054993,
0.3279331624507904,
-0.36941856145858765,
-0.9580538272857666,
-0.10876961797475815,
-0.30422085523605347,
-0.721318781375885,
0.6835675835609436,
0.004077330231666565,
-0.2536468505859375,
0.13210614025592804,
-0.026241589337587357,
-0.04623914882540703,
-0.5068721175193787,
0.5893909931182861,
0.5819234251976013,
-0.2832888662815094,
-0.324642539024353,
-0.057284411042928696,
-0.07227681577205658,
-0.07385104149580002,
-0.16968844830989838,
0.28678378462791443,
-0.13017390668392181,
-0.0218654815107584,
-0.6715308427810669,
0.2633204460144043,
0.6796467900276184,
0.16609373688697815,
0.15237441658973694,
1.0005176067352295,
-0.35182860493659973,
0.1737208515405655,
-0.48972833156585693,
-0.244160994887352,
-0.5504559874534607,
0.3148581385612488,
-0.07169292867183685,
-0.6550451517105103,
0.4239441156387329,
0.16898606717586517,
0.004232010804116726,
0.5718590021133423,
0.68723064661026,
-0.22878064215183258,
1.0233757495880127,
0.5446474552154541,
0.32179751992225647,
0.7555884718894958,
-0.8363481163978577,
-0.17331452667713165,
-0.8253201246261597,
-0.15368534624576569,
0.010883238166570663,
-0.07450428605079651,
-0.7378587126731873,
-0.7450157999992371,
0.6185328960418701,
0.1969459056854248,
-0.5353455543518066,
0.571375846862793,
-0.7356260418891907,
0.23243527114391327,
0.572629451751709,
0.10476121306419373,
0.14170536398887634,
0.2945878803730011,
0.13583222031593323,
-0.4476568400859833,
-0.5577157735824585,
-0.3248326778411865,
1.0128270387649536,
0.24615979194641113,
0.7140704989433289,
0.21160869300365448,
0.419999897480011,
0.3651392161846161,
-0.07214219123125076,
-0.4959743916988373,
0.6002943515777588,
-0.3416783809661865,
-0.5858365893363953,
-0.09297652542591095,
-0.23970161378383636,
-0.7207434773445129,
0.20171251893043518,
-0.3252846598625183,
-0.7275712490081787,
0.20481841266155243,
0.27369824051856995,
-0.3805956244468689,
0.5141829252243042,
-0.9800295233726501,
0.7370569705963135,
0.016605067998170853,
-0.7637075781822205,
-0.16298389434814453,
-0.7022286653518677,
0.2906668782234192,
0.3051416575908661,
0.14269712567329407,
-0.07750587165355682,
-0.03348767012357712,
0.6965816617012024,
-0.545328676700592,
0.6054227948188782,
-0.22290971875190735,
0.16867463290691376,
0.6132567524909973,
0.02563406340777874,
0.08621153980493546,
0.3548814356327057,
0.2380458414554596,
0.26564809679985046,
0.19776634871959686,
-0.45349007844924927,
-0.4254980981349945,
0.8601788878440857,
-1.0052217245101929,
-0.4023666977882385,
-0.3789973556995392,
-0.16892582178115845,
0.2776576578617096,
0.14164328575134277,
0.6320821046829224,
0.7057926058769226,
0.014900507405400276,
0.053269654512405396,
0.5515847206115723,
-0.0031887120567262173,
0.6022188067436218,
0.3830535411834717,
-0.37039339542388916,
-0.6475445032119751,
0.9828910827636719,
0.2773607671260834,
0.3967507481575012,
0.17914439737796783,
-0.035338543355464935,
-0.2329646795988083,
-0.2068244367837906,
-0.8162307143211365,
0.18600116670131683,
-0.3756561279296875,
-0.5248594284057617,
-0.2307933270931244,
-0.3507494032382965,
-0.6663750410079956,
-0.20028778910636902,
-0.7649713754653931,
-0.44116276502609253,
-0.6811549663543701,
-0.032878123223781586,
0.7623809576034546,
0.5888106822967529,
-0.42675262689590454,
0.2592032551765442,
-0.6658643484115601,
0.4392966330051422,
0.4527572989463806,
0.21677802503108978,
-0.09512363374233246,
-0.7500959038734436,
-0.20764140784740448,
0.0877503827214241,
-0.830520749092102,
-0.7715273499488831,
0.6913054585456848,
0.11328774690628052,
0.1437089443206787,
0.49386119842529297,
-0.1542513221502304,
0.8903840184211731,
-0.11072158813476562,
1.0913583040237427,
0.507646381855011,
-0.849713921546936,
0.682639479637146,
-0.39655229449272156,
0.4357322156429291,
0.08349297940731049,
0.2858898341655731,
-0.5063254833221436,
-0.20661310851573944,
-0.7491044402122498,
-1.03040611743927,
0.6574398875236511,
0.4285929501056671,
0.14723949134349823,
0.2959659695625305,
0.30294787883758545,
-0.13121092319488525,
-0.2689802646636963,
-0.3013532757759094,
-0.39897528290748596,
-0.5974878072738647,
0.09706663340330124,
-0.2216818779706955,
-0.37066200375556946,
0.028659524396061897,
-0.5727034211158752,
0.6949184536933899,
0.01334438193589449,
0.40259233117103577,
0.7552154064178467,
-0.006259171292185783,
-0.5529553890228271,
0.015439304523169994,
0.5209593176841736,
0.5204269886016846,
-0.6851300597190857,
0.013227825984358788,
0.06817296147346497,
-0.634069561958313,
0.2675519287586212,
0.026512742042541504,
-0.37157362699508667,
0.35965725779533386,
0.1341172605752945,
0.8614363074302673,
0.09890544414520264,
-0.5748166441917419,
0.5975003838539124,
-0.04482124373316765,
-0.35569876432418823,
-0.5407192707061768,
0.10899365693330765,
-0.00871590618044138,
0.3239191174507141,
0.37451067566871643,
0.1430017203092575,
0.17885737121105194,
-0.33697861433029175,
0.2237209677696228,
0.08814454823732376,
-0.36755648255348206,
-0.5730524063110352,
1.278084397315979,
0.17848506569862366,
-0.27410849928855896,
0.49252429604530334,
-0.1969451606273651,
-0.18167944252490997,
0.5597739219665527,
0.3128158748149872,
0.6023474931716919,
-0.14048294723033905,
0.4706020951271057,
0.7310011982917786,
-0.03679916635155678,
-0.057926684617996216,
0.26737165451049805,
0.04094633832573891,
-0.41731366515159607,
-0.5819725394248962,
-0.5222369432449341,
-0.5481631755828857,
0.16395729780197144,
-0.7441619038581848,
0.7231150269508362,
-0.38597363233566284,
-0.38557958602905273,
0.31539979577064514,
0.21093027293682098,
-0.5681955814361572,
0.26706287264823914,
0.22403009235858917,
0.7752407193183899,
-0.7043080925941467,
0.9505890011787415,
0.5966089367866516,
-0.740702748298645,
-0.7436425685882568,
-0.40671926736831665,
0.24007824063301086,
-0.44907355308532715,
0.15653257071971893,
0.06336339563131332,
-0.1747666448354721,
0.09185630083084106,
-0.34164416790008545,
-0.7747791409492493,
1.2644474506378174,
0.5735614895820618,
-0.4968873858451843,
-0.17809586226940155,
-0.03446265682578087,
0.6406164765357971,
-0.3218939006328583,
0.6036819815635681,
0.413284033536911,
0.3364226520061493,
0.17125213146209717,
-0.906827449798584,
-0.10810233652591705,
-0.2413254827260971,
0.27351608872413635,
0.10871712118387222,
-0.9763239622116089,
0.9640400409698486,
-0.4111746549606323,
-0.1090606153011322,
0.0772710070014,
0.6484934091567993,
0.18084777891635895,
0.4883425235748291,
0.30388572812080383,
0.9313851594924927,
0.06065952777862549,
0.08265767246484756,
0.9566936492919922,
0.0516250915825367,
0.6789460182189941,
0.9062579274177551,
0.04703223332762718,
0.6757941246032715,
0.555851936340332,
-0.259049654006958,
0.5966180562973022,
0.6341170072555542,
-0.21572646498680115,
0.5525465607643127,
-0.007661814801394939,
-0.052504412829875946,
-0.08596222847700119,
-0.23951831459999084,
-0.5665430426597595,
0.5269693732261658,
0.16773326694965363,
-0.1804220825433731,
-0.31923097372055054,
0.007450435310602188,
-0.09483998268842697,
0.0543128177523613,
-0.24851004779338837,
0.40016239881515503,
-0.02094845660030842,
-0.3258500397205353,
0.6604214310646057,
-0.05696485936641693,
0.8174245953559875,
-0.5301951766014099,
-0.2503093481063843,
-0.24076254665851593,
0.3401438295841217,
-0.40848976373672485,
-0.9670628309249878,
0.31362321972846985,
0.23774781823158264,
-0.06197580695152283,
-0.26551908254623413,
0.7753313183784485,
-0.32732686400413513,
-0.4700259268283844,
0.5466374158859253,
0.17111645638942719,
0.4498756527900696,
-0.15506000816822052,
-0.3465270400047302,
0.08483725786209106,
0.06892256438732147,
-0.5229266881942749,
0.3459691107273102,
0.1383434236049652,
0.13402479887008667,
0.4169364273548126,
0.47967833280563354,
0.20143277943134308,
0.08950856328010559,
-0.057228464633226395,
0.869232714176178,
-0.6200771331787109,
-0.09227129817008972,
-0.6978387236595154,
0.5501580238342285,
-0.3306715786457062,
-0.3961571753025055,
0.9340139627456665,
0.6582965850830078,
1.1433112621307373,
-0.21012438833713531,
0.4548743963241577,
-0.2225867062807083,
0.2764841318130493,
-0.15573014318943024,
0.40057462453842163,
-0.9398210048675537,
-0.11177124083042145,
-0.34919995069503784,
-0.8130485415458679,
-0.0658857449889183,
0.3018202483654022,
0.11078263074159622,
-0.2167079895734787,
0.1724429428577423,
0.8081417679786682,
-0.2755795419216156,
-0.32394349575042725,
0.44469380378723145,
0.24922963976860046,
0.26848986744880676,
0.5250407457351685,
0.2742016315460205,
-1.0090340375900269,
0.824491560459137,
-0.7092547416687012,
-0.37727615237236023,
-0.39225369691848755,
-0.5443282127380371,
-0.44110965728759766,
-0.5567841529846191,
-0.5256902575492859,
-0.611892580986023,
-0.07673173397779465,
0.6618798971176147,
1.0371413230895996,
-0.4697185158729553,
-0.35756123065948486,
-0.024837590754032135,
-0.08558102697134018,
-0.0837884247303009,
-0.32243576645851135,
0.07028903812170029,
0.45930954813957214,
-0.9420870542526245,
0.15619491040706635,
0.5241184234619141,
0.2513619661331177,
-0.2290852814912796,
-0.1883956491947174,
-0.21364982426166534,
0.08437183499336243,
0.5901177525520325,
0.44480082392692566,
-0.5225255489349365,
-0.475106805562973,
-0.020526422187685966,
0.1990187168121338,
0.32521888613700867,
0.47134289145469666,
-0.6957568526268005,
0.7142629027366638,
0.7437382340431213,
-0.20537413656711578,
1.1927403211593628,
-0.034966062754392624,
0.15737856924533844,
-0.6105961799621582,
0.34995803236961365,
-0.009605479426681995,
0.160173699259758,
0.2853841483592987,
-0.2533252239227295,
0.6535701155662537,
0.35714584589004517,
-0.7335936427116394,
-0.8703224062919617,
0.042083490639925,
-1.4631165266036987,
-0.06036103889346123,
1.158717393875122,
-0.11182471364736557,
-0.30800774693489075,
0.3053272068500519,
-0.2366413176059723,
0.5600417256355286,
-0.5255292654037476,
0.6779904961585999,
0.4745222330093384,
-0.27613791823387146,
-0.17190448939800262,
-0.8235645890235901,
0.26248058676719666,
0.25548887252807617,
-0.33935609459877014,
-0.2452610433101654,
0.5118759870529175,
0.7213087677955627,
0.2527509331703186,
0.7732648253440857,
-0.34660670161247253,
0.3750130534172058,
0.4275895655155182,
0.09327379614114761,
-0.025969015434384346,
0.05610489845275879,
-0.40627729892730713,
0.08757325261831284,
-0.23454801738262177,
-0.475094199180603
] |
ckiplab/bert-base-chinese | ckiplab | "2022-05-10T03:28:12Z" | 101,201 | 15 | transformers | [
"transformers",
"pytorch",
"jax",
"bert",
"fill-mask",
"lm-head",
"zh",
"license:gpl-3.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | fill-mask | "2022-03-02T23:29:05Z" | ---
language:
- zh
thumbnail: https://ckip.iis.sinica.edu.tw/files/ckip_logo.png
tags:
- pytorch
- lm-head
- bert
- zh
license: gpl-3.0
---
# CKIP BERT Base Chinese
This project provides traditional Chinese transformers models (including ALBERT, BERT, GPT2) and NLP tools (including word segmentation, part-of-speech tagging, named entity recognition).
這個專案提供了繁體中文的 transformers 模型(包含 ALBERT、BERT、GPT2)及自然語言處理工具(包含斷詞、詞性標記、實體辨識)。
## Homepage
- https://github.com/ckiplab/ckip-transformers
## Contributers
- [Mu Yang](https://muyang.pro) at [CKIP](https://ckip.iis.sinica.edu.tw) (Author & Maintainer)
## Usage
Please use BertTokenizerFast as tokenizer instead of AutoTokenizer.
請使用 BertTokenizerFast 而非 AutoTokenizer。
```
from transformers import (
BertTokenizerFast,
AutoModel,
)
tokenizer = BertTokenizerFast.from_pretrained('bert-base-chinese')
model = AutoModel.from_pretrained('ckiplab/bert-base-chinese')
```
For full usage and more information, please refer to https://github.com/ckiplab/ckip-transformers.
有關完整使用方法及其他資訊,請參見 https://github.com/ckiplab/ckip-transformers 。
| [
-0.30974340438842773,
-0.37440621852874756,
0.026034442707896233,
0.8031584620475769,
-0.4241921007633209,
0.056849248707294464,
-0.1960228681564331,
-0.27102571725845337,
-0.04053883999586105,
0.46776050329208374,
-0.3884212076663971,
-0.3134176433086395,
-0.6200188994407654,
0.022920168936252594,
-0.2579818367958069,
0.9032159447669983,
-0.20940884947776794,
0.36283111572265625,
0.4465644955635071,
0.13961072266101837,
-0.26153504848480225,
-0.4737043082714081,
-0.7421846389770508,
-0.6284968256950378,
-0.04722563922405243,
0.27554118633270264,
0.7044531106948853,
0.42647215723991394,
0.5168923139572144,
0.3193885087966919,
0.040176067501306534,
-0.11187287420034409,
-0.18955479562282562,
-0.2954496443271637,
0.004231920465826988,
-0.5457103848457336,
-0.39723849296569824,
-0.21249821782112122,
0.7082703709602356,
0.5023427605628967,
0.0255307387560606,
-0.022738879546523094,
0.20219801366329193,
0.37798699736595154,
-0.3452807366847992,
0.4541822075843811,
-0.6241611838340759,
0.3181033134460449,
-0.16640819609165192,
-0.08706435561180115,
-0.3880179524421692,
-0.2724255919456482,
0.18480172753334045,
-0.6478451490402222,
0.3568364381790161,
-0.16496498882770538,
1.391554832458496,
0.04505614936351776,
-0.32108330726623535,
-0.28473392128944397,
-0.7226946353912354,
1.099673867225647,
-0.8992880582809448,
0.46731308102607727,
0.3696763813495636,
0.3002457618713379,
-0.05445784702897072,
-1.1217728853225708,
-0.6779731512069702,
-0.1945250779390335,
-0.22399675846099854,
0.340908408164978,
0.1357104778289795,
-0.038423437625169754,
0.3769027292728424,
0.31296566128730774,
-0.632194995880127,
0.21322274208068848,
-0.40398016571998596,
-0.4460834562778473,
0.5571212768554688,
-0.09741576761007309,
0.5028842091560364,
-0.4617849290370941,
-0.5745694637298584,
-0.36377888917922974,
-0.6522048115730286,
0.239643394947052,
0.2869616746902466,
0.13236916065216064,
-0.4868999123573303,
0.600866973400116,
-0.011190980672836304,
0.29962506890296936,
0.1916222721338272,
-0.08057583123445511,
0.46715047955513,
-0.29790034890174866,
-0.08947528153657913,
-0.13307413458824158,
0.9264580011367798,
0.23502908647060394,
0.10438058525323868,
0.06395096331834793,
-0.33394429087638855,
-0.3490476906299591,
-0.2458166927099228,
-0.7996624708175659,
-0.7214447855949402,
0.22355982661247253,
-0.8097357749938965,
-0.20957046747207642,
0.16744759678840637,
-0.6446520686149597,
0.30690643191337585,
-0.24935013055801392,
0.43910276889801025,
-0.7362915873527527,
-0.631818413734436,
-0.00931428000330925,
-0.41495680809020996,
0.8709125518798828,
0.14368286728858948,
-1.2553131580352783,
0.03569266200065613,
0.635248601436615,
0.7696854472160339,
0.13921953737735748,
-0.17019614577293396,
0.14655224978923798,
0.38259878754615784,
-0.20560277998447418,
0.5655034184455872,
-0.11651571094989777,
-0.752433717250824,
0.14210659265518188,
0.09577993303537369,
0.020174410194158554,
-0.4386243224143982,
0.8554514050483704,
-0.33371031284332275,
0.42339926958084106,
-0.2348712533712387,
-0.31235581636428833,
-0.07186190783977509,
0.0948227122426033,
-0.5438967347145081,
1.244149088859558,
0.2362007349729538,
-0.8879889249801636,
0.255016028881073,
-0.9195235967636108,
-0.6165562868118286,
0.34352225065231323,
-0.1087154820561409,
-0.4357798397541046,
-0.1822054386138916,
0.24741554260253906,
0.3347887098789215,
-0.06513582915067673,
0.21887265145778656,
-0.016333244740962982,
-0.23129259049892426,
0.008475849404931068,
-0.45341065526008606,
1.4080642461776733,
0.35754966735839844,
-0.33826300501823425,
0.17287805676460266,
-0.7078560590744019,
0.13441824913024902,
0.32056325674057007,
-0.2686092257499695,
-0.2532464563846588,
0.21012279391288757,
0.6229947805404663,
0.16546669602394104,
0.5807425379753113,
-0.6184402108192444,
0.50901859998703,
-0.5859169363975525,
0.7501497268676758,
0.8727831244468689,
-0.3372556269168854,
0.2919993996620178,
-0.1600302904844284,
0.00030953093664720654,
0.06369474530220032,
0.38556793332099915,
-0.1420341432094574,
-0.5373849272727966,
-1.1713007688522339,
-0.3625474274158478,
0.4637461006641388,
0.8085132837295532,
-1.1603528261184692,
0.9425652027130127,
-0.25236451625823975,
-0.6528041362762451,
-0.34106746315956116,
-0.07063021510839462,
0.020855585113167763,
0.18592259287834167,
0.5737860202789307,
-0.3107045590877533,
-0.6093728542327881,
-1.063798427581787,
0.12673437595367432,
-0.5998409986495972,
-0.5838127136230469,
-0.002897612052038312,
0.5822532176971436,
-0.4655907154083252,
1.0378754138946533,
-0.5438184142112732,
-0.2895689010620117,
-0.3280871510505676,
0.5862886309623718,
0.37365588545799255,
0.9475296139717102,
0.6577314138412476,
-1.0601141452789307,
-0.7448557615280151,
-0.22193120419979095,
-0.3614785373210907,
-0.06973656266927719,
-0.237822026014328,
-0.1548239290714264,
0.06470632553100586,
0.061906032264232635,
-0.632980465888977,
0.1990535706281662,
0.412325382232666,
0.0030647912062704563,
0.8976295590400696,
-0.053552620112895966,
-0.29906710982322693,
-1.3866320848464966,
0.1923392117023468,
-0.20995955169200897,
-0.04449735954403877,
-0.4401170015335083,
0.002061745384708047,
0.19742678105831146,
-0.09239981323480606,
-0.5645821690559387,
0.5885909795761108,
-0.36635059118270874,
0.33510249853134155,
-0.2775243818759918,
-0.18072284758090973,
-0.21819540858268738,
0.6259165406227112,
0.42160817980766296,
0.738595724105835,
0.6314342617988586,
-0.7393887639045715,
0.4429539740085602,
0.6990273594856262,
-0.2830394506454468,
-0.09617046266794205,
-0.9865642189979553,
-0.017470771446824074,
0.3318791091442108,
0.17931057512760162,
-1.0053558349609375,
-0.06633111834526062,
0.6405541300773621,
-0.7918611764907837,
0.6296358108520508,
0.06019863113760948,
-0.9732702970504761,
-0.4746072292327881,
-0.46875983476638794,
0.35281872749328613,
0.7266302704811096,
-0.6574146151542664,
0.5249491333961487,
0.27372997999191284,
-0.22084049880504608,
-0.6240870952606201,
-0.8349222540855408,
-0.020505361258983612,
0.2837812304496765,
-0.6073151230812073,
0.67912757396698,
-0.23869717121124268,
0.35352182388305664,
-0.008640538901090622,
0.09586336463689804,
-0.5055174231529236,
-0.08355410397052765,
-0.13936689496040344,
0.4279194176197052,
-0.15374897420406342,
-0.013208579272031784,
0.20939648151397705,
-0.32738953828811646,
0.15030750632286072,
-0.008984901010990143,
0.7624318599700928,
0.04699336737394333,
-0.3338223099708557,
-0.581010103225708,
0.2821474075317383,
0.2122880220413208,
-0.2587510645389557,
0.3203016221523285,
1.0790754556655884,
-0.2714042365550995,
-0.1968621462583542,
-0.4469243884086609,
-0.16101528704166412,
-0.5713016986846924,
0.6284700632095337,
-0.47961774468421936,
-0.8576852679252625,
0.34553271532058716,
-0.11618688702583313,
0.203207328915596,
0.7887514233589172,
0.6682014465332031,
-0.016602644696831703,
1.287747859954834,
0.9591559171676636,
-0.570673406124115,
0.45748278498649597,
-0.42445188760757446,
0.3888714611530304,
-0.934258222579956,
0.25328636169433594,
-0.6618627905845642,
0.10624226927757263,
-0.8653483986854553,
-0.31563180685043335,
-0.01654546707868576,
0.16626010835170746,
-0.28546375036239624,
0.7587071061134338,
-0.8353292942047119,
-0.05179817974567413,
0.8247204422950745,
-0.3124074935913086,
-0.1007060706615448,
-0.09498073905706406,
-0.28061679005622864,
-0.015088635496795177,
-0.6154638528823853,
-0.6852761507034302,
0.7716225385665894,
0.7055795788764954,
0.7568581104278564,
-0.025827888399362564,
0.5249460935592651,
-0.033957142382860184,
0.44791945815086365,
-0.8315033316612244,
0.565119206905365,
-0.22213120758533478,
-0.8752835392951965,
-0.3122062087059021,
-0.23915545642375946,
-0.8793141841888428,
0.23574231564998627,
-0.025244958698749542,
-0.9026405215263367,
0.16893669962882996,
0.060972582548856735,
-0.10115571320056915,
0.39164847135543823,
-0.4497670829296112,
0.7701680660247803,
-0.5122418403625488,
0.11839302629232407,
-0.08160542696714401,
-0.7486540079116821,
0.40813565254211426,
0.0024630995467305183,
-0.09394220262765884,
-0.077499158680439,
0.10658213496208191,
0.7923510670661926,
-0.21135418117046356,
0.8707878589630127,
-0.19140759110450745,
-0.06597935408353806,
0.3292865455150604,
-0.31239813566207886,
0.324771910905838,
0.18272016942501068,
0.13130095601081848,
0.6326026320457458,
0.22626915574073792,
-0.40397021174430847,
-0.22328457236289978,
0.49738532304763794,
-0.9668501019477844,
-0.43877801299095154,
-0.6095780730247498,
-0.24219286441802979,
0.14648112654685974,
0.5657044649124146,
0.5838901996612549,
-0.002613200806081295,
-0.010335911996662617,
0.27795034646987915,
0.34421592950820923,
-0.4616648554801941,
0.6128259301185608,
0.5965011715888977,
-0.07250326871871948,
-0.4833540618419647,
0.9742233157157898,
0.14576251804828644,
0.08922982215881348,
0.671212911605835,
-0.042769212275743484,
-0.262417733669281,
-0.45873987674713135,
-0.35222765803337097,
0.4040503203868866,
-0.4493970572948456,
0.008380576968193054,
-0.3892471492290497,
-0.6141794323921204,
-0.691827654838562,
0.14676636457443237,
-0.3713788688182831,
-0.42811235785484314,
-0.30502092838287354,
0.01979222521185875,
-0.34933701157569885,
0.12310165911912918,
-0.2914814352989197,
0.502884030342102,
-1.1086502075195312,
0.519922137260437,
0.2233579456806183,
0.26469138264656067,
0.022515062242746353,
-0.24957789480686188,
-0.5816532969474792,
0.1297144889831543,
-0.9064595699310303,
-0.7640641927719116,
0.5836964845657349,
0.006972203962504864,
0.753086507320404,
0.6419165134429932,
0.18592262268066406,
0.5402141213417053,
-0.6793550252914429,
1.1703001260757446,
0.38978445529937744,
-1.2611311674118042,
0.4208019971847534,
-0.185320183634758,
0.3596711754798889,
0.31054049730300903,
0.5272085070610046,
-0.8185673356056213,
-0.34572380781173706,
-0.5118513703346252,
-1.220763921737671,
0.6944620013237,
0.4048297703266144,
0.3734356164932251,
-0.012500211596488953,
0.012003765441477299,
-0.013960584066808224,
0.1797296106815338,
-1.1653342247009277,
-0.5790998339653015,
-0.5629927515983582,
-0.32430514693260193,
0.247604638338089,
-0.42298105359077454,
0.09373726695775986,
-0.2322784811258316,
1.1289879083633423,
0.07349897921085358,
0.8761829137802124,
0.4976924657821655,
-0.05411359667778015,
-0.1388700306415558,
0.09465257078409195,
0.4967638850212097,
0.5795742869377136,
-0.2884070873260498,
-0.24957489967346191,
0.08117504417896271,
-0.6723372340202332,
-0.24152520298957825,
0.43636825680732727,
-0.41791483759880066,
0.47068163752555847,
0.521971583366394,
0.6557366847991943,
0.1419629156589508,
-0.43376097083091736,
0.5653966665267944,
-0.16791509091854095,
-0.2586040198802948,
-1.0309675931930542,
-0.04303572699427605,
0.04299170896410942,
0.023044705390930176,
0.7299297451972961,
-0.17395447194576263,
0.15188483893871307,
-0.197877898812294,
0.22778856754302979,
0.4325408935546875,
-0.5443745851516724,
-0.48287659883499146,
0.7116445302963257,
0.5004939436912537,
-0.28623658418655396,
0.9033923745155334,
-0.05845028907060623,
-1.006125569343567,
0.7189095616340637,
0.4879674017429352,
1.0830587148666382,
-0.35438084602355957,
0.05125058814883232,
0.6706643104553223,
0.5223681926727295,
0.06513850390911102,
0.25599005818367004,
-0.28665319085121155,
-0.9794964790344238,
-0.5587959885597229,
-0.39289626479148865,
-0.4790728688240051,
0.43847405910491943,
-0.5229387283325195,
0.6059513688087463,
-0.49140673875808716,
-0.12603549659252167,
-0.06333406269550323,
-0.05041321739554405,
-0.5138570666313171,
0.1559518575668335,
0.1331363171339035,
1.202331781387329,
-0.6622594594955444,
1.2540011405944824,
0.6254222989082336,
-0.5724696516990662,
-0.8809126019477844,
0.17891651391983032,
-0.42092037200927734,
-0.7816392779350281,
1.111913800239563,
0.37533536553382874,
0.2888801097869873,
0.0808267891407013,
-0.7916082739830017,
-0.8035095930099487,
1.060530185699463,
-0.16050545871257782,
-0.3530908226966858,
-0.11175300925970078,
0.37119734287261963,
0.4210488796234131,
-0.048597972840070724,
0.4607987403869629,
0.07426539063453674,
0.6668835282325745,
-0.17304900288581848,
-1.2068477869033813,
-0.2428104281425476,
-0.3025180995464325,
0.06289291381835938,
0.2563496232032776,
-0.9024153351783752,
0.9022825360298157,
0.12226176261901855,
-0.3518083393573761,
0.4034866392612457,
0.9591289758682251,
0.0021222636569291353,
0.12877289950847626,
0.5974408984184265,
0.47196587920188904,
-0.03219756484031677,
-0.23999330401420593,
0.5171980857849121,
-0.6164092421531677,
0.8507640361785889,
0.8827496767044067,
-0.07345105707645416,
0.7813767194747925,
0.3815845847129822,
-0.5347090363502502,
0.5742993950843811,
0.7239876389503479,
-0.6488845348358154,
0.6455262303352356,
0.010298832319676876,
-0.11115061491727829,
-0.11781543493270874,
0.13622334599494934,
-0.5932713150978088,
0.24865789711475372,
0.3207555413246155,
-0.38537880778312683,
-0.15422852337360382,
-0.20389285683631897,
-0.012732572853565216,
-0.4415931701660156,
-0.06032746657729149,
0.5398544669151306,
0.1461886465549469,
-0.317293643951416,
0.5183168649673462,
0.37412384152412415,
1.0195040702819824,
-1.1045875549316406,
-0.3724156320095062,
0.27304399013519287,
0.15887144207954407,
-0.05296863615512848,
-0.6742745637893677,
0.15183915197849274,
-0.36169326305389404,
-0.16417717933654785,
-0.16359534859657288,
0.8436374068260193,
-0.3514307141304016,
-0.5681266188621521,
0.4432254433631897,
0.0810786634683609,
0.1510505974292755,
0.3059697449207306,
-1.2230308055877686,
-0.35128217935562134,
0.37516480684280396,
-0.44740262627601624,
0.15969900786876678,
0.16278302669525146,
0.10758156329393387,
0.6779624223709106,
0.9112293124198914,
0.09103589504957199,
-0.14199501276016235,
-0.04588518664240837,
0.9477203488349915,
-0.598468005657196,
-0.5903475284576416,
-0.7263873815536499,
0.7966040372848511,
-0.2527783513069153,
-0.3744909465312958,
0.7440515160560608,
0.7462572455406189,
1.191663384437561,
-0.37565168738365173,
1.0801830291748047,
-0.413989394903183,
0.8046656847000122,
-0.20424631237983704,
0.8459604978561401,
-0.4273875057697296,
-0.15008345246315002,
-0.35087719559669495,
-0.9337024092674255,
-0.241588294506073,
0.9293564558029175,
-0.14250686764717102,
-0.06992805749177933,
0.7173526287078857,
0.6296926140785217,
0.005759831517934799,
-0.2314886450767517,
0.16318967938423157,
0.19110937416553497,
0.6599053144454956,
0.4708600640296936,
0.572902262210846,
-0.5540604591369629,
0.6628564596176147,
-0.688582718372345,
-0.21423594653606415,
-0.13823607563972473,
-0.7343763709068298,
-0.7542887330055237,
-0.6368497610092163,
-0.2875882685184479,
-0.11015928536653519,
-0.27218884229660034,
0.87725830078125,
0.8009793758392334,
-1.1169041395187378,
-0.4715861976146698,
-0.023775480687618256,
0.106206975877285,
-0.35663333535194397,
-0.3688960075378418,
0.6581441760063171,
-0.44612061977386475,
-1.2101880311965942,
0.010154367424547672,
0.09069552272558212,
0.11343728005886078,
-0.33989498019218445,
0.00441209739074111,
-0.29600203037261963,
-0.18085134029388428,
0.4432075023651123,
0.4633837342262268,
-0.7866787910461426,
-0.334846168756485,
-0.01704445108771324,
-0.21372036635875702,
0.1260044127702713,
0.6411492824554443,
-0.23573973774909973,
0.39851564168930054,
0.7082247138023376,
0.2926569879055023,
0.36747613549232483,
-0.1457156091928482,
0.7406560778617859,
-0.5223408341407776,
0.2919673025608063,
0.342765748500824,
0.5753166675567627,
0.32673394680023193,
-0.23925048112869263,
0.5189319252967834,
0.4520716071128845,
-0.7590101361274719,
-0.6104575991630554,
0.35746702551841736,
-1.088672399520874,
-0.2954719662666321,
0.954728364944458,
-0.3016434907913208,
-0.14594265818595886,
-0.12101653963327408,
-0.627299964427948,
0.671596348285675,
-0.3266454339027405,
0.634412944316864,
0.9044966101646423,
-0.06297628581523895,
-0.09508643299341202,
-0.5378328561782837,
0.41734516620635986,
0.45189812779426575,
-0.3574627637863159,
-0.36620235443115234,
0.005313062109053135,
0.19437097012996674,
0.6446869373321533,
0.4569080173969269,
-0.1377909630537033,
0.1326303631067276,
-0.1763099879026413,
0.631164014339447,
0.0204706359654665,
0.21034155786037445,
0.05800144746899605,
-0.19039617478847504,
0.039104051887989044,
-0.4455357789993286
] |
dccuchile/bert-base-spanish-wwm-uncased | dccuchile | "2022-05-31T15:02:39Z" | 100,665 | 44 | transformers | [
"transformers",
"pytorch",
"tf",
"jax",
"bert",
"fill-mask",
"masked-lm",
"es",
"arxiv:1904.09077",
"arxiv:1906.01502",
"arxiv:1812.10464",
"arxiv:1901.07291",
"arxiv:1904.02099",
"arxiv:1906.01569",
"arxiv:1908.11828",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | fill-mask | "2022-03-02T23:29:05Z" | ---
language:
- es
tags:
- masked-lm
---
# BETO: Spanish BERT
BETO is a [BERT model](https://github.com/google-research/bert) trained on a [big Spanish corpus](https://github.com/josecannete/spanish-corpora). BETO is of size similar to a BERT-Base and was trained with the Whole Word Masking technique. Below you find Tensorflow and Pytorch checkpoints for the uncased and cased versions, as well as some results for Spanish benchmarks comparing BETO with [Multilingual BERT](https://github.com/google-research/bert/blob/master/multilingual.md) as well as other (not BERT-based) models.
## Download
| | | | |
|-|:--------:|:-----:|:----:|
|BETO uncased|[tensorflow_weights](https://users.dcc.uchile.cl/~jperez/beto/uncased_2M/tensorflow_weights.tar.gz) | [pytorch_weights](https://users.dcc.uchile.cl/~jperez/beto/uncased_2M/pytorch_weights.tar.gz) | [vocab](./config/uncased_2M/vocab.txt), [config](./config/uncased_2M/config.json) |
|BETO cased| [tensorflow_weights](https://users.dcc.uchile.cl/~jperez/beto/cased_2M/tensorflow_weights.tar.gz) | [pytorch_weights](https://users.dcc.uchile.cl/~jperez/beto/cased_2M/pytorch_weights.tar.gz) | [vocab](./config/cased_2M/vocab.txt), [config](./config/cased_2M/config.json) |
All models use a vocabulary of about 31k BPE subwords constructed using SentencePiece and were trained for 2M steps.
## Benchmarks
The following table shows some BETO results in the Spanish version of every task.
We compare BETO (cased and uncased) with the Best Multilingual BERT results that
we found in the literature (as of October 2019).
The table also shows some alternative methods for the same tasks (not necessarily BERT-based methods).
References for all methods can be found [here](#references).
|Task | BETO-cased | BETO-uncased | Best Multilingual BERT | Other results |
|-------|--------------:|--------------:|--------------------------:|-------------------------------:|
|[POS](https://lindat.mff.cuni.cz/repository/xmlui/handle/11234/1-1827) | **98.97** | 98.44 | 97.10 [2] | 98.91 [6], 96.71 [3] |
|[NER-C](https://www.kaggle.com/nltkdata/conll-corpora) | [**88.43**](https://github.com/gchaperon/beto-benchmarks/blob/master/conll2002/dev_results_beto-cased_conll2002.txt) | 82.67 | 87.38 [2] | 87.18 [3] |
|[MLDoc](https://github.com/facebookresearch/MLDoc) | [95.60](https://github.com/gchaperon/beto-benchmarks/blob/master/MLDoc/dev_results_beto-cased_mldoc.txt) | [**96.12**](https://github.com/gchaperon/beto-benchmarks/blob/master/MLDoc/dev_results_beto-uncased_mldoc.txt) | 95.70 [2] | 88.75 [4] |
|[PAWS-X](https://github.com/google-research-datasets/paws/tree/master/pawsx) | 89.05 | 89.55 | 90.70 [8] |
|[XNLI](https://github.com/facebookresearch/XNLI) | **82.01** | 80.15 | 78.50 [2] | 80.80 [5], 77.80 [1], 73.15 [4]|
## Example of use
For further details on how to use BETO you can visit the [🤗Huggingface Transformers library](https://github.com/huggingface/transformers), starting by the [Quickstart section](https://huggingface.co/transformers/quickstart.html).
BETO models can be accessed simply as [`'dccuchile/bert-base-spanish-wwm-cased'`](https://huggingface.co/dccuchile/bert-base-spanish-wwm-cased) and [`'dccuchile/bert-base-spanish-wwm-uncased'`](https://huggingface.co/dccuchile/bert-base-spanish-wwm-uncased) by using the Transformers library.
An example on how to download and use the models in this page can be found in [this colab notebook](https://colab.research.google.com/drive/1uRwg4UmPgYIqGYY4gW_Nsw9782GFJbPt).
(We will soon add a more detailed step-by-step tutorial in Spanish for newcommers 😉)
## Acknowledgments
We thank [Adereso](https://www.adere.so/) for kindly providing support for traininig BETO-uncased, and the [Millennium Institute for Foundational Research on Data](https://imfd.cl/en/)
that provided support for training BETO-cased. Also thanks to Google for helping us with the [TensorFlow Research Cloud](https://www.tensorflow.org/tfrc) program.
## Citation
[Spanish Pre-Trained BERT Model and Evaluation Data](https://users.dcc.uchile.cl/~jperez/papers/pml4dc2020.pdf)
To cite this resource in a publication please use the following:
```
@inproceedings{CaneteCFP2020,
title={Spanish Pre-Trained BERT Model and Evaluation Data},
author={Cañete, José and Chaperon, Gabriel and Fuentes, Rodrigo and Ho, Jou-Hui and Kang, Hojin and Pérez, Jorge},
booktitle={PML4DC at ICLR 2020},
year={2020}
}
```
## License Disclaimer
The license CC BY 4.0 best describes our intentions for our work. However we are not sure that all the datasets used to train BETO have licenses compatible with CC BY 4.0 (specially for commercial use). Please use at your own discretion and verify that the licenses of the original text resources match your needs.
## References
* [1] [Original Multilingual BERT](https://github.com/google-research/bert/blob/master/multilingual.md)
* [2] [Multilingual BERT on "Beto, Bentz, Becas: The Surprising Cross-Lingual Effectiveness of BERT"](https://arxiv.org/pdf/1904.09077.pdf)
* [3] [Multilingual BERT on "How Multilingual is Multilingual BERT?"](https://arxiv.org/pdf/1906.01502.pdf)
* [4] [LASER](https://arxiv.org/abs/1812.10464)
* [5] [XLM (MLM+TLM)](https://arxiv.org/pdf/1901.07291.pdf)
* [6] [UDPipe on "75 Languages, 1 Model: Parsing Universal Dependencies Universally"](https://arxiv.org/pdf/1904.02099.pdf)
* [7] [Multilingual BERT on "Sequence Tagging with Contextual and Non-Contextual Subword Representations: A Multilingual Evaluation"](https://arxiv.org/pdf/1906.01569.pdf)
* [8] [Multilingual BERT on "PAWS-X: A Cross-lingual Adversarial Dataset for Paraphrase Identification"](https://arxiv.org/abs/1908.11828)
| [
-0.41990160942077637,
-0.5484124422073364,
0.2040858268737793,
0.46510329842567444,
-0.20356686413288116,
0.08439246565103531,
-0.5549192428588867,
-0.6128088235855103,
0.3938194513320923,
0.12185465544462204,
-0.42057621479034424,
-0.5960875153541565,
-0.572302520275116,
0.058888029307127,
-0.10617407411336899,
1.1967397928237915,
-0.13057874143123627,
0.4409618675708771,
-0.11205045133829117,
-0.029312828555703163,
-0.1854330450296402,
-0.5898481011390686,
-0.6299201846122742,
-0.35333430767059326,
0.425861120223999,
0.2268935739994049,
0.6955825090408325,
0.2507283389568329,
0.5288432836532593,
0.37986519932746887,
-0.1979987472295761,
0.07750291377305984,
-0.2778116464614868,
-0.18563714623451233,
0.14637543261051178,
-0.37233009934425354,
-0.4436677396297455,
-0.0913860872387886,
0.5136456489562988,
0.5856948494911194,
-0.16226299107074738,
-0.03111310862004757,
-0.11402245610952377,
0.6096175312995911,
-0.27400681376457214,
0.35342857241630554,
-0.6308637261390686,
0.01974642649292946,
-0.06420977413654327,
0.18995951116085052,
-0.4249200224876404,
-0.41543200612068176,
0.46767565608024597,
-0.6325730085372925,
0.5182284116744995,
-0.00575838889926672,
1.3187237977981567,
0.14055152237415314,
-0.26590240001678467,
-0.5946279168128967,
-0.4991587698459625,
0.9665492177009583,
-0.7231900691986084,
0.6808004379272461,
0.42627692222595215,
0.29023146629333496,
-0.23160012066364288,
-0.6558977365493774,
-0.5001760721206665,
-0.4038597345352173,
-0.13112802803516388,
0.40584424138069153,
-0.18005622923374176,
0.013194309547543526,
0.08687843382358551,
0.4425524175167084,
-0.5105347633361816,
0.017226409167051315,
-0.4154159128665924,
-0.37444502115249634,
0.6253944039344788,
-0.44382810592651367,
0.23934875428676605,
-0.357317715883255,
-0.5138236880302429,
-0.614520251750946,
-0.5871644616127014,
0.2878625690937042,
0.47468268871307373,
0.32167157530784607,
-0.34555384516716003,
0.3963964283466339,
0.23173263669013977,
0.4832589626312256,
-0.1808740645647049,
-0.15273314714431763,
0.6382917165756226,
-0.33197787404060364,
-0.19177694618701935,
-0.1374662220478058,
1.0795819759368896,
0.03194841742515564,
0.32745325565338135,
-0.45577648282051086,
-0.03582705929875374,
-0.3034617006778717,
0.2785069942474365,
-0.7435782551765442,
-0.11802606284618378,
0.3856279253959656,
-0.4315071403980255,
-0.09701406955718994,
-0.021831238642334938,
-0.7457494735717773,
0.10847104340791702,
-0.17550428211688995,
0.47329196333885193,
-0.8033515810966492,
-0.05460838973522186,
0.1842477172613144,
-0.057122793048620224,
0.4059891998767853,
0.16485796868801117,
-0.8457226753234863,
0.16043265163898468,
0.4792229235172272,
0.8422905802726746,
-0.12200015783309937,
-0.3668338656425476,
-0.00012613568105734885,
-0.22892948985099792,
-0.3936030864715576,
0.575506329536438,
-0.003424856811761856,
-0.28870412707328796,
0.20029015839099884,
0.279864639043808,
-0.27593913674354553,
-0.3703601658344269,
1.0093902349472046,
-0.5071076154708862,
0.6057301759719849,
-0.5167241096496582,
-0.5230584740638733,
-0.2297387570142746,
0.12936809659004211,
-0.657514750957489,
1.374495267868042,
0.039682649075984955,
-0.7751187682151794,
0.36358803510665894,
-0.567203938961029,
-0.5716697573661804,
-0.2138364315032959,
0.12295942008495331,
-0.6264593005180359,
-0.06473194062709808,
0.329073041677475,
0.5133907198905945,
-0.300896018743515,
0.4896893799304962,
-0.2864776849746704,
-0.17101389169692993,
0.06244666874408722,
-0.11371522396802902,
1.2183356285095215,
0.2924012243747711,
-0.4110533595085144,
0.059126757085323334,
-0.6895433068275452,
-0.06853166967630386,
0.2660789489746094,
-0.4501739740371704,
-0.19523121416568756,
0.05101969093084335,
0.09177324920892715,
0.2227589190006256,
0.4640935957431793,
-0.8182637691497803,
0.010663045570254326,
-0.3927907645702362,
0.33701789379119873,
0.5768657922744751,
-0.4448893964290619,
0.1546965092420578,
-0.4137481153011322,
0.3257664740085602,
-0.1902569830417633,
0.37561237812042236,
0.03330785408616066,
-0.6386101841926575,
-1.0818995237350464,
-0.6220211386680603,
0.6413077116012573,
0.7265009880065918,
-0.9756631851196289,
0.5347099900245667,
-0.4282452464103699,
-0.7243872880935669,
-0.7833592295646667,
-0.04711143299937248,
0.6153079271316528,
0.5539935231208801,
0.5898520350456238,
-0.21863551437854767,
-0.6669838428497314,
-1.0849467515945435,
0.1979532241821289,
-0.16968843340873718,
-0.25482475757598877,
0.43044036626815796,
0.7242361903190613,
-0.1504412591457367,
0.804503321647644,
-0.2925887703895569,
-0.2507282793521881,
-0.10147381573915482,
0.053366001695394516,
0.4470307230949402,
0.4577729403972626,
0.8534935116767883,
-0.7204152345657349,
-0.5297075510025024,
0.054185885936021805,
-0.7776113748550415,
0.1978917121887207,
0.03621270880103111,
-0.20029504597187042,
0.36110347509384155,
0.3840189576148987,
-0.4791918992996216,
-0.009895109571516514,
0.5487473607063293,
-0.1674288660287857,
0.5649759769439697,
-0.5621470212936401,
0.07432252168655396,
-1.2713886499404907,
0.1874191015958786,
0.16355574131011963,
-0.10167302191257477,
-0.6093771457672119,
-0.014393987134099007,
0.10977150499820709,
0.08540356159210205,
-0.6505094766616821,
0.5989767909049988,
-0.42911702394485474,
-0.04043836146593094,
0.2579217553138733,
-0.17421399056911469,
-0.10588325560092926,
0.748264729976654,
0.23794673383235931,
0.8636702299118042,
0.6320277452468872,
-0.43798020482063293,
0.26640599966049194,
0.35534217953681946,
-0.48198777437210083,
0.15981246531009674,
-1.039323329925537,
0.08133135735988617,
-0.027403146028518677,
0.14249897003173828,
-0.9906907677650452,
-0.0833197683095932,
0.1687999665737152,
-0.6183035969734192,
0.5572701096534729,
-0.20944929122924805,
-0.7122342586517334,
-0.5496439933776855,
-0.6998539566993713,
0.06339053064584732,
0.5506189465522766,
-0.6959394216537476,
0.3260546624660492,
0.3629952371120453,
-0.05089093744754791,
-0.7481659650802612,
-0.6910939812660217,
-0.041976653039455414,
-0.23378688097000122,
-0.7345902323722839,
0.7864828109741211,
-0.31145283579826355,
0.08779411017894745,
-0.14318080246448517,
0.13827446103096008,
-0.1713002473115921,
-0.14882102608680725,
-0.04389820992946625,
0.5036448240280151,
-0.01990164816379547,
0.11379807442426682,
0.02986871637403965,
0.1773221492767334,
-0.09274059534072876,
-0.011499586515128613,
0.5472730994224548,
-0.4257802665233612,
0.016197403892874718,
-0.12375989556312561,
0.28371697664260864,
0.5532053709030151,
-0.05706634745001793,
0.8501155972480774,
0.8716919422149658,
-0.33219000697135925,
0.11251769214868546,
-0.5965469479560852,
0.04631970822811127,
-0.4498421549797058,
0.2217455953359604,
-0.42940962314605713,
-0.7828938961029053,
0.8150337338447571,
0.2579193711280823,
0.24101266264915466,
0.5765378475189209,
0.7096531987190247,
-0.25145190954208374,
0.7383483648300171,
0.7454332709312439,
-0.15700681507587433,
0.690436065196991,
-0.49221259355545044,
0.037529218941926956,
-0.8004477620124817,
-0.4524449408054352,
-0.7711125016212463,
-0.06651215255260468,
-0.9122438430786133,
-0.48487696051597595,
0.3388579785823822,
0.12916307151317596,
-0.1879435032606125,
0.7494779825210571,
-0.44013938307762146,
0.13855287432670593,
0.8906113505363464,
0.23448584973812103,
-0.03399756923317909,
0.23942337930202484,
-0.48111391067504883,
-0.1198311597108841,
-0.8897101283073425,
-0.4287218451499939,
1.3700183629989624,
0.528785228729248,
0.48032957315444946,
0.0989459976553917,
0.7312353253364563,
0.23297525942325592,
0.2219712734222412,
-0.8455889225006104,
0.39262744784355164,
-0.3307584524154663,
-0.7772567868232727,
-0.23460619151592255,
-0.419220894575119,
-1.201114535331726,
0.42876872420310974,
-0.14696736633777618,
-0.7288512587547302,
0.4362468123435974,
-0.05401618033647537,
-0.16227509081363678,
0.20282626152038574,
-1.0385254621505737,
0.9477480053901672,
-0.42964375019073486,
-0.2359754890203476,
0.07885915040969849,
-0.6539084315299988,
0.10529948770999908,
0.04989304766058922,
0.2687965929508209,
0.04754988104104996,
0.05666331946849823,
0.9762671589851379,
-0.5948074460029602,
0.7372559905052185,
-0.07375286519527435,
-0.18387946486473083,
0.3509591519832611,
-0.27473220229148865,
0.4176611304283142,
-0.10802295058965683,
-0.16261398792266846,
0.7298575639724731,
0.1549278050661087,
-0.5064995288848877,
-0.13495220243930817,
0.6066733002662659,
-0.971903383731842,
-0.13843876123428345,
-0.5610873699188232,
-0.6605181097984314,
-0.3113369643688202,
0.22837474942207336,
0.44068393111228943,
0.13588310778141022,
-0.20428453385829926,
0.24542611837387085,
0.7598172426223755,
-0.5206124186515808,
0.6427940726280212,
0.5693212747573853,
0.1124027892947197,
-0.584270715713501,
0.9102320671081543,
0.044620759785175323,
0.006619432009756565,
0.5628098249435425,
0.17719221115112305,
-0.5048187375068665,
-0.516530454158783,
-0.5603305101394653,
0.46222826838493347,
-0.449321448802948,
-0.16374272108078003,
-0.5724644660949707,
-0.05854979529976845,
-0.5729898810386658,
-0.06687624007463455,
-0.5390830636024475,
-0.3569183349609375,
-0.14810512959957123,
0.019555769860744476,
0.4032917022705078,
0.23801982402801514,
-0.18564558029174805,
0.2858533561229706,
-0.4681777358055115,
0.22989366948604584,
0.2523764967918396,
0.36090943217277527,
-0.06746764481067657,
-0.5805396437644958,
-0.3697130084037781,
0.1600959599018097,
-0.22452357411384583,
-0.8117983341217041,
0.4504321813583374,
0.16254152357578278,
0.6858659386634827,
0.21444149315357208,
-0.1832514852285385,
0.5969412922859192,
-0.6732345223426819,
0.6799343228340149,
0.2716084420681,
-0.8607217073440552,
0.5280990600585938,
-0.3738792836666107,
-0.03034139983355999,
0.6114495992660522,
0.8313270807266235,
-0.4888019561767578,
-0.15694214403629303,
-0.7417209148406982,
-1.0212956666946411,
0.9006752371788025,
0.32564860582351685,
0.10052182525396347,
-0.05900495499372482,
0.09529906511306763,
0.12097333371639252,
0.3240610957145691,
-1.0043927431106567,
-0.4388892650604248,
-0.25426021218299866,
-0.29469823837280273,
-0.06829079985618591,
-0.36283013224601746,
-0.16824239492416382,
-0.4756510257720947,
0.9301981329917908,
-0.023992124944925308,
0.7279471755027771,
0.423653244972229,
-0.18455557525157928,
0.1859072744846344,
0.16243401169776917,
0.5797304511070251,
0.4909423291683197,
-0.6715339422225952,
-0.14605100452899933,
0.16915906965732574,
-0.5716663002967834,
-0.2656634449958801,
0.5057858228683472,
-0.2554679811000824,
0.36603260040283203,
0.6045635342597961,
0.8987488746643066,
0.2317359298467636,
-0.671050488948822,
0.48939451575279236,
-0.1624603271484375,
-0.37282904982566833,
-0.2886829674243927,
-0.26219621300697327,
0.035158708691596985,
0.16687847673892975,
0.3844059705734253,
-0.2463199496269226,
-0.015407350845634937,
-0.6068196892738342,
0.08572470396757126,
0.4478769302368164,
-0.378663569688797,
-0.2905134856700897,
0.5838028192520142,
0.13157600164413452,
-0.05044974386692047,
0.4596250057220459,
-0.3667128384113312,
-0.6651865839958191,
0.7699883580207825,
0.45661047101020813,
0.8249519467353821,
-0.11603257060050964,
0.41045013070106506,
0.6309680342674255,
0.5275482535362244,
-0.04042274132370949,
0.39857301115989685,
-0.14895734190940857,
-0.8660867810249329,
-0.4369903802871704,
-0.7806531190872192,
-0.4406938850879669,
0.20933714509010315,
-0.5546125769615173,
0.2351004034280777,
-0.17365606129169464,
-0.08848273754119873,
0.155899316072464,
0.30414825677871704,
-0.778361976146698,
0.1973714530467987,
0.05142517760396004,
0.831048846244812,
-0.7967227101325989,
1.0124485492706299,
0.8323648571968079,
-0.567674994468689,
-0.6850225329399109,
-0.23071832954883575,
-0.3746436834335327,
-0.9980353713035583,
0.4405527114868164,
-0.10044457018375397,
0.17017722129821777,
-0.31505319476127625,
-0.28193044662475586,
-0.9562695622444153,
1.0173448324203491,
0.4813532829284668,
-0.4751282036304474,
0.0486946664750576,
0.18977504968643188,
0.9469960927963257,
-0.08131519705057144,
0.6211234331130981,
0.36157646775245667,
0.4005158841609955,
0.2337271124124527,
-1.111612319946289,
-0.058442141860723495,
-0.34945133328437805,
0.12719175219535828,
0.002050988841801882,
-0.8905941247940063,
0.8545533418655396,
-0.1878967434167862,
0.055423468351364136,
-0.12627722322940826,
0.5776091814041138,
0.19623589515686035,
0.13177281618118286,
0.39162296056747437,
0.7060275673866272,
0.7646276354789734,
-0.31904077529907227,
1.1655824184417725,
-0.38156211376190186,
0.7090628743171692,
0.9656796455383301,
0.09427163749933243,
0.6587896943092346,
0.43174710869789124,
-0.6151031255722046,
0.4990047514438629,
0.9480609893798828,
-0.13732720911502838,
0.5589714646339417,
0.03923068940639496,
-0.04791692644357681,
-0.025023045018315315,
-0.1175001859664917,
-0.566512405872345,
0.41589733958244324,
0.051223669201135635,
-0.3167451322078705,
-0.1838189959526062,
0.0012215175665915012,
0.48575693368911743,
-0.25973525643348694,
-0.02755686268210411,
0.4615394175052643,
-0.03731587156653404,
-0.7413897514343262,
0.9092140197753906,
0.0763707235455513,
0.9947125315666199,
-0.7999327778816223,
0.2369101494550705,
-0.3896365761756897,
0.070052370429039,
-0.07262636721134186,
-0.6973648071289062,
0.20696544647216797,
0.16704945266246796,
-0.30215007066726685,
-0.46467578411102295,
0.5416171550750732,
-0.49392032623291016,
-0.7426568865776062,
0.591310441493988,
0.5098084211349487,
0.3594406843185425,
0.14872704446315765,
-1.056825876235962,
-0.019266070798039436,
0.18487690389156342,
-0.37214890122413635,
0.21395036578178406,
0.23839089274406433,
-0.09179721772670746,
0.6160382032394409,
0.765656054019928,
0.10495913028717041,
0.23996518552303314,
0.25768962502479553,
0.621782124042511,
-0.43206173181533813,
-0.23968102037906647,
-0.5516865253448486,
0.34623852372169495,
-0.059208642691373825,
-0.40958458185195923,
0.8173016905784607,
0.761861264705658,
1.2561489343643188,
-0.27489182353019714,
0.49026206135749817,
-0.4274502396583557,
0.5001209378242493,
-0.38733822107315063,
0.6711400747299194,
-0.7602198123931885,
-0.07913664728403091,
-0.47780388593673706,
-0.7694529294967651,
-0.25033631920814514,
0.6588700413703918,
-0.3732398450374603,
0.1759786754846573,
0.6570799350738525,
0.6454150676727295,
0.05164995789527893,
-0.2822459638118744,
0.03654533624649048,
0.21186771988868713,
0.2927018105983734,
0.6394788026809692,
0.41072288155555725,
-0.8042131066322327,
0.7565798759460449,
-0.6354260444641113,
-0.2073533982038498,
-0.16229961812496185,
-0.827904462814331,
-0.9225286245346069,
-0.7213108539581299,
-0.32300394773483276,
-0.22178873419761658,
0.04441438242793083,
0.7553489208221436,
0.8471429347991943,
-1.1278167963027954,
-0.47771337628364563,
-0.040544070303440094,
0.27020666003227234,
-0.2002895027399063,
-0.20060384273529053,
0.7197498083114624,
-0.3975992798805237,
-1.1356450319290161,
0.3347122073173523,
-0.15092253684997559,
0.06684309989213943,
0.014663288369774818,
-0.15835216641426086,
-0.5287410616874695,
-0.07582522183656693,
0.7250487208366394,
0.4125533103942871,
-0.5881897211074829,
-0.19171060621738434,
0.2696530520915985,
-0.016337642446160316,
0.19014856219291687,
0.45172515511512756,
-0.5363397598266602,
0.5772659182548523,
0.522366464138031,
0.49110111594200134,
0.772124707698822,
-0.36624452471733093,
0.23668409883975983,
-0.7842984795570374,
0.3175209164619446,
0.21467146277427673,
0.6653334498405457,
0.37941762804985046,
-0.15830206871032715,
0.7654052376747131,
0.20974162220954895,
-0.3954544961452484,
-0.7818236351013184,
-0.23049527406692505,
-1.2071808576583862,
-0.3405993580818176,
1.01116144657135,
-0.2391185164451599,
-0.24914661049842834,
0.23447458446025848,
-0.16428641974925995,
0.5087023973464966,
-0.4525788724422455,
0.9134124517440796,
0.9580628275871277,
-0.14118589460849762,
0.1303233653306961,
-0.6800786852836609,
0.4512518048286438,
0.7382046580314636,
-0.8370401263237,
-0.4042619466781616,
0.25719931721687317,
0.3003695011138916,
0.36185285449028015,
0.4887886941432953,
-0.21023890376091003,
0.05546874552965164,
-0.24179524183273315,
0.5704118013381958,
0.034736890345811844,
-0.31681859493255615,
-0.14824391901493073,
-0.1591617465019226,
-0.3616083562374115,
-0.42151492834091187
] |
google/mobilenet_v1_0.75_192 | google | "2023-05-16T16:38:23Z" | 100,384 | 2 | transformers | [
"transformers",
"pytorch",
"mobilenet_v1",
"image-classification",
"vision",
"dataset:imagenet-1k",
"arxiv:1704.04861",
"license:other",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | image-classification | "2022-11-10T16:06:51Z" | ---
license: other
tags:
- vision
- image-classification
datasets:
- imagenet-1k
widget:
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
example_title: Tiger
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg
example_title: Teapot
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg
example_title: Palace
---
# MobileNet V1
MobileNet V1 model pre-trained on ImageNet-1k at resolution 192x192. It was introduced in [MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications](https://arxiv.org/abs/1704.04861) by Howard et al, and first released in [this repository](https://github.com/tensorflow/models/blob/master/research/slim/nets/mobilenet_v1.md).
Disclaimer: The team releasing MobileNet V1 did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
From the [original README](https://github.com/tensorflow/models/blob/master/research/slim/nets/mobilenet_v1.md):
> MobileNets are small, low-latency, low-power models parameterized to meet the resource constraints of a variety of use cases. They can be built upon for classification, detection, embeddings and segmentation similar to how other popular large scale models, such as Inception, are used. MobileNets can be run efficiently on mobile devices [...] MobileNets trade off between latency, size and accuracy while comparing favorably with popular models from the literature.
## Intended uses & limitations
You can use the raw model for image classification. See the [model hub](https://huggingface.co/models?search=mobilenet_v1) to look for fine-tuned versions on a task that interests you.
### How to use
Here is how to use this model to classify an image of the COCO 2017 dataset into one of the 1,000 ImageNet classes:
```python
from transformers import AutoImageProcessor, AutoModelForImageClassification
from PIL import Image
import requests
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(url, stream=True).raw)
preprocessor = AutoImageProcessor.from_pretrained("google/mobilenet_v1_0.75_192")
model = AutoModelForImageClassification.from_pretrained("google/mobilenet_v1_0.75_192")
inputs = preprocessor(images=image, return_tensors="pt")
outputs = model(**inputs)
logits = outputs.logits
# model predicts one of the 1000 ImageNet classes
predicted_class_idx = logits.argmax(-1).item()
print("Predicted class:", model.config.id2label[predicted_class_idx])
```
Note: This model actually predicts 1001 classes, the 1000 classes from ImageNet plus an extra “background” class (index 0).
Currently, both the feature extractor and model support PyTorch.
| [
-0.5634534955024719,
-0.22962944209575653,
-0.2672489285469055,
0.07401151210069656,
-0.3276809751987457,
-0.4126117527484894,
0.2612685263156891,
-0.6216577887535095,
0.43985000252723694,
0.40565022826194763,
-0.42386502027511597,
-0.33841073513031006,
-0.6148194074630737,
-0.18161776661872864,
-0.39072152972221375,
0.6898987889289856,
0.06874071061611176,
-0.0014280170435085893,
-0.4373367428779602,
-0.3509605824947357,
-0.16206905245780945,
-0.4973304271697998,
-0.9805430769920349,
-0.35168370604515076,
0.6234802603721619,
0.44996291399002075,
0.5871016979217529,
0.5727553367614746,
0.6382469534873962,
0.37875810265541077,
0.004379434511065483,
0.00940188579261303,
-0.2635529637336731,
-0.41057902574539185,
0.19695384800434113,
-0.3524589538574219,
-0.4611172676086426,
0.4431591033935547,
0.23409722745418549,
0.2793695628643036,
0.11095375567674637,
0.5272102952003479,
-0.024224424734711647,
0.6073796153068542,
-0.6380333304405212,
-0.08332966268062592,
-0.5346373319625854,
0.22787262499332428,
-0.0170106403529644,
0.0758923888206482,
-0.27865371108055115,
-0.07037252932786942,
0.2535419762134552,
-0.4448922276496887,
0.2495928257703781,
-0.1356266438961029,
1.1742409467697144,
0.3143489956855774,
-0.44489285349845886,
-0.0955461636185646,
-0.36658617854118347,
0.55740886926651,
-0.4500119388103485,
0.2918619215488434,
0.525174081325531,
0.5029351115226746,
0.12435556948184967,
-1.1969637870788574,
-0.47875380516052246,
-0.13620826601982117,
0.007655072957277298,
0.06487385928630829,
-0.24903099238872528,
0.012530753389000893,
0.13480950891971588,
0.4274665415287018,
-0.5751922130584717,
0.17944790422916412,
-0.8713408708572388,
-0.2642172873020172,
0.7477204203605652,
0.028653563931584358,
0.11098983138799667,
-0.09952538460493088,
-0.5745410919189453,
-0.043578457087278366,
-0.4702872335910797,
0.3468315601348877,
0.11991604417562485,
0.0010259755654260516,
-0.42054033279418945,
0.43297648429870605,
-0.26311591267585754,
0.6635599732398987,
0.06450913101434708,
-0.23569294810295105,
0.3107968866825104,
-0.11092454940080643,
-0.5475290417671204,
0.27088651061058044,
0.9654360413551331,
0.4097870886325836,
0.1205107718706131,
0.17454659938812256,
-0.039014387875795364,
0.07675278186798096,
0.43261948227882385,
-1.2032350301742554,
-0.2372838407754898,
0.3114805519580841,
-0.8030729293823242,
-0.7213495373725891,
0.056062713265419006,
-0.3291413486003876,
-0.28106576204299927,
-0.05278133228421211,
0.40704020857810974,
-0.044839221984148026,
-0.3766036331653595,
0.013003706932067871,
0.19276350736618042,
0.3124518394470215,
0.2736353576183319,
-0.7136918306350708,
0.3605489730834961,
0.2814880311489105,
1.0852407217025757,
0.05361109972000122,
-0.22299440205097198,
0.017613209784030914,
-0.6926401257514954,
-0.2172224223613739,
0.4620613753795624,
-0.055883727967739105,
-0.2131299078464508,
-0.3671836256980896,
0.33248382806777954,
-0.1459820717573166,
-0.6004152894020081,
0.5871683955192566,
-0.5396220684051514,
-0.010821106843650341,
0.18607650697231293,
-0.1316012293100357,
-0.47266629338264465,
0.3060775101184845,
-0.6357177495956421,
0.9290269613265991,
0.20230694115161896,
-0.8205181360244751,
0.2413789927959442,
-0.5438260436058044,
-0.24789664149284363,
-0.07901473343372345,
0.1408548206090927,
-0.7240243554115295,
-0.06282714754343033,
-0.1441916972398758,
0.6930290460586548,
-0.22464540600776672,
-0.003628508187830448,
-0.4038490951061249,
-0.4202115535736084,
0.07409816980361938,
-0.16584156453609467,
1.033627986907959,
0.6551631093025208,
-0.2731694281101227,
0.13410432636737823,
-0.6699740886688232,
0.3254794180393219,
0.22306932508945465,
-0.1528741717338562,
-0.04246020317077637,
-0.2361159473657608,
0.20076262950897217,
0.5188213586807251,
0.09623812139034271,
-0.4373590350151062,
0.20390307903289795,
0.07537256181240082,
0.7041800618171692,
0.24145035445690155,
-0.29741621017456055,
0.5877854824066162,
-0.2953803241252899,
0.4229027330875397,
0.2758212685585022,
0.467364102602005,
-0.418221116065979,
-0.48007333278656006,
-0.7660079598426819,
-0.2738076150417328,
0.34657520055770874,
0.5625479221343994,
-0.5785703659057617,
0.16987182199954987,
-0.2840218245983124,
-0.8816201686859131,
-0.35271528363227844,
-0.0027089454233646393,
0.27495986223220825,
0.44464942812919617,
0.23927132785320282,
-0.4426261782646179,
-0.8879160284996033,
-0.9403327703475952,
0.1398364156484604,
0.024758893996477127,
0.25985223054885864,
0.42217525839805603,
0.584855318069458,
-0.3599696755409241,
0.8208263516426086,
-0.008940104395151138,
-0.14168833196163177,
-0.0916973426938057,
-0.09364303201436996,
0.2585182785987854,
0.8802773952484131,
0.5828157663345337,
-1.1311205625534058,
-0.35058289766311646,
-0.00322638894431293,
-0.9955790638923645,
0.41112014651298523,
0.1391781121492386,
0.005333013366907835,
-0.02491212636232376,
0.4197036027908325,
-0.5272171497344971,
0.7248062491416931,
0.5506491661071777,
-0.24021999537944794,
0.4256298243999481,
0.06579536944627762,
0.05402282625436783,
-1.0968542098999023,
0.05587418004870415,
0.3787786066532135,
-0.3790689706802368,
-0.4984756112098694,
0.02398204430937767,
0.08366840332746506,
-0.3028234541416168,
-0.8598957657814026,
0.6862040758132935,
-0.28165382146835327,
-0.002015309641137719,
-0.3957229256629944,
-0.47070035338401794,
-0.027826277539134026,
0.3604765832424164,
0.08723285049200058,
0.5054170489311218,
0.7766523957252502,
-0.8492801189422607,
0.5425474047660828,
0.1750146746635437,
-0.3530479073524475,
0.16498339176177979,
-0.8506687879562378,
0.1336623877286911,
-0.09353043884038925,
0.3864644765853882,
-0.7551758885383606,
-0.3149513006210327,
0.4285754859447479,
-0.5907298922538757,
0.22378182411193848,
-0.5643672943115234,
-0.13316352665424347,
-0.7396978735923767,
-0.09963005781173706,
0.5523068904876709,
0.5299398899078369,
-0.7053530216217041,
0.5399304628372192,
0.3726572096347809,
0.45342186093330383,
-0.5863410830497742,
-0.8500081300735474,
-0.07124707102775574,
-0.259442001581192,
-0.7998246550559998,
0.42101427912712097,
0.24743936955928802,
-0.014812835492193699,
0.008820591494441032,
-0.25060611963272095,
-0.35793185234069824,
0.08438140898942947,
0.7791286706924438,
0.377851665019989,
-0.3281914293766022,
-0.0879952535033226,
-0.22759205102920532,
-0.07723847031593323,
-0.0623568594455719,
-0.5666597485542297,
0.4656220078468323,
-0.39588677883148193,
0.14037156105041504,
-0.7458558678627014,
-0.10532798618078232,
0.7641304731369019,
-0.25648269057273865,
0.662996768951416,
0.7895699739456177,
-0.5546733736991882,
0.06866524368524551,
-0.3915121257305145,
-0.09479925036430359,
-0.5218250155448914,
0.3437005281448364,
-0.5413832664489746,
-0.6446678042411804,
0.6220130920410156,
-0.039126940071582794,
-0.2977880537509918,
0.45412492752075195,
0.21554863452911377,
0.005244278348982334,
0.7848590016365051,
0.5792325735092163,
0.09621184319257736,
0.5995184779167175,
-0.7645279765129089,
-0.06583232432603836,
-0.8065586090087891,
-0.4088849425315857,
-0.2643422484397888,
-0.39943423867225647,
-0.8746600151062012,
-0.19016006588935852,
0.21118779480457306,
0.4043613374233246,
-0.449908047914505,
0.682316780090332,
-0.6713697910308838,
0.3723970651626587,
0.6460301876068115,
0.6945723295211792,
-0.27576178312301636,
0.27888578176498413,
-0.05427423492074013,
0.339993953704834,
-0.9407424330711365,
-0.5269063115119934,
1.0554356575012207,
0.546947181224823,
0.5363258719444275,
-0.23824718594551086,
0.5058483481407166,
0.0492340587079525,
0.44086915254592896,
-0.8150817155838013,
0.5200342535972595,
-0.34617674350738525,
-0.7879075407981873,
-0.034012362360954285,
-0.3597068786621094,
-0.8201770186424255,
0.24653013050556183,
-0.3389646112918854,
-0.7245339751243591,
0.4535087049007416,
0.2920408844947815,
-0.33469071984291077,
0.3569698929786682,
-0.8855280876159668,
1.2628931999206543,
-0.15620867908000946,
-0.739599347114563,
0.14726845920085907,
-0.6901262402534485,
0.41412097215652466,
0.1203024834394455,
-0.17290638387203217,
-0.10125986486673355,
0.25091490149497986,
0.7259559631347656,
-0.7104984521865845,
0.7728284001350403,
-0.3080386519432068,
0.367563396692276,
0.8804046511650085,
-0.029019510373473167,
0.43023085594177246,
-0.04119657725095749,
-0.1864084154367447,
0.4602549970149994,
0.1387951672077179,
-0.5666047930717468,
-0.354586124420166,
0.7148669362068176,
-0.7856041789054871,
-0.22241362929344177,
-0.21816501021385193,
-0.08534140139818192,
0.2098284214735031,
0.2557690739631653,
0.778982937335968,
0.676275908946991,
0.0711071565747261,
0.25214526057243347,
0.4630804657936096,
-0.19813892245292664,
0.537781834602356,
-0.14095425605773926,
-0.41665831208229065,
-0.2177416980266571,
0.8634316921234131,
0.1824154406785965,
0.09047098457813263,
0.037107571959495544,
0.10969170182943344,
-0.2850925922393799,
-0.4367702603340149,
-0.47307273745536804,
-0.2008945494890213,
-0.6683059334754944,
-0.2886781096458435,
-0.6163260340690613,
-0.4774346351623535,
-0.4314202666282654,
-0.14442580938339233,
-0.6854692101478577,
-0.297722727060318,
-0.4307357668876648,
0.11425186693668365,
0.23405884206295013,
0.42836371064186096,
-0.05062248930335045,
0.7098397016525269,
-0.6134853959083557,
0.00462706945836544,
0.38889414072036743,
0.4262489080429077,
0.01371866837143898,
-0.6271302103996277,
-0.2826949656009674,
0.15608157217502594,
-0.3495832085609436,
-0.445603609085083,
0.38186994194984436,
0.0883759930729866,
0.30410951375961304,
0.5692952275276184,
-0.3035358786582947,
0.5914797782897949,
-0.06958933919668198,
0.6006607413291931,
0.6850785613059998,
-0.6076011061668396,
0.4364280104637146,
-0.043245330452919006,
0.3357059955596924,
0.44060125946998596,
0.7497053742408752,
-0.21675686538219452,
0.4347046911716461,
-0.6190986037254333,
-0.575863242149353,
0.5510029196739197,
0.06724581122398376,
0.2606652081012726,
0.16071948409080505,
0.46192899346351624,
-0.07087104767560959,
0.09408174455165863,
-0.8015850186347961,
-0.4467772841453552,
-0.768153727054596,
-0.19871369004249573,
-0.09826106578111649,
-0.30231425166130066,
0.34841251373291016,
-0.7260305881500244,
0.5336549878120422,
0.08458106964826584,
0.5327748656272888,
0.3918643295764923,
-0.03902760148048401,
0.08752138167619705,
-0.4096052050590515,
0.7565363049507141,
0.43584558367729187,
-0.20401227474212646,
0.27179473638534546,
0.014576217159628868,
-0.8025108575820923,
0.24559131264686584,
-0.01513134129345417,
-0.16912099719047546,
0.02694576606154442,
0.12804293632507324,
1.0553916692733765,
-0.052210014313459396,
-0.12331104278564453,
0.5434772372245789,
-0.07795640826225281,
-0.39287859201431274,
-0.5122367739677429,
0.1052490770816803,
-0.1387864351272583,
0.22370225191116333,
0.29524946212768555,
0.5596402287483215,
0.14206929504871368,
-0.4506988227367401,
0.23431405425071716,
0.20365813374519348,
-0.6413173079490662,
-0.2137216478586197,
0.7813667058944702,
0.08536648750305176,
-0.31914660334587097,
0.7038032412528992,
-0.4132061004638672,
-0.634396493434906,
1.1239521503448486,
0.49529415369033813,
0.768376350402832,
-0.18909268081188202,
0.24109886586666107,
1.042331576347351,
0.1875036358833313,
-0.18862459063529968,
0.000827803451102227,
0.009541814215481281,
-0.8473174571990967,
-0.211028054356575,
-0.48743611574172974,
0.05855165794491768,
0.3798409402370453,
-0.49469152092933655,
0.3791186809539795,
-0.5533124208450317,
-0.39867937564849854,
0.2898850739002228,
0.03323620930314064,
-0.8232763409614563,
0.6066631078720093,
0.23808136582374573,
1.099763035774231,
-0.41365814208984375,
0.9972578287124634,
0.8405230045318604,
-0.31244152784347534,
-0.9856962561607361,
-0.4986569583415985,
-0.10700453072786331,
-0.5920699238777161,
0.8585731387138367,
0.5617144107818604,
0.0724366158246994,
0.2438415139913559,
-1.0217434167861938,
-0.7341604232788086,
1.1921916007995605,
0.029052412137389183,
-0.47116291522979736,
0.27229154109954834,
-0.06457431614398956,
0.07626660913228989,
-0.6619705557823181,
0.5090967416763306,
-0.027396580204367638,
0.1967846006155014,
0.39145562052726746,
-0.8135062456130981,
-0.025455180555582047,
-0.5084298849105835,
0.055020011961460114,
-0.007109012454748154,
-0.6894654035568237,
0.9034885764122009,
-0.42934855818748474,
-0.12766815721988678,
0.0655021071434021,
0.5238677263259888,
-0.1257222294807434,
0.620401918888092,
0.5269573926925659,
0.6072751879692078,
0.5718057155609131,
-0.0998259112238884,
1.0070476531982422,
-0.06521392613649368,
0.3816733658313751,
0.8820674419403076,
0.16583460569381714,
0.5311952829360962,
0.28838059306144714,
-0.03429332748055458,
0.1828993707895279,
1.1091663837432861,
-0.27397429943084717,
0.5560276508331299,
0.28725627064704895,
-0.31684985756874084,
-0.20235201716423035,
0.02470250427722931,
-0.3717496693134308,
0.7558593153953552,
0.0590030811727047,
-0.6523007750511169,
0.014227419160306454,
0.38962262868881226,
-0.11801836639642715,
-0.5564445853233337,
-0.7820726633071899,
0.3042213022708893,
0.014823402278125286,
-0.5372864007949829,
0.8767268657684326,
0.14841027557849884,
0.8619858622550964,
-0.28478386998176575,
0.02640541084110737,
-0.28602123260498047,
0.15107682347297668,
-0.549413800239563,
-0.3629363477230072,
0.34182116389274597,
-0.23243972659111023,
-0.14661818742752075,
0.12834951281547546,
1.0535832643508911,
-0.11277572065591812,
-0.4583868682384491,
-0.007506846450269222,
0.004081059712916613,
0.42361390590667725,
-0.2595904469490051,
-0.7739539742469788,
0.3568095862865448,
-0.1752355992794037,
-0.25403717160224915,
0.21572719514369965,
-0.001989874057471752,
-0.013533384539186954,
0.8842359185218811,
0.5823067426681519,
-0.32101958990097046,
0.33994096517562866,
-0.5721538066864014,
0.8414950370788574,
-0.3888933062553406,
-0.27037981152534485,
-0.6614201068878174,
0.5975881814956665,
-0.1537347137928009,
-0.5757409334182739,
0.40515244007110596,
0.7670853137969971,
1.007582664489746,
-0.1644611656665802,
0.5624030828475952,
-0.34890133142471313,
-0.11715058237314224,
-0.2556726932525635,
0.6553764939308167,
-0.6970828175544739,
-0.16303125023841858,
0.13621222972869873,
-0.502208948135376,
-0.1808769404888153,
0.9658703207969666,
-0.2613053321838379,
0.16004657745361328,
0.42974838614463806,
0.8903770446777344,
-0.505435049533844,
0.06691454350948334,
0.36974215507507324,
-0.11184762418270111,
-0.223502054810524,
0.3501811623573303,
0.5557991862297058,
-1.0673037767410278,
0.3556448519229889,
-0.6726107597351074,
-0.12488842010498047,
-0.3175317049026489,
-0.7289538383483887,
-0.7089375257492065,
-0.6755155920982361,
-0.5686322450637817,
-0.804704487323761,
-0.026165641844272614,
0.9518657922744751,
1.4300358295440674,
-0.6535088419914246,
-0.1425984650850296,
-0.3015565276145935,
0.07734625786542892,
-0.03623200207948685,
-0.20460103452205658,
0.2106958031654358,
0.08435603231191635,
-0.5432800054550171,
0.049025967717170715,
-0.1675032377243042,
0.3287106156349182,
-0.045471470803022385,
-0.31255438923835754,
-0.1304101049900055,
-0.2352256029844284,
0.6821277141571045,
0.5704144239425659,
-0.31492915749549866,
-0.05979980528354645,
-0.09588636457920074,
-0.39574986696243286,
0.16728058457374573,
0.6522366404533386,
-0.6316584348678589,
0.24117188155651093,
0.17237086594104767,
0.46574467420578003,
0.8699432015419006,
-0.16277670860290527,
-0.11868523806333542,
-0.39147627353668213,
0.589314877986908,
0.059567373245954514,
0.30072513222694397,
0.11781300604343414,
-0.29379385709762573,
0.7160137891769409,
0.2287871241569519,
-0.4828086197376251,
-0.7403919100761414,
0.07139048725366592,
-1.2302029132843018,
-0.13172701001167297,
0.9295431971549988,
-0.23371315002441406,
-0.47798022627830505,
0.3113991618156433,
-0.029587727040052414,
0.21001410484313965,
0.107970230281353,
0.3583180904388428,
0.2693904936313629,
0.1562904566526413,
-0.6761631369590759,
-0.6363095641136169,
0.32655566930770874,
-0.007128241006284952,
-0.5592440366744995,
-0.7425444722175598,
0.0869818776845932,
0.44855621457099915,
0.12381643801927567,
0.5763359069824219,
-0.16780966520309448,
0.3127589523792267,
0.3750641644001007,
0.43046340346336365,
-0.5019475817680359,
-0.3121342062950134,
-0.14451347291469574,
0.08896487951278687,
-0.38360604643821716,
-0.6902506947517395
] |
facebook/wmt19-en-de | facebook | "2023-09-15T13:03:30Z" | 100,074 | 19 | transformers | [
"transformers",
"pytorch",
"fsmt",
"text2text-generation",
"translation",
"wmt19",
"facebook",
"en",
"de",
"dataset:wmt19",
"arxiv:1907.06616",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | translation | "2022-03-02T23:29:05Z" | ---
language:
- en
- de
tags:
- translation
- wmt19
- facebook
license: apache-2.0
datasets:
- wmt19
metrics:
- bleu
thumbnail: https://huggingface.co/front/thumbnails/facebook.png
---
# FSMT
## Model description
This is a ported version of [fairseq wmt19 transformer](https://github.com/pytorch/fairseq/blob/master/examples/wmt19/README.md) for en-de.
For more details, please see, [Facebook FAIR's WMT19 News Translation Task Submission](https://arxiv.org/abs/1907.06616).
The abbreviation FSMT stands for FairSeqMachineTranslation
All four models are available:
* [wmt19-en-ru](https://huggingface.co/facebook/wmt19-en-ru)
* [wmt19-ru-en](https://huggingface.co/facebook/wmt19-ru-en)
* [wmt19-en-de](https://huggingface.co/facebook/wmt19-en-de)
* [wmt19-de-en](https://huggingface.co/facebook/wmt19-de-en)
## Intended uses & limitations
#### How to use
```python
from transformers import FSMTForConditionalGeneration, FSMTTokenizer
mname = "facebook/wmt19-en-de"
tokenizer = FSMTTokenizer.from_pretrained(mname)
model = FSMTForConditionalGeneration.from_pretrained(mname)
input = "Machine learning is great, isn't it?"
input_ids = tokenizer.encode(input, return_tensors="pt")
outputs = model.generate(input_ids)
decoded = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(decoded) # Maschinelles Lernen ist großartig, oder?
```
#### Limitations and bias
- The original (and this ported model) doesn't seem to handle well inputs with repeated sub-phrases, [content gets truncated](https://discuss.huggingface.co/t/issues-with-translating-inputs-containing-repeated-phrases/981)
## Training data
Pretrained weights were left identical to the original model released by fairseq. For more details, please, see the [paper](https://arxiv.org/abs/1907.06616).
## Eval results
pair | fairseq | transformers
-------|---------|----------
en-de | [43.1](http://matrix.statmt.org/matrix/output/1909?run_id=6862) | 42.83
The score is slightly below the score reported by `fairseq`, since `transformers`` currently doesn't support:
- model ensemble, therefore the best performing checkpoint was ported (``model4.pt``).
- re-ranking
The score was calculated using this code:
```bash
git clone https://github.com/huggingface/transformers
cd transformers
export PAIR=en-de
export DATA_DIR=data/$PAIR
export SAVE_DIR=data/$PAIR
export BS=8
export NUM_BEAMS=15
mkdir -p $DATA_DIR
sacrebleu -t wmt19 -l $PAIR --echo src > $DATA_DIR/val.source
sacrebleu -t wmt19 -l $PAIR --echo ref > $DATA_DIR/val.target
echo $PAIR
PYTHONPATH="src:examples/seq2seq" python examples/seq2seq/run_eval.py facebook/wmt19-$PAIR $DATA_DIR/val.source $SAVE_DIR/test_translations.txt --reference_path $DATA_DIR/val.target --score_path $SAVE_DIR/test_bleu.json --bs $BS --task translation --num_beams $NUM_BEAMS
```
note: fairseq reports using a beam of 50, so you should get a slightly higher score if re-run with `--num_beams 50`.
## Data Sources
- [training, etc.](http://www.statmt.org/wmt19/)
- [test set](http://matrix.statmt.org/test_sets/newstest2019.tgz?1556572561)
### BibTeX entry and citation info
```bibtex
@inproceedings{...,
year={2020},
title={Facebook FAIR's WMT19 News Translation Task Submission},
author={Ng, Nathan and Yee, Kyra and Baevski, Alexei and Ott, Myle and Auli, Michael and Edunov, Sergey},
booktitle={Proc. of WMT},
}
```
## TODO
- port model ensemble (fairseq uses 4 model checkpoints)
| [
-0.38724449276924133,
-0.6074191927909851,
0.3484303057193756,
0.37512895464897156,
-0.2670527398586273,
-0.016003163531422615,
-0.12271684408187866,
-0.33839526772499084,
0.052921194583177567,
0.1633535772562027,
-0.8795230984687805,
-0.3238435685634613,
-0.7652069330215454,
0.1689978837966919,
-0.5215246677398682,
0.9542832970619202,
-0.26607123017311096,
0.3515435457229614,
-0.018556633964180946,
-0.25631827116012573,
-0.1717028170824051,
-0.14465925097465515,
-0.5221549272537231,
-0.3954811990261078,
0.14225077629089355,
0.08555403351783752,
0.6170572638511658,
0.2691234052181244,
0.5946566462516785,
0.45249584317207336,
-0.20455582439899445,
-0.010306823067367077,
-0.473184198141098,
-0.22578662633895874,
-0.27445971965789795,
-0.36395853757858276,
-0.386959969997406,
0.029033146798610687,
0.6367712020874023,
0.614395797252655,
-0.038849543780088425,
0.5959452390670776,
0.10335524380207062,
0.4793987572193146,
-0.12504959106445312,
0.18897853791713715,
-0.6490213871002197,
0.19708962738513947,
-0.2035142183303833,
-0.046203963458538055,
-0.4782378077507019,
-0.28606462478637695,
-0.1867397576570511,
-0.4355967044830322,
0.13887475430965424,
0.07768640667200089,
1.3949421644210815,
0.24101153016090393,
-0.6379365921020508,
0.31624314188957214,
-0.5305714011192322,
1.0725092887878418,
-0.7791584730148315,
0.7656659483909607,
0.05435599386692047,
0.40552741289138794,
-0.19972559809684753,
-1.09462571144104,
-0.3883723318576813,
0.10887791216373444,
-0.03445708379149437,
0.31169384717941284,
-0.48148486018180847,
-0.20578977465629578,
0.4567781388759613,
0.4220663607120514,
-0.6274700164794922,
-0.20952510833740234,
-0.7093485593795776,
-0.5545568466186523,
0.688038170337677,
0.1563076376914978,
0.06670098751783371,
-0.31273114681243896,
-0.5510525703430176,
-0.2908644378185272,
-0.29085975885391235,
0.20520299673080444,
-0.012231157161295414,
0.31074708700180054,
-0.11371447890996933,
0.6127986907958984,
-0.5797672271728516,
0.5517029762268066,
0.3617466986179352,
-0.15330590307712555,
0.888766884803772,
-0.5454801917076111,
-0.08474261313676834,
-0.2972545623779297,
1.1176989078521729,
0.5026030540466309,
-0.01676347479224205,
-0.10715200006961823,
-0.4788655936717987,
-0.30252334475517273,
0.10769844055175781,
-1.117133617401123,
0.22756381332874298,
0.08476173132658005,
-0.7066100835800171,
-0.2196178287267685,
0.282246857881546,
-0.6692094206809998,
0.22418971359729767,
-0.24593186378479004,
0.9362707734107971,
-0.51264488697052,
-0.01733274757862091,
0.00021005887538194656,
-0.30851832032203674,
0.33049559593200684,
0.20079143345355988,
-0.30478811264038086,
0.08667642623186111,
0.3185061514377594,
0.98715740442276,
-0.14364415407180786,
-0.42113083600997925,
-0.6274245381355286,
-0.18700262904167175,
-0.2323281317949295,
0.4075610935688019,
-0.07289217412471771,
-0.2119186520576477,
-0.15789252519607544,
0.6623124480247498,
-0.2446315735578537,
-0.3481065332889557,
0.6982709765434265,
-0.4949386715888977,
0.5736343264579773,
-0.29568061232566833,
-0.3840199112892151,
-0.20988118648529053,
0.06439712643623352,
-0.43293651938438416,
1.146837592124939,
0.47310006618499756,
-0.77680504322052,
0.13001547753810883,
-0.5128064751625061,
-0.5032427310943604,
-0.15279045701026917,
0.052248500287532806,
-0.41974151134490967,
0.15413300693035126,
0.11105117946863174,
0.4123004674911499,
-0.18282224237918854,
0.5248090028762817,
-0.2055671215057373,
-0.6075916290283203,
0.28395986557006836,
-0.502675473690033,
0.9768905639648438,
0.5091376304626465,
-0.49210765957832336,
0.24028055369853973,
-0.680812656879425,
-0.011959821917116642,
0.28245505690574646,
-0.3804803788661957,
0.24430695176124573,
-0.23132529854774475,
0.15118569135665894,
0.6542813777923584,
0.4499944746494293,
-0.5905117988586426,
-0.1031225323677063,
-0.5517696738243103,
0.4663837254047394,
0.8242924809455872,
-0.09410691261291504,
0.4001867175102234,
-0.6857625246047974,
0.4820466935634613,
0.1522025763988495,
0.2853674292564392,
0.11394591629505157,
-0.704547107219696,
-0.6547709107398987,
-0.062346890568733215,
0.24899935722351074,
0.6141683459281921,
-1.0053340196609497,
0.4497096538543701,
-0.4712391793727875,
-0.8251515030860901,
-0.48909735679626465,
-0.24061822891235352,
0.3114786446094513,
0.3493346571922302,
0.6436147689819336,
-0.3456474244594574,
-0.6160958409309387,
-0.9841482043266296,
-0.48190927505493164,
0.012660524807870388,
-0.010681242682039738,
0.02161843702197075,
0.6051735281944275,
-0.5220502614974976,
0.7116600275039673,
-0.3687894344329834,
-0.2275087535381317,
-0.22950299084186554,
-0.09282469749450684,
0.5803744196891785,
0.6950463652610779,
0.6540261507034302,
-0.6241235136985779,
-0.43547770380973816,
-0.14344224333763123,
-0.5352950692176819,
-0.10984999686479568,
0.0017905629938468337,
-0.3965482711791992,
0.21331392228603363,
0.3998081088066101,
-0.7928165793418884,
0.357286661863327,
0.47513914108276367,
-0.5043674111366272,
0.4721221625804901,
0.24481837451457977,
0.5414412617683411,
-1.4798744916915894,
0.11806593835353851,
-0.0489710234105587,
-0.5582985877990723,
-0.39630675315856934,
-0.09026782959699631,
0.08043757826089859,
-0.06565093249082565,
-0.7016559839248657,
0.7209137082099915,
-0.1702646166086197,
0.06236578896641731,
-0.09983699023723602,
-0.04674268141388893,
0.11494900286197662,
0.6180803775787354,
-0.3767007291316986,
0.5340614914894104,
0.4447907507419586,
-0.49395841360092163,
0.30359843373298645,
0.5415016412734985,
-0.34726038575172424,
0.3652059733867645,
-0.5450682640075684,
-0.15332165360450745,
0.04551524296402931,
0.36674296855926514,
-0.931232750415802,
-0.16172026097774506,
0.3919451832771301,
-0.7272394299507141,
0.3176371157169342,
-0.09320398420095444,
-0.5028052926063538,
-0.6501443386077881,
-0.2971174716949463,
0.2765602469444275,
0.7546013593673706,
-0.5008283853530884,
0.5191872715950012,
0.15506529808044434,
0.07161615043878555,
-0.5907406806945801,
-1.034641146659851,
-0.3021739721298218,
-0.2936997413635254,
-0.7239878177642822,
0.6177056431770325,
-0.11730091273784637,
0.06438633799552917,
-0.02402304857969284,
-0.40793177485466003,
0.05494912341237068,
0.05052665248513222,
0.2387009561061859,
0.1714053899049759,
-0.1842668056488037,
-0.02024942822754383,
0.328461617231369,
-0.1975586712360382,
0.04298844560980797,
-0.4571637511253357,
0.7279784083366394,
-0.4041188955307007,
-0.2489844262599945,
-0.7300273776054382,
0.07025288045406342,
0.5401046872138977,
-0.3004184663295746,
0.8754659295082092,
1.2224210500717163,
-0.48856276273727417,
0.1424926221370697,
-0.4089195728302002,
-0.41064751148223877,
-0.5550314784049988,
0.6319430470466614,
-0.5065730810165405,
-0.9713955521583557,
0.5486462116241455,
-0.02683931589126587,
0.17416520416736603,
0.9894044399261475,
0.7114210724830627,
0.03383884206414223,
1.2335515022277832,
0.16996324062347412,
0.07001582533121109,
0.7201293110847473,
-0.3249054551124573,
0.09785234928131104,
-0.5440133213996887,
-0.009204478934407234,
-0.5248115658760071,
-0.5137105584144592,
-0.7839779853820801,
-0.6068270802497864,
0.14737248420715332,
0.051181137561798096,
-0.5863398313522339,
0.5854893326759338,
-0.4762100875377655,
0.035836074501276016,
0.5602414608001709,
0.06423481553792953,
0.271463543176651,
-0.0351431630551815,
-0.16898874938488007,
-0.17500194907188416,
-0.5730769038200378,
-0.3294295072555542,
1.038885474205017,
0.34096822142601013,
0.49338865280151367,
0.0387660376727581,
0.8506514430046082,
0.007168203592300415,
0.22879573702812195,
-0.6352142691612244,
0.6593050956726074,
-0.04595496132969856,
-0.7253040075302124,
-0.1301940530538559,
-0.8809877634048462,
-0.9534936547279358,
0.43576791882514954,
-0.09752651304006577,
-0.8671896457672119,
0.09402753412723541,
-0.16968417167663574,
-0.07451946288347244,
0.2394479662179947,
-0.5242778658866882,
1.1705152988433838,
-0.12332150340080261,
-0.22253164649009705,
-0.15375679731369019,
-0.6897551417350769,
0.41448768973350525,
-0.156171977519989,
0.5220645666122437,
-0.24196583032608032,
0.27302852272987366,
1.0334970951080322,
-0.4131770730018616,
0.5584021210670471,
-0.28597867488861084,
0.1466773897409439,
0.31736165285110474,
0.025836139917373657,
0.574471652507782,
-0.0011347653344273567,
-0.24518276751041412,
0.30580586194992065,
0.4786122143268585,
-0.4202345311641693,
-0.19451777637004852,
0.7357903718948364,
-0.8060096502304077,
-0.5405808091163635,
-0.4624602198600769,
-0.5798737406730652,
-0.18170225620269775,
0.5065197348594666,
0.6197599172592163,
0.4819577634334564,
-0.1352226436138153,
0.37772974371910095,
0.26312369108200073,
-0.19262129068374634,
0.47294142842292786,
0.37606215476989746,
-0.5475093126296997,
-0.42211592197418213,
0.947361946105957,
0.20773673057556152,
0.2980911433696747,
0.3003288209438324,
0.20716993510723114,
-0.40588951110839844,
-0.3471343517303467,
-0.5384029150009155,
0.2514776289463043,
-0.7333088517189026,
-0.5162631273269653,
-0.7927834987640381,
-0.28967055678367615,
-0.5915104150772095,
0.14209826290607452,
-0.6026709675788879,
-0.8329915404319763,
-0.09500752389431,
-0.18290308117866516,
0.41958633065223694,
0.22321859002113342,
-0.23726749420166016,
0.2225954681634903,
-0.9593974947929382,
0.24424955248832703,
-0.007902342826128006,
0.25621041655540466,
-0.16037540137767792,
-1.030253291130066,
-0.37349313497543335,
0.3160666525363922,
-0.712713360786438,
-1.0317132472991943,
0.3425103724002838,
0.09896302968263626,
0.757925271987915,
0.18964654207229614,
0.26124030351638794,
0.6047324538230896,
-0.4716571271419525,
0.8234885334968567,
0.1715475171804428,
-1.1046086549758911,
0.44517818093299866,
-0.3152536153793335,
0.3393934965133667,
0.6254577040672302,
0.3314976990222931,
-0.5685198307037354,
-0.628871738910675,
-0.8584445118904114,
-0.8890560269355774,
1.0688036680221558,
0.4437672793865204,
0.2298925220966339,
0.06440658122301102,
0.07808350771665573,
-0.008107122033834457,
0.2549119293689728,
-0.9484602212905884,
-0.25738728046417236,
-0.42448022961616516,
-0.4623580873012543,
-0.02452240139245987,
0.131914883852005,
-0.16503141820430756,
-0.46662530303001404,
1.0379513502120972,
-0.07514478266239166,
0.5081518888473511,
0.21716710925102234,
-0.21565000712871552,
-0.2101639211177826,
0.18637715280056,
0.2732822000980377,
0.5094977617263794,
-0.11632668972015381,
-0.061411209404468536,
0.4664538502693176,
-0.2408222258090973,
0.038339290767908096,
0.5165267586708069,
-0.18994583189487457,
0.20398467779159546,
0.23376427590847015,
0.8303782939910889,
0.1823861300945282,
-0.6215975284576416,
0.7967835068702698,
-0.03467022627592087,
-0.39743804931640625,
-0.1518062800168991,
-0.05860335752367973,
0.15231935679912567,
0.6497125029563904,
0.4349369704723358,
0.29472312331199646,
0.25159043073654175,
-0.3841177225112915,
0.443111389875412,
0.2947542071342468,
-0.7792237401008606,
-0.39072859287261963,
0.9476214647293091,
0.03583693504333496,
-0.1899389773607254,
0.48171672224998474,
-0.5597524642944336,
-0.5814549922943115,
0.5372927188873291,
0.5355910062789917,
0.7199745178222656,
-0.18818886578083038,
0.2076421082019806,
0.8058390021324158,
0.43962469696998596,
-0.35903090238571167,
0.3750569224357605,
0.1216987818479538,
-0.6576946973800659,
-0.472939670085907,
-0.9040899276733398,
0.08889925479888916,
-0.10792123526334763,
-0.8511335253715515,
0.43788114190101624,
0.004148364532738924,
-0.37180230021476746,
-0.3317798972129822,
-0.029957277700304985,
-0.8558558225631714,
0.17710262537002563,
-0.09395822137594223,
0.8749741315841675,
-0.8308464884757996,
0.7434453368186951,
0.8015403151512146,
-0.4600461423397064,
-0.8562687635421753,
-0.04811950773000717,
0.032330796122550964,
-0.6117095351219177,
0.2658715546131134,
0.4477274417877197,
0.3014887273311615,
0.2466549277305603,
-0.41923364996910095,
-1.0997980833053589,
1.347247838973999,
0.26706239581108093,
-0.5148839354515076,
0.11194281280040741,
0.06215713173151016,
0.4290539622306824,
-0.001877821865491569,
0.3082379996776581,
0.39082685112953186,
0.602993369102478,
0.0904773399233818,
-1.2089745998382568,
0.4076467454433441,
-0.30649635195732117,
-0.12238705903291702,
0.22243601083755493,
-0.9094241261482239,
0.9254776835441589,
-0.07973302155733109,
-0.25018396973609924,
0.2485097199678421,
0.8342256546020508,
0.47337862849235535,
0.46316736936569214,
0.5098124146461487,
0.4518596827983856,
0.569901168346405,
-0.4102201759815216,
0.8182970881462097,
-0.21917428076267242,
0.8854724764823914,
0.7134115099906921,
0.13399803638458252,
0.6466858983039856,
0.5359967947006226,
-0.44594806432724,
0.3502218425273895,
0.6787264943122864,
-0.22881363332271576,
0.4651012420654297,
0.14169682562351227,
0.29980260133743286,
-0.2786809802055359,
0.06703145056962967,
-0.6753132939338684,
0.39272284507751465,
0.006786166224628687,
-0.30851858854293823,
-0.22632330656051636,
0.21897771954536438,
0.10180555284023285,
-0.16583019495010376,
-0.09934335201978683,
0.37828874588012695,
0.31954580545425415,
-0.5988304615020752,
0.628777801990509,
0.3348521292209625,
0.7525664567947388,
-0.5096338391304016,
0.31449010968208313,
-0.26678264141082764,
0.29886195063591003,
-0.16392746567726135,
-0.6157212853431702,
0.5691744089126587,
-0.11278826743364334,
-0.05990786850452423,
-0.404371440410614,
0.524271547794342,
-0.36943483352661133,
-0.7179380655288696,
0.3613220453262329,
0.6346455216407776,
0.18500469624996185,
-0.16692721843719482,
-0.9015734791755676,
0.08823501318693161,
0.33525151014328003,
-0.655012309551239,
0.37804463505744934,
0.5304832458496094,
-0.13907968997955322,
0.4034769833087921,
0.5430258512496948,
-0.43661439418792725,
0.14067359268665314,
0.043198391795158386,
0.7939949631690979,
-0.771484375,
-0.3098888397216797,
-0.6713878512382507,
0.7208166718482971,
0.01913737691938877,
-0.32248455286026,
0.7506651282310486,
0.7962832450866699,
0.9466961026191711,
-0.15058787167072296,
0.5093159079551697,
-0.3190305233001709,
0.4517771601676941,
-0.3901142179965973,
0.7800104022026062,
-1.0122525691986084,
-0.06571252644062042,
-0.4309605360031128,
-0.9783005714416504,
0.08084742724895477,
0.6303443908691406,
-0.11761528253555298,
0.23237408697605133,
0.7143491506576538,
0.8085125684738159,
-0.13163520395755768,
-0.06848491728305817,
0.18947120010852814,
0.4637719392776489,
0.35586804151535034,
0.7027262449264526,
0.9098703265190125,
-1.0184603929519653,
0.8983041048049927,
-0.4750507175922394,
-0.18240906298160553,
-0.23785074055194855,
-0.47870615124702454,
-0.7575827836990356,
-0.7463195323944092,
-0.4185738265514374,
-0.7170108556747437,
-0.29847678542137146,
0.888168215751648,
0.49238893389701843,
-0.7750425934791565,
-0.031614065170288086,
0.08538393676280975,
0.025606518611311913,
-0.4787699282169342,
-0.3019259572029114,
0.27287423610687256,
-0.29926633834838867,
-1.0563291311264038,
0.45307454466819763,
-0.13011032342910767,
0.04844839870929718,
0.23507502675056458,
-0.19417570531368256,
-0.2103562355041504,
0.006482138764113188,
0.4803652763366699,
-0.16532327234745026,
-0.5666151642799377,
-0.34430110454559326,
0.2568347752094269,
-0.25110504031181335,
-0.026588916778564453,
0.18863938748836517,
-0.513926088809967,
0.09408972412347794,
0.7366637587547302,
0.4547222852706909,
0.8177739381790161,
-0.03136441484093666,
0.4092949330806732,
-0.5657438635826111,
0.3086608648300171,
0.1142265573143959,
0.6313722133636475,
0.1257961243391037,
-0.06157844513654709,
0.5283568501472473,
0.5874776244163513,
-0.5571419596672058,
-0.9774462580680847,
0.08242001384496689,
-1.2179679870605469,
-0.3232443928718567,
1.2075661420822144,
0.07220467180013657,
-0.18654324114322662,
0.24559836089611053,
-0.22063833475112915,
0.5760138034820557,
-0.32110661268234253,
0.5228602886199951,
0.630107581615448,
0.13585461676120758,
0.10464946180582047,
-0.7077159881591797,
0.23585857450962067,
0.4771624803543091,
-0.496765673160553,
-0.4923855662345886,
0.25623247027397156,
0.3890901505947113,
0.1901855170726776,
0.6522522568702698,
-0.3799331486225128,
0.29684361815452576,
-0.18679670989513397,
0.0931248888373375,
0.03444897383451462,
0.09124356508255005,
-0.09555353224277496,
-0.10623501986265182,
-0.10797953605651855,
-0.3540831208229065
] |
lmsys/vicuna-7b-v1.3 | lmsys | "2023-08-01T18:26:56Z" | 100,026 | 114 | transformers | [
"transformers",
"pytorch",
"llama",
"text-generation",
"arxiv:2302.13971",
"arxiv:2306.05685",
"has_space",
"text-generation-inference",
"region:us"
] | text-generation | "2023-06-18T03:36:42Z" | ---
inference: false
---
**NOTE: New version available**
Please check out a newer version of the weights [here](https://github.com/lm-sys/FastChat/blob/main/docs/vicuna_weights_version.md).
<br>
# Vicuna Model Card
## Model Details
Vicuna is a chat assistant trained by fine-tuning LLaMA on user-shared conversations collected from ShareGPT.
- **Developed by:** [LMSYS](https://lmsys.org/)
- **Model type:** An auto-regressive language model based on the transformer architecture.
- **License:** Non-commercial license
- **Finetuned from model:** [LLaMA](https://arxiv.org/abs/2302.13971).
### Model Sources
- **Repository:** https://github.com/lm-sys/FastChat
- **Blog:** https://lmsys.org/blog/2023-03-30-vicuna/
- **Paper:** https://arxiv.org/abs/2306.05685
- **Demo:** https://chat.lmsys.org/
## Uses
The primary use of Vicuna is research on large language models and chatbots.
The primary intended users of the model are researchers and hobbyists in natural language processing, machine learning, and artificial intelligence.
## How to Get Started with the Model
- Command line interface: https://github.com/lm-sys/FastChat#vicuna-weights.
- APIs (OpenAI API, Huggingface API): https://github.com/lm-sys/FastChat/tree/main#api.
## Training Details
Vicuna v1.3 is fine-tuned from LLaMA with supervised instruction fine-tuning.
The training data is around 125K conversations collected from ShareGPT.com.
See more details in the "Training Details of Vicuna Models" section in the appendix of this [paper](https://arxiv.org/pdf/2306.05685.pdf).
## Evaluation
Vicuna is evaluated with standard benchmarks, human preference, and LLM-as-a-judge. See more details in this [paper](https://arxiv.org/pdf/2306.05685.pdf) and [leaderboard](https://huggingface.co/spaces/lmsys/chatbot-arena-leaderboard).
## Difference between different versions of Vicuna
See [vicuna_weights_version.md](https://github.com/lm-sys/FastChat/blob/main/docs/vicuna_weights_version.md) | [
-0.17386525869369507,
-0.8873119354248047,
0.37465184926986694,
0.47392046451568604,
-0.5513039827346802,
-0.2249806672334671,
-0.23071976006031036,
-0.5998325347900391,
0.39089152216911316,
0.3711991310119629,
-0.5524806380271912,
-0.514024555683136,
-0.6820967793464661,
-0.03347659856081009,
-0.16023598611354828,
0.8999468088150024,
0.09735230356454849,
0.21627044677734375,
-0.09077059477567673,
-0.37804192304611206,
-0.9183299541473389,
-0.5232017636299133,
-1.0575838088989258,
-0.36404895782470703,
0.6493209004402161,
0.4852057695388794,
0.6534173488616943,
0.5411381721496582,
0.3497421443462372,
0.4072120189666748,
-0.10032783448696136,
0.273056298494339,
-0.6189273595809937,
0.05796508863568306,
0.37758830189704895,
-0.9088160395622253,
-0.7039766907691956,
-0.25956159830093384,
0.5772742033004761,
0.08512721955776215,
-0.259730726480484,
0.1959328055381775,
0.0069314599968492985,
0.4878958761692047,
-0.34509268403053284,
0.3773108422756195,
-0.6253842115402222,
-0.2708902359008789,
-0.24062827229499817,
-0.5851266384124756,
-0.3028230667114258,
-0.3375905454158783,
-0.13877877593040466,
-0.49112752079963684,
-0.05192406848073006,
-0.06413835287094116,
1.153347373008728,
0.5697835087776184,
-0.39723503589630127,
-0.1918507218360901,
-0.6358785629272461,
0.628026008605957,
-0.940616250038147,
0.44648921489715576,
0.45449990034103394,
0.6272792816162109,
-0.2356746345758438,
-0.597319483757019,
-0.5228556990623474,
-0.4010871648788452,
0.06996962428092957,
-0.05728672817349434,
-0.2745889127254486,
0.05018625780940056,
0.05459512397646904,
0.4872686266899109,
-0.3759767413139343,
0.41243019700050354,
-0.5869967341423035,
0.013685556128621101,
0.6155716180801392,
0.34003499150276184,
0.17572304606437683,
-0.17908217012882233,
-0.3756878674030304,
-0.40864500403404236,
-0.2899567782878876,
-0.03086668811738491,
0.4074985980987549,
0.5247970223426819,
-0.5728845596313477,
0.561190664768219,
-0.29417508840560913,
0.6152346730232239,
-0.052635904401540756,
-0.21134603023529053,
0.5240268707275391,
-0.11932443827390671,
-0.4433459937572479,
-0.18772722780704498,
1.1932324171066284,
0.5072283148765564,
0.015966162085533142,
0.17664247751235962,
0.03954031318426132,
-0.148587167263031,
0.17182426154613495,
-0.8355385065078735,
0.017448730766773224,
0.5217755436897278,
-0.3012714087963104,
-0.5291150212287903,
-0.20168396830558777,
-0.33152511715888977,
-0.5020779967308044,
-0.24532723426818848,
0.4535777270793915,
-0.4684208929538727,
-0.3842126727104187,
0.35292789340019226,
0.010420479811728,
0.3242139518260956,
0.5337916016578674,
-0.6558172106742859,
0.4616347849369049,
0.49437373876571655,
1.0904216766357422,
0.00313577800989151,
-0.40886086225509644,
-0.2277458757162094,
-0.41212812066078186,
-0.1516939103603363,
0.8712363243103027,
0.04328007623553276,
-0.2733020484447479,
-0.12907910346984863,
0.22557558119297028,
-0.04641392081975937,
-0.5265804529190063,
0.7011093497276306,
-0.3173314332962036,
0.3815336227416992,
-0.16821804642677307,
-0.5287049412727356,
0.010841471143066883,
0.2356620579957962,
-0.651729941368103,
1.273863673210144,
0.07300480455160141,
-0.8333606719970703,
0.10745677351951599,
-0.5312663912773132,
-0.01898198388516903,
0.08326154947280884,
0.01932702027261257,
-0.5365228652954102,
-0.09200967103242874,
0.020759738981723785,
0.5824976563453674,
-0.42782238125801086,
0.3902285099029541,
-0.25601130723953247,
-0.5687638521194458,
0.2415659874677658,
-0.44374874234199524,
1.1149296760559082,
0.2613605856895447,
-0.3275883197784424,
0.46873295307159424,
-0.7880796790122986,
-0.11316519975662231,
0.357699453830719,
-0.3342357277870178,
-0.40358540415763855,
-0.14407478272914886,
-0.0154236676171422,
-0.01912001706659794,
0.5299084782600403,
-0.32468917965888977,
0.33677762746810913,
-0.06618759036064148,
0.21081019937992096,
0.728302538394928,
-0.0743364691734314,
0.26182809472084045,
-0.4497598111629486,
0.3786337971687317,
-0.049544595181941986,
0.6852278709411621,
0.21731525659561157,
-0.5145089626312256,
-1.0941518545150757,
-0.45264896750450134,
0.05526651069521904,
0.6637109518051147,
-0.7960042953491211,
0.6922377347946167,
-0.4345407485961914,
-1.0782802104949951,
-0.9149898886680603,
0.25461480021476746,
0.3973354399204254,
0.05951755493879318,
0.3289358913898468,
-0.5082272291183472,
-0.7366963624954224,
-0.9261356592178345,
-0.17714251577854156,
-0.3218308985233307,
-0.06668100506067276,
0.4115299582481384,
0.2610396146774292,
-0.5048802495002747,
0.831781268119812,
-0.5118768215179443,
-0.3567518889904022,
-0.15669801831245422,
-0.002006013412028551,
0.07236959040164948,
0.3991836607456207,
0.645399272441864,
-0.6134812831878662,
-0.3701954483985901,
-0.11683378368616104,
-0.7346957921981812,
-0.045405998826026917,
-0.06505189836025238,
-0.4351820647716522,
0.06724253296852112,
0.47188955545425415,
-0.6725958585739136,
0.3831200897693634,
0.7166552543640137,
-0.43063071370124817,
0.4865899384021759,
-0.23884229362010956,
-0.030189726501703262,
-1.4079135656356812,
-0.031422704458236694,
0.10704497247934341,
-0.48972654342651367,
-0.5748111605644226,
-0.023055192083120346,
-0.01928909681737423,
0.4235493242740631,
-0.729569137096405,
1.0252363681793213,
-0.42536088824272156,
0.14417660236358643,
-0.5001966953277588,
-0.09708933532238007,
-0.11098261177539825,
0.8002921342849731,
-0.021756477653980255,
0.6805088520050049,
0.4041036069393158,
-0.8693076968193054,
0.4860483705997467,
0.15514491498470306,
-0.29541918635368347,
0.2792153060436249,
-0.9645723104476929,
0.2586537003517151,
0.004017471335828304,
0.3335488438606262,
-0.8700125217437744,
-0.036731209605932236,
0.5878747701644897,
-0.582200825214386,
0.19662030041217804,
-0.03326788172125816,
-0.4766504764556885,
-0.19750186800956726,
-0.2855784296989441,
0.20678333938121796,
0.34209734201431274,
-0.4527873396873474,
0.275739461183548,
0.49709582328796387,
0.13259486854076385,
-0.5932108759880066,
-0.6008023023605347,
-0.01487810630351305,
-0.4010300934314728,
-0.09993404895067215,
0.04394536092877388,
-0.29166239500045776,
-0.24229025840759277,
-0.2285958230495453,
0.10437636077404022,
-0.09959783405065536,
0.11157499998807907,
0.31727737188339233,
0.038750696927309036,
0.04465695470571518,
0.17359474301338196,
-0.16418267786502838,
0.015836423262953758,
-0.16264908015727997,
-0.0686502456665039,
1.0555980205535889,
-0.511688232421875,
0.103970006108284,
-0.8693263530731201,
-0.16892144083976746,
0.6015280485153198,
0.10659617930650711,
1.309430718421936,
0.8756766319274902,
-0.24605348706245422,
0.19384953379631042,
-0.7176270484924316,
-0.2122081071138382,
-0.5083727240562439,
0.4561966359615326,
-0.2051151841878891,
-0.8560553789138794,
0.6167310476303101,
0.40631404519081116,
0.34072765707969666,
0.473555326461792,
0.8199845552444458,
0.11621150374412537,
0.5880738496780396,
0.9281468987464905,
-0.17690986394882202,
1.0474449396133423,
-0.27068760991096497,
-0.1536455601453781,
-0.8017188310623169,
-0.3088116943836212,
-0.6666895747184753,
-0.13174161314964294,
-0.6979888081550598,
-0.6598291993141174,
0.0047621955163776875,
-0.03123464062809944,
-0.3669942319393158,
0.7678202986717224,
-0.5545024275779724,
0.07420549541711807,
0.5899434089660645,
0.35583749413490295,
0.29961755871772766,
-0.08612409979104996,
0.2536165118217468,
0.1402602344751358,
-0.6856510639190674,
-0.5924798846244812,
1.060460090637207,
0.6818826794624329,
0.7285240888595581,
0.13719739019870758,
0.6291906237602234,
0.2717561721801758,
0.5318633317947388,
-0.9456838965415955,
0.5420125126838684,
0.2755661904811859,
-0.7373736500740051,
-0.4368111789226532,
-0.846172571182251,
-1.1358281373977661,
0.379810631275177,
-0.186069056391716,
-0.779409646987915,
0.14062295854091644,
0.09355946630239487,
-0.1443878412246704,
0.30616992712020874,
-0.7524959444999695,
0.8290836811065674,
-0.41643938422203064,
-0.2448299080133438,
-0.05008132383227348,
-0.5116773843765259,
0.605294942855835,
0.15462151169776917,
0.1374027132987976,
-0.20666764676570892,
-0.10594987124204636,
0.8636919260025024,
-0.6751043796539307,
1.1867380142211914,
-0.17803800106048584,
-0.3820251524448395,
0.25239595770835876,
-0.13337767124176025,
0.292962908744812,
0.00875272136181593,
0.05163596570491791,
0.4105977714061737,
0.12603889405727386,
-0.5498507618904114,
-0.5734674334526062,
0.6188274621963501,
-1.1572847366333008,
-0.3847493529319763,
-0.28405022621154785,
-0.4272249937057495,
0.09658391773700714,
0.17507228255271912,
0.3695259690284729,
0.29035553336143494,
-0.17842890322208405,
0.29446202516555786,
0.5541286468505859,
-0.41870400309562683,
-0.019290929660201073,
0.48828125,
-0.3274877071380615,
-0.4690918028354645,
0.6514379978179932,
-0.028199823573231697,
0.16666355729103088,
0.5978800654411316,
0.20992214977741241,
-0.12476638704538345,
-0.17197640240192413,
-0.1722153127193451,
0.3908372223377228,
-0.4919314384460449,
-0.2360236495733261,
-0.8487024903297424,
-0.21606571972370148,
-0.4367983341217041,
0.4840468466281891,
-0.8542569279670715,
-0.3942018151283264,
-0.3218916356563568,
-0.04994996264576912,
0.7821846604347229,
0.4172215461730957,
0.3185526132583618,
0.8936852216720581,
-0.5939522385597229,
0.2254536896944046,
0.22064626216888428,
0.34654611349105835,
0.042817622423172,
-0.7408087253570557,
-0.5427366495132446,
0.17678575217723846,
-0.31856009364128113,
-0.8448708653450012,
0.5198530554771423,
-0.09226343035697937,
0.4695548415184021,
0.41090619564056396,
-0.000198624751647003,
0.8231368660926819,
-0.22500623762607574,
0.5873976349830627,
0.189767986536026,
-0.5247607231140137,
0.43300214409828186,
-0.25972414016723633,
0.37012383341789246,
0.6627124547958374,
0.41806697845458984,
-0.6540981531143188,
-0.3098492920398712,
-0.810326099395752,
-0.7579658627510071,
0.49789300560951233,
0.33213090896606445,
0.3610345721244812,
-0.023431889712810516,
0.49604713916778564,
0.08002881705760956,
0.27915671467781067,
-0.8816354274749756,
-0.5217770934104919,
-0.08140838146209717,
-0.3371240496635437,
-0.24015317857265472,
-0.2886083126068115,
0.034047793596982956,
-0.44695183634757996,
0.7346730828285217,
-0.11936365813016891,
0.5526939034461975,
0.0648043230175972,
-0.02836519479751587,
-0.05577763170003891,
0.1550656408071518,
0.6818881630897522,
0.3066359758377075,
-0.49852582812309265,
-0.27691981196403503,
0.1966101974248886,
-0.540843665599823,
-0.08911659568548203,
0.1376044601202011,
0.02142729051411152,
0.10462186485528946,
0.3464447259902954,
1.5099217891693115,
0.39282914996147156,
-0.5126599669456482,
0.38310977816581726,
-0.8102772235870361,
-0.21955391764640808,
-0.4344143271446228,
0.2029908299446106,
0.15711195766925812,
0.4321919083595276,
0.13728341460227966,
-0.14159037172794342,
-0.11856703460216522,
-0.7159550189971924,
-0.21972566843032837,
0.38427531719207764,
-0.42277801036834717,
-0.2900814414024353,
0.6402697563171387,
0.1837289035320282,
-0.4896232783794403,
0.3805520236492157,
0.042962297797203064,
-0.3514194190502167,
0.4257637858390808,
0.14026717841625214,
0.8924685120582581,
-0.25465071201324463,
0.11563614010810852,
0.5042576789855957,
0.30757516622543335,
-0.1740931123495102,
0.2027355283498764,
-0.21710821986198425,
-0.8081202507019043,
-0.0003460222505964339,
-0.6973991990089417,
-0.6135490536689758,
0.31572332978248596,
-0.6714070439338684,
0.4751596450805664,
-0.35874584317207336,
-0.5570432543754578,
-0.40646201372146606,
0.5843971967697144,
-0.9498826265335083,
-0.030408533290028572,
-0.1465182900428772,
0.8948774933815002,
-0.7574506998062134,
1.0464460849761963,
0.6182951927185059,
-0.47552043199539185,
-0.9281348586082458,
-0.361871600151062,
-0.06623443216085434,
-0.8922234177589417,
0.16155849397182465,
0.05304422974586487,
-0.01473705843091011,
-0.10499094426631927,
-0.7263795137405396,
-0.789763867855072,
1.440227746963501,
0.39000019431114197,
-0.6100309491157532,
-0.2168457806110382,
-0.14993995428085327,
0.6750602722167969,
-0.10240057110786438,
0.5973390340805054,
0.4182540476322174,
0.1930035501718521,
0.0718979611992836,
-1.2585761547088623,
0.00683343131095171,
-0.5064211487770081,
-0.015436111018061638,
-0.19609706103801727,
-1.1817692518234253,
0.9262616038322449,
0.04558014124631882,
-0.03880345821380615,
0.27484530210494995,
0.8899516463279724,
0.5335351228713989,
0.11351990699768066,
0.5644309520721436,
0.37307509779930115,
1.0166863203048706,
0.11166142672300339,
1.1835222244262695,
-0.15981760621070862,
0.20907418429851532,
1.227744698524475,
0.07215230166912079,
0.897607147693634,
0.4315407872200012,
-0.020237520337104797,
0.5740986466407776,
0.8017222285270691,
0.2593715786933899,
0.20203441381454468,
0.0020452134776860476,
0.07525355368852615,
0.01806049421429634,
0.053313713520765305,
-0.45356127619743347,
0.5001222491264343,
0.2499888688325882,
-0.17796771228313446,
0.14306481182575226,
-0.10208148509263992,
0.3658565878868103,
-0.31769901514053345,
-0.04815731197595596,
0.7795254588127136,
0.3179236054420471,
-0.5767432451248169,
1.1071757078170776,
0.1426088958978653,
1.1339318752288818,
-0.7706149220466614,
0.25980550050735474,
-0.4994182884693146,
0.39145466685295105,
-0.011474862694740295,
-0.19796514511108398,
0.05519856512546539,
0.14857889711856842,
0.2578727900981903,
0.024411015212535858,
0.512913167476654,
-0.3811105787754059,
-0.34843239188194275,
0.3754420876502991,
0.5648908019065857,
0.5352795720100403,
0.00481175584718585,
-0.7834673523902893,
0.48980867862701416,
-0.09493755549192429,
-0.6068426370620728,
0.24257315695285797,
0.3812451660633087,
-0.19866463541984558,
1.069670557975769,
0.516409158706665,
0.1365346759557724,
0.028928011655807495,
0.34995797276496887,
0.9105482697486877,
-0.517677366733551,
-0.4478215277194977,
-0.7767823338508606,
0.33558088541030884,
-0.059827663004398346,
-0.5115709900856018,
0.9521838426589966,
0.477584570646286,
0.7371748089790344,
0.16236324608325958,
0.40537524223327637,
-0.03360183909535408,
0.29109761118888855,
-0.5137433409690857,
0.7532810568809509,
-0.8532458543777466,
0.2170076221227646,
-0.3774275481700897,
-0.9023096561431885,
-0.15867580473423004,
0.6279875040054321,
-0.18204790353775024,
0.16786658763885498,
0.4708637595176697,
0.7957500219345093,
0.14505299925804138,
-0.26209598779678345,
0.26483166217803955,
0.3203597962856293,
0.48187848925590515,
0.5025671720504761,
0.5885996222496033,
-0.8267117738723755,
0.5390608906745911,
-0.19026130437850952,
-0.2946540117263794,
-0.5132640600204468,
-0.6733208894729614,
-1.154516339302063,
-0.6756090521812439,
-0.21152010560035706,
-0.30442386865615845,
0.16525816917419434,
1.0518072843551636,
0.7316902279853821,
-0.28984907269477844,
-0.6627168655395508,
0.088145412504673,
-0.04214475303888321,
-0.26852917671203613,
-0.22658424079418182,
0.2148434966802597,
-0.05834534019231796,
-0.9320610761642456,
0.20083604753017426,
-0.3410106599330902,
0.24308891594409943,
-0.3211769461631775,
-0.4241471588611603,
-0.31048786640167236,
0.09292793273925781,
0.43409183621406555,
0.5397181510925293,
-0.48197853565216064,
0.010655615478754044,
-0.10439801961183548,
-0.44190800189971924,
0.1886623054742813,
0.3213067650794983,
-0.7324545383453369,
0.05935504287481308,
0.39029642939567566,
0.16056476533412933,
0.7010032534599304,
-0.06085183843970299,
0.4689938724040985,
-0.7448170781135559,
0.60210782289505,
-0.09057395905256271,
0.42187273502349854,
0.537139356136322,
-0.3513231575489044,
0.43756988644599915,
-0.050546787679195404,
-0.39496323466300964,
-0.9988550543785095,
-0.19873520731925964,
-1.0316463708877563,
-0.20207402110099792,
1.2850680351257324,
0.2770947515964508,
-0.6181493997573853,
0.16216769814491272,
-0.601279079914093,
0.7097525000572205,
-0.3719806969165802,
0.7813642621040344,
0.4658631682395935,
0.2695649564266205,
-0.5577996969223022,
-0.7745330929756165,
0.5301609039306641,
0.2768976092338562,
-0.9050149917602539,
0.06514190882444382,
0.2813422977924347,
0.4565453827381134,
-0.004434284288436174,
1.2961775064468384,
-0.049230847507715225,
0.0008192566456273198,
-0.16968286037445068,
0.5374398231506348,
-0.2985886335372925,
-0.4130873382091522,
-0.24423274397850037,
-0.3861982226371765,
0.19760188460350037,
-0.34283310174942017
] |
kresnik/wav2vec2-large-xlsr-korean | kresnik | "2023-07-03T14:55:40Z" | 99,852 | 25 | transformers | [
"transformers",
"pytorch",
"safetensors",
"wav2vec2",
"automatic-speech-recognition",
"speech",
"audio",
"ko",
"dataset:kresnik/zeroth_korean",
"license:apache-2.0",
"model-index",
"endpoints_compatible",
"has_space",
"region:us"
] | automatic-speech-recognition | "2022-03-02T23:29:05Z" | ---
language: ko
datasets:
- kresnik/zeroth_korean
tags:
- speech
- audio
- automatic-speech-recognition
license: apache-2.0
model-index:
- name: 'Wav2Vec2 XLSR Korean'
results:
- task:
name: Automatic Speech Recognition
type: automatic-speech-recognition
dataset:
name: Zeroth Korean
type: kresnik/zeroth_korean
args: clean
metrics:
- name: Test WER
type: wer
value: 4.74
- name: Test CER
type: cer
value: 1.78
---
## Evaluation on Zeroth-Korean ASR corpus
[Google colab notebook(Korean)](https://colab.research.google.com/github/indra622/tutorials/blob/master/wav2vec2_korean_tutorial.ipynb)
```
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
from datasets import load_dataset
import soundfile as sf
import torch
from jiwer import wer
processor = Wav2Vec2Processor.from_pretrained("kresnik/wav2vec2-large-xlsr-korean")
model = Wav2Vec2ForCTC.from_pretrained("kresnik/wav2vec2-large-xlsr-korean").to('cuda')
ds = load_dataset("kresnik/zeroth_korean", "clean")
test_ds = ds['test']
def map_to_array(batch):
speech, _ = sf.read(batch["file"])
batch["speech"] = speech
return batch
test_ds = test_ds.map(map_to_array)
def map_to_pred(batch):
inputs = processor(batch["speech"], sampling_rate=16000, return_tensors="pt", padding="longest")
input_values = inputs.input_values.to("cuda")
with torch.no_grad():
logits = model(input_values).logits
predicted_ids = torch.argmax(logits, dim=-1)
transcription = processor.batch_decode(predicted_ids)
batch["transcription"] = transcription
return batch
result = test_ds.map(map_to_pred, batched=True, batch_size=16, remove_columns=["speech"])
print("WER:", wer(result["text"], result["transcription"]))
```
### Expected WER: 4.74%
### Expected CER: 1.78% | [
-0.23886436223983765,
-0.587265133857727,
0.15318086743354797,
0.4661513864994049,
-0.2672434449195862,
0.13335001468658447,
-0.5693512558937073,
-0.25602957606315613,
-0.034297555685043335,
0.20898745954036713,
-0.31679850816726685,
-0.8405441045761108,
-0.65724778175354,
-0.1340528130531311,
-0.3650144040584564,
1.018106460571289,
0.1358550488948822,
0.1859792172908783,
-0.06262953579425812,
-0.1455879509449005,
-0.4017505645751953,
-0.33260342478752136,
-0.6843864321708679,
-0.3161277770996094,
-0.07284491509199142,
0.5139107704162598,
0.21200066804885864,
0.21256208419799805,
0.2549169659614563,
0.4059625566005707,
-0.15734688937664032,
-0.38088008761405945,
-0.5450943112373352,
0.06103771552443504,
0.2187274694442749,
-0.40039393305778503,
-0.30490535497665405,
0.08887871354818344,
0.6368957161903381,
0.5372294783592224,
-0.0821908488869667,
0.5089515447616577,
-0.2089393585920334,
0.43629202246665955,
-0.4244159758090973,
0.27920079231262207,
-0.5934513211250305,
-0.23636527359485626,
-0.12693001329898834,
-0.0387682169675827,
-0.5315385460853577,
-0.32718944549560547,
0.13065649569034576,
-0.6131487488746643,
0.3440174162387848,
-0.24445311725139618,
1.1339648962020874,
0.3508349061012268,
-0.37975579500198364,
-0.5979053974151611,
-0.6310950517654419,
0.8377214670181274,
-0.6084116101264954,
0.4723415672779083,
0.42352619767189026,
0.059535522013902664,
-0.0032197004184126854,
-1.0395184755325317,
-0.5903218388557434,
-0.17967058718204498,
0.23185069859027863,
0.41703030467033386,
-0.2543146312236786,
0.06428220868110657,
0.46075940132141113,
0.4237029254436493,
-0.6543910503387451,
-0.1663728505373001,
-0.8986459970474243,
-0.3958675265312195,
0.6334523558616638,
-0.23979230225086212,
0.16065430641174316,
-0.2318035215139389,
-0.26266270875930786,
-0.5923308730125427,
-0.24333332479000092,
0.2576998174190521,
0.5775882601737976,
0.2443939745426178,
-0.40020251274108887,
0.5569784641265869,
-0.07895764708518982,
0.6164219975471497,
0.2753117084503174,
-0.2420535534620285,
0.8523752689361572,
-0.24317185580730438,
-0.2871478497982025,
0.5101331472396851,
0.9885619878768921,
0.15631689131259918,
0.27282992005348206,
-0.018667500466108322,
0.04934290423989296,
0.4991837739944458,
0.045383743941783905,
-0.955371618270874,
-0.5498623251914978,
0.47279441356658936,
-0.2709709107875824,
-0.02325497567653656,
0.044484738260507584,
-0.682759165763855,
-0.009526843205094337,
-0.1413031667470932,
0.896351158618927,
-0.5318021178245544,
-0.29561400413513184,
0.19488739967346191,
-0.17505981028079987,
0.3844429552555084,
-0.3759269714355469,
-0.7172205448150635,
0.33617737889289856,
0.47558844089508057,
0.6645929217338562,
0.12888988852500916,
-0.21745643019676208,
-0.38853535056114197,
-0.36225271224975586,
-0.30847790837287903,
0.6286951303482056,
0.03910601884126663,
-0.7912695407867432,
-0.19181641936302185,
-0.082833431661129,
-0.3314257264137268,
-0.5809342265129089,
1.0825563669204712,
-0.4400864839553833,
0.3388538658618927,
-0.12729091942310333,
-0.5081152319908142,
-0.28516748547554016,
-0.3255033493041992,
-0.33748993277549744,
1.1270605325698853,
0.2948434054851532,
-0.5475948452949524,
0.3157593905925751,
-0.6580941677093506,
-0.6968213319778442,
-0.188690647482872,
-0.28842446208000183,
-0.6319576501846313,
-0.009912055917084217,
0.08200644701719284,
0.25930657982826233,
-0.26126858592033386,
0.2075551450252533,
0.030113963410258293,
-0.6885833144187927,
0.3846348226070404,
-0.3161143958568573,
1.2104662656784058,
0.4117436707019806,
-0.5636839270591736,
0.3742245137691498,
-1.0167299509048462,
0.35627084970474243,
-0.12489534914493561,
-0.29483458399772644,
-0.009305555373430252,
-0.3935961127281189,
0.43900343775749207,
0.1982564628124237,
0.17693302035331726,
-0.8601926565170288,
-0.07483131438493729,
-0.6498754620552063,
0.31183627247810364,
0.43390902876853943,
-0.12648844718933105,
0.2673451006412506,
-0.08506298810243607,
0.43502601981163025,
-0.17269934713840485,
-0.23750555515289307,
0.10038779675960541,
-0.4643205404281616,
-0.7337403297424316,
-0.6563569903373718,
0.5169568657875061,
0.5994622111320496,
-0.4519921839237213,
0.6401247978210449,
-0.264057993888855,
-0.7946722507476807,
-1.0373588800430298,
-0.364877849817276,
0.5484175682067871,
0.8046479225158691,
0.5001547932624817,
-0.17001967132091522,
-0.9769289493560791,
-0.7657513618469238,
0.06888757646083832,
-0.0699642226099968,
-0.29455476999282837,
0.05028655007481575,
0.46882057189941406,
-0.4574020802974701,
0.7240056991577148,
-0.49998390674591064,
-0.27576184272766113,
-0.20137418806552887,
0.24585989117622375,
0.7551862597465515,
0.548434853553772,
0.11733901500701904,
-0.5119110345840454,
-0.8218602538108826,
-0.26260143518447876,
-0.46881312131881714,
-0.3699183762073517,
-0.07888096570968628,
-0.11326373368501663,
0.4108383357524872,
0.42271843552589417,
-0.6397116184234619,
0.3790135085582733,
0.3583448529243469,
-0.6852888464927673,
0.5545112490653992,
-0.20660850405693054,
0.36464786529541016,
-1.0266832113265991,
0.32382577657699585,
-0.34205901622772217,
0.05709819123148918,
-0.6844428181648254,
-0.17068807780742645,
0.01186034269630909,
0.016841528937220573,
-0.35502326488494873,
0.3960907757282257,
-0.4213716685771942,
-0.19764339923858643,
-0.21221092343330383,
0.2108708620071411,
-0.1160883679986,
0.40921375155448914,
-0.041465140879154205,
0.8017754554748535,
0.7826495170593262,
-0.5819825530052185,
0.3353624939918518,
0.6745582222938538,
-0.5171257853507996,
0.17458754777908325,
-0.9466645121574402,
0.29809778928756714,
0.15586166083812714,
0.07041489332914352,
-1.1764644384384155,
-0.0154544273391366,
0.14229123294353485,
-1.034520149230957,
0.3866767883300781,
-0.08332030475139618,
-0.2734653949737549,
-0.36260414123535156,
-0.40432971715927124,
0.4389957785606384,
0.8748051524162292,
-0.4706510901451111,
0.333008736371994,
0.4294261634349823,
0.06763581931591034,
-0.6445481181144714,
-0.6802109479904175,
-0.35628870129585266,
-0.12121045589447021,
-0.8259239792823792,
0.3436107039451599,
-0.11382537335157394,
-0.1653410643339157,
-0.06701846420764923,
-0.3660951852798462,
0.13545867800712585,
-0.20465363562107086,
0.4706759750843048,
0.5212721824645996,
-0.2510755956172943,
-0.3036004900932312,
-0.2831398546695709,
-0.2978080213069916,
0.15493357181549072,
-0.15409809350967407,
0.8470261693000793,
-0.33935046195983887,
-0.2657669186592102,
-0.46247774362564087,
-0.10447784513235092,
0.4910503923892975,
0.023827046155929565,
0.4371652901172638,
1.128706455230713,
-0.24729099869728088,
0.2203858196735382,
-0.43150749802589417,
0.13341709971427917,
-0.5057680010795593,
0.7023905515670776,
-0.5155508518218994,
-0.5027515292167664,
0.6953679323196411,
0.2401721477508545,
-0.20176531374454498,
0.8337129354476929,
0.803547203540802,
0.022836854681372643,
0.6738086938858032,
0.046353649348020554,
0.018795203417539597,
0.1656421571969986,
-0.9005011320114136,
0.19535072147846222,
-1.1199190616607666,
-0.319948673248291,
-0.6968910694122314,
-0.11522255092859268,
-0.8155710101127625,
-0.4867185652256012,
0.3378877341747284,
0.07216732203960419,
-0.3625340163707733,
0.39586204290390015,
-0.6422163248062134,
0.2538079023361206,
0.687315821647644,
-0.2588999569416046,
-0.0841500535607338,
0.09052309393882751,
-0.14043454825878143,
0.002656100085005164,
-0.4443928897380829,
-0.28110772371292114,
1.3394654989242554,
0.27033838629722595,
0.6386703848838806,
-0.1464858502149582,
0.6110997200012207,
-0.07851321250200272,
-0.09750767052173615,
-0.8825851082801819,
0.4684481918811798,
-0.2811242640018463,
-0.43693748116493225,
-0.32114124298095703,
-0.19958125054836273,
-1.1051931381225586,
0.3185323178768158,
-0.039095696061849594,
-0.8100536465644836,
0.09770465642213821,
-0.1393054723739624,
-0.4536595642566681,
-0.07583101093769073,
-0.7644916772842407,
0.8851336240768433,
0.10803944617509842,
-0.17198051512241364,
0.03936199098825455,
-0.6308260560035706,
0.22341224551200867,
0.15541131794452667,
-0.07636886835098267,
-0.020011568441987038,
0.3581914007663727,
1.267098307609558,
-0.13129085302352905,
0.35250401496887207,
-0.3657304644584656,
0.16114115715026855,
0.6606895923614502,
-0.2177630513906479,
0.22267484664916992,
-0.021781999617815018,
-0.33081820607185364,
0.5942344665527344,
0.2553764879703522,
-0.27312710881233215,
-0.1609557867050171,
0.8617817759513855,
-1.1171207427978516,
-0.28110119700431824,
-0.6274121999740601,
-0.5331916213035583,
-0.21397559344768524,
0.0557817667722702,
0.805887758731842,
0.6326014995574951,
-0.12262629717588425,
0.4799744784832001,
0.5500994920730591,
-0.21353144943714142,
0.4162207245826721,
0.253549724817276,
-0.2965781092643738,
-0.7886945009231567,
0.89378821849823,
0.12353913486003876,
0.2031669169664383,
-0.08231442421674728,
0.1079653799533844,
-0.7493978142738342,
-0.4298533499240875,
-0.47237423062324524,
0.07691974192857742,
-0.6118298768997192,
-0.11547654122114182,
-0.6432607769966125,
-0.4961826205253601,
-0.7481551766395569,
-0.0755576565861702,
-0.47925350069999695,
-0.41559284925460815,
-0.39127999544143677,
-0.06678315997123718,
0.3902263045310974,
0.31831422448158264,
-0.27882057428359985,
0.46125686168670654,
-0.4721391499042511,
0.6229598522186279,
-0.08272434771060944,
0.15319126844406128,
-0.20321275293827057,
-1.0705199241638184,
-0.22843314707279205,
-0.06434474885463715,
-0.19066347181797028,
-0.8328972458839417,
0.6108890175819397,
0.04181363061070442,
0.5234731435775757,
0.2084154486656189,
-0.00823744386434555,
0.8098431825637817,
-0.3350756764411926,
0.7875117063522339,
0.10221713036298752,
-1.1297589540481567,
0.2821075916290283,
-0.1291959285736084,
0.4732646346092224,
0.6364677548408508,
0.20210367441177368,
-0.5923362970352173,
-0.1860305219888687,
-0.8212358951568604,
-1.2557626962661743,
0.9462896585464478,
0.37532779574394226,
-0.03624242916703224,
0.09961292892694473,
0.012939142994582653,
0.053227514028549194,
0.04400753974914551,
-0.5436333417892456,
-0.5974939465522766,
-0.35681721568107605,
-0.3741806745529175,
-0.23920395970344543,
-0.4019908308982849,
-0.015714086592197418,
-0.38321977853775024,
1.0334978103637695,
0.27736055850982666,
0.5735716819763184,
0.5143733620643616,
-0.0878884345293045,
0.002202718984335661,
0.35069790482521057,
0.7885152697563171,
0.4156011939048767,
-0.5644547343254089,
0.09269987046718597,
0.28347495198249817,
-0.8985517621040344,
0.04743095859885216,
0.17470961809158325,
-0.11756402999162674,
0.13037653267383575,
0.3518982529640198,
1.0692598819732666,
-0.04280941188335419,
-0.44813627004623413,
0.4491082727909088,
-0.22356648743152618,
-0.3716214895248413,
-0.775078296661377,
-0.054234474897384644,
0.36201420426368713,
-0.012911560013890266,
0.5790363550186157,
0.18265187740325928,
0.09086653590202332,
-0.29099181294441223,
0.26402533054351807,
0.19601711630821228,
-0.47154074907302856,
-0.30059513449668884,
0.7413899898529053,
-0.06926485896110535,
-0.34614717960357666,
0.7745891809463501,
-0.3479821979999542,
-0.6170831322669983,
0.7260469198226929,
0.7321669459342957,
0.9925300478935242,
-0.12288409471511841,
-0.21818770468235016,
0.7888893485069275,
0.12778325378894806,
0.12112637609243393,
0.6784030199050903,
-0.06622526794672012,
-0.5613687038421631,
-0.43436139822006226,
-0.7773040533065796,
0.012623794376850128,
0.3403354585170746,
-0.7665379047393799,
0.42295974493026733,
-0.08066616207361221,
-0.10331176966428757,
0.030529439449310303,
0.3076717257499695,
-0.5793387293815613,
0.2338523417711258,
-0.005544903222471476,
0.7968308329582214,
-0.7744734883308411,
0.9279505610466003,
0.3377869427204132,
-0.4120854139328003,
-1.0555243492126465,
0.020841829478740692,
-0.30906930565834045,
-0.6760152578353882,
0.7698460817337036,
0.15383359789848328,
-0.24212497472763062,
0.06528101116418839,
-0.2151867151260376,
-0.9895246624946594,
1.0973244905471802,
0.37890827655792236,
-0.397188663482666,
0.5378650426864624,
-0.06259038299322128,
0.7113833427429199,
-0.08404459804296494,
0.4674944281578064,
0.6505401730537415,
0.4872165620326996,
0.23771890997886658,
-1.022182583808899,
-0.07528064399957657,
-0.25708988308906555,
-0.21152929961681366,
-0.09320655465126038,
-0.4071846902370453,
1.0576461553573608,
-0.3727051913738251,
-0.321739137172699,
0.08500486612319946,
0.8851275444030762,
0.5627990961074829,
0.6190509796142578,
0.46429386734962463,
0.6231788396835327,
0.8136233687400818,
-0.07673244178295135,
0.851259171962738,
-0.28021687269210815,
0.450876921415329,
1.166530966758728,
-0.12360814213752747,
0.8975456357002258,
0.4601275324821472,
-0.36101701855659485,
0.5208104252815247,
0.4723813235759735,
-0.1886535882949829,
0.7190366983413696,
0.42861056327819824,
-0.37702563405036926,
0.25815480947494507,
0.19532468914985657,
-0.6256542801856995,
0.8698850274085999,
0.27623891830444336,
-0.036269158124923706,
0.20944945514202118,
-0.11450371146202087,
0.10054149478673935,
0.10691089183092117,
-0.20622920989990234,
0.4352017641067505,
-0.10914301127195358,
-0.5676688551902771,
0.9288302659988403,
0.09138637036085129,
0.8890383243560791,
-0.46779733896255493,
0.029358964413404465,
0.24956628680229187,
0.28259748220443726,
-0.3687654435634613,
-0.5957099795341492,
0.4655674695968628,
0.058591678738594055,
-0.24757741391658783,
0.07815470546483994,
0.5993475317955017,
-0.6343764662742615,
-0.5444165468215942,
0.41136372089385986,
0.12848332524299622,
0.5158533453941345,
0.0725225955247879,
-0.3406018018722534,
0.2838553190231323,
0.35173705220222473,
-0.31745123863220215,
0.12910708785057068,
0.06919154524803162,
0.13852688670158386,
0.23382434248924255,
0.8054941296577454,
0.2668231427669525,
0.22011114656925201,
0.12410419434309006,
0.41648024320602417,
-0.6564508080482483,
-0.3979725241661072,
-0.7187495231628418,
0.4494187831878662,
-0.07775333523750305,
-0.42386171221733093,
0.7215995192527771,
0.9435006976127625,
1.0415151119232178,
-0.34866389632225037,
0.6702255606651306,
-0.3680116534233093,
0.5505363941192627,
-0.3970240354537964,
0.9284474849700928,
-0.11136967688798904,
0.07492631673812866,
-0.11660701781511307,
-0.6748614311218262,
-0.09297118335962296,
0.9391210079193115,
-0.2950080335140228,
0.007185471709817648,
0.8050167560577393,
1.0014992952346802,
0.03602239862084389,
-0.08622098714113235,
0.4824557304382324,
0.49941033124923706,
0.09752950072288513,
0.48894619941711426,
0.4974842965602875,
-1.0206561088562012,
0.741492509841919,
-0.3785470128059387,
-0.0526057593524456,
0.07224061340093613,
-0.4804627299308777,
-0.5549909472465515,
-0.8541781902313232,
-0.440311998128891,
-0.6736798286437988,
-0.1880471408367157,
1.0935378074645996,
0.5589050650596619,
-1.1009548902511597,
-0.4575066566467285,
0.1868613064289093,
-0.042844727635383606,
-0.11109665036201477,
-0.24974393844604492,
0.9268497228622437,
-0.06940974295139313,
-0.8714806437492371,
0.6363548636436462,
-0.19264616072177887,
-0.2975904941558838,
0.1409970074892044,
-0.2882835268974304,
-0.36271893978118896,
-0.12263619154691696,
0.4530611038208008,
0.39386409521102905,
-0.7262091636657715,
-0.21840932965278625,
0.009826058521866798,
-0.32200247049331665,
0.15037818253040314,
0.256401002407074,
-0.8192569017410278,
0.5315861105918884,
0.624847412109375,
0.3783450126647949,
0.8490054607391357,
-0.1964845061302185,
0.17301234602928162,
-0.6402634382247925,
0.270972341299057,
0.1370079070329666,
0.28001052141189575,
0.4475250244140625,
-0.3193548321723938,
0.5564873814582825,
0.1534702032804489,
-0.8020248413085938,
-0.8115370273590088,
-0.27315860986709595,
-1.4037089347839355,
0.0630127415060997,
1.400447130203247,
-0.12518100440502167,
-0.2582724690437317,
-0.028533102944493294,
-0.4958491921424866,
0.97244793176651,
-0.46307283639907837,
0.8088517785072327,
0.4964974522590637,
-0.32241091132164,
0.5311153531074524,
-0.5888782143592834,
0.43123507499694824,
0.38118889927864075,
-0.4479336440563202,
-0.09598512202501297,
0.28761181235313416,
0.6167190074920654,
0.32147496938705444,
1.0048631429672241,
-0.29874396324157715,
0.3195967972278595,
0.5011584758758545,
0.6077031493186951,
-0.14417213201522827,
0.008805792778730392,
-0.706073522567749,
0.14261864125728607,
-0.05590023100376129,
-0.7797887325286865
] |
plasmo/vox2 | plasmo | "2023-05-05T11:26:46Z" | 99,112 | 44 | diffusers | [
"diffusers",
"text-to-image",
"stable-diffusion",
"license:creativeml-openrail-m",
"endpoints_compatible",
"has_space",
"diffusers:StableDiffusionPipeline",
"region:us"
] | text-to-image | "2022-11-25T19:20:36Z" | ---
license: creativeml-openrail-m
tags:
- text-to-image
- stable-diffusion
widget:
- text: "voxel-ish "
---
### Jak's Voxel-ish Image Pack v.1.2 for Stable Diffusion
VERSION 1.2 of Voxel-ish Image Pack brought to you by 184 training images through 8000 training steps, 20% Training text crafted by Jak_TheAI_Artist
version history: v1.2 - Fine tuned for better faces.
Include Prompt trigger: "voxel-ish" to activate.
Tip: add "intricate detail" in prompt to make a semi-realistic image.
Sample pictures of this concept:
voxel-ish
![voxel-ish 0](https://huggingface.co/plasmo/vox2/resolve/main/concept_images/tyson.jpg)
![voxel-ish 1](https://huggingface.co/plasmo/vox2/resolve/main/concept_images/depp.jpg)
![voxel-ish 2](https://huggingface.co/plasmo/vox2/resolve/main/concept_images/pitt.jpg)
![voxel-ish 3](https://huggingface.co/plasmo/vox2/resolve/main/concept_images/ww.jpg)
![voxel-ish 4](https://huggingface.co/plasmo/vox2/resolve/main/concept_images/sm.jpg)
![voxel-ish 4](https://huggingface.co/plasmo/vox2/resolve/main/concept_images/theron.jpg)
![voxel-ish 4](https://huggingface.co/plasmo/vox2/resolve/main/concept_images/watson.jpg)
![voxel-ish 4](https://huggingface.co/plasmo/vox2/resolve/main/concept_images/watson2.jpg)
![voxel-ish 4](https://huggingface.co/plasmo/vox2/resolve/main/concept_images/jc.jpg)
![voxel-ish 4](https://huggingface.co/plasmo/vox2/resolve/main/concept_images/obama.jpg)
![voxel-ish 4](https://huggingface.co/plasmo/vox2/resolve/main/concept_images/musk.jpg)
![voxel-ish 4](https://huggingface.co/plasmo/vox2/resolve/main/concept_images/monroe.jpg)
| [
-0.7796130180358887,
-0.6597484946250916,
0.5439100861549377,
0.4722641110420227,
-0.5246054530143738,
0.08282887935638428,
0.1994730830192566,
-0.5572928190231323,
0.5604184865951538,
0.547919750213623,
-0.8765310645103455,
-0.5784683227539062,
-0.6064717769622803,
0.11472176015377045,
-0.28361138701438904,
0.8379037380218506,
0.2429654598236084,
-0.25895965099334717,
-0.49629512429237366,
-0.20449993014335632,
-0.2564004957675934,
-0.04466401785612106,
-0.5695350170135498,
-0.5386885404586792,
0.7165514826774597,
0.5380736589431763,
0.5943537950515747,
0.3912338316440582,
0.193178191781044,
0.4038471579551697,
-0.28382837772369385,
-0.13573803007602692,
-0.49657779932022095,
0.24093680083751678,
0.2384871244430542,
0.08531466871500015,
-0.7330135107040405,
0.07130500674247742,
0.7448482513427734,
0.09549874067306519,
-0.28809818625450134,
-0.09490324556827545,
-0.1302618533372879,
1.0022207498550415,
-0.5009543299674988,
0.08399848639965057,
-0.38788875937461853,
-0.02716265246272087,
-0.23787176609039307,
0.1316186934709549,
-0.18418723344802856,
-0.3331792950630188,
0.17466022074222565,
-0.9244486093521118,
-0.023305024951696396,
-0.06332717835903168,
1.1587834358215332,
-0.05424065887928009,
-0.46115583181381226,
-0.10308630019426346,
-0.019304918125271797,
0.8768572807312012,
-0.4986853301525116,
0.2230493426322937,
0.20228904485702515,
0.5849030017852783,
-0.0777256116271019,
-0.6653515696525574,
-0.4294608235359192,
0.06757685542106628,
0.18328896164894104,
0.5945789217948914,
-0.6141558885574341,
0.10789710283279419,
0.5101092457771301,
0.5093407034873962,
-0.7861617207527161,
-0.13684266805648804,
-0.7396250367164612,
-0.2641507089138031,
0.6832650303840637,
-0.36843204498291016,
0.5161738395690918,
-0.36221998929977417,
-0.7970634698867798,
-0.24629004299640656,
-0.8480943441390991,
-0.1446811556816101,
0.4705006182193756,
-0.19039399921894073,
-0.9462202787399292,
0.4004664421081543,
-0.0721343606710434,
0.7035025954246521,
0.3059086799621582,
-0.14028827846050262,
0.5432953238487244,
-0.4310488700866699,
-0.12400609999895096,
-0.1152569130063057,
0.734469473361969,
0.2742166221141815,
0.0948171615600586,
0.3173690140247345,
-0.04552692547440529,
-0.29558390378952026,
0.6184164881706238,
-1.2852107286453247,
-0.1390482634305954,
0.2184446156024933,
-0.684462308883667,
-0.4310746490955353,
0.08102890104055405,
-0.8909071683883667,
-0.07847536355257034,
0.017554907128214836,
0.3584391176700592,
-0.7391960024833679,
-0.7066802978515625,
-0.09001527726650238,
-0.33534690737724304,
0.4228443205356598,
0.39038628339767456,
-0.6483623385429382,
0.11019022017717361,
0.4149475693702698,
0.8385728597640991,
0.27017706632614136,
0.05740464851260185,
-0.02307506836950779,
-0.03188704699277878,
-0.5231873989105225,
1.1102235317230225,
-0.5090764164924622,
-0.8123334050178528,
0.2083076536655426,
0.20585395395755768,
0.46218442916870117,
-0.5389034748077393,
0.569355845451355,
-0.04752238467335701,
0.3039550185203552,
-0.7336990833282471,
-0.5497694611549377,
-0.642143726348877,
0.4154360890388489,
-0.5317774415016174,
0.7544654011726379,
0.7682601809501648,
-0.7332614660263062,
0.07999283820390701,
-0.6417989730834961,
0.13766513764858246,
0.17204847931861877,
-0.35965922474861145,
-0.9606530666351318,
0.06656533479690552,
-0.1900617778301239,
0.3541989326477051,
-0.009728156961500645,
-0.7251529097557068,
-0.6058464050292969,
-0.34190669655799866,
0.11938247084617615,
0.21385344862937927,
1.1891505718231201,
0.4314328730106354,
-0.23669970035552979,
-0.043533358722925186,
-0.7222753763198853,
0.21104636788368225,
0.229384183883667,
-0.05998757854104042,
0.04418488219380379,
-0.39155951142311096,
0.05339083820581436,
0.3817620575428009,
0.16783654689788818,
-0.6145141124725342,
0.37483465671539307,
-0.22191451489925385,
0.09477949142456055,
0.8240278363227844,
0.2495039403438568,
0.4025622308254242,
-0.7107435464859009,
0.8762587308883667,
0.3140845000743866,
0.41543954610824585,
-0.2967416048049927,
-1.095444679260254,
-0.7929356694221497,
-0.6514738202095032,
-0.12210418283939362,
0.3126688003540039,
-1.1115634441375732,
0.43210259079933167,
0.013685856945812702,
-0.9293431639671326,
-0.17903725802898407,
-0.14067386090755463,
0.8434314131736755,
0.2955129146575928,
0.24794937670230865,
-0.549716055393219,
-0.4809061586856842,
-1.3851932287216187,
-0.12178447842597961,
-0.5702013969421387,
-0.04341048747301102,
0.1602763682603836,
0.326581209897995,
-0.15692247450351715,
0.46030598878860474,
-0.20701466500759125,
-0.11350112408399582,
-0.07431189715862274,
0.45011991262435913,
0.32043400406837463,
0.4444553852081299,
1.0798627138137817,
-0.6936517357826233,
-0.5063773989677429,
-0.011951877735555172,
-0.543852686882019,
-0.2039368450641632,
0.04749218374490738,
-0.07581903785467148,
0.1092381477355957,
0.3186446726322174,
-0.5604057908058167,
0.4630998969078064,
0.6576664447784424,
-0.7091472148895264,
0.575506865978241,
-0.323275089263916,
0.3119201064109802,
-1.2866077423095703,
-0.05400211364030838,
0.1951277256011963,
-0.5356435179710388,
-0.6054033041000366,
0.13716809451580048,
0.2786194384098053,
0.12953288853168488,
-0.8575190305709839,
0.5670894980430603,
-0.6144978404045105,
0.00905611552298069,
-0.16834136843681335,
-0.20160511136054993,
0.14187107980251312,
0.3041156232357025,
-0.24419014155864716,
0.48367422819137573,
0.8936386704444885,
-0.44710907340049744,
0.47816288471221924,
0.4691586494445801,
-0.4939132630825043,
1.2370764017105103,
-0.7499511241912842,
0.42839306592941284,
-0.2927488088607788,
0.5102624893188477,
-1.049095630645752,
-0.35937970876693726,
0.5788170099258423,
-0.5927863717079163,
0.5381162762641907,
-0.3508477807044983,
-0.31660977005958557,
-0.5300919413566589,
-0.532235860824585,
0.6887439489364624,
1.175569772720337,
-0.4677670896053314,
0.5639978647232056,
0.4838184118270874,
-0.054489199072122574,
-0.6370700001716614,
-0.6183567047119141,
-0.003762111533433199,
-0.3981723487377167,
-0.5870499610900879,
0.935627818107605,
-0.3222426474094391,
-0.08729392290115356,
0.14400438964366913,
-0.0395774245262146,
-0.10727177560329437,
-0.32257911562919617,
0.5893451571464539,
0.28035950660705566,
0.01807192526757717,
-0.4462292790412903,
0.039597682654857635,
-0.23097264766693115,
-0.07846006006002426,
0.05769972875714302,
0.10745348036289215,
-0.43296748399734497,
-0.3129397928714752,
-0.5152156949043274,
0.4270813763141632,
0.696394681930542,
0.45900607109069824,
0.2796647250652313,
0.875739574432373,
-0.4109920561313629,
-0.047423847019672394,
-0.7718093991279602,
-0.17111675441265106,
-0.545284628868103,
0.093138687312603,
-0.4125630557537079,
-0.8608115315437317,
0.521554172039032,
0.15650323033332825,
0.29242241382598877,
0.4599665105342865,
0.8664005398750305,
-0.46458908915519714,
1.2085011005401611,
0.468761682510376,
0.16830091178417206,
0.694092333316803,
-0.5170630216598511,
0.07590826600790024,
-0.6846923828125,
-0.5676268339157104,
-0.27729830145835876,
-0.6347654461860657,
-0.8267479538917542,
-0.6900871992111206,
0.7494829893112183,
-0.020089952275156975,
-0.25427427887916565,
0.6055896282196045,
-0.6881274580955505,
0.5869637131690979,
0.32362496852874756,
0.15856698155403137,
-0.28071993589401245,
0.14643354713916779,
-0.01172806229442358,
0.12352606654167175,
-0.466409295797348,
0.10488339513540268,
0.7499871850013733,
0.3616469204425812,
0.5781522393226624,
0.24584759771823883,
0.7641286849975586,
0.11097255349159241,
0.1900060474872589,
-0.7344269752502441,
0.7409982681274414,
-0.03044041618704796,
-0.6816982626914978,
0.2167087346315384,
-0.27458328008651733,
-1.1689831018447876,
0.006748962681740522,
-0.3019208312034607,
-0.43636202812194824,
0.4049886167049408,
0.1997908502817154,
-0.22321873903274536,
0.15971532464027405,
-0.6194595098495483,
0.6549819707870483,
0.257152795791626,
-0.2593446969985962,
-0.4675866663455963,
-0.8165879249572754,
0.4358145594596863,
0.11643945425748825,
0.06478991359472275,
-0.39745181798934937,
-0.0476105771958828,
0.5878641605377197,
-0.5019634962081909,
0.568397581577301,
-0.32843834161758423,
0.24153411388397217,
0.6850112676620483,
-0.1455845683813095,
0.3341391980648041,
0.07930821925401688,
0.1443301886320114,
0.35329970717430115,
0.3683387041091919,
-0.8804482221603394,
-0.48826855421066284,
0.8341952562332153,
-0.8438892364501953,
-0.3514940142631531,
-0.6615809202194214,
-0.16605272889137268,
0.30423447489738464,
-0.091575987637043,
0.884303867816925,
0.5290987491607666,
-0.3998769223690033,
0.5620696544647217,
0.627398669719696,
-0.3320811688899994,
0.37994831800460815,
0.2900102734565735,
-0.33036524057388306,
-0.5559689402580261,
0.8276729583740234,
0.20798970758914948,
0.16746927797794342,
0.07764367014169693,
0.32592877745628357,
-0.5830998420715332,
-0.32685986161231995,
-0.322482168674469,
0.49959754943847656,
-0.43152326345443726,
-0.46849966049194336,
-0.5225634574890137,
-0.6376310586929321,
-0.49022501707077026,
-0.4421532452106476,
-0.6074537634849548,
-0.526800811290741,
-0.1651168316602707,
0.1264239400625229,
0.5612654089927673,
0.8516395688056946,
-0.43937093019485474,
0.18781310319900513,
-0.6707395911216736,
0.46067023277282715,
0.6876740455627441,
0.12534193694591522,
-0.7242729067802429,
-0.568131148815155,
-0.17504510283470154,
-0.2111583799123764,
-0.7878080010414124,
-1.1354047060012817,
0.2966363728046417,
0.02704455517232418,
0.46105098724365234,
0.6037063598632812,
-0.2556004524230957,
0.6569734215736389,
-0.2924402058124542,
1.0160548686981201,
0.8671755194664001,
-0.6709387898445129,
0.534532368183136,
-0.8527697324752808,
0.7086208462715149,
0.3859506845474243,
0.07780777662992477,
-0.6015840768814087,
-0.3214922249317169,
-1.1332650184631348,
-0.816143810749054,
0.5881766676902771,
0.5530405044555664,
0.29898542165756226,
-0.0743178129196167,
0.3536367118358612,
0.1616227924823761,
0.09868922829627991,
-0.9133609533309937,
-0.37185683846473694,
-0.6086958646774292,
-0.019723955541849136,
0.2500811815261841,
-0.7427682280540466,
-0.18216513097286224,
-0.3191720247268677,
0.999839723110199,
0.06252321600914001,
0.6730735898017883,
0.1631062775850296,
0.4384840130805969,
-0.3295499384403229,
0.020994221791625023,
0.6225418448448181,
0.6614654660224915,
-0.5802774429321289,
0.08304506540298462,
-0.04356719180941582,
-0.467418372631073,
0.15740624070167542,
-0.18838727474212646,
-0.0654534101486206,
0.26737305521965027,
0.13056622445583344,
0.7596144080162048,
0.39006307721138,
-0.30592313408851624,
0.7843966484069824,
-0.16876542568206787,
-0.6255766153335571,
-0.8045628666877747,
0.15870369970798492,
0.14187389612197876,
0.3299690783023834,
-0.11202308535575867,
0.12893818318843842,
0.23056182265281677,
-0.5306146740913391,
0.21126209199428558,
0.4736790657043457,
-0.5408763289451599,
-0.7374354600906372,
0.38530635833740234,
0.18954595923423767,
-0.4078635275363922,
0.4943944811820984,
-0.6219860315322876,
-0.28073984384536743,
0.8287149667739868,
0.6777388453483582,
1.1000431776046753,
-0.6974682211875916,
0.5428788065910339,
0.9860535264015198,
0.055568844079971313,
0.030584895983338356,
0.7150699496269226,
0.08752628415822983,
-0.5888815522193909,
-0.18447090685367584,
-0.3006135821342468,
-0.3693816065788269,
0.3599224388599396,
-0.6843340992927551,
0.7137820720672607,
-0.6710881590843201,
-0.167929008603096,
-0.1770150363445282,
-0.07043369114398956,
-0.7812114357948303,
0.10301382839679718,
0.5029743313789368,
1.0737276077270508,
-0.7454307675361633,
0.9978541731834412,
0.7492126226425171,
-0.08971645683050156,
-0.48913848400115967,
-0.26782670617103577,
0.6439448595046997,
-0.9347656965255737,
0.1577160358428955,
0.36167240142822266,
0.20489943027496338,
0.03435644879937172,
-0.6787102222442627,
-0.781240701675415,
1.2086641788482666,
0.309234082698822,
-0.4923541247844696,
0.26145246624946594,
-0.34546226263046265,
0.22475431859493256,
-0.4895949065685272,
0.4387648403644562,
0.33247220516204834,
0.6757125854492188,
0.5544141530990601,
-0.3367423415184021,
-0.07656283676624298,
-0.5100557208061218,
0.21320174634456635,
0.0881282240152359,
-0.9035861492156982,
0.7185191512107849,
-0.16716472804546356,
-0.29403066635131836,
0.47981271147727966,
0.69717937707901,
0.6697429418563843,
0.2923699617385864,
1.231608271598816,
0.9597593545913696,
0.2900959253311157,
-0.17094020545482635,
1.2721059322357178,
-0.053775399923324585,
0.1926262527704239,
0.5457361936569214,
0.39659884572029114,
0.4184850752353668,
0.4510367512702942,
-0.279458224773407,
0.8288282752037048,
0.9505230188369751,
0.0715373083949089,
0.5984457731246948,
0.28559303283691406,
-0.5263457894325256,
-0.24311219155788422,
-0.0642448365688324,
-0.7156497836112976,
0.6630111932754517,
0.3767949044704437,
0.02664220705628395,
-0.3483704626560211,
-0.22262369096279144,
0.21197335422039032,
-0.23938654363155365,
-0.07568293064832687,
0.7182733416557312,
0.29967135190963745,
-0.47984233498573303,
0.7188703417778015,
-0.3070935606956482,
0.464323490858078,
-0.7928794026374817,
-0.2451937198638916,
-0.16074922680854797,
-0.42727896571159363,
-0.09290587157011032,
-0.762394905090332,
0.198922798037529,
-0.2052655667066574,
0.048149921000003815,
-0.6303882002830505,
0.8592739105224609,
-0.42255377769470215,
-0.7978749871253967,
0.26659727096557617,
0.4055851697921753,
0.4309062063694,
0.10041504353284836,
-1.443640947341919,
0.20407560467720032,
0.05334160476922989,
-0.43473049998283386,
0.2993801534175873,
0.181884303689003,
0.5048015713691711,
0.35326051712036133,
0.3213740587234497,
0.17932981252670288,
-0.20782822370529175,
0.1156645119190216,
0.9185988306999207,
-0.4007880389690399,
-0.5068137049674988,
-0.6204922795295715,
0.8017055988311768,
-0.4696304202079773,
-0.3301558494567871,
0.620183527469635,
0.39663222432136536,
0.44362273812294006,
-0.08384265750646591,
0.698734700679779,
-0.23039047420024872,
0.5141633749008179,
-0.5677592158317566,
0.6562222242355347,
-1.2178164720535278,
-0.11423251032829285,
-0.38606396317481995,
-1.2043746709823608,
0.06689184904098511,
0.7315828204154968,
0.17733238637447357,
0.2182079404592514,
0.5818246006965637,
0.8355761170387268,
-0.18142704665660858,
-0.10928734391927719,
0.5142155289649963,
0.43510738015174866,
0.3857387900352478,
0.5175926089286804,
1.1839746236801147,
-0.4784218370914459,
0.17997361719608307,
-0.4643322825431824,
-0.39609548449516296,
-0.5585840344429016,
-1.1211270093917847,
-0.8402584195137024,
-1.115447759628296,
-0.6773884892463684,
-0.7281175255775452,
-0.029138389974832535,
0.8076945543289185,
1.3688597679138184,
-0.5864759683609009,
-0.08672644942998886,
-0.028928272426128387,
0.3704647123813629,
-0.08662600815296173,
-0.20601117610931396,
-0.15113161504268646,
0.03128476440906525,
-0.9442673921585083,
0.4166942834854126,
0.9412829279899597,
0.4067479372024536,
-0.05217960476875305,
-0.1838226467370987,
0.02468062937259674,
0.1578618288040161,
0.5142021179199219,
0.5195245146751404,
-0.7354061007499695,
-0.7192640900611877,
-0.3523653745651245,
0.19691678881645203,
0.1880606710910797,
0.7212464809417725,
-0.6723729968070984,
0.8592597842216492,
0.9698193073272705,
0.16639934480190277,
0.7403600811958313,
0.005692837759852409,
0.2931171953678131,
-0.8882577419281006,
0.5564507246017456,
0.2695361375808716,
0.4317661225795746,
0.21766433119773865,
-0.12104903161525726,
0.5491012334823608,
0.34219029545783997,
-0.9362984895706177,
-0.7057939171791077,
0.5894873738288879,
-1.8369576930999756,
-0.3405824303627014,
1.203548789024353,
-0.030275702476501465,
-0.4244740605354309,
-0.06184595823287964,
-0.1904020756483078,
0.17342449724674225,
-0.3275061845779419,
0.9135265350341797,
0.726295530796051,
-0.1355043202638626,
-0.5166841149330139,
-0.4357929825782776,
0.6725218296051025,
0.36027538776397705,
-0.8099685311317444,
-0.5499951243400574,
0.49471721053123474,
0.14793084561824799,
0.3112066984176636,
1.0203607082366943,
-0.5394725799560547,
0.36868947744369507,
0.06471289694309235,
0.16638338565826416,
0.04603805020451546,
-0.07201053947210312,
-0.029454704374074936,
-0.2744992971420288,
-0.23756922781467438,
-0.38155749440193176
] |
Helsinki-NLP/opus-mt-en-zh | Helsinki-NLP | "2023-08-16T11:31:42Z" | 97,864 | 222 | transformers | [
"transformers",
"pytorch",
"tf",
"jax",
"rust",
"marian",
"text2text-generation",
"translation",
"en",
"zh",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | translation | "2022-03-02T23:29:04Z" | ---
language:
- en
- zh
tags:
- translation
license: apache-2.0
---
### eng-zho
* source group: English
* target group: Chinese
* OPUS readme: [eng-zho](https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/eng-zho/README.md)
* model: transformer
* source language(s): eng
* target language(s): cjy_Hans cjy_Hant cmn cmn_Hans cmn_Hant gan lzh lzh_Hans nan wuu yue yue_Hans yue_Hant
* model: transformer
* pre-processing: normalization + SentencePiece (spm32k,spm32k)
* a sentence initial language token is required in the form of `>>id<<` (id = valid target language ID)
* download original weights: [opus-2020-07-17.zip](https://object.pouta.csc.fi/Tatoeba-MT-models/eng-zho/opus-2020-07-17.zip)
* test set translations: [opus-2020-07-17.test.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/eng-zho/opus-2020-07-17.test.txt)
* test set scores: [opus-2020-07-17.eval.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/eng-zho/opus-2020-07-17.eval.txt)
## Benchmarks
| testset | BLEU | chr-F |
|-----------------------|-------|-------|
| Tatoeba-test.eng.zho | 31.4 | 0.268 |
### System Info:
- hf_name: eng-zho
- source_languages: eng
- target_languages: zho
- opus_readme_url: https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/eng-zho/README.md
- original_repo: Tatoeba-Challenge
- tags: ['translation']
- languages: ['en', 'zh']
- src_constituents: {'eng'}
- tgt_constituents: {'cmn_Hans', 'nan', 'nan_Hani', 'gan', 'yue', 'cmn_Kana', 'yue_Hani', 'wuu_Bopo', 'cmn_Latn', 'yue_Hira', 'cmn_Hani', 'cjy_Hans', 'cmn', 'lzh_Hang', 'lzh_Hira', 'cmn_Hant', 'lzh_Bopo', 'zho', 'zho_Hans', 'zho_Hant', 'lzh_Hani', 'yue_Hang', 'wuu', 'yue_Kana', 'wuu_Latn', 'yue_Bopo', 'cjy_Hant', 'yue_Hans', 'lzh', 'cmn_Hira', 'lzh_Yiii', 'lzh_Hans', 'cmn_Bopo', 'cmn_Hang', 'hak_Hani', 'cmn_Yiii', 'yue_Hant', 'lzh_Kana', 'wuu_Hani'}
- src_multilingual: False
- tgt_multilingual: False
- prepro: normalization + SentencePiece (spm32k,spm32k)
- url_model: https://object.pouta.csc.fi/Tatoeba-MT-models/eng-zho/opus-2020-07-17.zip
- url_test_set: https://object.pouta.csc.fi/Tatoeba-MT-models/eng-zho/opus-2020-07-17.test.txt
- src_alpha3: eng
- tgt_alpha3: zho
- short_pair: en-zh
- chrF2_score: 0.268
- bleu: 31.4
- brevity_penalty: 0.8959999999999999
- ref_len: 110468.0
- src_name: English
- tgt_name: Chinese
- train_date: 2020-07-17
- src_alpha2: en
- tgt_alpha2: zh
- prefer_old: False
- long_pair: eng-zho
- helsinki_git_sha: 480fcbe0ee1bf4774bcbe6226ad9f58e63f6c535
- transformers_git_sha: 2207e5d8cb224e954a7cba69fa4ac2309e9ff30b
- port_machine: brutasse
- port_time: 2020-08-21-14:41
| [
-0.42485782504081726,
-0.5341499447822571,
0.35593363642692566,
0.4340021312236786,
-0.5899856090545654,
-0.26437678933143616,
-0.3334691524505615,
-0.45089584589004517,
0.2998808026313782,
0.31369009613990784,
-0.6898013949394226,
-0.8825055956840515,
-0.4506184756755829,
0.40826234221458435,
0.13203662633895874,
0.9893646240234375,
-0.04833805933594704,
0.08432206511497498,
0.5344864130020142,
-0.38195687532424927,
-0.3656580150127411,
-0.29253914952278137,
-0.5305202603340149,
-0.2707487642765045,
0.518660843372345,
0.37958675622940063,
0.654257595539093,
0.6624300479888916,
0.5771356821060181,
0.31728997826576233,
-0.3941260278224945,
0.22699326276779175,
-0.11300542205572128,
-0.21756748855113983,
0.040499597787857056,
-0.510716438293457,
-0.6551229357719421,
-0.2513207495212555,
0.8817287683486938,
0.5723600387573242,
0.02702905423939228,
0.3605009913444519,
-0.14336799085140228,
0.7361456155776978,
-0.2058892697095871,
0.1542520374059677,
-0.5802408456802368,
0.044376298785209656,
-0.4883463680744171,
-0.25384607911109924,
-0.5364766716957092,
-0.2817380130290985,
0.045656874775886536,
-0.6952325105667114,
0.12326999753713608,
0.12779724597930908,
1.846368670463562,
-0.03986126184463501,
-0.37441709637641907,
-0.24464263021945953,
-0.3747570812702179,
0.9631479978561401,
-1.0804853439331055,
0.31992024183273315,
0.4081825017929077,
-0.020254964008927345,
-0.04943864792585373,
-0.4531131386756897,
-0.5180981159210205,
0.03181403875350952,
-0.31458353996276855,
0.38750967383384705,
-0.09376447647809982,
-0.0959077924489975,
0.27033382654190063,
0.7186957001686096,
-0.7276544570922852,
0.048083238303661346,
-0.43468913435935974,
-0.2451055645942688,
0.6881794333457947,
0.12211208790540695,
0.617459237575531,
-0.6272960305213928,
-0.49756985902786255,
-0.4135887920856476,
-0.46416008472442627,
0.31699925661087036,
0.49484145641326904,
0.478714257478714,
-0.4539802074432373,
0.5907618999481201,
-0.20284108817577362,
0.6566044688224792,
-0.03819601982831955,
-0.1199442595243454,
0.868206262588501,
-0.7721995711326599,
-0.2290986180305481,
-0.18212005496025085,
1.2500965595245361,
0.40695494413375854,
-0.05057375133037567,
0.09962748736143112,
-0.3176066279411316,
-0.19975420832633972,
-0.14195671677589417,
-0.8933829069137573,
0.03370463475584984,
0.38583335280418396,
-0.5307506322860718,
-0.22409403324127197,
0.20343977212905884,
-0.9054621458053589,
0.1174665242433548,
0.1420639157295227,
0.5505460500717163,
-0.7899985909461975,
-0.3465116620063782,
0.29070809483528137,
-0.10512225329875946,
0.3746172785758972,
-0.041252389550209045,
-0.7455512285232544,
-0.0029632681980729103,
0.3556499183177948,
1.0491015911102295,
0.017524726688861847,
-0.5150064826011658,
-0.28856056928634644,
0.09683584421873093,
-0.3319477438926697,
0.6903205513954163,
-0.17300750315189362,
-0.41261616349220276,
-0.003737830091267824,
0.48887205123901367,
-0.16813921928405762,
-0.2796062231063843,
1.021344542503357,
-0.3412051200866699,
0.4763450026512146,
-0.49769899249076843,
-0.49460843205451965,
-0.4777093231678009,
0.33699360489845276,
-0.8668439388275146,
1.2159814834594727,
0.29874518513679504,
-0.9519933462142944,
0.40502429008483887,
-0.7540791630744934,
-0.41231608390808105,
-0.018536852672696114,
0.14515644311904907,
-0.7658477425575256,
-0.0921017974615097,
0.3574265241622925,
0.38738882541656494,
-0.4644102454185486,
0.3620395064353943,
0.07198016345500946,
-0.3969031274318695,
-0.14964690804481506,
-0.18362043797969818,
1.5467928647994995,
0.23134581744670868,
-0.4720613956451416,
0.2286299467086792,
-0.9845565557479858,
0.11471051722764969,
0.40470579266548157,
-0.45485854148864746,
-0.31895479559898376,
-0.13014164566993713,
0.2168697863817215,
0.18380171060562134,
0.3053637146949768,
-0.6120237708091736,
0.3220246136188507,
-0.732528030872345,
0.3290688097476959,
0.8226868510246277,
0.1137225478887558,
0.19617687165737152,
-0.4969346523284912,
0.5281416773796082,
0.2615591287612915,
0.16069848835468292,
-0.03710263594985008,
-0.6369342803955078,
-0.7749014496803284,
-0.19776445627212524,
0.4712989926338196,
0.7928826212882996,
-0.9909919500350952,
0.9204006791114807,
-0.6310321092605591,
-0.93943190574646,
-0.759383499622345,
-0.09393933415412903,
0.5414069890975952,
0.30582690238952637,
0.5709545612335205,
-0.12650102376937866,
-0.5783042311668396,
-1.0955915451049805,
-0.18230871856212616,
-0.28152790665626526,
-0.0391523651778698,
0.19406746327877045,
0.7347059845924377,
-0.13019520044326782,
0.5233147144317627,
-0.49394968152046204,
-0.624276876449585,
-0.2799960672855377,
0.10740318894386292,
0.5450253486633301,
0.5757714509963989,
0.8830543756484985,
-0.8803240060806274,
-0.7465801239013672,
0.24215784668922424,
-0.7705957889556885,
-0.09896664321422577,
-0.15212617814540863,
-0.19132079184055328,
0.3687005639076233,
0.0579923577606678,
-0.47919464111328125,
0.20815818011760712,
0.6623671650886536,
-0.6920364499092102,
0.5979806780815125,
-0.31942009925842285,
0.3439379930496216,
-1.505116581916809,
0.1579119712114334,
-0.12411919236183167,
0.10815708339214325,
-0.5502339601516724,
0.07046239078044891,
0.21880334615707397,
0.17763584852218628,
-0.6408950090408325,
0.6917529702186584,
-0.7775264382362366,
0.08017197996377945,
0.3342379033565521,
0.16111145913600922,
-0.029680045321583748,
0.9909337759017944,
-0.12076572328805923,
1.0486825704574585,
0.6750460267066956,
-0.49501606822013855,
0.17854690551757812,
0.49825289845466614,
-0.5820214152336121,
0.19787226617336273,
-0.7162165641784668,
-0.18424716591835022,
0.25640782713890076,
-0.0643627718091011,
-0.8748143315315247,
-0.15868881344795227,
0.3511432111263275,
-0.7277528643608093,
0.14670704305171967,
0.015205714851617813,
-0.6811065673828125,
-0.3300035297870636,
-0.547782301902771,
0.48251092433929443,
0.47973158955574036,
-0.28087761998176575,
0.7400626540184021,
0.08762511610984802,
0.06170118600130081,
-0.7123070955276489,
-0.9741498231887817,
-0.0645032674074173,
-0.1317291259765625,
-0.7324154376983643,
0.4638853669166565,
-0.22959992289543152,
-0.03329876810312271,
0.16866935789585114,
0.0693962574005127,
-0.1336452066898346,
0.10162049531936646,
-0.07038237899541855,
0.4166208505630493,
-0.3399312198162079,
0.02016710489988327,
-0.022506965324282646,
-0.048818204551935196,
-0.19020719826221466,
-0.05439206212759018,
0.8928012847900391,
-0.3805100917816162,
-0.1645703762769699,
-0.7403336763381958,
0.15840916335582733,
0.5476061701774597,
-0.4633229672908783,
1.1120285987854004,
0.7025529742240906,
-0.28159067034721375,
0.09845852106809616,
-0.4219568073749542,
0.1338912844657898,
-0.4528581500053406,
0.3704116940498352,
-0.586610734462738,
-0.6810404658317566,
1.1227624416351318,
0.3827753961086273,
0.3050816059112549,
1.0390757322311401,
0.6332191824913025,
0.20566001534461975,
0.7474973797798157,
0.3574419915676117,
0.016415312886238098,
0.5736855864524841,
-0.6151039600372314,
-0.06648927927017212,
-0.9293621778488159,
-0.16015702486038208,
-0.7039786577224731,
-0.1039864718914032,
-0.8946611881256104,
-0.28256720304489136,
0.27558842301368713,
-0.06114811822772026,
-0.0781882107257843,
0.7357383966445923,
-0.5099837183952332,
0.2979230284690857,
0.6762865781784058,
0.20823605358600616,
0.34826627373695374,
-0.13528341054916382,
-0.39014288783073425,
-0.01986945979297161,
-0.5380355715751648,
-0.5426405072212219,
1.1985888481140137,
0.22517408430576324,
0.05368683859705925,
0.28768661618232727,
0.6756224632263184,
0.08241452276706696,
0.17310316860675812,
-0.8133487701416016,
0.6964907646179199,
-0.21756480634212494,
-0.9132453203201294,
-0.5520800948143005,
-0.40487053990364075,
-0.9895705580711365,
0.4380607306957245,
-0.13071179389953613,
-0.6935579776763916,
0.20559708774089813,
-0.20928756892681122,
-0.3184741139411926,
0.7313362956047058,
-0.6626612544059753,
0.9473127126693726,
-0.018577169626951218,
-0.22828936576843262,
0.14427724480628967,
-0.7510216236114502,
0.3655712306499481,
-0.005670640617609024,
0.23554928600788116,
-0.22876526415348053,
-0.08654598146677017,
0.9494641423225403,
-0.4738253355026245,
0.5618560910224915,
-0.06223396584391594,
-0.3034732937812805,
0.3337634205818176,
0.04794466122984886,
0.5502564907073975,
-0.1765109747648239,
-0.4298417568206787,
0.3925855755805969,
0.06299743801355362,
-0.6124923825263977,
-0.28637954592704773,
0.48127177357673645,
-0.8263961672782898,
-0.6201127767562866,
-0.5972695350646973,
-0.6921329498291016,
0.07557057589292526,
0.6188678741455078,
0.6777326464653015,
0.5635928511619568,
0.06780318170785904,
0.6272501349449158,
0.6155384182929993,
-0.41304707527160645,
0.5759321451187134,
0.5303331017494202,
-0.023924630135297775,
-0.6641531586647034,
0.8230080604553223,
0.44565266370773315,
0.2833491265773773,
0.5101042985916138,
0.1637696921825409,
-0.12534287571907043,
-0.8540148138999939,
-0.5969290137290955,
0.41125738620758057,
-0.5337396860122681,
-0.3262009620666504,
-0.5346376895904541,
-0.18505026400089264,
-0.392911821603775,
0.11186593770980835,
-0.3106147348880768,
-0.2041149139404297,
-0.16745048761367798,
-0.28811225295066833,
0.3677310645580292,
0.348586767911911,
-0.050708018243312836,
0.3062798082828522,
-1.087204098701477,
0.3496355712413788,
-0.07862585037946701,
0.43679580092430115,
-0.09710535407066345,
-0.7367490530014038,
-0.4362430274486542,
0.06972307711839676,
-0.216212660074234,
-1.1999716758728027,
0.6402092576026917,
0.027498789131641388,
0.4822002649307251,
0.28803762793540955,
0.2909964919090271,
0.6556307673454285,
-0.47172218561172485,
1.1869741678237915,
-0.06296122819185257,
-1.0530598163604736,
0.7534221410751343,
-0.6007184982299805,
0.3815874755382538,
0.6247734427452087,
0.3128296434879303,
-0.5526373982429504,
-0.6469574570655823,
-0.7817803621292114,
-1.0042110681533813,
1.0343854427337646,
0.5432859659194946,
-0.01148508582264185,
-0.08043577522039413,
0.09255050122737885,
-0.05132482200860977,
-0.1840355396270752,
-1.266914963722229,
-0.6315697431564331,
0.09123276174068451,
-0.36288514733314514,
0.07089899480342865,
-0.500825047492981,
-0.12299027293920517,
-0.29317548871040344,
1.183756947517395,
0.1989811807870865,
0.1297549307346344,
0.6497734189033508,
-0.1310303509235382,
-0.09861849993467331,
0.3612080216407776,
0.8375517129898071,
0.5865329504013062,
-0.4061746299266815,
-0.2408498227596283,
0.2959378957748413,
-0.6279473900794983,
0.05637834593653679,
-0.029798762872815132,
-0.6359608173370361,
0.3789610266685486,
0.6427305340766907,
0.9762890934944153,
0.16607066988945007,
-0.5972413420677185,
0.5307391881942749,
0.032008543610572815,
-0.5775811076164246,
-0.40632882714271545,
-0.22021746635437012,
0.12205668538808823,
0.11911066621541977,
0.4327640235424042,
-0.15749618411064148,
0.03315972536802292,
-0.5491847395896912,
0.03961429372429848,
0.11306647956371307,
-0.2867785692214966,
-0.3424767255783081,
0.6554188132286072,
0.06669968366622925,
-0.34553882479667664,
0.5053895115852356,
-0.3967840075492859,
-0.5939448475837708,
0.8576990365982056,
0.31067901849746704,
1.0602518320083618,
-0.3149077296257019,
-0.04636814072728157,
0.8681927919387817,
0.584486186504364,
-0.12555286288261414,
0.5101280808448792,
0.19028258323669434,
-0.804693341255188,
-0.17894108593463898,
-0.6365553140640259,
0.023211270570755005,
0.14920417964458466,
-0.930456817150116,
0.35064050555229187,
-0.14481787383556366,
-0.2311253547668457,
-0.1306525468826294,
0.38809075951576233,
-0.5013979077339172,
0.13472744822502136,
-0.2930546700954437,
0.979816198348999,
-0.9820221662521362,
0.9945037961006165,
0.6663188934326172,
-0.9153190851211548,
-1.198142409324646,
0.06499695032835007,
-0.37415507435798645,
-0.6240025758743286,
0.5271499156951904,
0.07829790562391281,
0.05200021713972092,
-0.01823532208800316,
-0.3493504524230957,
-0.7762772440910339,
1.3522346019744873,
0.2615184783935547,
-0.5198127031326294,
-0.11014772206544876,
-0.16159246861934662,
0.6302562952041626,
0.0761292353272438,
0.16700325906276703,
0.4316236972808838,
0.8251352906227112,
-0.17969030141830444,
-1.1650969982147217,
0.2569870054721832,
-0.6457037329673767,
0.015337744727730751,
0.24810628592967987,
-1.0760210752487183,
1.1321874856948853,
-0.004815001506358385,
-0.35240671038627625,
0.09948921948671341,
0.7750690579414368,
0.4766121804714203,
0.1210416778922081,
0.5932812094688416,
0.7576034069061279,
0.6453640460968018,
-0.4487110674381256,
1.0916523933410645,
-0.35908105969429016,
0.6533306241035461,
0.9594500064849854,
0.11648636311292648,
0.8333471417427063,
0.4930848479270935,
-0.36380600929260254,
0.6928477883338928,
0.8209647536277771,
-0.35025209188461304,
0.43723273277282715,
-0.12199001759290695,
-0.007704063784331083,
-0.25215446949005127,
-0.13858379423618317,
-0.6407161951065063,
0.4023713767528534,
0.07164692133665085,
-0.27836060523986816,
0.007467220537364483,
-0.21358464658260345,
0.3577941060066223,
0.21453118324279785,
-0.2700769901275635,
0.6249980926513672,
-0.13924425840377808,
-0.6776657700538635,
0.7787240147590637,
0.03060123324394226,
0.8827207088470459,
-0.776358962059021,
0.056445714086294174,
-0.2661532163619995,
0.149465873837471,
-0.1349285989999771,
-0.8725979328155518,
0.30451661348342896,
-0.0033721039071679115,
-0.2483430653810501,
-0.12767700850963593,
0.14288945496082306,
-0.5267961621284485,
-0.8344318866729736,
0.5666390061378479,
0.4833625853061676,
0.18574029207229614,
0.17570044100284576,
-0.7340883612632751,
-0.04898644611239433,
0.32801705598831177,
-0.7621667981147766,
-0.005080510396510363,
0.8381751179695129,
0.022999241948127747,
0.746806263923645,
0.5811065435409546,
0.2770448923110962,
0.08361941576004028,
0.0893155038356781,
0.7040473818778992,
-0.9170754551887512,
-0.5857974290847778,
-0.9140611886978149,
0.573153555393219,
-0.07870008051395416,
-0.6228317618370056,
0.9437398314476013,
0.7774724364280701,
0.9402089715003967,
-0.2223314344882965,
0.5059472918510437,
-0.25509366393089294,
0.47349241375923157,
-0.7379235029220581,
0.8538206815719604,
-1.0826846361160278,
0.0408591628074646,
-0.28219467401504517,
-0.8132745027542114,
-0.44401583075523376,
0.44145530462265015,
-0.21956923604011536,
-0.009375547990202904,
1.037674069404602,
0.7188448309898376,
0.2677428722381592,
-0.2966143488883972,
0.16811567544937134,
0.42223381996154785,
0.3540097773075104,
0.9853283166885376,
0.32818862795829773,
-1.0998437404632568,
0.8263007998466492,
-0.5554150342941284,
0.15242277085781097,
-0.13285936415195465,
-0.8446821570396423,
-0.874120831489563,
-0.8555932641029358,
-0.1941373199224472,
-0.28898507356643677,
-0.23014235496520996,
1.0696990489959717,
0.25033771991729736,
-0.9929198026657104,
-0.2968156337738037,
0.06618946045637131,
0.23289135098457336,
-0.4961778223514557,
-0.28138548135757446,
0.885093092918396,
-0.17744646966457367,
-1.2209585905075073,
0.17034322023391724,
-0.009661457501351833,
0.16538891196250916,
0.09254791587591171,
-0.034497302025556564,
-0.7144421935081482,
-0.06185402348637581,
0.3885227143764496,
0.13521908223628998,
-1.0123729705810547,
-0.22655166685581207,
0.12102752178907394,
-0.33490118384361267,
0.37271496653556824,
0.11825039237737656,
-0.19200226664543152,
0.27317848801612854,
0.9044346213340759,
0.29517167806625366,
0.28468167781829834,
-0.017514187842607498,
0.3711787760257721,
-0.726834774017334,
0.518551230430603,
0.1720820665359497,
0.6298158764839172,
0.26715970039367676,
-0.2557556927204132,
0.9335765242576599,
0.3577406406402588,
-0.2769436836242676,
-1.1520006656646729,
-0.1731347292661667,
-1.421836495399475,
-0.24720384180545807,
1.1568999290466309,
-0.3712230324745178,
-0.4882791042327881,
0.17499768733978271,
-0.33890271186828613,
0.5813842415809631,
-0.3827974200248718,
0.6481159925460815,
1.0754388570785522,
0.4243311285972595,
0.06083878502249718,
-0.6513180732727051,
0.3634907603263855,
0.5329968929290771,
-0.8924338221549988,
-0.011150685139000416,
0.18945348262786865,
0.22518961131572723,
0.42210057377815247,
0.7134335041046143,
-0.3456781506538391,
0.24511247873306274,
-0.05483181029558182,
0.46315839886665344,
-0.2123236358165741,
-0.0026683802716434,
-0.2734493613243103,
0.07587116956710815,
-0.19119592010974884,
-0.34914276003837585
] |
facebook/sam-vit-large | facebook | "2023-07-11T15:08:45Z" | 97,549 | 15 | transformers | [
"transformers",
"pytorch",
"tf",
"sam",
"mask-generation",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"region:us"
] | null | "2023-04-19T14:17:03Z" | ---
license: apache-2.0
---
# Model Card for Segment Anything Model (SAM) - ViT Large (ViT-L) version
<p>
<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/sam-architecture.png" alt="Model architecture">
<em> Detailed architecture of Segment Anything Model (SAM).</em>
</p>
# Table of Contents
0. [TL;DR](#TL;DR)
1. [Model Details](#model-details)
2. [Usage](#usage)
3. [Citation](#citation)
# TL;DR
[Link to original repository](https://github.com/facebookresearch/segment-anything)
| <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/sam-beancans.png" alt="Snow" width="600" height="600"> | <img src="https://huggingface.co/facebook/sam-vit-huge/discussions/7" alt="Forest" width="600" height="600"> | <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/sam-car-seg.png" alt="Mountains" width="600" height="600"> |
|---------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|
The **Segment Anything Model (SAM)** produces high quality object masks from input prompts such as points or boxes, and it can be used to generate masks for all objects in an image. It has been trained on a [dataset](https://segment-anything.com/dataset/index.html) of 11 million images and 1.1 billion masks, and has strong zero-shot performance on a variety of segmentation tasks.
The abstract of the paper states:
> We introduce the Segment Anything (SA) project: a new task, model, and dataset for image segmentation. Using our efficient model in a data collection loop, we built the largest segmentation dataset to date (by far), with over 1 billion masks on 11M licensed and privacy respecting images. The model is designed and trained to be promptable, so it can transfer zero-shot to new image distributions and tasks. We evaluate its capabilities on numerous tasks and find that its zero-shot performance is impressive -- often competitive with or even superior to prior fully supervised results. We are releasing the Segment Anything Model (SAM) and corresponding dataset (SA-1B) of 1B masks and 11M images at [https://segment-anything.com](https://segment-anything.com) to foster research into foundation models for computer vision.
**Disclaimer**: Content from **this** model card has been written by the Hugging Face team, and parts of it were copy pasted from the original [SAM model card](https://github.com/facebookresearch/segment-anything).
# Model Details
The SAM model is made up of 3 modules:
- The `VisionEncoder`: a VIT based image encoder. It computes the image embeddings using attention on patches of the image. Relative Positional Embedding is used.
- The `PromptEncoder`: generates embeddings for points and bounding boxes
- The `MaskDecoder`: a two-ways transformer which performs cross attention between the image embedding and the point embeddings (->) and between the point embeddings and the image embeddings. The outputs are fed
- The `Neck`: predicts the output masks based on the contextualized masks produced by the `MaskDecoder`.
# Usage
## Prompted-Mask-Generation
```python
from PIL import Image
import requests
from transformers import SamModel, SamProcessor
model = SamModel.from_pretrained("facebook/sam-vit-large")
processor = SamProcessor.from_pretrained("facebook/sam-vit-large")
img_url = "https://huggingface.co/ybelkada/segment-anything/resolve/main/assets/car.png"
raw_image = Image.open(requests.get(img_url, stream=True).raw).convert("RGB")
input_points = [[[450, 600]]] # 2D localization of a window
```
```python
inputs = processor(raw_image, input_points=input_points, return_tensors="pt").to("cuda")
outputs = model(**inputs)
masks = processor.image_processor.post_process_masks(outputs.pred_masks.cpu(), inputs["original_sizes"].cpu(), inputs["reshaped_input_sizes"].cpu())
scores = outputs.iou_scores
```
Among other arguments to generate masks, you can pass 2D locations on the approximate position of your object of interest, a bounding box wrapping the object of interest (the format should be x, y coordinate of the top right and bottom left point of the bounding box), a segmentation mask. At this time of writing, passing a text as input is not supported by the official model according to [the official repository](https://github.com/facebookresearch/segment-anything/issues/4#issuecomment-1497626844).
For more details, refer to this notebook, which shows a walk throught of how to use the model, with a visual example!
## Automatic-Mask-Generation
The model can be used for generating segmentation masks in a "zero-shot" fashion, given an input image. The model is automatically prompt with a grid of `1024` points
which are all fed to the model.
The pipeline is made for automatic mask generation. The following snippet demonstrates how easy you can run it (on any device! Simply feed the appropriate `points_per_batch` argument)
```python
from transformers import pipeline
generator = pipeline("mask-generation", device = 0, points_per_batch = 256)
image_url = "https://huggingface.co/ybelkada/segment-anything/resolve/main/assets/car.png"
outputs = generator(image_url, points_per_batch = 256)
```
Now to display the image:
```python
import matplotlib.pyplot as plt
from PIL import Image
import numpy as np
def show_mask(mask, ax, random_color=False):
if random_color:
color = np.concatenate([np.random.random(3), np.array([0.6])], axis=0)
else:
color = np.array([30 / 255, 144 / 255, 255 / 255, 0.6])
h, w = mask.shape[-2:]
mask_image = mask.reshape(h, w, 1) * color.reshape(1, 1, -1)
ax.imshow(mask_image)
plt.imshow(np.array(raw_image))
ax = plt.gca()
for mask in outputs["masks"]:
show_mask(mask, ax=ax, random_color=True)
plt.axis("off")
plt.show()
```
# Citation
If you use this model, please use the following BibTeX entry.
```
@article{kirillov2023segany,
title={Segment Anything},
author={Kirillov, Alexander and Mintun, Eric and Ravi, Nikhila and Mao, Hanzi and Rolland, Chloe and Gustafson, Laura and Xiao, Tete and Whitehead, Spencer and Berg, Alexander C. and Lo, Wan-Yen and Doll{\'a}r, Piotr and Girshick, Ross},
journal={arXiv:2304.02643},
year={2023}
}
``` | [
-0.49720221757888794,
-0.7403401732444763,
0.520739734172821,
0.07708648592233658,
-0.45576736330986023,
-0.18476435542106628,
0.2851737141609192,
-0.5296053886413574,
0.6204255819320679,
0.46439072489738464,
-0.5771700143814087,
-0.6137572526931763,
-0.5656582713127136,
-0.2762235105037689,
-0.33859989047050476,
0.5779913067817688,
0.15930618345737457,
-0.18715786933898926,
-0.09262578934431076,
-0.06897711008787155,
-0.37996843457221985,
-0.449998676776886,
-0.7332624793052673,
-0.03340777009725571,
0.236808642745018,
0.09962091594934464,
0.6903411746025085,
1.2707557678222656,
0.5153083801269531,
0.310482382774353,
-0.18839332461357117,
0.03296062722802162,
-0.06292368471622467,
-0.10854611545801163,
-0.01844068616628647,
-0.28813594579696655,
-0.2742832899093628,
-0.007008139975368977,
0.7886351943016052,
0.4487731158733368,
0.019414201378822327,
0.26042062044143677,
-0.32996436953544617,
0.4626513719558716,
-0.508176326751709,
-0.01356489397585392,
-0.5185294151306152,
-0.1013631597161293,
-0.16883574426174164,
0.14550577104091644,
-0.18384875357151031,
-0.34304311871528625,
-0.036710113286972046,
-0.4999796152114868,
0.15072551369667053,
0.08059753477573395,
1.6014463901519775,
0.4289277195930481,
-0.14274552464485168,
0.09101585298776627,
-0.49442267417907715,
0.5793290138244629,
-0.5641040802001953,
0.3222305178642273,
0.13248758018016815,
0.2885975241661072,
0.2436247020959854,
-0.8616452813148499,
-0.477739542722702,
0.16400384902954102,
-0.19145067036151886,
0.036734722554683685,
-0.40325096249580383,
-0.1342962235212326,
0.37666448950767517,
0.2435029298067093,
-0.5277735590934753,
-0.3129312992095947,
-0.7787119746208191,
-0.2024008333683014,
0.8044286966323853,
0.1695346087217331,
0.39545518159866333,
-0.622283399105072,
-0.6689103245735168,
-0.24336859583854675,
-0.480323851108551,
0.41819897294044495,
-0.016896424815058708,
0.03819774091243744,
-0.37084177136421204,
0.618745744228363,
-0.22011899948120117,
0.8728629350662231,
0.34167206287384033,
-0.3948363959789276,
0.3664206266403198,
-0.08993218094110489,
-0.47922536730766296,
-0.016563404351472855,
0.5762747526168823,
0.5573710203170776,
-0.12152934819459915,
0.07409049570560455,
-0.08545362204313278,
0.11214035004377365,
0.20699092745780945,
-1.0673359632492065,
-0.3630715310573578,
0.26208391785621643,
-0.5808543562889099,
-0.19365578889846802,
0.3107113838195801,
-0.5798778533935547,
-0.12790167331695557,
-0.2775297164916992,
0.5992950797080994,
-0.5478400588035583,
-0.16139250993728638,
0.08015520870685577,
-0.22831076383590698,
0.621222972869873,
0.10125218331813812,
-0.49400758743286133,
-0.09099967777729034,
0.4087485373020172,
1.0147204399108887,
-0.14020100235939026,
-0.17926456034183502,
-0.2617550492286682,
0.19484682381153107,
-0.2753877639770508,
0.998732328414917,
-0.6885911226272583,
-0.2576577067375183,
-0.28356072306632996,
0.5002875924110413,
-0.3664311170578003,
-0.5066207647323608,
0.46640005707740784,
-0.34523361921310425,
-0.13720345497131348,
-0.13507424294948578,
-0.40427425503730774,
-0.5494402050971985,
0.19253641366958618,
-0.5005570650100708,
0.8694993257522583,
0.23767738044261932,
-0.517386257648468,
0.23610302805900574,
-0.7723349928855896,
-0.4252605140209198,
-0.028948981314897537,
-0.06436366587877274,
-0.7223133444786072,
0.08685670047998428,
0.38738447427749634,
0.5763434171676636,
-0.06681641936302185,
0.13969628512859344,
-0.4651359021663666,
-0.24571959674358368,
0.2601878345012665,
0.039754483848810196,
1.0210440158843994,
0.2104158252477646,
-0.4795129597187042,
0.2428419589996338,
-0.7507148385047913,
-0.015164303593337536,
0.4688350260257721,
0.1534675508737564,
-0.051194384694099426,
-0.30406901240348816,
-0.1847231239080429,
0.4034411609172821,
0.2009686827659607,
-0.6808878183364868,
-0.04612376168370247,
-0.08081012964248657,
0.6586580276489258,
0.7302267551422119,
0.46731147170066833,
0.5457388162612915,
-0.4917057752609253,
0.5237977504730225,
0.1244102492928505,
0.575850248336792,
-0.7591583728790283,
-0.627447247505188,
-0.9536134004592896,
-0.7424327731132507,
0.2050720453262329,
0.3944792151451111,
-0.5146942138671875,
0.4797016680240631,
0.026066064834594727,
-0.6952968835830688,
-0.5079216957092285,
-0.35845470428466797,
0.21561430394649506,
0.4832237958908081,
0.20346175134181976,
-0.46389085054397583,
-0.6060402393341064,
-1.0145535469055176,
0.2735707461833954,
-0.08542686700820923,
-0.06183987110853195,
0.4591834247112274,
0.5392972826957703,
-0.17344839870929718,
0.9333046674728394,
-0.9811444282531738,
-0.27458009123802185,
0.006001162342727184,
-0.4122375547885895,
0.013511483557522297,
0.7138252854347229,
0.625673770904541,
-0.7660983204841614,
-0.5010796189308167,
-0.16502666473388672,
-0.7439174056053162,
0.07729657739400864,
0.010364029556512833,
-0.41452640295028687,
0.21670567989349365,
0.391885906457901,
-0.7215346097946167,
0.6924300789833069,
0.268193781375885,
-0.44609567523002625,
0.4963392913341522,
0.20956222712993622,
-0.04185478389263153,
-1.1178611516952515,
0.39691999554634094,
0.17835254967212677,
-0.38026905059814453,
-0.6431198120117188,
0.18669475615024567,
-0.006637296173721552,
-0.40021371841430664,
-0.6725894212722778,
0.6368991136550903,
-0.23564311861991882,
-0.08147077262401581,
-0.10165958851575851,
-0.004298487212508917,
0.2799561023712158,
0.7817150354385376,
0.2028506100177765,
0.33394303917884827,
0.8158372640609741,
-0.6374267935752869,
0.26052337884902954,
0.431205153465271,
-0.48768478631973267,
0.8427098989486694,
-0.8366788625717163,
-0.02754177525639534,
-0.2455682009458542,
0.2773728370666504,
-1.0168877840042114,
-0.6302761435508728,
0.5006619095802307,
-0.4198153614997864,
0.2433747500181198,
-0.23446093499660492,
-0.11864276975393295,
-0.4146834909915924,
-0.18202932178974152,
0.3770466446876526,
0.6523452401161194,
-0.5437084436416626,
0.5846763253211975,
0.6671571135520935,
-0.04747674614191055,
-0.21488341689109802,
-0.592397153377533,
-0.31368011236190796,
-0.3369554579257965,
-0.9058133363723755,
0.5420109033584595,
0.02047341875731945,
-0.06833593547344208,
0.26951634883880615,
-0.06403332203626633,
-0.024329207837581635,
-0.23879118263721466,
0.6579229235649109,
0.627240002155304,
-0.10786846280097961,
-0.186870276927948,
-0.049656160175800323,
-0.21806825697422028,
-0.042685724794864655,
-0.20577210187911987,
0.7660525441169739,
-0.12393151968717575,
-0.49041643738746643,
-0.6357603669166565,
0.1384337693452835,
0.4600822627544403,
-0.47789040207862854,
0.4101395010948181,
0.7045744061470032,
-0.43897590041160583,
-0.0058075678534805775,
-0.7303457260131836,
-0.21216511726379395,
-0.48249751329421997,
0.3141299784183502,
-0.40824875235557556,
-0.9277256727218628,
0.7667823433876038,
0.098364919424057,
0.019699765369296074,
0.7437886595726013,
0.3813297152519226,
-0.1541854739189148,
1.0864179134368896,
0.5931270718574524,
0.13498717546463013,
0.5815698504447937,
-0.5903211236000061,
0.24692092835903168,
-0.9802279472351074,
-0.6636457443237305,
-0.32429319620132446,
-0.4674186110496521,
-0.4011845290660858,
-0.7344807982444763,
0.4711284637451172,
0.15405315160751343,
-0.5580050945281982,
0.4935876727104187,
-0.9154784083366394,
0.6209333539009094,
0.5409490466117859,
0.1900997906923294,
-0.10157658904790878,
0.23693156242370605,
-0.020562296733260155,
0.18091683089733124,
-0.66249680519104,
-0.2584703862667084,
0.7268326282501221,
0.3401300013065338,
0.47217926383018494,
-0.4155519902706146,
0.6096024513244629,
0.05058984458446503,
0.06513192504644394,
-0.5743117928504944,
0.6396241784095764,
-0.05372336134314537,
-0.9259151220321655,
-0.10493437945842743,
-0.09711124747991562,
-0.8827039003372192,
0.30353933572769165,
0.06086372956633568,
-0.956099271774292,
0.6439937353134155,
-0.020346587523818016,
-0.6448946595191956,
0.6342664957046509,
-0.7994551062583923,
0.9320136904716492,
-0.08674390614032745,
-0.16958092153072357,
0.3599345088005066,
-0.7959898114204407,
0.4859045743942261,
0.10417797416448593,
-0.07745163142681122,
-0.2583019733428955,
0.13278882205486298,
0.8496543765068054,
-0.3596549332141876,
0.8535133600234985,
-0.3815930485725403,
0.2741966247558594,
0.7453473806381226,
-0.1380322426557541,
0.4320148527622223,
-0.04668796807527542,
0.08295337855815887,
0.33374354243278503,
0.1552048921585083,
-0.5314500331878662,
-0.3715355396270752,
0.6561316251754761,
-0.7292872071266174,
-0.54703688621521,
-0.3979929983615875,
-0.3297041654586792,
0.32471346855163574,
0.17809513211250305,
0.42690813541412354,
0.33991262316703796,
0.14174212515354156,
0.14991550147533417,
0.4359443187713623,
-0.33744415640830994,
0.5793581008911133,
0.2403881847858429,
-0.4203376770019531,
-0.6168022751808167,
1.1887761354446411,
0.06997490674257278,
0.2426415979862213,
0.10110711306333542,
-0.06611604243516922,
-0.3313172161579132,
-0.05615805834531784,
-0.5348889827728271,
0.4914080798625946,
-0.6064444184303284,
-0.5864882469177246,
-0.5845203399658203,
-0.6322084665298462,
-0.3521481156349182,
-0.4466572403907776,
-0.4522644877433777,
-0.5667123198509216,
-0.2328108698129654,
-0.052042875438928604,
0.32448887825012207,
0.5081637501716614,
-0.21809399127960205,
0.5620417594909668,
-0.5275459885597229,
0.18196986615657806,
0.3567692041397095,
0.3218829035758972,
0.022730957716703415,
-0.5605764985084534,
-0.10228540003299713,
0.008483793586492538,
-0.6252747178077698,
-0.6003504991531372,
0.5051823854446411,
-0.08155499398708344,
0.4303223788738251,
0.7058861255645752,
-0.02408990077674389,
1.0350819826126099,
-0.2616487741470337,
0.8749175667762756,
0.3228095769882202,
-0.9140869975090027,
0.5152122974395752,
-0.13898532092571259,
0.24726393818855286,
0.30177733302116394,
0.3006271421909332,
-0.5195358395576477,
0.005165349692106247,
-0.9451002478599548,
-0.8497456908226013,
1.083500862121582,
0.18105308711528778,
-0.09805212914943695,
0.09833522140979767,
0.3190082907676697,
-0.1514294445514679,
0.23730577528476715,
-0.7777713537216187,
-0.4944247901439667,
-0.3587527573108673,
0.19147370755672455,
0.19130560755729675,
-0.07643270492553711,
-0.05410216748714447,
-0.5249480605125427,
0.8260071873664856,
0.15846191346645355,
0.7207964658737183,
0.36035796999931335,
-0.0557205006480217,
-0.16234765946865082,
-0.22935205698013306,
0.6670196652412415,
0.6139039993286133,
-0.3163050711154938,
0.032382138073444366,
-0.07366414368152618,
-0.1822405606508255,
0.10466542094945908,
0.23694303631782532,
-0.6169461607933044,
0.11649686843156815,
0.1102558895945549,
1.1532142162322998,
-0.12744218111038208,
-0.4012463688850403,
0.4439491629600525,
0.299126535654068,
-0.3403792977333069,
-0.3107722997665405,
0.10943524539470673,
0.08451026678085327,
0.49426162242889404,
0.46697673201560974,
0.2362365424633026,
-0.08343569934368134,
-0.40181154012680054,
0.20716306567192078,
0.5055926442146301,
-0.48089587688446045,
-0.349318265914917,
0.7379009127616882,
-0.046107321977615356,
-0.3418809771537781,
0.378595769405365,
-0.3800069987773895,
-0.7308098673820496,
0.8626047968864441,
0.5679303407669067,
0.9144755005836487,
-0.4735317528247833,
0.5639964938163757,
0.7850880026817322,
0.3353910446166992,
0.22579585015773773,
0.043238215148448944,
0.0750003382563591,
-0.4477993845939636,
-0.41373735666275024,
-0.9399573802947998,
-0.09661401808261871,
0.3430960774421692,
-0.47084689140319824,
0.24760305881500244,
-0.5763004422187805,
-0.13159003853797913,
0.12945526838302612,
-0.1362588107585907,
-0.5474110245704651,
0.44612494111061096,
0.08260352909564972,
0.7683563828468323,
-0.8531045317649841,
0.5558780431747437,
0.7143363952636719,
-0.5263325572013855,
-0.9390860199928284,
-0.22319994866847992,
-0.1449279487133026,
-1.0711737871170044,
0.3200719952583313,
0.44839996099472046,
0.25106102228164673,
-0.02648167870938778,
-0.776441216468811,
-1.125037431716919,
1.2251085042953491,
0.32071396708488464,
-0.25480902194976807,
-0.07698500901460648,
0.25100770592689514,
0.11912091821432114,
-0.662788987159729,
0.13511095941066742,
0.6083253026008606,
0.5938170552253723,
0.564453661441803,
-0.4525405764579773,
0.2677292227745056,
-0.29662245512008667,
0.17539986968040466,
0.27445387840270996,
-0.9628286957740784,
0.9703596830368042,
-0.1531318873167038,
-0.3748871386051178,
0.11701533943414688,
0.4262419641017914,
0.3763783574104309,
0.4661442041397095,
0.6539775729179382,
0.7395228147506714,
0.5098216533660889,
-0.28200945258140564,
0.9909342527389526,
-0.3642762005329132,
0.2360147088766098,
0.7610287666320801,
0.004532663617283106,
0.5740170478820801,
0.304731547832489,
-0.2102596014738083,
0.44819292426109314,
0.9207971096038818,
-0.4777207672595978,
0.5025374889373779,
0.005057009402662516,
-0.04735628142952919,
-0.41486939787864685,
-0.3745538592338562,
-0.45770248770713806,
0.5552118420600891,
0.16898830235004425,
-0.5920704007148743,
-0.1429610699415207,
0.07811877131462097,
0.04097866639494896,
-0.45495331287384033,
-0.3852262496948242,
0.6249997615814209,
0.041703589260578156,
-0.5796850919723511,
0.658798098564148,
0.23359477519989014,
0.3864883780479431,
-0.5775322318077087,
0.12790422141551971,
-0.23751305043697357,
0.06611781567335129,
-0.38137054443359375,
-0.6042930483818054,
0.5781692862510681,
-0.10165327042341232,
-0.12754909694194794,
0.17479315400123596,
0.898902952671051,
-0.2553269863128662,
-0.8243793845176697,
-0.02049599215388298,
0.14979687333106995,
0.35494163632392883,
-0.2491014301776886,
-0.7891555428504944,
0.4032633602619171,
0.2952081561088562,
-0.2265445590019226,
0.30302894115448,
0.21320347487926483,
0.002107354113832116,
0.4953192174434662,
0.820420503616333,
-0.06530877202749252,
0.23888951539993286,
-0.3666130304336548,
1.0728895664215088,
-0.7726625204086304,
-0.5441023707389832,
-0.764724850654602,
0.8249315023422241,
-0.2804650068283081,
-0.10745824873447418,
0.6964482665061951,
0.7866823077201843,
0.9121072292327881,
-0.07030569016933441,
0.5604336857795715,
-0.4187787175178528,
0.28708210587501526,
-0.20556515455245972,
0.5512952208518982,
-0.7543424367904663,
-0.09859735518693924,
-0.3067095875740051,
-1.1742322444915771,
-0.38437551259994507,
0.9253543615341187,
-0.25809037685394287,
0.20706984400749207,
0.5850540399551392,
0.920617938041687,
-0.19886523485183716,
-0.04104239121079445,
0.2741248309612274,
0.1411731094121933,
0.21084101498126984,
0.33887848258018494,
0.6322500109672546,
-0.5328826904296875,
0.5883660912513733,
-0.8107426166534424,
-0.09981175512075424,
-0.07476364821195602,
-0.61555016040802,
-0.8343206644058228,
-0.8225264549255371,
-0.5548827052116394,
-0.3382869064807892,
-0.1882135421037674,
0.5954194068908691,
1.188828945159912,
-0.6227064728736877,
-0.08519763499498367,
0.14058758318424225,
0.18570484220981598,
-0.1697254776954651,
-0.23120659589767456,
0.689013659954071,
0.052050650119781494,
-0.9111225008964539,
0.10369846969842911,
0.5110839605331421,
0.10317987948656082,
-0.0942777618765831,
-0.03347688913345337,
-0.20009459555149078,
0.21550416946411133,
0.6739903688430786,
0.4024581015110016,
-0.6450377702713013,
-0.26893672347068787,
0.030390312895178795,
0.15017586946487427,
0.24861830472946167,
0.47185418009757996,
-0.4751022160053253,
0.40154048800468445,
0.30846309661865234,
0.4402267336845398,
0.860795259475708,
0.33442121744155884,
-0.05413202941417694,
-0.6121532320976257,
0.18931815028190613,
-0.07973857969045639,
0.30441781878471375,
0.41486257314682007,
-0.17752128839492798,
0.6141919493675232,
0.3476640582084656,
-0.5491811037063599,
-0.8826611638069153,
0.12439154833555222,
-1.2041682004928589,
-0.3310924470424652,
1.145759105682373,
-0.2549656331539154,
-0.7352650761604309,
0.18033011257648468,
-0.29376220703125,
0.2727609872817993,
-0.4248155355453491,
0.5627009272575378,
0.31040704250335693,
-0.2131590098142624,
-0.31726235151290894,
-0.2244461178779602,
0.364969938993454,
0.15292668342590332,
-0.7223696708679199,
-0.3901207745075226,
0.39017152786254883,
0.4014778137207031,
0.4912782609462738,
0.48116058111190796,
-0.2547975778579712,
0.16969214379787445,
0.021199120208621025,
0.17251837253570557,
-0.3034346103668213,
-0.30762916803359985,
-0.27707546949386597,
0.34747758507728577,
-0.43371137976646423,
-0.60071861743927
] |
facebook/hubert-large-ls960-ft | facebook | "2022-05-24T10:43:42Z" | 97,496 | 47 | transformers | [
"transformers",
"pytorch",
"tf",
"hubert",
"automatic-speech-recognition",
"speech",
"audio",
"hf-asr-leaderboard",
"en",
"dataset:libri-light",
"dataset:librispeech_asr",
"arxiv:2106.07447",
"license:apache-2.0",
"model-index",
"endpoints_compatible",
"has_space",
"region:us"
] | automatic-speech-recognition | "2022-03-02T23:29:05Z" | ---
language: en
datasets:
- libri-light
- librispeech_asr
tags:
- speech
- audio
- automatic-speech-recognition
- hf-asr-leaderboard
license: apache-2.0
model-index:
- name: hubert-large-ls960-ft
results:
- task:
name: Automatic Speech Recognition
type: automatic-speech-recognition
dataset:
name: LibriSpeech (clean)
type: librispeech_asr
config: clean
split: test
args:
language: en
metrics:
- name: Test WER
type: wer
value: 1.9
---
# Hubert-Large-Finetuned
[Facebook's Hubert](https://ai.facebook.com/blog/hubert-self-supervised-representation-learning-for-speech-recognition-generation-and-compression)
The large model fine-tuned on 960h of Librispeech on 16kHz sampled speech audio. When using the model make sure that your speech input is also sampled at 16Khz.
The model is a fine-tuned version of [hubert-large-ll60k](https://huggingface.co/facebook/hubert-large-ll60k).
[Paper](https://arxiv.org/abs/2106.07447)
Authors: Wei-Ning Hsu, Benjamin Bolte, Yao-Hung Hubert Tsai, Kushal Lakhotia, Ruslan Salakhutdinov, Abdelrahman Mohamed
**Abstract**
Self-supervised approaches for speech representation learning are challenged by three unique problems: (1) there are multiple sound units in each input utterance, (2) there is no lexicon of input sound units during the pre-training phase, and (3) sound units have variable lengths with no explicit segmentation. To deal with these three problems, we propose the Hidden-Unit BERT (HuBERT) approach for self-supervised speech representation learning, which utilizes an offline clustering step to provide aligned target labels for a BERT-like prediction loss. A key ingredient of our approach is applying the prediction loss over the masked regions only, which forces the model to learn a combined acoustic and language model over the continuous inputs. HuBERT relies primarily on the consistency of the unsupervised clustering step rather than the intrinsic quality of the assigned cluster labels. Starting with a simple k-means teacher of 100 clusters, and using two iterations of clustering, the HuBERT model either matches or improves upon the state-of-the-art wav2vec 2.0 performance on the Librispeech (960h) and Libri-light (60,000h) benchmarks with 10min, 1h, 10h, 100h, and 960h fine-tuning subsets. Using a 1B parameter model, HuBERT shows up to 19% and 13% relative WER reduction on the more challenging dev-other and test-other evaluation subsets.
The original model can be found under https://github.com/pytorch/fairseq/tree/master/examples/hubert .
# Usage
The model can be used for automatic-speech-recognition as follows:
```python
import torch
from transformers import Wav2Vec2Processor, HubertForCTC
from datasets import load_dataset
processor = Wav2Vec2Processor.from_pretrained("facebook/hubert-large-ls960-ft")
model = HubertForCTC.from_pretrained("facebook/hubert-large-ls960-ft")
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
input_values = processor(ds[0]["audio"]["array"], return_tensors="pt").input_values # Batch size 1
logits = model(input_values).logits
predicted_ids = torch.argmax(logits, dim=-1)
transcription = processor.decode(predicted_ids[0])
# ->"A MAN SAID TO THE UNIVERSE SIR I EXIST"
``` | [
-0.4963793158531189,
-0.5220609903335571,
0.34318625926971436,
0.2762395441532135,
-0.1058400347828865,
-0.08286609500646591,
-0.3919772505760193,
-0.40557631850242615,
0.3439038395881653,
0.2521703541278839,
-0.638920783996582,
-0.34570518136024475,
-0.462936669588089,
-0.1465657353401184,
-0.38770797848701477,
0.6666144132614136,
0.1947924792766571,
0.1920190006494522,
0.06972523033618927,
-0.10700337588787079,
-0.3510444164276123,
-0.5818267464637756,
-0.7598475813865662,
-0.41769951581954956,
0.4149538278579712,
0.2388286143541336,
0.16560347378253937,
0.375041127204895,
0.18299263715744019,
0.3450636863708496,
-0.03405090048909187,
0.049157172441482544,
-0.4773794412612915,
0.03235732391476631,
0.10424122214317322,
-0.08284182101488113,
-0.3760231137275696,
0.18941877782344818,
0.8130589723587036,
0.5815860033035278,
-0.3556981682777405,
0.38936638832092285,
0.09056948870420456,
0.33487001061439514,
-0.36648818850517273,
0.2751960754394531,
-0.7319117784500122,
-0.03365735337138176,
-0.06399498134851456,
0.09756983071565628,
-0.4751174747943878,
0.0025951757561415434,
0.03603975474834442,
-0.41382017731666565,
0.24978113174438477,
-0.13656872510910034,
0.8966169953346252,
0.3156147599220276,
-0.11258390545845032,
-0.10175707191228867,
-0.7654891014099121,
0.9399749636650085,
-0.6417223215103149,
0.6999315619468689,
0.537692129611969,
0.3615165650844574,
0.01691220887005329,
-0.7461291551589966,
-0.40267178416252136,
-0.26255154609680176,
0.04091627523303032,
0.17878593504428864,
-0.3455031216144562,
0.06412112712860107,
0.34167248010635376,
0.18039412796497345,
-0.5639695525169373,
0.2880256175994873,
-0.7062404751777649,
-0.5090449452400208,
0.8016815185546875,
-0.370117723941803,
-0.2330474853515625,
-0.24242232739925385,
-0.227593332529068,
-0.3041495382785797,
-0.3455493450164795,
0.20154957473278046,
0.4112124741077423,
0.3573347330093384,
-0.16928978264331818,
0.2423306554555893,
-0.03338391333818436,
0.6771551966667175,
0.2979349195957184,
-0.21778222918510437,
0.46462079882621765,
0.23244525492191315,
-0.1104450523853302,
0.41450828313827515,
0.9388828873634338,
-0.20924043655395508,
0.1988012045621872,
0.077913299202919,
-0.37155285477638245,
-0.12711040675640106,
0.10454220324754715,
-0.7154730558395386,
-0.6125631928443909,
0.20093929767608643,
-0.36350029706954956,
-0.03970925509929657,
0.19805778563022614,
-0.10493514686822891,
0.1206069216132164,
-0.5055947303771973,
0.9633965492248535,
-0.4266205132007599,
-0.059215810149908066,
-0.21590150892734528,
0.048579826951026917,
-0.019081445410847664,
0.06155087798833847,
-1.0419825315475464,
0.20948496460914612,
0.3095114231109619,
0.6477009057998657,
-0.06115133315324783,
-0.13305412232875824,
-0.6328017711639404,
0.032423727214336395,
-0.3982692062854767,
0.34952694177627563,
-0.08459226787090302,
-0.29824432730674744,
-0.37321677803993225,
-0.07733532041311264,
0.07142578810453415,
-0.6268174648284912,
0.4763653874397278,
-0.2716626822948456,
0.10747875273227692,
-0.056824326515197754,
-0.6651800274848938,
-0.19421015679836273,
-0.3467971980571747,
-0.5336931943893433,
1.059626817703247,
0.09329404681921005,
-0.45234915614128113,
0.0946892723441124,
-0.49733176827430725,
-0.4583834707736969,
-0.05722454935312271,
-0.36389321088790894,
-0.6350753903388977,
0.23271241784095764,
0.42911964654922485,
0.761132001876831,
0.09421385824680328,
0.42702654004096985,
-0.37972408533096313,
-0.35026219487190247,
0.32408666610717773,
-0.5993701219558716,
0.8192497491836548,
0.33858710527420044,
-0.35324111580848694,
0.20605793595314026,
-0.9908968210220337,
0.1380797177553177,
0.06921013444662094,
-0.36942219734191895,
0.1053648516535759,
-0.18808609247207642,
0.10852216929197311,
0.14726144075393677,
0.38030314445495605,
-0.6055071949958801,
-0.10375003516674042,
-0.49044814705848694,
0.5807401537895203,
0.810808539390564,
-0.18594515323638916,
0.29758039116859436,
-0.21415530145168304,
0.045661285519599915,
-0.27062666416168213,
0.10321319848299026,
-0.011467302218079567,
-0.3948608934879303,
-0.7360440492630005,
-0.4577779173851013,
0.6637445092201233,
0.34135255217552185,
-0.3130357563495636,
0.7096922397613525,
-0.017417266964912415,
-0.5382728576660156,
-0.9273561239242554,
0.03707273304462433,
0.19569391012191772,
0.4899514615535736,
0.6630597710609436,
-0.20899826288223267,
-0.73249751329422,
-1.0264544486999512,
0.06094679981470108,
-0.243057981133461,
-0.3852558732032776,
0.3016658127307892,
0.23132988810539246,
-0.383771687746048,
0.926407516002655,
-0.28382590413093567,
-0.42170250415802,
-0.07263302803039551,
0.2535966634750366,
0.36960309743881226,
0.6683336496353149,
0.3694148063659668,
-0.4866736829280853,
-0.36071160435676575,
-0.17707592248916626,
-0.5776150226593018,
-0.13154713809490204,
0.009260037913918495,
0.2854499816894531,
0.25028958916664124,
0.637199342250824,
-0.39043867588043213,
0.29808807373046875,
0.6182719469070435,
0.24429304897785187,
0.4282863736152649,
-0.3379861116409302,
-0.270993709564209,
-1.0168362855911255,
-0.02665531076490879,
-0.11544153094291687,
-0.40755701065063477,
-0.589278519153595,
-0.33054327964782715,
0.10333049297332764,
-0.20132549107074738,
-0.28049787878990173,
0.4126436412334442,
-0.3820991814136505,
-0.23425637185573578,
-0.200624480843544,
0.1618809998035431,
-0.23301079869270325,
0.5678573846817017,
0.012910368852317333,
0.6274762749671936,
0.6480381488800049,
-0.5887236595153809,
0.48307526111602783,
0.0824684128165245,
-0.3923429548740387,
0.18372510373592377,
-0.7729381322860718,
0.3005354106426239,
-0.054024048149585724,
0.2863476872444153,
-0.9422183632850647,
-0.26673150062561035,
-0.002816789783537388,
-0.8037709593772888,
0.7100251317024231,
0.029638176783919334,
-0.4155368506908417,
-0.45497438311576843,
0.012809245847165585,
0.34453386068344116,
0.6261224150657654,
-0.8256468772888184,
0.5232817530632019,
0.5181833505630493,
0.0621553398668766,
-0.5188707113265991,
-0.7708927989006042,
-0.12331046164035797,
-0.11973238736391068,
-0.5915258526802063,
0.41691991686820984,
-0.10719370096921921,
0.049315694719552994,
-0.254129558801651,
-0.23710963129997253,
0.1477331519126892,
-0.10705028474330902,
0.35643506050109863,
-0.024110954254865646,
-0.09101977944374084,
0.47473394870758057,
0.03135454282164574,
-0.218604177236557,
0.1094294935464859,
-0.3988698124885559,
0.5888959765434265,
-0.22635559737682343,
-0.2438485324382782,
-0.7690818309783936,
0.24068474769592285,
0.12733756005764008,
-0.18893130123615265,
0.31599125266075134,
1.2536611557006836,
-0.46821334958076477,
-0.23045895993709564,
-0.6799286007881165,
-0.43541520833969116,
-0.5384041666984558,
0.504645586013794,
-0.35501763224601746,
-0.9297414422035217,
0.3835662305355072,
0.07528645545244217,
-0.05914920195937157,
0.6896699666976929,
0.5770888924598694,
-0.4288926124572754,
0.8631839752197266,
0.44936874508857727,
-0.340129017829895,
0.437356173992157,
-0.6277190446853638,
0.24772867560386658,
-0.7544760704040527,
-0.1821492612361908,
-0.2899796664714813,
-0.3868122398853302,
-0.6163419485092163,
-0.4562132954597473,
0.4143795967102051,
0.16121146082878113,
-0.20233622193336487,
0.39771950244903564,
-0.6286581158638,
0.011583262123167515,
0.8457863926887512,
0.1939522624015808,
-0.13861201703548431,
0.2619946300983429,
-0.1475035697221756,
-0.05118877440690994,
-0.7967278957366943,
-0.1115083172917366,
0.9473312497138977,
0.5132359266281128,
0.8963938355445862,
-0.06671647727489471,
1.152622938156128,
0.20115602016448975,
-0.09621960669755936,
-0.8468711376190186,
0.535033106803894,
-0.12418804317712784,
-0.6896212697029114,
-0.5747162103652954,
-0.5834989547729492,
-0.9815484285354614,
0.19481085240840912,
-0.21856805682182312,
-0.8777994513511658,
0.18903128802776337,
0.20975914597511292,
-0.46346816420555115,
0.16124501824378967,
-0.7388098239898682,
0.6395328044891357,
-0.2040879875421524,
0.00615230668336153,
-0.3088572323322296,
-0.7001116275787354,
0.03753187507390976,
-0.17975860834121704,
0.16102956235408783,
-0.2487994283437729,
0.5135935544967651,
1.089024543762207,
-0.2589171230792999,
0.760992169380188,
-0.3162926435470581,
-0.03110714629292488,
0.4442580044269562,
-0.12837906181812286,
0.3177512586116791,
0.08384042978286743,
0.020186472684144974,
0.3996025025844574,
0.0935864970088005,
-0.2698023319244385,
-0.30605170130729675,
0.8162655234336853,
-1.0334142446517944,
-0.429457426071167,
-0.1992858350276947,
-0.3906019628047943,
-0.2742902338504791,
0.04364483803510666,
0.5942232012748718,
0.6292538046836853,
-0.10276813805103302,
0.3426561653614044,
0.6880090236663818,
-0.07864920794963837,
0.6033315658569336,
0.25211581587791443,
-0.25274649262428284,
-0.5208983421325684,
1.103168249130249,
0.3969747722148895,
0.14585183560848236,
0.30707183480262756,
0.3195493221282959,
-0.43203672766685486,
-0.3269183337688446,
-0.2105271816253662,
0.3928477168083191,
-0.641588032245636,
-0.2715199589729309,
-0.5944288372993469,
-0.5276092886924744,
-0.6594032049179077,
0.18669097125530243,
-0.6008186936378479,
-0.5358186960220337,
-0.6899219155311584,
-0.03541695326566696,
0.27567967772483826,
0.5996755361557007,
-0.5950625538825989,
0.5289968252182007,
-0.4799962639808655,
0.4397567808628082,
0.6863053441047668,
0.1343449205160141,
-0.06667648255825043,
-0.9461842775344849,
-0.34745296835899353,
0.11146967858076096,
-0.18741466104984283,
-0.6826308965682983,
0.37880969047546387,
0.40374788641929626,
0.5734270811080933,
0.4915120303630829,
0.0921047031879425,
0.6740391254425049,
-0.47246253490448,
0.5629247426986694,
0.2656016945838928,
-1.001446008682251,
0.6526184678077698,
-0.2047606259584427,
0.2861843407154083,
0.3410738408565521,
0.3061617314815521,
-0.3443155884742737,
-0.174215629696846,
-0.808581531047821,
-0.6700365543365479,
0.8949904441833496,
0.27206817269325256,
0.10779504477977753,
0.23110830783843994,
0.28933173418045044,
-0.09696356952190399,
0.08509762585163116,
-0.8359956741333008,
-0.44751858711242676,
-0.28904011845588684,
-0.1912931501865387,
-0.3418118953704834,
-0.3137872517108917,
-0.027628891170024872,
-0.5969914197921753,
0.9654521942138672,
0.05480729043483734,
0.5123788714408875,
0.26327529549598694,
-0.07019025087356567,
-0.05092950537800789,
0.1549607366323471,
0.4960043132305145,
0.4514602720737457,
-0.399030476808548,
0.134757861495018,
0.2764827311038971,
-0.35045644640922546,
0.015119007788598537,
0.37355008721351624,
0.07121621072292328,
0.23656927049160004,
0.3973535895347595,
1.1317939758300781,
0.04087454825639725,
-0.21577925980091095,
0.4267526865005493,
0.002939492231234908,
-0.46248477697372437,
-0.5899072289466858,
0.005417145323008299,
0.09409283846616745,
0.2932611405849457,
0.5984538197517395,
0.02574598416686058,
0.0728880912065506,
-0.34977972507476807,
0.3106764256954193,
0.32323139905929565,
-0.6100867986679077,
-0.29337412118911743,
0.6939923167228699,
-0.0580751858651638,
-0.33194810152053833,
0.587299644947052,
-0.34301072359085083,
-0.4037855565547943,
0.3271298110485077,
0.5535855293273926,
0.8105210065841675,
-0.7214229106903076,
0.13053950667381287,
0.5503354668617249,
0.271809846162796,
-0.11221078783273697,
0.22234666347503662,
-0.2029855102300644,
-0.5218567252159119,
-0.46919557452201843,
-0.726822555065155,
-0.1708706170320511,
0.38439035415649414,
-0.639764130115509,
0.2591414749622345,
-0.3952842056751251,
-0.3649887442588806,
0.16107799112796783,
0.009244346059858799,
-0.5360216498374939,
0.20582625269889832,
0.25202256441116333,
0.41390708088874817,
-0.6135884523391724,
1.1242457628250122,
0.2548524737358093,
-0.010290929116308689,
-1.1531277894973755,
-0.1323290914297104,
-0.20339590311050415,
-0.8489408493041992,
0.4961843192577362,
0.2829863131046295,
-0.11371159553527832,
0.11300215125083923,
-0.5722595453262329,
-1.1075108051300049,
0.8973294496536255,
0.5418464541435242,
-0.8367998600006104,
0.1489792913198471,
-0.10917834937572479,
0.43321970105171204,
-0.17692947387695312,
-0.1373981386423111,
0.48950663208961487,
0.31551340222358704,
0.0325886607170105,
-1.1675630807876587,
-0.22288450598716736,
0.11736169457435608,
-0.09767814725637436,
-0.005471028387546539,
-0.5263710021972656,
1.0365798473358154,
-0.23462960124015808,
-0.14906983077526093,
0.02028975822031498,
0.9261621832847595,
0.22175243496894836,
0.2241087257862091,
0.5300219655036926,
0.593718409538269,
0.8885132074356079,
-0.15541568398475647,
0.5535763502120972,
-0.09219972044229507,
0.6800483465194702,
1.1109657287597656,
0.27561163902282715,
0.9507309198379517,
0.32040080428123474,
-0.40819600224494934,
0.34724968671798706,
0.5373572707176208,
-0.13688215613365173,
0.5335586667060852,
0.3455464541912079,
-0.20398129522800446,
-0.34316614270210266,
0.18299031257629395,
-0.5562059283256531,
0.8572821021080017,
0.4173586070537567,
-0.3221439719200134,
0.0849703773856163,
0.16740714013576508,
-0.35472097992897034,
-0.16914501786231995,
-0.3129332959651947,
0.5952988266944885,
0.30688825249671936,
-0.23750349879264832,
0.9829828143119812,
0.053128477185964584,
0.6339668035507202,
-0.6102474331855774,
0.12784744799137115,
0.11746608465909958,
0.08358993381261826,
-0.21685118973255157,
-0.35612213611602783,
0.03826542943716049,
-0.3656289875507355,
-0.14938683807849884,
-0.11628434807062149,
0.6033837199211121,
-0.6277930736541748,
-0.6204484105110168,
0.3567664921283722,
0.20007120072841644,
0.37791183590888977,
-0.21939930319786072,
-0.6970345377922058,
0.1364263892173767,
0.11253677308559418,
-0.08483686298131943,
0.1788853257894516,
0.22272220253944397,
0.1866573989391327,
0.40089166164398193,
0.4650340974330902,
0.03528210520744324,
0.09238414466381073,
0.1776340901851654,
0.5730627179145813,
-0.45978862047195435,
-0.534846842288971,
-0.5321593284606934,
0.11859188228845596,
0.036631371825933456,
0.03500594198703766,
0.5466513633728027,
0.4693693518638611,
1.0116479396820068,
-0.04483937844634056,
0.5078860521316528,
0.11719807237386703,
0.7694990634918213,
-0.46946847438812256,
0.7851649522781372,
-0.5307816863059998,
0.15461871027946472,
-0.3008984327316284,
-0.7921077013015747,
-0.1673681139945984,
1.0678983926773071,
-0.12197598069906235,
0.36999011039733887,
0.2905653715133667,
0.698259711265564,
-0.07455842196941376,
-0.1888723075389862,
0.5636451244354248,
0.2862398624420166,
0.267719030380249,
0.30262964963912964,
0.6697220206260681,
-0.6336318850517273,
0.5377835035324097,
-0.43150094151496887,
-0.09903588891029358,
-0.3003430962562561,
-0.39085355401039124,
-0.860270619392395,
-0.8709092140197754,
-0.31208157539367676,
-0.2332484871149063,
-0.11080777645111084,
1.068092942237854,
1.0918099880218506,
-0.9102286100387573,
-0.38551095128059387,
0.2791644334793091,
-0.13055165112018585,
-0.2042747139930725,
-0.1801251322031021,
0.5648483633995056,
-0.2395728975534439,
-0.5706053376197815,
0.7302309274673462,
0.04501252993941307,
0.23269528150558472,
-0.3378669023513794,
-0.21219949424266815,
-0.09750428795814514,
-0.12366531044244766,
0.6165116429328918,
0.31057631969451904,
-0.9149034023284912,
-0.32523030042648315,
-0.184288889169693,
0.10284203290939331,
0.16013802587985992,
0.4331172704696655,
-0.9263030290603638,
0.6382734179496765,
0.13541051745414734,
0.4275539517402649,
0.980248212814331,
-0.18376171588897705,
0.1619756668806076,
-1.1066136360168457,
0.10314854979515076,
0.31473562121391296,
0.4323365390300751,
0.41951224207878113,
-0.17613442242145538,
0.22270873188972473,
0.21645504236221313,
-0.727100670337677,
-0.720085084438324,
0.11031504720449448,
-1.2466621398925781,
-0.2463759332895279,
1.034489393234253,
0.06544710695743561,
-0.09815523028373718,
0.23247182369232178,
-0.31346768140792847,
0.49988460540771484,
-0.6398536562919617,
0.6713976263999939,
0.47583022713661194,
-0.3192928731441498,
-0.13733428716659546,
-0.433919221162796,
0.4720716178417206,
0.4041435122489929,
-0.23325201869010925,
-0.06441990286111832,
0.3935985863208771,
0.30336567759513855,
0.2780165672302246,
0.6257026791572571,
0.14075537025928497,
0.12296687811613083,
-0.10722972452640533,
0.20729193091392517,
-0.03601578623056412,
-0.4798538088798523,
-0.5881883502006531,
0.0954163670539856,
0.04254592955112457,
-0.4268660545349121
] |
Open-Orca/Mistral-7B-OpenOrca | Open-Orca | "2023-11-18T00:13:08Z" | 97,412 | 482 | transformers | [
"transformers",
"pytorch",
"mistral",
"text-generation",
"en",
"dataset:Open-Orca/OpenOrca",
"arxiv:2306.02707",
"arxiv:2301.13688",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | text-generation | "2023-09-29T19:18:38Z" | ---
datasets:
- Open-Orca/OpenOrca
language:
- en
library_name: transformers
pipeline_tag: text-generation
license: apache-2.0
---
<p><h1>🐋 Mistral-7B-OpenOrca 🐋</h1></p>
![OpenOrca Logo](https://huggingface.co/Open-Orca/Mistral-7B-OpenOrca/resolve/main/Images/MistralOrcaLogo.png "MistralOrca Logo")
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
# OpenOrca - Mistral - 7B - 8k
We have used our own [OpenOrca dataset](https://huggingface.co/datasets/Open-Orca/OpenOrca) to fine-tune on top of [Mistral 7B](https://huggingface.co/mistralai/Mistral-7B-v0.1).
This dataset is our attempt to reproduce the dataset generated for Microsoft Research's [Orca Paper](https://arxiv.org/abs/2306.02707).
We use [OpenChat](https://huggingface.co/openchat) packing, trained with [Axolotl](https://github.com/OpenAccess-AI-Collective/axolotl).
This release is trained on a curated filtered subset of most of our GPT-4 augmented data.
It is the same subset of our data as was used in our [OpenOrcaxOpenChat-Preview2-13B model](https://huggingface.co/Open-Orca/OpenOrcaxOpenChat-Preview2-13B).
**HF Leaderboard evals place this model as #1 for all models smaller than 30B at release time, outperforming all other 7B and 13B models!**
This release provides a first: a fully open model with class-breaking performance, capable of running fully accelerated on even moderate consumer GPUs.
Our thanks to the Mistral team for leading the way here.
We affectionately codename this model: "*MistralOrca*"
If you'd like to try the model now, we have it running on fast GPUs unquantized: https://huggingface.co/spaces/Open-Orca/Mistral-7B-OpenOrca
Want to visualize our full (pre-filtering) dataset? Check out our [Nomic Atlas Map](https://atlas.nomic.ai/map/c1b88b47-2d9b-47e0-9002-b80766792582/2560fd25-52fe-42f1-a58f-ff5eccc890d2).
[<img src="https://huggingface.co/Open-Orca/OpenOrca-Preview1-13B/resolve/main/OpenOrca%20Nomic%20Atlas.png" alt="Atlas Nomic Dataset Map" width="400" height="400" />](https://atlas.nomic.ai/map/c1b88b47-2d9b-47e0-9002-b80766792582/2560fd25-52fe-42f1-a58f-ff5eccc890d2)
We are in-process with training more models, so keep a look out on our org for releases coming soon with exciting partners.
We will also give sneak-peak announcements on our Discord, which you can find here:
https://AlignmentLab.ai
or check the OpenAccess AI Collective Discord for more information about Axolotl trainer here:
https://discord.gg/5y8STgB3P3
# Quantized Models
Quantized versions of this model are generously made available by [TheBloke](https://huggingface.co/TheBloke).
- AWQ: https://huggingface.co/TheBloke/Mistral-7B-OpenOrca-AWQ
- GPTQ: https://huggingface.co/TheBloke/Mistral-7B-OpenOrca-GPTQ
- GGUF: https://huggingface.co/TheBloke/Mistral-7B-OpenOrca-GGUF
# Prompt Template
We used [OpenAI's Chat Markup Language (ChatML)](https://github.com/openai/openai-python/blob/main/chatml.md) format, with `<|im_start|>` and `<|im_end|>` tokens added to support this.
This means that, e.g., in [oobabooga](https://github.com/oobabooga/text-generation-webui/) the "`MPT-Chat`" instruction template should work, as it also uses ChatML.
This formatting is also available via a pre-defined [Transformers chat template](https://huggingface.co/docs/transformers/main/chat_templating),
which means that lists of messages can be formatted for you with the `apply_chat_template()` method:
```python
chat = [
{"role": "system", "content": "You are MistralOrca, a large language model trained by Alignment Lab AI. Write out your reasoning step-by-step to be sure you get the right answers!"}
{"role": "user", "content": "How are you?"},
{"role": "assistant", "content": "I am doing well!"},
{"role": "user", "content": "Please tell me about how mistral winds have attracted super-orcas."},
]
tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)
```
which will yield:
```
<|im_start|>system
You are MistralOrca, a large language model trained by Alignment Lab AI. Write out your reasoning step-by-step to be sure you get the right answers!
<|im_end|>
<|im_start|>user
How are you?<|im_end|>
<|im_start|>assistant
I am doing well!<|im_end|>
<|im_start|>user
Please tell me about how mistral winds have attracted super-orcas.<|im_end|>
<|im_start|>assistant
```
If you use `tokenize=True` and `return_tensors="pt"` instead, then you will get a tokenized
and formatted conversation ready to pass to `model.generate()`.
# Inference
See [this notebook](https://colab.research.google.com/drive/1yZlLSifCGELAX5GN582kZypHCv0uJuNX?usp=sharing) for inference details.
Note that you need the development snapshot of Transformers currently, as support for Mistral hasn't been released into PyPI yet:
```
pip install git+https://github.com/huggingface/transformers
```
# Evaluation
## HuggingFace Leaderboard Performance
We have evaluated using the methodology and tools for the HuggingFace Leaderboard, and find that we have dramatically improved upon the base model.
We find **106%** of the base model's performance on HF Leaderboard evals, averaging **65.84**.
At release time, this beats all 7B and 13B models!
This is also **98.6%** of *`Llama2-70b-chat`*'s performance!
![HF Leaderboard](https://huggingface.co/Open-Orca/Mistral-7B-OpenOrca/resolve/main/Images/MistralOrca7BHFLeaderboard.png)
| Metric | Value |
|-----------------------|-------|
| MMLU (5-shot) | 62.24 |
| ARC (25-shot) | 64.08 |
| HellaSwag (10-shot) | 83.99 |
| TruthfulQA (0-shot) | 53.05 |
| Avg. | 65.84 |
We use [Language Model Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness) to run the benchmark tests above, using the same version as the HuggingFace LLM Leaderboard.
## AGIEval Performance
We compare our results to the base Mistral-7B model (using LM Evaluation Harness).
We find **129%** of the base model's performance on AGI Eval, averaging **0.397**.
As well, we significantly improve upon the official `mistralai/Mistral-7B-Instruct-v0.1` finetuning, achieving **119%** of their performance.
![AGIEval Performance](https://huggingface.co/Open-Orca/Mistral-7B-OpenOrca/resolve/main/Images/MistralOrca7BAGIEval.png "AGIEval Performance")
## BigBench-Hard Performance
We find **119%** of the base model's performance on BigBench-Hard, averaging **0.416**.
![BigBench-Hard Performance](https://huggingface.co/Open-Orca/Mistral-7B-OpenOrca/resolve/main/Images/MistralOrca7BBigBenchHard.png "BigBench-Hard Performance")
## GPT4ALL Leaderboard Performance
We gain a slight edge over our previous releases, again topping the leaderboard, averaging **72.38**.
![GPT4ALL Performance](https://huggingface.co/Open-Orca/Mistral-7B-OpenOrca/resolve/main/Images/MistralOrca7BGPT4ALL.png "GPT4ALL Performance")
## MT-Bench Performance
MT-Bench uses GPT-4 as a judge of model response quality, across a wide range of challenges.
We find our performance is *on-par with `Llama2-70b-chat`*, averaging **6.86**.
![MT-Bench Performance](https://huggingface.co/Open-Orca/Mistral-7B-OpenOrca/resolve/main/Images/MistralOrca7BMTBENCH.png "MT-Bench Performance")
# Dataset
We used a curated, filtered selection of most of the GPT-4 augmented data from our OpenOrca dataset, which aims to reproduce the Orca Research Paper dataset.
# Training
We trained with 8x A6000 GPUs for 62 hours, completing 4 epochs of full fine tuning on our dataset in one training run.
Commodity cost was ~$400.
# Citation
```bibtex
@software{lian2023mistralorca1
title = {MistralOrca: Mistral-7B Model Instruct-tuned on Filtered OpenOrcaV1 GPT-4 Dataset},
author = {Wing Lian and Bleys Goodson and Guan Wang and Eugene Pentland and Austin Cook and Chanvichet Vong and "Teknium"},
year = {2023},
publisher = {HuggingFace},
journal = {HuggingFace repository},
howpublished = {\url{https://huggingface.co/Open-Orca/Mistral-7B-OpenOrca},
}
@misc{mukherjee2023orca,
title={Orca: Progressive Learning from Complex Explanation Traces of GPT-4},
author={Subhabrata Mukherjee and Arindam Mitra and Ganesh Jawahar and Sahaj Agarwal and Hamid Palangi and Ahmed Awadallah},
year={2023},
eprint={2306.02707},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
@misc{longpre2023flan,
title={The Flan Collection: Designing Data and Methods for Effective Instruction Tuning},
author={Shayne Longpre and Le Hou and Tu Vu and Albert Webson and Hyung Won Chung and Yi Tay and Denny Zhou and Quoc V. Le and Barret Zoph and Jason Wei and Adam Roberts},
year={2023},
eprint={2301.13688},
archivePrefix={arXiv},
primaryClass={cs.AI}
}
```
| [
-0.4460061192512512,
-0.7855997085571289,
0.027313511818647385,
0.15166819095611572,
-0.18486356735229492,
-0.19385939836502075,
-0.13988104462623596,
-0.7368930578231812,
0.18685415387153625,
0.22273893654346466,
-0.3613506555557251,
-0.5932660102844238,
-0.42638900876045227,
-0.07989150285720825,
-0.23554466664791107,
1.0663195848464966,
-0.08028893917798996,
-0.2314385026693344,
0.0026105293072760105,
-0.4045940637588501,
-0.38365456461906433,
-0.623931884765625,
-0.9178182482719421,
-0.3685116469860077,
0.5373148918151855,
0.04926230013370514,
0.8343760371208191,
0.6915046572685242,
0.3628960847854614,
0.3047071397304535,
-0.3597436845302582,
0.22616733610630035,
-0.6281704306602478,
-0.03923642262816429,
-0.04387574642896652,
-0.3644026517868042,
-0.848537266254425,
0.01397365890443325,
0.3615955710411072,
0.14039501547813416,
-0.4545820951461792,
0.3154909908771515,
0.12522217631340027,
0.3133346736431122,
-0.5588585138320923,
0.40449926257133484,
-0.2488742172718048,
-0.11977408826351166,
-0.2794089913368225,
0.13121730089187622,
-0.20574527978897095,
-0.3276423215866089,
0.030386976897716522,
-0.8436519503593445,
0.10303990542888641,
0.12167350202798843,
1.236999273300171,
0.20581480860710144,
-0.2809949815273285,
0.012103576213121414,
-0.45748671889305115,
0.5524460077285767,
-0.6735128164291382,
0.4692002236843109,
0.2483971118927002,
0.319985568523407,
-0.30918562412261963,
-0.9764692783355713,
-0.5572830438613892,
-0.14065206050872803,
0.05671463534235954,
0.310106486082077,
-0.5339892506599426,
-0.034188397228717804,
0.2012452781200409,
0.5520285964012146,
-0.6857120394706726,
0.06016195937991142,
-0.43725550174713135,
-0.20601283013820648,
0.6470084190368652,
0.15611253678798676,
0.2565440833568573,
0.11158287525177002,
-0.41205713152885437,
-0.635088324546814,
-0.4877990186214447,
0.33447667956352234,
0.27238911390304565,
0.3010988235473633,
-0.6261138916015625,
0.3876151740550995,
0.009575617499649525,
0.5461385250091553,
0.139276921749115,
-0.2223132699728012,
0.3611801862716675,
-0.27619242668151855,
-0.4243185222148895,
-0.15663330256938934,
1.0691009759902954,
0.2606229782104492,
-0.0842592716217041,
0.12014229595661163,
-0.13522778451442719,
0.20855820178985596,
0.039793044328689575,
-0.944452702999115,
-0.28191259503364563,
0.30100110173225403,
-0.42919492721557617,
-0.3231273591518402,
0.05351317301392555,
-0.4822321832180023,
-0.20104233920574188,
-0.030505837872624397,
0.33698365092277527,
-0.5865069031715393,
-0.5481202006340027,
0.2341594099998474,
-0.2539014220237732,
0.326405793428421,
0.5417571663856506,
-0.6897985339164734,
0.4168826639652252,
0.507851779460907,
0.9267645478248596,
0.01704782247543335,
-0.2427239567041397,
-0.19085003435611725,
-0.27063170075416565,
-0.3310934007167816,
0.6900506019592285,
-0.1980568915605545,
-0.3818991184234619,
-0.2952498197555542,
-0.09800246357917786,
-0.077109195291996,
-0.48506873846054077,
0.5734473466873169,
-0.3437806963920593,
0.3265373706817627,
-0.38340041041374207,
-0.14694258570671082,
-0.3410663306713104,
0.20094512403011322,
-0.5908256769180298,
1.2634693384170532,
0.3154441714286804,
-0.8357184529304504,
0.1641501784324646,
-0.6516312956809998,
-0.004083245526999235,
-0.21664930880069733,
0.030387990176677704,
-0.4125131368637085,
-0.12781332433223724,
0.44425633549690247,
0.18103444576263428,
-0.4832722544670105,
0.03871949762105942,
-0.499420166015625,
-0.25214266777038574,
0.2891937792301178,
-0.28539949655532837,
0.8913202285766602,
0.3361068367958069,
-0.44816842675209045,
0.04492909461259842,
-0.4929998815059662,
-0.013632220216095448,
0.19882768392562866,
-0.14216728508472443,
-0.053884755820035934,
-0.33370351791381836,
0.13539215922355652,
0.3187413513660431,
0.32358288764953613,
-0.5248346924781799,
0.4215693771839142,
-0.40886038541793823,
0.5298904776573181,
0.797615110874176,
-0.12376601248979568,
0.3104392886161804,
-0.4113244414329529,
0.5579348206520081,
0.15206295251846313,
0.5915582776069641,
0.0212975163012743,
-0.7259256839752197,
-0.8095341324806213,
-0.439584881067276,
0.4244227111339569,
0.30180230736732483,
-0.684285581111908,
0.31764137744903564,
-0.18723011016845703,
-0.8760750889778137,
-0.6014001965522766,
-0.14124387502670288,
0.5765790343284607,
0.5223830342292786,
0.40826496481895447,
-0.6764333844184875,
-0.3674955368041992,
-0.6415290832519531,
0.0858624130487442,
-0.4835410416126251,
0.16153015196323395,
0.33164361119270325,
0.5094903111457825,
-0.15136265754699707,
0.9902637600898743,
-0.4941374957561493,
-0.28981301188468933,
-0.08158322423696518,
0.008976912125945091,
0.2925059199333191,
0.470634788274765,
0.8434958457946777,
-0.6641861796379089,
-0.38738009333610535,
0.22151312232017517,
-0.8989159464836121,
-0.01904011331498623,
0.3225647509098053,
-0.4080769419670105,
0.31201475858688354,
0.28541117906570435,
-0.8175798058509827,
0.6457569599151611,
0.6458633542060852,
-0.49470949172973633,
0.38611847162246704,
-0.15719543397426605,
-0.0020579779520630836,
-1.022318959236145,
0.2974293828010559,
0.16901876032352448,
-0.12994788587093353,
-0.4574815332889557,
0.11768617480993271,
-0.09248553961515427,
-0.00025358353741467,
-0.4748479127883911,
0.8262954950332642,
-0.39421984553337097,
0.13800391554832458,
-0.022472696378827095,
0.019652562215924263,
-0.03211621567606926,
0.6666157841682434,
-0.0845797061920166,
0.622157633304596,
0.6868926286697388,
-0.4277479946613312,
0.34325721859931946,
0.4496105909347534,
-0.056234441697597504,
0.3698359727859497,
-0.9122584462165833,
0.18602176010608673,
-0.11834277957677841,
0.6392253041267395,
-0.8688755035400391,
-0.23388183116912842,
0.6211163997650146,
-0.6160624027252197,
0.2661634683609009,
-0.17854022979736328,
-0.4331957995891571,
-0.45776206254959106,
-0.3393268883228302,
0.4615972340106964,
0.6313218474388123,
-0.7000542879104614,
0.6748730540275574,
0.21691156923770905,
0.04540882259607315,
-0.7456793189048767,
-0.517925500869751,
-0.1294984370470047,
-0.3375040292739868,
-0.7800089716911316,
0.4080146849155426,
0.02195819839835167,
-0.10295841097831726,
-0.02082996815443039,
-0.22100518643856049,
0.04335534945130348,
-0.007013198919594288,
0.743159294128418,
0.38136962056159973,
-0.27345040440559387,
-0.1761406660079956,
-0.027559954673051834,
-0.10845135152339935,
-0.11302836984395981,
-0.37340840697288513,
0.6836599111557007,
-0.41688674688339233,
-0.12138557434082031,
-0.6782810091972351,
-0.2342541217803955,
0.5667510032653809,
-0.47180983424186707,
0.8841192722320557,
0.6952704787254333,
-0.2992732524871826,
0.11095777899026871,
-0.541111946105957,
-0.1439240574836731,
-0.4733550548553467,
-0.010387147776782513,
-0.3633665144443512,
-0.8364858031272888,
0.7561554908752441,
0.41123664379119873,
0.3094404935836792,
0.7478827238082886,
0.5207631587982178,
0.3169029653072357,
1.0070184469223022,
0.5941309332847595,
-0.315678209066391,
0.5091726779937744,
-0.5356391668319702,
0.05887237563729286,
-0.6624661087989807,
-0.38472193479537964,
-0.5653154253959656,
-0.3374214768409729,
-0.6439478993415833,
-0.3786088824272156,
0.5059835910797119,
0.3532682955265045,
-0.5196629762649536,
0.528469443321228,
-0.6396037340164185,
-0.004224417265504599,
0.531776487827301,
0.26725995540618896,
0.23946356773376465,
0.04166121780872345,
-0.031373679637908936,
0.17947380244731903,
-0.6992208361625671,
-0.441030889749527,
1.1000334024429321,
0.5054333209991455,
0.8835762143135071,
0.20990079641342163,
0.5776387453079224,
-0.027750881388783455,
0.5558362603187561,
-0.2832903265953064,
0.2960452437400818,
0.2775735855102539,
-0.6195068359375,
-0.17250140011310577,
-0.5489857792854309,
-1.0829874277114868,
0.4015844464302063,
-0.15488414466381073,
-0.8511041402816772,
0.3413141071796417,
0.1780880242586136,
-0.5354424118995667,
0.20234693586826324,
-0.6890434622764587,
1.058480143547058,
-0.0953347384929657,
-0.26141589879989624,
0.09151861071586609,
-0.6683329343795776,
0.3228766620159149,
0.15733702480793,
0.03458520397543907,
0.02733173966407776,
-0.03215081989765167,
0.6648131012916565,
-0.7290719151496887,
0.8332062363624573,
-0.2248397320508957,
-0.15248309075832367,
0.5031962990760803,
-0.12834729254245758,
0.18522357940673828,
0.16799838840961456,
-0.06756331771612167,
0.5461289286613464,
0.15658153593540192,
-0.36817431449890137,
-0.5373828411102295,
0.6709129214286804,
-1.178415060043335,
-0.19614918529987335,
-0.6479660868644714,
-0.28486621379852295,
0.1918375939130783,
0.06794597953557968,
0.43752631545066833,
0.46665719151496887,
-0.2782077193260193,
-0.07562220096588135,
0.35987389087677,
-0.30033573508262634,
0.2850738763809204,
0.4109745919704437,
-0.46957460045814514,
-0.6690191626548767,
0.8180055618286133,
0.08099888265132904,
0.012784140184521675,
0.16680075228214264,
0.13128569722175598,
-0.41602975130081177,
-0.28574666380882263,
-0.47887080907821655,
0.4619749188423157,
-0.3470730185508728,
-0.44285649061203003,
-0.7745845913887024,
-0.2873407304286957,
-0.6831976771354675,
0.21318601071834564,
-0.428728312253952,
-0.39889493584632874,
-0.3790825307369232,
0.005640964489430189,
0.570376455783844,
0.636618971824646,
-0.10563256591558456,
0.4531741142272949,
-0.5516740679740906,
0.12040314078330994,
0.20462940633296967,
0.1656678318977356,
0.17679399251937866,
-0.7716730237007141,
-0.1195593997836113,
0.2861325442790985,
-0.7939803600311279,
-0.5014365315437317,
0.5296998620033264,
0.10456988960504532,
0.33415523171424866,
0.4785817265510559,
0.029168950393795967,
0.9158467650413513,
-0.1423378884792328,
0.8777959942817688,
0.18192297220230103,
-0.71579509973526,
0.40871667861938477,
-0.4100370407104492,
0.14186923205852509,
0.3101162016391754,
0.3970247209072113,
-0.4022271931171417,
-0.42476508021354675,
-1.0454139709472656,
-0.7594318389892578,
0.9288801550865173,
0.5348166823387146,
-0.03585584834218025,
0.0586109459400177,
0.546817421913147,
-0.040907178074121475,
0.2252230942249298,
-0.7141841650009155,
-0.3915601670742035,
-0.35063138604164124,
-0.016304120421409607,
-0.1608070284128189,
0.03693336248397827,
0.0007921752403490245,
-0.38160932064056396,
0.7709172368049622,
0.006406978704035282,
0.4460129141807556,
0.22735008597373962,
0.22087955474853516,
-0.11321677267551422,
-0.21795450150966644,
0.443166583776474,
0.4897249937057495,
-0.32439571619033813,
-0.26130011677742004,
0.10610939562320709,
-0.5171316266059875,
-0.2010107785463333,
0.3645591735839844,
0.0835241824388504,
-0.09891102463006973,
0.29665836691856384,
0.9775829911231995,
-0.11912325024604797,
-0.45297136902809143,
0.6265387535095215,
-0.36458921432495117,
-0.0910736545920372,
-0.2678332030773163,
0.1869995892047882,
0.05389602482318878,
0.4649222493171692,
0.1910073459148407,
0.1364191621541977,
-0.09620825946331024,
-0.5428975224494934,
-0.05816737934947014,
0.2366153746843338,
-0.344989538192749,
-0.5402978658676147,
0.9559550881385803,
-0.0061890436336398125,
-0.07013041526079178,
0.70772385597229,
-0.07703310251235962,
-0.37865152955055237,
0.6392966508865356,
0.37843069434165955,
0.5592875480651855,
-0.4371309280395508,
0.10395445674657822,
0.46744754910469055,
0.14225175976753235,
-0.3336668312549591,
0.28121617436408997,
0.027020083740353584,
-0.5978728532791138,
-0.21897710859775543,
-0.6453546285629272,
-0.27859988808631897,
0.12394805252552032,
-0.7490549683570862,
0.45809686183929443,
-0.5085345506668091,
-0.47509926557540894,
0.04639993980526924,
-0.07868204265832901,
-0.6569316387176514,
0.1694490611553192,
0.0600854754447937,
1.0682076215744019,
-0.7652134299278259,
0.7149197459220886,
0.7326489686965942,
-0.6901460289955139,
-1.0978392362594604,
-0.3502916991710663,
-0.01761474832892418,
-0.7797675728797913,
0.39912962913513184,
0.20324008166790009,
0.12038677930831909,
-0.06914209574460983,
-0.7607554793357849,
-0.8636606335639954,
1.255723476409912,
0.6148999929428101,
-0.16708530485630035,
-0.1887836456298828,
-0.07946937531232834,
0.7768746614456177,
-0.17186646163463593,
0.808464765548706,
0.5513103008270264,
0.3506302833557129,
0.15907786786556244,
-1.177188515663147,
0.0613262876868248,
-0.48074856400489807,
0.13402116298675537,
0.16063417494297028,
-1.0637367963790894,
1.1081422567367554,
-0.0018706631381064653,
-0.19230273365974426,
0.32421234250068665,
0.8489036560058594,
0.24869415163993835,
0.208869069814682,
0.39118847250938416,
0.9490630030632019,
0.6549537181854248,
-0.2702202796936035,
1.281660795211792,
-0.21709272265434265,
0.5467837452888489,
0.7677099704742432,
0.006907344795763493,
0.752020537853241,
0.11068698763847351,
-0.17659683525562286,
0.5632532238960266,
0.8254138231277466,
0.19142377376556396,
0.3563583195209503,
-0.03219086676836014,
-0.09987001866102219,
-0.039423827081918716,
-0.20815947651863098,
-0.7022973299026489,
0.49482208490371704,
0.18517948687076569,
-0.16700759530067444,
-0.28837496042251587,
0.015330457128584385,
0.18864822387695312,
-0.2834995687007904,
-0.10826946794986725,
0.6381001472473145,
0.2838507294654846,
-0.6151514053344727,
1.1311777830123901,
0.25464656949043274,
0.6663939356803894,
-0.5690063834190369,
-0.03886481001973152,
-0.44369927048683167,
0.18637345731258392,
-0.2964573800563812,
-0.4863194227218628,
-0.13193058967590332,
-0.04747932404279709,
0.14215251803398132,
-0.1828966587781906,
0.4598226547241211,
-0.2452014833688736,
-0.12465930730104446,
0.3120606541633606,
0.4117489755153656,
0.27920758724212646,
-0.28162166476249695,
-0.7972971200942993,
0.3116774260997772,
-0.06305054575204849,
-0.32970166206359863,
0.41817304491996765,
0.4488065242767334,
-0.2429615557193756,
0.6742637157440186,
0.6739681363105774,
-0.07676949352025986,
-0.008732151240110397,
-0.11756941676139832,
1.1515884399414062,
-0.4790330231189728,
-0.42600002884864807,
-0.7200329303741455,
0.49246010184288025,
-0.041075337678194046,
-0.6779760718345642,
0.7599049806594849,
0.7241438031196594,
0.9209313988685608,
0.2419019490480423,
0.5553696155548096,
-0.36150792241096497,
0.21303127706050873,
-0.18788835406303406,
0.6615845561027527,
-0.6935915946960449,
0.007860968820750713,
-0.36443066596984863,
-0.9961307644844055,
-0.042763981968164444,
0.6697498559951782,
-0.17588414251804352,
0.18920761346817017,
0.4694480001926422,
0.9523041248321533,
-0.21603083610534668,
0.10581916570663452,
0.025880197063088417,
0.3207533359527588,
0.456196665763855,
0.6600531935691833,
0.7753186821937561,
-0.7999979257583618,
0.6226773262023926,
-0.3755412995815277,
-0.4709503948688507,
-0.15527506172657013,
-0.5248339772224426,
-0.9597985148429871,
-0.5038185715675354,
-0.3059033751487732,
-0.7572237253189087,
0.09101376682519913,
0.83414626121521,
0.6433014869689941,
-0.5725156664848328,
-0.3876321315765381,
0.08955554664134979,
-0.1072491854429245,
-0.40422847867012024,
-0.20645782351493835,
0.3832235336303711,
0.05801739543676376,
-0.7930346131324768,
0.07670918107032776,
0.07092227786779404,
0.1893143355846405,
-0.04847913235425949,
-0.1857706606388092,
0.06888396292924881,
-0.1582431048154831,
0.441134512424469,
0.5863197445869446,
-0.5954189896583557,
-0.23487089574337006,
-0.0005190997617319226,
-0.3092460334300995,
0.1862914115190506,
0.3341537117958069,
-0.7202731370925903,
0.2083326131105423,
0.31814059615135193,
0.32136204838752747,
0.8365627527236938,
0.23701085150241852,
0.3409276306629181,
-0.4375683069229126,
0.3749353885650635,
0.03024337999522686,
0.3201642632484436,
0.1530691534280777,
-0.10115239769220352,
0.7024351954460144,
0.22585543990135193,
-0.5308142304420471,
-0.8529354929924011,
-0.20596985518932343,
-1.2293570041656494,
0.035876039415597916,
1.0509706735610962,
-0.19467946887016296,
-0.5240510702133179,
0.2130586802959442,
-0.47469577193260193,
0.3340946435928345,
-0.7504851222038269,
0.6292971968650818,
0.43401360511779785,
-0.1240336075425148,
0.016690168529748917,
-0.4405621588230133,
0.3863561153411865,
0.271039754152298,
-0.6570523977279663,
-0.1778171956539154,
0.43620848655700684,
0.2961674928665161,
0.2711617350578308,
0.7427169680595398,
-0.297132670879364,
0.3073546588420868,
-0.05038542300462723,
0.3187633454799652,
-0.17688767611980438,
-0.16340410709381104,
-0.2946383059024811,
0.030401378870010376,
0.0851636677980423,
-0.1679241806268692
] |
vinai/phobert-base-v2 | vinai | "2023-08-05T08:20:06Z" | 96,599 | 11 | transformers | [
"transformers",
"pytorch",
"roberta",
"fill-mask",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | fill-mask | "2023-04-24T10:53:35Z" |
#### Table of contents
1. [Introduction](#introduction)
2. [Using PhoBERT with `transformers`](#transformers)
- [Installation](#install2)
- [Pre-trained models](#models2)
- [Example usage](#usage2)
3. [Using PhoBERT with `fairseq`](#fairseq)
4. [Notes](#vncorenlp)
# <a name="introduction"></a> PhoBERT: Pre-trained language models for Vietnamese
Pre-trained PhoBERT models are the state-of-the-art language models for Vietnamese ([Pho](https://en.wikipedia.org/wiki/Pho), i.e. "Phở", is a popular food in Vietnam):
- Two PhoBERT versions of "base" and "large" are the first public large-scale monolingual language models pre-trained for Vietnamese. PhoBERT pre-training approach is based on [RoBERTa](https://github.com/pytorch/fairseq/blob/master/examples/roberta/README.md) which optimizes the [BERT](https://github.com/google-research/bert) pre-training procedure for more robust performance.
- PhoBERT outperforms previous monolingual and multilingual approaches, obtaining new state-of-the-art performances on four downstream Vietnamese NLP tasks of Part-of-speech tagging, Dependency parsing, Named-entity recognition and Natural language inference.
The general architecture and experimental results of PhoBERT can be found in our [paper](https://www.aclweb.org/anthology/2020.findings-emnlp.92/):
@inproceedings{phobert,
title = {{PhoBERT: Pre-trained language models for Vietnamese}},
author = {Dat Quoc Nguyen and Anh Tuan Nguyen},
booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2020},
year = {2020},
pages = {1037--1042}
}
**Please CITE** our paper when PhoBERT is used to help produce published results or is incorporated into other software.
## <a name="transformers"></a> Using PhoBERT with `transformers`
### Installation <a name="install2"></a>
- Install `transformers` with pip: `pip install transformers`, or [install `transformers` from source](https://huggingface.co/docs/transformers/installation#installing-from-source). <br />
Note that we merged a slow tokenizer for PhoBERT into the main `transformers` branch. The process of merging a fast tokenizer for PhoBERT is in the discussion, as mentioned in [this pull request](https://github.com/huggingface/transformers/pull/17254#issuecomment-1133932067). If users would like to utilize the fast tokenizer, the users might install `transformers` as follows:
```
git clone --single-branch --branch fast_tokenizers_BARTpho_PhoBERT_BERTweet https://github.com/datquocnguyen/transformers.git
cd transformers
pip3 install -e .
```
- Install `tokenizers` with pip: `pip3 install tokenizers`
### Pre-trained models <a name="models2"></a>
Model | #params | Arch. | Max length | Pre-training data
---|---|---|---|---
`vinai/phobert-base` | 135M | base | 256 | 20GB of Wikipedia and News texts
`vinai/phobert-large` | 370M | large | 256 | 20GB of Wikipedia and News texts
`vinai/phobert-base-v2` | 135M | base | 256 | 20GB of Wikipedia and News texts + 120GB of texts from OSCAR-2301
### Example usage <a name="usage2"></a>
```python
import torch
from transformers import AutoModel, AutoTokenizer
phobert = AutoModel.from_pretrained("vinai/phobert-base-v2")
tokenizer = AutoTokenizer.from_pretrained("vinai/phobert-base-v2")
# INPUT TEXT MUST BE ALREADY WORD-SEGMENTED!
sentence = 'Chúng_tôi là những nghiên_cứu_viên .'
input_ids = torch.tensor([tokenizer.encode(sentence)])
with torch.no_grad():
features = phobert(input_ids) # Models outputs are now tuples
## With TensorFlow 2.0+:
# from transformers import TFAutoModel
# phobert = TFAutoModel.from_pretrained("vinai/phobert-base")
```
## <a name="fairseq"></a> Using PhoBERT with `fairseq`
Please see details at [HERE](https://github.com/VinAIResearch/PhoBERT/blob/master/README_fairseq.md)!
## <a name="vncorenlp"></a> Notes
In case the input texts are `raw`, i.e. without word segmentation, a word segmenter must be applied to produce word-segmented texts before feeding to PhoBERT. As PhoBERT employed the [RDRSegmenter](https://github.com/datquocnguyen/RDRsegmenter) from [VnCoreNLP](https://github.com/vncorenlp/VnCoreNLP) to pre-process the pre-training data (including [Vietnamese tone normalization](https://github.com/VinAIResearch/BARTpho/blob/main/VietnameseToneNormalization.md) and word and sentence segmentation), it is recommended to also use the same word segmenter for PhoBERT-based downstream applications w.r.t. the input raw texts.
#### Installation
pip install py_vncorenlp
#### Example usage <a name="example"></a>
```python
import py_vncorenlp
# Automatically download VnCoreNLP components from the original repository
# and save them in some local machine folder
py_vncorenlp.download_model(save_dir='/absolute/path/to/vncorenlp')
# Load the word and sentence segmentation component
rdrsegmenter = py_vncorenlp.VnCoreNLP(annotators=["wseg"], save_dir='/absolute/path/to/vncorenlp')
text = "Ông Nguyễn Khắc Chúc đang làm việc tại Đại học Quốc gia Hà Nội. Bà Lan, vợ ông Chúc, cũng làm việc tại đây."
output = rdrsegmenter.word_segment(text)
print(output)
# ['Ông Nguyễn_Khắc_Chúc đang làm_việc tại Đại_học Quốc_gia Hà_Nội .', 'Bà Lan , vợ ông Chúc , cũng làm_việc tại đây .']
```
## License
Copyright (c) 2023 VinAI Research
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. | [
-0.3565562069416046,
-0.8214825391769409,
0.3294195532798767,
0.326028972864151,
-0.5992109179496765,
-0.26651087403297424,
-0.24343569576740265,
-0.32412269711494446,
0.18841013312339783,
0.4771156907081604,
-0.27165019512176514,
-0.5896558165550232,
-0.609869658946991,
0.26197516918182373,
-0.1509157419204712,
0.8329392671585083,
0.0005519955884665251,
-0.07772273570299149,
0.36423951387405396,
-0.18943367898464203,
-0.23748628795146942,
-0.7291277050971985,
-0.4135483205318451,
-0.2856824994087219,
0.2168026566505432,
0.31025731563568115,
0.47497856616973877,
0.7824676036834717,
0.43832218647003174,
0.4668406546115875,
-0.12717404961585999,
0.3630850613117218,
-0.31533393263816833,
-0.028736447915434837,
0.10616687685251236,
-0.2048892229795456,
-0.26606684923171997,
0.07365546375513077,
0.5879883766174316,
0.36685240268707275,
-0.012253384105861187,
-0.14513181149959564,
-0.12380220741033554,
0.371542364358902,
-0.4765404760837555,
0.05058722943067551,
-0.46995899081230164,
0.03612248972058296,
-0.25561726093292236,
-0.13116782903671265,
-0.3669150471687317,
-0.4350103735923767,
0.44909101724624634,
-0.6982767581939697,
0.01956370659172535,
0.06656968593597412,
1.4532191753387451,
0.15582413971424103,
-0.32291021943092346,
-0.11500111222267151,
-0.4801570475101471,
0.7640034556388855,
-0.7232013940811157,
0.5456885099411011,
0.2625355124473572,
-0.10801653563976288,
-0.03574863448739052,
-0.9464302062988281,
-0.7269808650016785,
-0.3239480257034302,
-0.2607811391353607,
0.16191452741622925,
-0.3495413362979889,
0.07472020387649536,
0.14816159009933472,
0.4807712137699127,
-0.6467307209968567,
-0.07607639580965042,
-0.6124207377433777,
-0.396675169467926,
0.5615720152854919,
-0.17301952838897705,
0.1816975623369217,
-0.5703083872795105,
-0.5383252501487732,
-0.42592334747314453,
-0.19736459851264954,
-0.06795522570610046,
0.09313924610614777,
0.1945854276418686,
-0.31953683495521545,
0.7890135645866394,
0.03932962939143181,
0.7605507373809814,
0.2442086637020111,
-0.28704822063446045,
0.7892287373542786,
-0.29389432072639465,
-0.3861916661262512,
0.03743429109454155,
1.1869810819625854,
0.31367355585098267,
0.440143346786499,
0.1642003357410431,
-0.08974985033273697,
-0.09991147369146347,
-0.12659485638141632,
-0.8883591890335083,
-0.43072423338890076,
0.4257136583328247,
-0.3176670968532562,
0.007911527529358864,
0.17301906645298004,
-0.7949129343032837,
-0.2781675159931183,
-0.09221198409795761,
0.703165590763092,
-0.8842968344688416,
-0.4590725302696228,
0.4520215094089508,
-0.42604953050613403,
0.37579596042633057,
-0.03482450917363167,
-0.5590389966964722,
-0.10356242954730988,
0.5976715683937073,
0.9776257276535034,
-0.15927942097187042,
-0.6097458004951477,
-0.5611764192581177,
-0.1490715891122818,
0.056686341762542725,
0.6158115267753601,
-0.0804029181599617,
-0.616786777973175,
-0.013323331251740456,
0.21363192796707153,
-0.33825743198394775,
-0.6275248527526855,
0.6254006028175354,
-0.1311558037996292,
0.556757390499115,
0.06637709587812424,
-0.689653217792511,
-0.2390228807926178,
0.15899457037448883,
-0.36930301785469055,
1.258784532546997,
0.31004905700683594,
-1.1218277215957642,
0.18760937452316284,
-0.4902844727039337,
-0.5435599684715271,
-0.05406799539923668,
0.12027956545352936,
-0.6368497014045715,
0.011664945632219315,
0.32529646158218384,
0.45363718271255493,
0.02534206211566925,
-0.009818079881370068,
-0.01241083350032568,
-0.20734351873397827,
0.33784711360931396,
-0.21423836052417755,
1.2185900211334229,
0.09243685007095337,
-0.5467857122421265,
0.3740338385105133,
-0.9164844751358032,
-0.11785202473402023,
0.3482334017753601,
-0.4429995119571686,
-0.36152875423431396,
-0.31983643770217896,
0.31666961312294006,
0.1978980302810669,
0.2658357620239258,
-0.5328226685523987,
0.08760617673397064,
-0.7392914295196533,
0.5432760715484619,
0.7367820143699646,
0.11307207494974136,
0.4488525688648224,
-0.2058451920747757,
0.2590599060058594,
0.17411260306835175,
0.18958577513694763,
-0.17412443459033966,
-0.44837602972984314,
-1.1765838861465454,
-0.5427566766738892,
0.19132408499717712,
0.8053655028343201,
-0.7584646344184875,
0.8273175954818726,
-0.24195966124534607,
-0.7948131561279297,
-0.6311741471290588,
-0.08410322666168213,
0.29574885964393616,
0.5711548328399658,
0.5644627213478088,
-0.5311311483383179,
-0.6456311941146851,
-0.7229498028755188,
-0.09402720630168915,
-0.45146599411964417,
-0.04935617372393608,
0.06773450970649719,
0.5672950744628906,
-0.34268712997436523,
0.9309280514717102,
-0.666975200176239,
-0.47278791666030884,
-0.29246488213539124,
0.10723599046468735,
0.08795424550771713,
0.6178617477416992,
0.5521623492240906,
-0.8521521091461182,
-0.23638015985488892,
-0.06346219033002853,
-0.37980762124061584,
-0.11697395890951157,
0.10710382461547852,
-0.26956623792648315,
0.10029756277799606,
0.47088611125946045,
-0.6313031315803528,
0.23397068679332733,
0.39905738830566406,
-0.5158170461654663,
0.8068581819534302,
-0.2461661398410797,
-0.08095771074295044,
-1.139613151550293,
0.05282403528690338,
0.13784685730934143,
-0.1768239289522171,
-0.5169598460197449,
-0.17613893747329712,
-0.2642459571361542,
-0.07319948822259903,
-0.7741445899009705,
0.7810706496238708,
-0.3380201756954193,
0.2759762108325958,
-0.17222926020622253,
0.24190500378608704,
0.23270545899868011,
0.6585644483566284,
0.30778130888938904,
0.6562559604644775,
0.44722941517829895,
-0.768651008605957,
0.2753770053386688,
0.3677111864089966,
-0.2780921161174774,
0.2936362326145172,
-0.790161669254303,
-0.010795771144330502,
0.07619351148605347,
-0.03319619968533516,
-0.8284151554107666,
-0.05886029079556465,
0.7261762619018555,
-0.5103114247322083,
0.04823364317417145,
0.03928261995315552,
-0.4368455708026886,
-0.3973914384841919,
-0.3444177210330963,
0.17754486203193665,
0.5247740149497986,
-0.3382013142108917,
0.6221523880958557,
0.4716989994049072,
0.18308323621749878,
-0.4613841772079468,
-0.8262627720832825,
-0.38694873452186584,
-0.36064285039901733,
-0.47487008571624756,
0.35812559723854065,
-0.02354121208190918,
-0.15618132054805756,
-0.017316555604338646,
0.16265641152858734,
-0.20450946688652039,
-0.034145087003707886,
0.16048572957515717,
0.12052880227565765,
-0.3076598048210144,
0.05357690528035164,
-0.31067052483558655,
-0.31180623173713684,
-0.16705378890037537,
-0.5713312029838562,
0.7457496523857117,
-0.22215332090854645,
-0.0605035126209259,
-0.5882779955863953,
0.0521986186504364,
0.4353705048561096,
-0.776534378528595,
0.7749717831611633,
1.045651912689209,
-0.2097320407629013,
0.0230416227132082,
-0.6031015515327454,
-0.26615235209465027,
-0.5149328708648682,
0.5464675426483154,
-0.289654016494751,
-1.0573384761810303,
0.0864599198102951,
0.10196690261363983,
0.20801593363285065,
0.5776873826980591,
0.7037466168403625,
0.19589897990226746,
0.6305475234985352,
0.8804556131362915,
-0.03088066540658474,
0.7735978960990906,
-0.33207109570503235,
0.13489040732383728,
-0.6102897524833679,
-0.13300402462482452,
-0.49216705560684204,
0.13041292130947113,
-0.7427364587783813,
-0.6124979257583618,
0.16378727555274963,
0.055163316428661346,
-0.3560746908187866,
0.4948276877403259,
-0.938258171081543,
-0.01865430921316147,
0.7067696452140808,
-0.1357886642217636,
0.15291039645671844,
0.24826543033123016,
-0.3514297306537628,
-0.14221633970737457,
-0.5124915838241577,
-0.3864572048187256,
0.6898050904273987,
0.34552496671676636,
0.2974332869052887,
-0.34781086444854736,
0.7323705554008484,
-0.07674983143806458,
0.18465270102024078,
-0.8143153190612793,
0.5971304178237915,
-0.13607248663902283,
-0.5006117820739746,
-0.3019411861896515,
-0.3762717545032501,
-0.9848418831825256,
0.5850921273231506,
-0.1363450139760971,
-0.9082696437835693,
0.4409879744052887,
0.040214188396930695,
-0.37013769149780273,
0.2370535433292389,
-0.7923676371574402,
1.1578288078308105,
-0.3219715654850006,
-0.06499593704938889,
0.09470247477293015,
-0.5302318334579468,
0.2273707538843155,
0.179486483335495,
0.027502475306391716,
-0.2368490993976593,
0.007217161823064089,
0.9985937476158142,
-0.7635958194732666,
0.5080875754356384,
-0.15714944899082184,
0.021310366690158844,
0.5072559714317322,
-0.2589462697505951,
0.051236942410469055,
-0.05792821943759918,
-0.15602034330368042,
0.1899687498807907,
-0.08780580013990402,
-0.18014763295650482,
-0.21605579555034637,
0.3235570788383484,
-0.9007297158241272,
-0.4282555878162384,
-0.6228654384613037,
-0.18577198684215546,
0.12923872470855713,
0.4440392851829529,
0.6534494161605835,
0.23061327636241913,
-0.11162665486335754,
-0.007861248217523098,
0.4709163308143616,
-0.42496392130851746,
0.26251283288002014,
0.34484708309173584,
-0.35439160466194153,
-0.7213454246520996,
1.0035797357559204,
0.0781744122505188,
-0.018479766324162483,
0.5139623284339905,
0.3373197615146637,
-0.2734083831310272,
-0.3167419135570526,
-0.23033060133457184,
0.6590296030044556,
-0.5250075459480286,
0.07115671783685684,
-0.8937053084373474,
-0.3407672047615051,
-0.4469950199127197,
0.016684766858816147,
-0.42867279052734375,
-0.33837077021598816,
-0.324869841337204,
-0.1765984445810318,
0.6726921796798706,
0.23801250755786896,
-0.27750104665756226,
0.7125087976455688,
-0.6560920476913452,
0.32972437143325806,
0.2481904923915863,
-0.14128378033638,
-0.1836136281490326,
-0.5745560526847839,
-0.30581727623939514,
-0.18756431341171265,
-0.3942936658859253,
-0.9479513764381409,
0.5853917002677917,
0.03353190794587135,
0.12684513628482819,
0.45121127367019653,
0.07761301100254059,
0.6617199778556824,
-0.4877097010612488,
0.7263861894607544,
0.18226318061351776,
-1.0050498247146606,
0.5256602764129639,
-0.08871273696422577,
0.32297077775001526,
0.5472078919410706,
0.3503466546535492,
-0.7421305179595947,
-0.37090763449668884,
-0.5728520750999451,
-1.0777099132537842,
0.6385139226913452,
0.38977891206741333,
-0.15418586134910583,
-0.000986600061878562,
0.17275114357471466,
-0.16118448972702026,
0.20682992041110992,
-0.8954511880874634,
-0.525027334690094,
-0.47887519001960754,
-0.13172973692417145,
-0.1636727750301361,
-0.23266221582889557,
0.14598561823368073,
-0.5092904567718506,
0.9123740196228027,
0.27531978487968445,
0.3934154212474823,
0.675530731678009,
-0.2779310345649719,
0.2725287079811096,
0.16176392138004303,
0.4935145378112793,
0.5101702809333801,
-0.21365611255168915,
0.06509501487016678,
0.0033407898154109716,
-0.7493409514427185,
0.22583843767642975,
0.6982808113098145,
-0.2357291877269745,
0.38089719414711,
0.25473135709762573,
0.9512144327163696,
0.11853545904159546,
-0.5939916372299194,
0.5697115659713745,
-0.15776830911636353,
-0.2735658884048462,
-0.347716361284256,
-0.09697950631380081,
0.08100820332765579,
0.18818619847297668,
0.37730517983436584,
-0.23242728412151337,
-0.19226570427417755,
-0.22858138382434845,
0.3090609908103943,
-0.02462504804134369,
-0.4247860610485077,
-0.26817402243614197,
0.6563519835472107,
0.1518002599477768,
-0.3411346673965454,
0.7798958420753479,
-0.28635796904563904,
-0.8736981153488159,
0.4401054084300995,
0.27056261897087097,
0.8895783424377441,
-0.28217682242393494,
0.32059618830680847,
0.5211693048477173,
0.5105892419815063,
0.041053228080272675,
0.27417075634002686,
0.11628370732069016,
-0.829680860042572,
-0.31337738037109375,
-0.8224403262138367,
0.015481498092412949,
0.30653107166290283,
-0.17781364917755127,
0.35429710149765015,
-0.42479807138442993,
-0.37458696961402893,
0.01509839203208685,
0.22230377793312073,
-0.5781099200248718,
0.31209203600883484,
0.08922380208969116,
0.7547062635421753,
-0.6652562022209167,
0.81260746717453,
0.7204772233963013,
-0.6526995301246643,
-1.054503083229065,
0.049442410469055176,
-0.10484538972377777,
-0.6004248261451721,
0.3557651937007904,
0.3998977839946747,
-0.01217630598694086,
0.11392825096845627,
-0.27158671617507935,
-0.5924603343009949,
0.7605594992637634,
0.37963590025901794,
-0.22457604110240936,
-0.10087388753890991,
0.17164252698421478,
0.4174480438232422,
-0.06783762574195862,
0.2482331246137619,
0.5793848037719727,
0.7474046349525452,
-0.13547517359256744,
-0.9743149876594543,
-0.07406677305698395,
-0.17236420512199402,
-0.14850300550460815,
0.031647972762584686,
-0.7195387482643127,
1.0970960855484009,
0.0014985023299232125,
-0.402033269405365,
0.14347073435783386,
1.0271998643875122,
0.46698009967803955,
0.12124268710613251,
0.6019366979598999,
0.5703033804893494,
0.8129191398620605,
-0.2171436995267868,
0.8174519538879395,
-0.23261602222919464,
0.44229480624198914,
0.9028900265693665,
0.011749675497412682,
0.7438403964042664,
0.39694154262542725,
-0.13719893991947174,
0.4650025963783264,
0.7982562184333801,
-0.22475431859493256,
0.32758647203445435,
0.10848263651132584,
-0.018661538138985634,
-0.12056901305913925,
-0.1592259705066681,
-0.5374308824539185,
0.6364027261734009,
0.1468689739704132,
-0.2920934557914734,
-0.018421728163957596,
0.23954558372497559,
0.37913230061531067,
-0.10113531351089478,
-0.09881533682346344,
0.4587741494178772,
0.3300301730632782,
-0.5439033508300781,
0.7411969304084778,
0.305015504360199,
1.054708480834961,
-0.7165176272392273,
0.1880795955657959,
-0.028019795194268227,
0.4824499189853668,
-0.1250639706850052,
-0.45452919602394104,
0.02438790164887905,
-0.09701158106327057,
0.06897583603858948,
-0.04722603037953377,
0.6464180946350098,
-0.5653738975524902,
-0.5509231686592102,
0.42890578508377075,
0.6330611109733582,
0.34012556076049805,
-0.07460321485996246,
-0.9693066477775574,
0.14946947991847992,
0.03838476166129112,
-0.5136875510215759,
-0.07148555666208267,
0.6374817490577698,
0.17782557010650635,
0.4034166634082794,
0.4787074625492096,
0.10275071859359741,
0.2249060571193695,
-0.14153997600078583,
0.7170094847679138,
-0.5443047285079956,
-0.6550016403198242,
-0.999586820602417,
0.5894019603729248,
-0.11416549235582352,
-0.7083794474601746,
1.0431792736053467,
0.7764348983764648,
1.1049150228500366,
-0.08307310193777084,
0.6031649112701416,
-0.12595658004283905,
0.39048972725868225,
-0.32532212138175964,
0.8063461184501648,
-0.6946072578430176,
-0.3012737035751343,
-0.46110406517982483,
-0.8186413645744324,
-0.28651174902915955,
0.9351864457130432,
-0.44792377948760986,
-0.0024082697927951813,
0.711543083190918,
0.7773563265800476,
-0.12103632092475891,
-0.3049364984035492,
0.052788715809583664,
0.4455040693283081,
0.25761088728904724,
0.38621658086776733,
0.583742618560791,
-0.4362586736679077,
0.695149838924408,
-0.5760002136230469,
-0.11937232315540314,
-0.36456701159477234,
-0.5746060013771057,
-0.857984721660614,
-0.7907304763793945,
-0.4251575171947479,
-0.4451752305030823,
0.03508642315864563,
0.9553858637809753,
0.687972366809845,
-0.66768878698349,
-0.47079339623451233,
0.12083589285612106,
0.2449451982975006,
-0.19517949223518372,
-0.28352829813957214,
0.7587726712226868,
-0.015600140206515789,
-0.8504372835159302,
0.2344239354133606,
0.25520870089530945,
0.1726473569869995,
-0.16629552841186523,
-0.04857965186238289,
-0.5273973941802979,
-0.04362086206674576,
0.5454307198524475,
0.49046826362609863,
-0.5293774008750916,
-0.13008750975131989,
-0.0007430863915942609,
-0.20649436116218567,
0.39738860726356506,
0.6867290735244751,
-0.7182673811912537,
0.32439517974853516,
0.5223259925842285,
0.42211395502090454,
0.5328016877174377,
-0.012571364641189575,
0.518841028213501,
-0.5682190656661987,
0.66823410987854,
0.23623687028884888,
0.4586748778820038,
0.5522089600563049,
-0.07555749267339706,
0.4129885733127594,
0.45088791847229004,
-0.47390109300613403,
-0.7887338399887085,
0.07526912540197372,
-0.9349363446235657,
-0.30730023980140686,
1.1182711124420166,
-0.1703554391860962,
-0.5994788408279419,
-0.024583647027611732,
-0.518876314163208,
0.6132582426071167,
-0.3596154451370239,
0.34232720732688904,
0.574173092842102,
0.09199637919664383,
-0.1163896918296814,
-0.3261805474758148,
0.5787261128425598,
0.395042359828949,
-0.5921719670295715,
-0.06236480921506882,
0.34589171409606934,
0.2504122257232666,
0.32812759280204773,
0.9396066665649414,
0.012755260802805424,
0.09843678027391434,
-0.1507837474346161,
0.19148947298526764,
-0.018880875781178474,
-0.019115883857011795,
-0.3132452368736267,
0.19733360409736633,
-0.10847345739603043,
-0.42540472745895386
] |
dbmdz/distilbert-base-turkish-cased | dbmdz | "2021-01-24T01:01:22Z" | 96,117 | 8 | transformers | [
"transformers",
"pytorch",
"tf",
"distilbert",
"tr",
"arxiv:1910.01108",
"license:mit",
"endpoints_compatible",
"has_space",
"region:us"
] | null | "2022-03-02T23:29:05Z" | ---
language: tr
license: mit
---
# 🤗 + 📚 dbmdz Distilled Turkish BERT model
In this repository the MDZ Digital Library team (dbmdz) at the Bavarian State
Library open sources a (cased) distilled model for Turkish 🎉
# 🇹🇷 DistilBERTurk
DistilBERTurk is a community-driven cased distilled BERT model for Turkish.
DistilBERTurk was trained on 7GB of the original training data that was used
for training [BERTurk](https://github.com/stefan-it/turkish-bert/tree/master#stats),
using the cased version of BERTurk as teacher model.
*DistilBERTurk* was trained with the official Hugging Face implementation from
[here](https://github.com/huggingface/transformers/tree/master/examples/distillation)
for 5 days on 4 RTX 2080 TI.
More details about distillation can be found in the
["DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter"](https://arxiv.org/abs/1910.01108)
paper by Sanh et al. (2019).
## Model weights
Currently only PyTorch-[Transformers](https://github.com/huggingface/transformers)
compatible weights are available. If you need access to TensorFlow checkpoints,
please raise an issue in the [BERTurk](https://github.com/stefan-it/turkish-bert) repository!
| Model | Downloads
| --------------------------------- | ---------------------------------------------------------------------------------------------------------------
| `dbmdz/distilbert-base-turkish-cased` | [`config.json`](https://cdn.huggingface.co/dbmdz/distilbert-base-turkish-cased/config.json) • [`pytorch_model.bin`](https://cdn.huggingface.co/dbmdz/distilbert-base-turkish-cased/pytorch_model.bin) • [`vocab.txt`](https://cdn.huggingface.co/dbmdz/distilbert-base-turkish-cased/vocab.txt)
## Usage
With Transformers >= 2.3 our DistilBERTurk model can be loaded like:
```python
from transformers import AutoModel, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("dbmdz/distilbert-base-turkish-cased")
model = AutoModel.from_pretrained("dbmdz/distilbert-base-turkish-cased")
```
## Results
For results on PoS tagging or NER tasks, please refer to
[this repository](https://github.com/stefan-it/turkish-bert).
For PoS tagging, DistilBERTurk outperforms the 24-layer XLM-RoBERTa model.
The overall performance difference between DistilBERTurk and the original
(teacher) BERTurk model is ~1.18%.
# Huggingface model hub
All models are available on the [Huggingface model hub](https://huggingface.co/dbmdz).
# Contact (Bugs, Feedback, Contribution and more)
For questions about our BERT models just open an issue
[here](https://github.com/dbmdz/berts/issues/new) 🤗
# Acknowledgments
Thanks to [Kemal Oflazer](http://www.andrew.cmu.edu/user/ko/) for providing us
additional large corpora for Turkish. Many thanks to Reyyan Yeniterzi for providing
us the Turkish NER dataset for evaluation.
Research supported with Cloud TPUs from Google's TensorFlow Research Cloud (TFRC).
Thanks for providing access to the TFRC ❤️
Thanks to the generous support from the [Hugging Face](https://huggingface.co/) team,
it is possible to download both cased and uncased models from their S3 storage 🤗
| [
-0.6686036586761475,
-0.8952019214630127,
0.188154399394989,
0.39471158385276794,
-0.3974727690219879,
-0.21464546024799347,
-0.24924993515014648,
-0.4102396070957184,
0.1245277151465416,
0.17647776007652283,
-0.6905726790428162,
-0.6173726916313171,
-0.8227684497833252,
-0.005268085282295942,
-0.29249390959739685,
1.3307671546936035,
-0.1883721947669983,
0.2135625183582306,
-0.02191142737865448,
-0.141874298453331,
-0.014775952324271202,
-0.6907527446746826,
-0.49335816502571106,
-0.5509268045425415,
0.41108378767967224,
-0.09554031491279602,
0.4322470426559448,
0.17560222744941711,
0.5337981581687927,
0.4410748779773712,
-0.38758349418640137,
-0.10503217577934265,
-0.15474578738212585,
0.0047549656592309475,
0.22195065021514893,
-0.13685378432273865,
-0.623668909072876,
0.013234498910605907,
0.570264995098114,
0.5644367933273315,
-0.4849068224430084,
0.26440122723579407,
0.14599458873271942,
0.9929025769233704,
-0.20180056989192963,
0.278402715921402,
-0.3750436305999756,
-0.035676464438438416,
-0.12572422623634338,
0.4370458722114563,
-0.22179386019706726,
-0.1887008249759674,
0.5791884660720825,
-0.2604784369468689,
0.49134063720703125,
-0.29928529262542725,
1.2464483976364136,
0.33994024991989136,
-0.2865844666957855,
-0.230429545044899,
-0.48123303055763245,
0.7865654230117798,
-0.9506710767745972,
0.4064999222755432,
0.3127918541431427,
0.5358387231826782,
-0.4829968214035034,
-0.8717783689498901,
-0.6899373531341553,
-0.13942669332027435,
-0.07352469116449356,
0.07638359069824219,
-0.4315088391304016,
0.040388379245996475,
0.369539350271225,
0.5901959538459778,
-0.441031813621521,
-0.33708545565605164,
-0.4982615113258362,
-0.060734596103429794,
0.6788104772567749,
-0.059932321310043335,
0.05266175419092178,
-0.29323598742485046,
-0.4719144105911255,
-0.46483439207077026,
-0.35220298171043396,
0.24123027920722961,
0.49261462688446045,
0.40882304310798645,
-0.391239196062088,
0.5035063624382019,
-0.21276061236858368,
0.8104925155639648,
0.38786202669143677,
-0.08919602632522583,
0.4045040011405945,
-0.15397295355796814,
-0.38316795229911804,
0.11974399536848068,
0.8405411839485168,
0.03794745355844498,
-0.005223945714533329,
0.05193173512816429,
-0.2557707726955414,
-0.3796173930168152,
0.26379674673080444,
-1.1424428224563599,
-0.4659173786640167,
0.40320873260498047,
-0.6716630458831787,
-0.3462786376476288,
0.006353623699396849,
-0.5510841608047485,
-0.15508116781711578,
-0.30163586139678955,
0.5908721685409546,
-0.5918827652931213,
-0.5912838578224182,
0.19430506229400635,
-0.05104803666472435,
0.40654629468917847,
0.3590639531612396,
-1.003193974494934,
0.34833335876464844,
0.5804134607315063,
0.918121337890625,
0.17683233320713043,
-0.11461049318313599,
0.012771687470376492,
-0.45866337418556213,
-0.14114515483379364,
0.5494852066040039,
0.052902739495038986,
-0.21649615466594696,
-0.011008046567440033,
0.2585674226284027,
-0.10643678158521652,
-0.5107250213623047,
0.6002689599990845,
-0.39258065819740295,
0.4240158498287201,
-0.5226489901542664,
-0.5728729963302612,
-0.4578923285007477,
0.12707248330116272,
-0.7101158499717712,
1.4149065017700195,
0.4818725287914276,
-1.0230270624160767,
0.46864140033721924,
-0.5315105319023132,
-0.4003285765647888,
-0.12861594557762146,
0.1063094437122345,
-0.9903939366340637,
0.16595487296581268,
0.219089075922966,
0.7066731452941895,
-0.06716051697731018,
0.2022765576839447,
-0.4850567877292633,
-0.23736445605754852,
0.14293062686920166,
0.05467287823557854,
1.3316025733947754,
0.48527824878692627,
-0.5724989771842957,
-0.08846938610076904,
-0.6155937314033508,
-0.2369612604379654,
0.3358845114707947,
-0.5045421123504639,
-0.10029935836791992,
-0.19208846986293793,
0.3065699338912964,
0.340536892414093,
0.2718171775341034,
-0.665344774723053,
0.3734976351261139,
-0.2281503677368164,
0.5126820802688599,
0.725565493106842,
-0.4230017364025116,
0.1187358871102333,
-0.516759991645813,
0.22734913229942322,
0.24201463162899017,
0.20450268685817719,
0.14120882749557495,
-0.5490923523902893,
-0.9766231179237366,
-0.7360526323318481,
0.519467830657959,
0.2715025842189789,
-0.7738352417945862,
0.5647474527359009,
0.020761428400874138,
-0.7201374769210815,
-0.6435170769691467,
0.046997107565402985,
0.1958797723054886,
0.7068712115287781,
0.3182589113712311,
-0.20361310243606567,
-0.7274547219276428,
-0.9794847965240479,
0.08573786914348602,
-0.3186745047569275,
-0.1490810215473175,
0.3083076775074005,
0.644899308681488,
-0.053366854786872864,
0.8416508436203003,
-0.17343096435070038,
-0.47390007972717285,
-0.352456659078598,
0.1833391934633255,
0.6965783834457397,
0.5352405905723572,
1.0418107509613037,
-0.6195890307426453,
-0.7415544986724854,
-0.2815147936344147,
-0.7147852182388306,
0.15334293246269226,
0.19080401957035065,
-0.1618017852306366,
0.7589526772499084,
0.20048807561397552,
-0.824254035949707,
0.41921466588974,
0.6373839378356934,
-0.5468047261238098,
0.6803808212280273,
-0.28844425082206726,
0.14071914553642273,
-1.2997609376907349,
0.30270951986312866,
0.24217191338539124,
-0.2980332374572754,
-0.5026190876960754,
-0.0020819075871258974,
-0.11011184006929398,
0.16484640538692474,
-0.5717676877975464,
0.4502376914024353,
-0.3716175854206085,
0.06592119485139847,
-0.1219942644238472,
-0.4003143012523651,
-0.0014587591867893934,
0.6256017088890076,
0.16799642145633698,
0.621417760848999,
0.6876848340034485,
-0.45519569516181946,
0.5358278751373291,
0.47246310114860535,
-0.6428020000457764,
0.478104829788208,
-0.9277572631835938,
0.0467449314892292,
-0.03203919157385826,
0.3830852210521698,
-0.8948901891708374,
-0.007336263079196215,
0.3638758063316345,
-0.5676516890525818,
0.6865347623825073,
-0.6254428625106812,
-0.726962149143219,
-0.5422737002372742,
-0.21036987006664276,
0.035350289195775986,
0.8801268339157104,
-0.8157587647438049,
0.7559751868247986,
0.2529986500740051,
-0.21745261549949646,
-0.6802670359611511,
-0.7437793612480164,
-0.13798844814300537,
-0.5170949697494507,
-0.8535113334655762,
0.510094404220581,
-0.11060222238302231,
-0.12606051564216614,
0.053611841052770615,
-0.12456829845905304,
-0.20743855834007263,
0.02762685716152191,
0.20989547669887543,
0.5332011580467224,
-0.16091999411582947,
-0.130340576171875,
0.0031007586512714624,
0.03465469926595688,
0.07730956375598907,
-0.21108967065811157,
0.5236427187919617,
-0.537147581577301,
-0.017653781920671463,
-0.6320139169692993,
0.16920430958271027,
0.5178180932998657,
0.08976853638887405,
1.1941032409667969,
0.9300549030303955,
-0.41421598196029663,
0.08904451131820679,
-0.8003082275390625,
-0.304777055978775,
-0.5233856439590454,
0.23013997077941895,
-0.5126206278800964,
-0.8435704112052917,
0.7399292588233948,
0.11869072169065475,
0.3005610704421997,
0.6649279594421387,
0.8446874618530273,
-0.4745274782180786,
1.0318527221679688,
0.851671040058136,
-0.21549919247627258,
0.6895013451576233,
-0.49625059962272644,
0.007050851359963417,
-0.7727296948432922,
-0.30440011620521545,
-0.5569643974304199,
-0.3016948997974396,
-0.7575411796569824,
-0.17818018794059753,
0.2872515916824341,
0.2190556675195694,
-0.27220866084098816,
0.505287230014801,
-0.7180128693580627,
-0.03422802686691284,
0.6373947858810425,
0.25967422127723694,
-0.05240703746676445,
0.4556428790092468,
-0.3727891445159912,
0.05818724259734154,
-0.7525520324707031,
-0.41797804832458496,
1.2319303750991821,
0.5651950240135193,
0.5818225145339966,
0.1544317603111267,
0.9107577800750732,
0.1509968787431717,
0.2842727601528168,
-0.4857901930809021,
0.2580348551273346,
-0.1243334412574768,
-0.9883224368095398,
-0.11926788091659546,
-0.467531681060791,
-0.8495003581047058,
0.22343765199184418,
-0.21999436616897583,
-0.7855530977249146,
0.15616188943386078,
0.11809756606817245,
-0.4592377245426178,
0.47861164808273315,
-0.741705596446991,
0.9106400012969971,
-0.02396542951464653,
-0.39087823033332825,
-0.15280842781066895,
-0.6590215563774109,
0.2061733454465866,
0.14078621566295624,
-0.13499903678894043,
-0.13854289054870605,
0.49087342619895935,
0.8458850979804993,
-0.8105561137199402,
0.6052030920982361,
-0.602744996547699,
0.006287527736276388,
0.574013888835907,
-0.10260801017284393,
0.44681933522224426,
-0.10897409915924072,
-0.17920958995819092,
0.654362678527832,
0.4337479770183563,
-0.6207623481750488,
-0.35248932242393494,
0.7320078611373901,
-1.055725336074829,
-0.45121219754219055,
-0.8011369705200195,
-0.3426129221916199,
0.12231170386075974,
0.08416072279214859,
0.12092191725969315,
0.21020826697349548,
-0.14688292145729065,
0.2728833854198456,
0.7827839255332947,
-0.3813965916633606,
0.526040256023407,
0.6081198453903198,
-0.1402493119239807,
-0.28439730405807495,
0.648490846157074,
-0.030636759474873543,
-0.12233816087245941,
-0.023009169846773148,
0.08064728230237961,
-0.47753047943115234,
-0.5041940212249756,
-0.6137476563453674,
0.42401790618896484,
-0.4258345663547516,
-0.13340416550636292,
-0.7710632085800171,
-0.37583816051483154,
-0.6337568759918213,
0.2510332763195038,
-0.591469943523407,
-0.521061360836029,
-0.17062103748321533,
-0.08649295568466187,
0.7894532680511475,
0.610327959060669,
-0.3120515048503876,
0.19593797624111176,
-0.6073359251022339,
0.10900669544935226,
0.21134258806705475,
0.5078125596046448,
-0.03716262802481651,
-0.7519626617431641,
-0.3056650459766388,
0.15114718675613403,
-0.34738636016845703,
-0.6731957793235779,
0.4982070028781891,
0.10453314334154129,
0.5638489723205566,
0.36348000168800354,
0.1317611038684845,
0.6380886435508728,
-0.4532570540904999,
0.5655208826065063,
0.12776561081409454,
-0.6674537062644958,
0.40851685404777527,
-0.35031431913375854,
0.10537756234407425,
0.5743588805198669,
0.5407785177230835,
-0.41298893094062805,
-0.08300291001796722,
-0.7397096753120422,
-0.9258540272712708,
0.9862996339797974,
0.5043027997016907,
0.11779927462339401,
0.22553713619709015,
0.4771444499492645,
0.1389191597700119,
0.26526862382888794,
-0.6167414784431458,
-0.4464165270328522,
-0.5197831392288208,
-0.2825395464897156,
0.026588212698698044,
-0.4000685513019562,
-0.18434737622737885,
-0.6974009275436401,
1.036013126373291,
0.22621819376945496,
0.5575288534164429,
0.43225955963134766,
-0.08414458483457565,
-0.06601974368095398,
-0.13364705443382263,
0.5396904349327087,
0.4096016585826874,
-0.7470732927322388,
-0.1904120147228241,
0.1520443558692932,
-0.6056796312332153,
-0.1416800171136856,
0.6927138566970825,
-0.006874506827443838,
0.2660621404647827,
0.08789251744747162,
0.8325036764144897,
-0.19294922053813934,
-0.4054691791534424,
0.4042956531047821,
-0.4669923484325409,
-0.5282538533210754,
-0.6225374341011047,
-0.21000927686691284,
0.2332669198513031,
0.5372719764709473,
0.5501680970191956,
-0.2689090073108673,
0.08135757595300674,
-0.28787368535995483,
0.33377209305763245,
0.4690878987312317,
-0.43203067779541016,
-0.32690194249153137,
0.5384449362754822,
0.0992550328373909,
0.10875304788351059,
1.0419670343399048,
0.009194404818117619,
-0.5865522623062134,
0.7133846282958984,
0.13645493984222412,
0.8786678910255432,
-0.21202705800533295,
0.20074462890625,
0.6948277950286865,
0.2516905963420868,
0.02001451700925827,
0.23443306982517242,
-0.264578253030777,
-0.6211499571800232,
-0.2690304219722748,
-1.0672746896743774,
-0.11020487546920776,
0.3797498941421509,
-0.8139927387237549,
0.34392377734184265,
-0.5040123462677002,
-0.4542582333087921,
0.09840189665555954,
0.5799202919006348,
-0.8119401931762695,
0.06789671629667282,
0.22587989270687103,
1.0006834268569946,
-0.899188756942749,
1.0674705505371094,
0.8582168817520142,
-0.47108587622642517,
-0.778432309627533,
-0.5136104822158813,
-0.052932679653167725,
-0.621832013130188,
0.5877337455749512,
0.17461556196212769,
0.36020147800445557,
-0.11071641743183136,
-0.5032008290290833,
-0.770442545413971,
1.1899646520614624,
0.28653979301452637,
-0.4522958993911743,
0.1040831208229065,
0.12559284269809723,
0.6007009744644165,
-0.13543535768985748,
0.4414924383163452,
0.6765565872192383,
0.3365991413593292,
0.4048922061920166,
-0.9709798693656921,
0.09098830074071884,
-0.5016873478889465,
-0.08401858061552048,
0.051826491951942444,
-0.7605136632919312,
1.0232841968536377,
-0.16869550943374634,
-0.03940681740641594,
0.19824925065040588,
0.7556970715522766,
0.4336763620376587,
0.11964836716651917,
0.5281153917312622,
0.9382263422012329,
0.4151562452316284,
-0.28153887391090393,
1.0916506052017212,
-0.3536287248134613,
0.6632914543151855,
0.8209759593009949,
0.06771832704544067,
0.5767810940742493,
0.5901127457618713,
-0.554511308670044,
0.7647808194160461,
1.0938425064086914,
-0.22832563519477844,
0.6061999201774597,
0.0742674469947815,
-0.36260083317756653,
-0.24734525382518768,
0.11346424371004105,
-0.5945460200309753,
0.38078856468200684,
0.07161315530538559,
-0.36594557762145996,
-0.3737381100654602,
-0.16071785986423492,
0.235965296626091,
-0.417013019323349,
0.10246020555496216,
0.781520426273346,
0.15360736846923828,
-0.4083330035209656,
0.8589231371879578,
0.14716677367687225,
0.7213953137397766,
-0.6384689807891846,
-0.049663741141557693,
-0.2996079921722412,
0.3011775314807892,
-0.06754674017429352,
-0.4278624653816223,
0.3558678925037384,
-0.004177275113761425,
-0.1882951259613037,
-0.3180481791496277,
0.6606587767601013,
-0.4210595488548279,
-0.7759950160980225,
0.2099219113588333,
0.3229115903377533,
0.3733762204647064,
-0.15934348106384277,
-1.2613158226013184,
0.06873980164527893,
-0.11152071505784988,
-0.7196385264396667,
0.562757134437561,
0.3912142217159271,
0.23509357869625092,
0.7331652045249939,
0.7304725050926208,
-0.10653991997241974,
0.035913027822971344,
-0.0452474020421505,
1.1115684509277344,
-0.38946837186813354,
-0.2914798855781555,
-0.8091391921043396,
0.7125596404075623,
0.013564392924308777,
-0.14874637126922607,
0.7222234010696411,
0.5415180325508118,
0.9494708180427551,
-0.03173782676458359,
0.6768485903739929,
-0.4477907717227936,
0.4090418219566345,
-0.22826674580574036,
1.1961228847503662,
-0.7184374332427979,
-0.1736697554588318,
-0.4940994381904602,
-0.9212576150894165,
0.05044884979724884,
1.0621472597122192,
-0.15487486124038696,
0.34437933564186096,
0.37444353103637695,
0.6275225877761841,
0.024535546079277992,
-0.17339861392974854,
0.038862861692905426,
0.40067070722579956,
0.2000298798084259,
0.49400392174720764,
0.5753123164176941,
-0.7245088219642639,
0.4130404591560364,
-0.7741663455963135,
-0.35666441917419434,
-0.33270159363746643,
-0.9521822333335876,
-1.2347850799560547,
-0.8701551556587219,
-0.4842844307422638,
-0.6419807076454163,
-0.029480792582035065,
0.9805840849876404,
0.9216418862342834,
-0.9668241143226624,
-0.2952106297016144,
-0.06773465871810913,
0.018097590655088425,
-0.3298751413822174,
-0.24170027673244476,
0.6522552967071533,
-0.21670393645763397,
-0.9513542056083679,
-0.0708027109503746,
-0.23026591539382935,
0.41383257508277893,
-0.21140249073505402,
-0.159040167927742,
-0.33430418372154236,
-0.08238253742456436,
0.4748043119907379,
0.2822706401348114,
-0.5705833435058594,
-0.05958757549524307,
-0.0329432412981987,
-0.1219053715467453,
0.014255552552640438,
0.4866611361503601,
-0.7010020017623901,
0.43972891569137573,
0.44645366072654724,
0.2957608699798584,
0.9802910089492798,
-0.18696792423725128,
0.4201539158821106,
-0.5101799964904785,
0.4861137270927429,
0.017610302194952965,
0.5800920128822327,
0.4122019410133362,
-0.22870448231697083,
0.3930869400501251,
0.1369541585445404,
-0.4946734607219696,
-0.883173942565918,
-0.20090775191783905,
-1.1280717849731445,
-0.31502535939216614,
0.8942879438400269,
-0.5049836039543152,
-0.4949016869068146,
0.1830589473247528,
-0.13835711777210236,
0.6134131550788879,
-0.4237425923347473,
1.2512726783752441,
0.9688419103622437,
-0.05537857860326767,
-0.22614260017871857,
-0.5035927891731262,
0.7130810022354126,
0.5952590703964233,
-0.35700735449790955,
-0.09712133556604385,
0.34747418761253357,
0.6471522450447083,
-0.13354480266571045,
0.4029645025730133,
-0.3101620376110077,
0.09817704558372498,
-0.11849668622016907,
0.48240694403648376,
-0.3715359568595886,
-0.11278931051492691,
-0.3477044403553009,
-0.31869712471961975,
-0.1905871033668518,
-0.174070805311203
] |
sentence-transformers/bert-base-nli-mean-tokens | sentence-transformers | "2022-06-09T12:34:28Z" | 96,076 | 21 | sentence-transformers | [
"sentence-transformers",
"pytorch",
"tf",
"jax",
"rust",
"bert",
"feature-extraction",
"sentence-similarity",
"transformers",
"arxiv:1908.10084",
"license:apache-2.0",
"endpoints_compatible",
"region:us"
] | sentence-similarity | "2022-03-02T23:29:05Z" | ---
pipeline_tag: sentence-similarity
tags:
- sentence-transformers
- feature-extraction
- sentence-similarity
- transformers
license: apache-2.0
---
**⚠️ This model is deprecated. Please don't use it as it produces sentence embeddings of low quality. You can find recommended sentence embedding models here: [SBERT.net - Pretrained Models](https://www.sbert.net/docs/pretrained_models.html)**
# sentence-transformers/bert-base-nli-mean-tokens
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
## Usage (Sentence-Transformers)
Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:
```
pip install -U sentence-transformers
```
Then you can use the model like this:
```python
from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]
model = SentenceTransformer('sentence-transformers/bert-base-nli-mean-tokens')
embeddings = model.encode(sentences)
print(embeddings)
```
## Usage (HuggingFace Transformers)
Without [sentence-transformers](https://www.SBERT.net), you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
```python
from transformers import AutoTokenizer, AutoModel
import torch
#Mean Pooling - Take attention mask into account for correct averaging
def mean_pooling(model_output, attention_mask):
token_embeddings = model_output[0] #First element of model_output contains all token embeddings
input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()
return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9)
# Sentences we want sentence embeddings for
sentences = ['This is an example sentence', 'Each sentence is converted']
# Load model from HuggingFace Hub
tokenizer = AutoTokenizer.from_pretrained('sentence-transformers/bert-base-nli-mean-tokens')
model = AutoModel.from_pretrained('sentence-transformers/bert-base-nli-mean-tokens')
# Tokenize sentences
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
# Compute token embeddings
with torch.no_grad():
model_output = model(**encoded_input)
# Perform pooling. In this case, max pooling.
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
print("Sentence embeddings:")
print(sentence_embeddings)
```
## Evaluation Results
For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name=sentence-transformers/bert-base-nli-mean-tokens)
## Full Model Architecture
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: BertModel
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False})
)
```
## Citing & Authors
This model was trained by [sentence-transformers](https://www.sbert.net/).
If you find this model helpful, feel free to cite our publication [Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks](https://arxiv.org/abs/1908.10084):
```bibtex
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "http://arxiv.org/abs/1908.10084",
}
``` | [
-0.23986856639385223,
-0.7682871222496033,
0.22413159906864166,
0.40032342076301575,
-0.44980379939079285,
-0.4608473777770996,
-0.30904340744018555,
-0.09918346256017685,
0.24664978682994843,
0.36739176511764526,
-0.5468093156814575,
-0.39924538135528564,
-0.717671811580658,
0.06442919373512268,
-0.4128899574279785,
0.8613163232803345,
-0.133833110332489,
0.06641620397567749,
-0.25110238790512085,
-0.14675883948802948,
-0.3492611348628998,
-0.4918420910835266,
-0.3643161356449127,
-0.2858169972896576,
0.2105039358139038,
0.06145212799310684,
0.4837720990180969,
0.36006447672843933,
0.2822953462600708,
0.4318283200263977,
-0.07720329612493515,
0.14326192438602448,
-0.3727013170719147,
-0.115705706179142,
0.10711026936769485,
-0.292158842086792,
-0.09647459536790848,
0.3500911593437195,
0.5828953385353088,
0.5115023255348206,
-0.13964679837226868,
0.048911865800619125,
0.00791175290942192,
0.29674258828163147,
-0.4815416634082794,
0.4359678626060486,
-0.5833271145820618,
0.18076464533805847,
0.13160237669944763,
0.07478690147399902,
-0.6389099359512329,
-0.16434481739997864,
0.3580224812030792,
-0.43692126870155334,
0.08741729706525803,
0.18085327744483948,
1.1572290658950806,
0.368736207485199,
-0.24792100489139557,
-0.3603728413581848,
-0.2729005515575409,
0.906524121761322,
-0.9853789806365967,
0.29111942648887634,
0.27658984065055847,
-0.055740486830472946,
-0.02378460392355919,
-1.0280086994171143,
-0.7604919672012329,
-0.13321338593959808,
-0.43064776062965393,
0.20800814032554626,
-0.41677072644233704,
0.03885117918252945,
0.09464288502931595,
0.24474503099918365,
-0.6566352844238281,
-0.09209701418876648,
-0.40240931510925293,
-0.12613311409950256,
0.5165566802024841,
-0.036450061947107315,
0.36661502718925476,
-0.606585681438446,
-0.4441598653793335,
-0.3263663947582245,
-0.2004619538784027,
-0.1270105093717575,
0.14487391710281372,
0.2074245810508728,
-0.2903065085411072,
0.763334333896637,
0.0800728052854538,
0.5513191819190979,
-0.021676799282431602,
0.303300678730011,
0.6989661455154419,
-0.3621063530445099,
-0.36631152033805847,
-0.08320572227239609,
1.080137014389038,
0.4486844539642334,
0.43764957785606384,
-0.12428528815507889,
-0.18639838695526123,
0.021009715273976326,
0.2880420386791229,
-0.7793006300926208,
-0.3756946623325348,
0.1558627337217331,
-0.4282461404800415,
-0.3225640058517456,
0.15796244144439697,
-0.6207026243209839,
0.008852340281009674,
0.07792755961418152,
0.7472506165504456,
-0.6462752819061279,
0.010376986116170883,
0.2846018075942993,
-0.2737855911254883,
0.21292133629322052,
-0.2756177484989166,
-0.7484003305435181,
0.21179665625095367,
0.261475533246994,
0.929906964302063,
0.10242064297199249,
-0.46926549077033997,
-0.20493651926517487,
-0.16288739442825317,
-0.01929950900375843,
0.597564697265625,
-0.3034418225288391,
-0.1442270427942276,
0.18750488758087158,
0.23704399168491364,
-0.558846652507782,
-0.3437344431877136,
0.5913370251655579,
-0.3714916706085205,
0.71484375,
0.10056646913290024,
-0.877299964427948,
-0.20195724070072174,
0.14687639474868774,
-0.5231037735939026,
1.0679866075515747,
0.1774059683084488,
-0.9564350247383118,
0.1410919576883316,
-0.8287492990493774,
-0.3158465325832367,
-0.16881944239139557,
0.11806482076644897,
-0.7038808465003967,
0.16228321194648743,
0.49079811573028564,
0.6991192102432251,
0.18606919050216675,
0.4990898370742798,
-0.2377205193042755,
-0.4974778890609741,
0.4017634093761444,
-0.4276692867279053,
1.208707332611084,
0.12753047049045563,
-0.33213356137275696,
0.15277835726737976,
-0.5083662867546082,
-0.08590656518936157,
0.2986181676387787,
-0.16543075442314148,
-0.2159854918718338,
0.054081711918115616,
0.34188592433929443,
0.23741662502288818,
0.21503202617168427,
-0.7631139159202576,
0.10493560135364532,
-0.6587988138198853,
0.9665147662162781,
0.6338707804679871,
0.022095289081335068,
0.5269795060157776,
-0.30301612615585327,
0.07273458689451218,
0.3308653235435486,
0.004295792896300554,
-0.21070758998394012,
-0.4536305367946625,
-1.024539828300476,
-0.32413622736930847,
0.37556299567222595,
0.542910099029541,
-0.7159063220024109,
1.1539041996002197,
-0.5076702833175659,
-0.432033509016037,
-0.7458367347717285,
-0.06583811342716217,
0.0709003284573555,
0.3620503842830658,
0.6631937623023987,
-0.10897783935070038,
-0.6860677003860474,
-0.9466345906257629,
0.00004237487155478448,
-0.06804192811250687,
0.05207908898591995,
0.265608549118042,
0.7465713620185852,
-0.48478901386260986,
1.0763459205627441,
-0.6072851419448853,
-0.43265876173973083,
-0.4983419179916382,
0.31810927391052246,
0.2580411434173584,
0.6813023686408997,
0.5525060296058655,
-0.6263202428817749,
-0.28953948616981506,
-0.6939191222190857,
-0.7178269624710083,
0.03497428074479103,
-0.24064388871192932,
-0.1715618073940277,
0.23838622868061066,
0.4728741943836212,
-0.8430660367012024,
0.38587576150894165,
0.6144406199455261,
-0.5279204249382019,
0.31635597348213196,
-0.2870330512523651,
-0.2469247728586197,
-1.3713245391845703,
0.04356318712234497,
0.07432208210229874,
-0.22104939818382263,
-0.43718084692955017,
0.04689313843846321,
0.11756124347448349,
-0.1468079835176468,
-0.48418888449668884,
0.4875138998031616,
-0.34546777606010437,
0.1625863015651703,
-0.0033055066596716642,
0.38011956214904785,
0.01180365588515997,
0.7757623791694641,
-0.06678999960422516,
0.7034021615982056,
0.4596804082393646,
-0.5591790080070496,
0.2879410684108734,
0.6300344467163086,
-0.5440528392791748,
0.06717798858880997,
-0.8783860206604004,
-0.0183394905179739,
-0.032561104744672775,
0.47202494740486145,
-1.1011226177215576,
-0.0006392864161171019,
0.35742220282554626,
-0.6067416667938232,
0.1969367265701294,
0.3803735077381134,
-0.7077333331108093,
-0.5946683883666992,
-0.42029353976249695,
0.15435972809791565,
0.6029607653617859,
-0.600389838218689,
0.595866858959198,
0.2639964520931244,
-0.01295940950512886,
-0.580852746963501,
-1.1973389387130737,
0.025758083909749985,
-0.11303764581680298,
-0.6763566732406616,
0.5584661364555359,
-0.05786054581403732,
0.21249531209468842,
0.3608182370662689,
0.28826555609703064,
-0.017358291894197464,
0.007411268539726734,
0.020523017272353172,
0.24187614023685455,
-0.0696374848484993,
0.2823735177516937,
0.16332460939884186,
-0.11467768996953964,
0.07229787856340408,
-0.2116612046957016,
0.7182583808898926,
-0.16984888911247253,
-0.11837095022201538,
-0.46909794211387634,
0.1939079612493515,
0.387834370136261,
-0.281228631734848,
1.1193196773529053,
1.0283230543136597,
-0.47680333256721497,
-0.06596887111663818,
-0.5741577744483948,
-0.3078083097934723,
-0.4635012447834015,
0.6738839745521545,
-0.12474831938743591,
-1.0052999258041382,
0.35829728841781616,
0.22459325194358826,
0.07358904182910919,
0.6441131234169006,
0.5355190634727478,
-0.17000648379325867,
0.7928964495658875,
0.6037322282791138,
-0.2300357222557068,
0.5444373488426208,
-0.6353155970573425,
0.3675217926502228,
-0.9581617116928101,
-0.013336091302335262,
-0.18063998222351074,
-0.30972903966903687,
-0.712856113910675,
-0.4432595372200012,
0.12326797097921371,
-0.0948348343372345,
-0.33729684352874756,
0.5417891144752502,
-0.5537394285202026,
0.14731119573116302,
0.6627078056335449,
0.20377950370311737,
-0.16674280166625977,
0.04366018623113632,
-0.4079802632331848,
-0.07969827950000763,
-0.6683765053749084,
-0.5566830039024353,
0.864660918712616,
0.5110592842102051,
0.455906480550766,
-0.12217433750629425,
0.6994907259941101,
0.08517260104417801,
0.055247820913791656,
-0.7150235772132874,
0.5975039005279541,
-0.40788760781288147,
-0.5116023421287537,
-0.3442031443119049,
-0.3286493718624115,
-0.875861644744873,
0.3741137981414795,
-0.21175546944141388,
-0.768025815486908,
0.1390482485294342,
-0.23855823278427124,
-0.27949461340904236,
0.307679682970047,
-0.8642855882644653,
1.0548059940338135,
0.07778018712997437,
0.0045602102763950825,
-0.14149433374404907,
-0.6897064447402954,
0.15247999131679535,
0.24144184589385986,
0.03451636806130409,
-0.018893657252192497,
-0.015279505401849747,
0.9196037650108337,
-0.29236674308776855,
1.0884613990783691,
-0.2463129758834839,
0.28534069657325745,
0.43175339698791504,
-0.39633727073669434,
0.2610120475292206,
-0.09673541784286499,
-0.06201157718896866,
0.1429658979177475,
-0.21649420261383057,
-0.36915311217308044,
-0.5195779800415039,
0.6801782250404358,
-1.0318541526794434,
-0.36198702454566956,
-0.4673202633857727,
-0.5697980523109436,
-0.046791329979896545,
0.17750033736228943,
0.38814377784729004,
0.44857510924339294,
-0.23347190022468567,
0.46231627464294434,
0.48155677318573,
-0.3866434693336487,
0.8172509074211121,
0.08438072353601456,
0.018669258803129196,
-0.5650352835655212,
0.6598427295684814,
0.09399397671222687,
-0.042030733078718185,
0.4336649477481842,
0.18741418421268463,
-0.4523913562297821,
-0.21932749450206757,
-0.3577425479888916,
0.4359089434146881,
-0.590907096862793,
-0.18304742872714996,
-1.0490002632141113,
-0.567870020866394,
-0.6440925598144531,
-0.05415613204240799,
-0.21738304197788239,
-0.4583677053451538,
-0.5869823098182678,
-0.32198262214660645,
0.338091105222702,
0.4579836428165436,
-0.0393357016146183,
0.4290953576564789,
-0.7086149454116821,
0.09134085476398468,
0.2036956548690796,
0.1969577968120575,
-0.0037713104393333197,
-0.7095757722854614,
-0.3765125870704651,
0.007686049211770296,
-0.3887028396129608,
-0.8483563661575317,
0.6812794804573059,
0.2542584538459778,
0.6275753974914551,
0.15434762835502625,
0.1479589194059372,
0.5782102942466736,
-0.5870963931083679,
0.9795048236846924,
0.07146991044282913,
-1.0738164186477661,
0.46387234330177307,
-0.03273201733827591,
0.4074367880821228,
0.466032475233078,
0.30240538716316223,
-0.4328934848308563,
-0.42995139956474304,
-0.7177227139472961,
-1.0606034994125366,
0.639120876789093,
0.44185182452201843,
0.6619536280632019,
-0.43735483288764954,
0.2984656095504761,
-0.28810903429985046,
0.19768843054771423,
-1.2281683683395386,
-0.36155766248703003,
-0.4667176306247711,
-0.6258495450019836,
-0.32944560050964355,
-0.3762076795101166,
0.24268504977226257,
-0.37596288323402405,
0.8057190179824829,
0.09255150705575943,
0.8367323875427246,
0.37426188588142395,
-0.564214289188385,
0.16131624579429626,
0.2338990718126297,
0.5117284059524536,
0.20107772946357727,
-0.21161997318267822,
0.12741345167160034,
0.2851002514362335,
-0.3556252717971802,
-0.031854718923568726,
0.507047712802887,
-0.12839755415916443,
0.24967239797115326,
0.4341799020767212,
1.0333055257797241,
0.566710889339447,
-0.4833774268627167,
0.8119816780090332,
-0.066910021007061,
-0.2854239046573639,
-0.4415339231491089,
-0.1455203741788864,
0.25570300221443176,
0.2472209483385086,
0.30981987714767456,
-0.022360607981681824,
-0.006514588836580515,
-0.32677745819091797,
0.3544527590274811,
0.2523922026157379,
-0.46448397636413574,
-0.058430660516023636,
0.6524634957313538,
0.16445879638195038,
-0.1535341590642929,
1.0522146224975586,
-0.2871624231338501,
-0.7260622978210449,
0.38329002261161804,
0.6693308353424072,
1.0340032577514648,
0.055772680789232254,
0.28339698910713196,
0.5412132740020752,
0.397724449634552,
0.015632979571819305,
-0.026581570506095886,
0.14968304336071014,
-0.9726347923278809,
-0.330345094203949,
-0.5922286510467529,
0.08843962103128433,
0.040507201105356216,
-0.5477008819580078,
0.21514487266540527,
-0.12891238927841187,
-0.16866154968738556,
-0.21689990162849426,
0.006933190394192934,
-0.6191858649253845,
0.12062668800354004,
0.10054390877485275,
0.8637918829917908,
-1.0279182195663452,
0.7882245182991028,
0.668398916721344,
-0.678985059261322,
-0.6843461394309998,
-0.045261070132255554,
-0.39411991834640503,
-0.7896337509155273,
0.5480345487594604,
0.5377117991447449,
0.23146814107894897,
0.23849479854106903,
-0.6139872074127197,
-0.7885469198226929,
1.2992666959762573,
0.21118199825286865,
-0.34335649013519287,
-0.25775107741355896,
0.05754793435335159,
0.49209800362586975,
-0.5244028568267822,
0.36172759532928467,
0.3288936913013458,
0.31135082244873047,
-0.08402504026889801,
-0.6473459601402283,
0.21436524391174316,
-0.33099934458732605,
0.25887125730514526,
-0.18177855014801025,
-0.4969647526741028,
0.9499459266662598,
-0.07943437248468399,
-0.21771591901779175,
0.19718582928180695,
0.9154289364814758,
0.27494412660598755,
-0.09256723523139954,
0.5048043727874756,
0.8807021379470825,
0.5594450831413269,
-0.1308240294456482,
0.9416611194610596,
-0.29079675674438477,
0.6871042251586914,
0.9884228110313416,
0.10993386059999466,
1.1413847208023071,
0.4445659816265106,
-0.04668644815683365,
0.8421800136566162,
0.5690256953239441,
-0.36710503697395325,
0.7093372941017151,
0.2416428178548813,
0.07663102447986603,
0.005783398170024157,
0.1247088611125946,
-0.20122191309928894,
0.48186683654785156,
0.19669687747955322,
-0.7625889182090759,
-0.0471125952899456,
0.16792762279510498,
0.05531621351838112,
-0.039508696645498276,
0.12540748715400696,
0.6005359888076782,
0.13175904750823975,
-0.4309891164302826,
0.4010588824748993,
0.20557335019111633,
1.0667157173156738,
-0.38083332777023315,
0.14974059164524078,
-0.020488062873482704,
0.29727503657341003,
0.07205505669116974,
-0.5735093951225281,
0.3653593361377716,
-0.12122282385826111,
-0.0426071472465992,
-0.23427501320838928,
0.6223681569099426,
-0.605376660823822,
-0.6177915930747986,
0.3754812479019165,
0.5348133444786072,
0.03134146332740784,
0.09228480607271194,
-1.0405532121658325,
-0.008965023793280125,
-0.02671685814857483,
-0.5219038128852844,
0.15419816970825195,
0.2905864417552948,
0.3913792073726654,
0.5580765604972839,
0.37636783719062805,
-0.20114435255527496,
0.1197049468755722,
0.18800298869609833,
0.8673379421234131,
-0.6199921369552612,
-0.5908584594726562,
-0.9387905597686768,
0.7403005957603455,
-0.1914902776479721,
-0.3178086280822754,
0.6029559373855591,
0.515557050704956,
0.8759282231330872,
-0.2907973527908325,
0.5511902570724487,
-0.1384923756122589,
0.23890282213687897,
-0.53797447681427,
0.8809141516685486,
-0.45910483598709106,
-0.08291028439998627,
-0.23797506093978882,
-0.9267066121101379,
-0.3487023413181305,
1.1641716957092285,
-0.34528645873069763,
0.20196576416492462,
0.8919417858123779,
0.7529436945915222,
-0.04266767203807831,
-0.025447284802794456,
0.13785400986671448,
0.4222751259803772,
0.22922232747077942,
0.47616010904312134,
0.4567314386367798,
-0.8372275233268738,
0.6302223205566406,
-0.493802934885025,
-0.06646893173456192,
-0.15583381056785583,
-0.8630350828170776,
-1.0206342935562134,
-0.8005743026733398,
-0.43255582451820374,
-0.23686835169792175,
-0.005089473444968462,
1.105068325996399,
0.6611654758453369,
-0.7426013946533203,
-0.11503733694553375,
-0.28467434644699097,
-0.2286079227924347,
-0.12530338764190674,
-0.31922778487205505,
0.5411583781242371,
-0.6045465469360352,
-0.8082115054130554,
0.1345699280500412,
-0.15525224804878235,
0.1569419950246811,
-0.3918813467025757,
0.13992980122566223,
-0.7041563391685486,
0.19285276532173157,
0.6020472645759583,
-0.3147827982902527,
-0.8463306427001953,
-0.3349897861480713,
0.048689041286706924,
-0.33780956268310547,
-0.1132572591304779,
0.3282662630081177,
-0.7089812159538269,
0.285167932510376,
0.3361106812953949,
0.6238625049591064,
0.6252239346504211,
-0.24175018072128296,
0.5087543725967407,
-0.859581708908081,
0.2274772822856903,
0.12743203341960907,
0.6965947151184082,
0.453213095664978,
-0.23930507898330688,
0.5701004266738892,
0.21689574420452118,
-0.48396462202072144,
-0.66386479139328,
-0.21800129115581512,
-1.0302016735076904,
-0.33356374502182007,
1.0717271566390991,
-0.43802279233932495,
-0.34854835271835327,
0.2042495757341385,
-0.16058392822742462,
0.5311057567596436,
-0.3398752212524414,
0.7068325281143188,
0.9111156463623047,
0.06436776369810104,
-0.3198820948600769,
-0.323060005903244,
0.15986278653144836,
0.4413774311542511,
-0.5270218253135681,
-0.16089436411857605,
0.26090073585510254,
0.23987054824829102,
0.31183671951293945,
0.41899800300598145,
-0.09981074929237366,
-0.018113169819116592,
0.049501221626996994,
0.17590762674808502,
-0.19489242136478424,
0.054720327258110046,
-0.339964359998703,
0.032820217311382294,
-0.3917222321033478,
-0.4444757401943207
] |
allenai/unifiedqa-v2-t5-large-1363200 | allenai | "2023-01-24T16:28:30Z" | 95,867 | 3 | transformers | [
"transformers",
"pytorch",
"t5",
"text2text-generation",
"en",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | text2text-generation | "2022-03-02T23:29:05Z" | ---
language: en
---
# Further details: https://github.com/allenai/unifiedqa
| [
-0.46491631865501404,
-0.2370699942111969,
0.4576164782047272,
0.2028285413980484,
-0.0072821094654500484,
0.2465752363204956,
0.2974104583263397,
-0.15761098265647888,
0.5594327449798584,
0.8852181434631348,
-0.598706066608429,
-0.6461884379386902,
-0.01764417253434658,
-0.3478516936302185,
-0.7165235280990601,
0.7135604619979858,
0.061309535056352615,
0.24330797791481018,
0.20001770555973053,
-0.40674445033073425,
-0.6155850291252136,
-0.18621428310871124,
-0.588912844657898,
-0.7104833722114563,
0.49200835824012756,
0.9679813385009766,
0.706275224685669,
0.20717066526412964,
0.5378328561782837,
0.24006584286689758,
0.08506558835506439,
-0.20167572796344757,
-0.19522784650325775,
-0.017926521599292755,
0.1859569251537323,
-0.1377377212047577,
-0.5688225030899048,
-0.14166966080665588,
1.2978019714355469,
0.5358197093009949,
-0.4200049936771393,
0.3335404098033905,
-0.21987588703632355,
1.1685949563980103,
-0.5417467951774597,
-0.2897310256958008,
-0.1812731921672821,
-0.0993836298584938,
-0.24384666979312897,
0.14954175055027008,
0.07833526283502579,
-0.20673365890979767,
-0.28174903988838196,
-0.9361346960067749,
-0.1593625396490097,
-0.2772955596446991,
1.2747822999954224,
0.15346376597881317,
-0.9182063341140747,
0.19864073395729065,
-0.6696887016296387,
0.31659331917762756,
-0.3888501524925232,
0.7687796354293823,
0.24371923506259918,
0.5955095887184143,
-0.3091384470462799,
-1.0897217988967896,
-0.5981810688972473,
-0.1577683836221695,
-0.24508950114250183,
0.13066112995147705,
-0.24942579865455627,
0.33370310068130493,
0.050689447671175,
0.3241402804851532,
-0.7477738261222839,
-0.1224653348326683,
-0.7707429528236389,
-0.18936797976493835,
0.6078919172286987,
0.012870672158896923,
0.4818930923938751,
-0.31354081630706787,
-0.5798556208610535,
0.2551907002925873,
-1.0778077840805054,
0.2834022641181946,
0.09357710182666779,
0.04914792254567146,
-0.3300457000732422,
0.6875020861625671,
-0.6755890846252441,
0.09208794683218002,
-0.1280885934829712,
0.793399453163147,
0.42124322056770325,
-0.45656248927116394,
-0.550344705581665,
-0.20722362399101257,
0.4874667227268219,
-0.14504028856754303,
0.02113029733300209,
-0.045923903584480286,
-0.08408425003290176,
-0.11243008077144623,
0.5768159031867981,
-0.8896540403366089,
-0.939358651638031,
0.5577287077903748,
-0.3997287154197693,
0.18383073806762695,
0.5384442210197449,
-0.36066603660583496,
0.007424733601510525,
-0.5710440874099731,
0.6975364089012146,
-0.20444519817829132,
-0.3270912170410156,
-0.14981946349143982,
-0.1221880093216896,
0.6210623979568481,
0.47929418087005615,
-0.6263282299041748,
0.33977216482162476,
0.863166093826294,
0.3619166910648346,
0.36487317085266113,
-0.6017942428588867,
-0.6085869073867798,
-0.12211401015520096,
-0.04232567176222801,
0.7353865504264832,
-0.25075748562812805,
-0.1931055784225464,
-0.051025357097387314,
-0.12650243937969208,
0.10815457254648209,
-0.27044254541397095,
0.709484338760376,
-0.9619714617729187,
-0.22200731933116913,
-0.4580426812171936,
-0.37481769919395447,
-0.19327384233474731,
0.0877022072672844,
-1.1831187009811401,
1.1233980655670166,
0.015525654889643192,
-0.3166874349117279,
-0.10116761177778244,
-1.5042413473129272,
-0.27319321036338806,
0.7071103453636169,
-0.4314398169517517,
-0.41093218326568604,
-0.1821126490831375,
-0.023953089490532875,
0.19906173646450043,
-0.11256180703639984,
0.6116793751716614,
-0.07375220954418182,
-0.5776610374450684,
0.37326788902282715,
0.05404369533061981,
1.4460054636001587,
0.483968049287796,
-0.28595444560050964,
0.6691330671310425,
-0.6884247660636902,
0.09130456298589706,
-0.13401100039482117,
-0.27141472697257996,
-0.23734217882156372,
-0.667032778263092,
0.2927674651145935,
-0.5124536752700806,
0.39611971378326416,
-0.47819361090660095,
0.35551732778549194,
0.32097959518432617,
-0.0843152180314064,
0.6932546496391296,
-0.17747414112091064,
0.6994894742965698,
0.029087498784065247,
0.5018517374992371,
-0.4605075716972351,
0.4977811276912689,
-0.03628312423825264,
-0.8108797669410706,
-1.0237798690795898,
-0.15862467885017395,
0.7358015179634094,
0.8411744236946106,
-0.7724938988685608,
0.6753443479537964,
0.20090587437152863,
-0.44473525881767273,
-0.5425878763198853,
0.3580443561077118,
0.5051716566085815,
0.10771023482084274,
0.21113240718841553,
-0.6326316595077515,
-0.9178935289382935,
-0.6259747743606567,
0.20643486082553864,
-0.461713969707489,
-0.2513478994369507,
-0.22749507427215576,
0.7802585363388062,
-1.011161208152771,
0.7592626214027405,
-0.37009671330451965,
-0.23178836703300476,
0.17140981554985046,
0.37811243534088135,
-0.0021480065770447254,
0.5522814989089966,
0.40184152126312256,
-1.1527265310287476,
-0.2467791885137558,
-0.12280622869729996,
-0.5775670409202576,
-0.2292206585407257,
-0.13028137385845184,
-0.8109439611434937,
-0.2490016371011734,
0.07747581601142883,
-0.8290029168128967,
0.8361443877220154,
0.8184079527854919,
-0.7806054949760437,
0.5031219124794006,
0.33547869324684143,
0.2604875862598419,
-1.5833144187927246,
0.2753791809082031,
-0.296334832906723,
-0.059011153876781464,
-0.4124971926212311,
0.850774884223938,
0.2187989354133606,
-0.22176925837993622,
-0.2600115239620209,
0.29094618558883667,
-0.6891695857048035,
-0.09454456716775894,
-0.0059270914644002914,
-0.2567984163761139,
0.05420462414622307,
0.1839643269777298,
-0.31862473487854004,
0.9018340110778809,
0.6718844175338745,
-0.46980008482933044,
0.7977227568626404,
0.3267964720726013,
0.08529292047023773,
0.4105115532875061,
-0.9625948071479797,
-0.06701408326625824,
0.4661470055580139,
0.24161355197429657,
-1.4362720251083374,
-0.6238707304000854,
0.042359236627817154,
-0.7896842956542969,
-0.058275386691093445,
-0.02770617976784706,
-0.4617418050765991,
-0.4675344228744507,
-0.7021352648735046,
0.4868677258491516,
0.4086853265762329,
-0.9121818542480469,
0.5680134892463684,
1.04178786277771,
0.016970500349998474,
-0.522097110748291,
-0.5624339580535889,
0.23172850906848907,
0.07664712518453598,
-0.4226989150047302,
0.24162046611309052,
-0.46538805961608887,
-0.31056323647499084,
0.002901859115809202,
0.3059481680393219,
-0.7504193186759949,
0.1587693691253662,
0.6226381659507751,
0.38458746671676636,
-0.33973032236099243,
0.4558227062225342,
0.2523690462112427,
-0.27812549471855164,
-0.00006123170896898955,
-0.26694443821907043,
0.1736801564693451,
-0.7829383611679077,
-0.4424668252468109,
-0.8958939909934998,
0.7792975902557373,
0.29436492919921875,
-0.39494550228118896,
0.32438912987709045,
1.1100884675979614,
-0.7153245210647583,
0.17048576474189758,
-0.5447193384170532,
-0.1584329903125763,
-0.5308402180671692,
0.02675003372132778,
-0.4387073516845703,
-1.3237141370773315,
0.7121270298957825,
-0.3324539065361023,
-0.03216249495744705,
1.0163756608963013,
0.5842235088348389,
-0.2979505956172943,
0.5619251728057861,
0.8892870545387268,
-0.19212543964385986,
0.32553285360336304,
-0.5885373950004578,
-0.09582746773958206,
-0.9102214574813843,
-0.3567311763763428,
-0.853203296661377,
-0.16336509585380554,
-0.7204275727272034,
-0.3066647946834564,
0.22387222945690155,
0.5038744211196899,
-0.7028433680534363,
0.8708939552307129,
-0.6825381517410278,
0.9327858686447144,
1.0450953245162964,
-0.24539044499397278,
0.3771149516105652,
-0.052408989518880844,
-0.1517244130373001,
0.12072195112705231,
-0.44220802187919617,
-0.253007173538208,
1.1299508810043335,
0.4560539126396179,
0.9103606939315796,
0.7322284579277039,
1.3113805055618286,
0.3486531972885132,
0.4364491105079651,
-0.4842253625392914,
0.3636630177497864,
0.35494014620780945,
-0.9020853638648987,
-0.774840235710144,
-0.4717704653739929,
-1.428816795349121,
-0.007983202114701271,
-0.12615148723125458,
-0.528710126876831,
0.3910570740699768,
-0.12898986041545868,
-0.5502959489822388,
0.2116483896970749,
-0.8056029081344604,
0.8184852600097656,
-0.14949752390384674,
0.4909844994544983,
-0.0635184496641159,
-0.7419959902763367,
0.2277698814868927,
0.0003297733492217958,
-0.08031131327152252,
0.04173127934336662,
-0.06434278190135956,
0.9741703867912292,
-0.14471818506717682,
0.9963369965553284,
0.21726781129837036,
-0.15598979592323303,
0.5383087992668152,
-0.17652331292629242,
-0.29040709137916565,
0.9490862488746643,
0.15569302439689636,
0.3343437612056732,
-0.04204042628407478,
-0.7195206880569458,
-0.08127902448177338,
1.115876317024231,
-0.9388514757156372,
0.1264982521533966,
-0.359710693359375,
-0.4050599932670593,
0.3270982503890991,
0.39904117584228516,
0.0071251788176596165,
0.38461583852767944,
-0.55169677734375,
0.19201385974884033,
0.9177812933921814,
0.4620707035064697,
0.47934889793395996,
0.6993623971939087,
-0.4881856441497803,
-0.8334749341011047,
0.3649214208126068,
-0.13264107704162598,
-0.4695252776145935,
0.6545756459236145,
-0.04052107036113739,
-0.3282548487186432,
-0.37022894620895386,
-0.8308256268501282,
0.2525380551815033,
-0.716701328754425,
-0.5635988712310791,
-0.13451342284679413,
-0.4627472162246704,
-0.7997164726257324,
-0.037781041115522385,
-0.6050933599472046,
-0.7321896553039551,
-0.38571304082870483,
-0.28251853585243225,
0.6133948564529419,
1.2306852340698242,
-0.36039242148399353,
0.5326735377311707,
-1.0379270315170288,
0.807192325592041,
0.700489342212677,
0.7118496894836426,
-0.3575388491153717,
-0.48791784048080444,
-0.5641167759895325,
0.08205496519804001,
-0.7750584483146667,
-0.7189739942550659,
-0.024801140651106834,
0.13635961711406708,
0.8487961292266846,
0.3045114278793335,
0.28205132484436035,
0.579250156879425,
-0.29456400871276855,
0.7104566097259521,
0.422588974237442,
-1.2327349185943604,
0.8575124144554138,
-0.2596096694469452,
0.7617031931877136,
1.1959720849990845,
0.5705416798591614,
-0.4258792996406555,
-0.1932373344898224,
-0.8517599701881409,
-0.8595160245895386,
-0.031227225437760353,
0.6453458666801453,
0.16060929000377655,
0.36202067136764526,
0.3274044394493103,
-0.2280772477388382,
-0.037457000464200974,
-0.9306553602218628,
-0.8789427876472473,
0.36233049631118774,
-0.07882510870695114,
0.17283639311790466,
-0.4406213164329529,
-0.7001897692680359,
-0.6933183073997498,
0.7367980480194092,
0.13542211055755615,
0.42404043674468994,
0.24709093570709229,
-0.015673121437430382,
-0.1921294927597046,
0.38990551233291626,
0.5683223605155945,
0.9705685377120972,
-0.17129208147525787,
-0.11968890577554703,
-0.10040988028049469,
-0.5184219479560852,
-0.19984027743339539,
0.823395311832428,
-0.271331250667572,
0.23066507279872894,
0.5806108117103577,
0.7544716000556946,
-0.13880552351474762,
-0.2153739631175995,
0.3346203863620758,
-0.33905789256095886,
-0.40695562958717346,
-0.8106757402420044,
-0.0582708902657032,
0.10392238199710846,
0.7408267259597778,
0.7457525134086609,
-0.2773889899253845,
0.787674605846405,
-0.6025217771530151,
0.852434515953064,
0.026572899892926216,
-0.5135229825973511,
-0.41175028681755066,
0.6328074336051941,
0.8341343402862549,
-0.5383040904998779,
0.5422730445861816,
-0.36826634407043457,
-0.7689228057861328,
0.6702470183372498,
0.2545562982559204,
0.9978216290473938,
-0.5747182369232178,
0.6792740225791931,
0.20484381914138794,
0.3902599811553955,
0.34948399662971497,
0.9721837639808655,
-0.4806811511516571,
-0.3918021619319916,
-0.3304990231990814,
-0.3560117185115814,
-0.7524556517601013,
-0.24773098528385162,
-0.7865346074104309,
-0.3294978737831116,
-0.24219834804534912,
-0.0321224108338356,
0.015932437032461166,
0.40456581115722656,
-0.6335588097572327,
0.16591082513332367,
0.3751978278160095,
1.0508451461791992,
-0.7471820712089539,
1.4885542392730713,
1.2371641397476196,
-0.5350105166435242,
-1.2847158908843994,
-0.01996345818042755,
0.19130070507526398,
-0.41661182045936584,
0.34205764532089233,
0.386933833360672,
-0.34458860754966736,
-0.23062551021575928,
-0.7563435435295105,
-0.7365328073501587,
1.5636649131774902,
0.3421727418899536,
-0.5299347043037415,
0.3203563094139099,
-0.03515414521098137,
0.531678318977356,
-0.4095829427242279,
0.09609939157962799,
0.5967920422554016,
0.6629501581192017,
0.17314322292804718,
-1.25095534324646,
-0.10360438376665115,
-0.806972324848175,
0.06532341241836548,
0.5358693599700928,
-0.4068324565887451,
0.8417567014694214,
-0.289725661277771,
-0.19157864153385162,
0.40859925746917725,
0.9044793248176575,
-0.07323995977640152,
0.6452429890632629,
0.3122376799583435,
1.0758702754974365,
0.9774653315544128,
-0.15106378495693207,
0.7478195428848267,
0.1275283545255661,
0.6892451047897339,
1.3356513977050781,
-0.04362887889146805,
0.8984300494194031,
0.5462144613265991,
-0.34771955013275146,
0.7206876277923584,
0.5913403034210205,
0.11465495824813843,
0.27017611265182495,
-0.10474623739719391,
-0.3831556439399719,
0.2550887167453766,
-0.11145509779453278,
-0.8585948944091797,
0.406843900680542,
0.007363129407167435,
-0.1231733039021492,
0.16572192311286926,
-0.4847220480442047,
-0.054442934691905975,
-0.02987169660627842,
-0.3251922130584717,
0.7880915403366089,
0.06301029026508331,
-0.3286731243133545,
0.6280228495597839,
-0.03117702715098858,
0.39524292945861816,
-0.5011272430419922,
-0.3472594618797302,
-0.17109814286231995,
-0.011012531816959381,
-0.22742275893688202,
-1.279191255569458,
0.581418514251709,
-0.22054268419742584,
0.3134688138961792,
0.22360974550247192,
0.6389361619949341,
-0.6380587816238403,
-0.6190250515937805,
0.8324503898620605,
0.23831680417060852,
-0.015130064450204372,
-0.18290957808494568,
-0.8899596929550171,
0.008936597965657711,
0.20974047482013702,
-0.038702577352523804,
-0.03356056287884712,
0.4124661087989807,
0.18872830271720886,
0.4104258120059967,
0.6705285906791687,
-0.19969280064105988,
-0.20132598280906677,
0.5270007252693176,
1.0569822788238525,
-0.8553598523139954,
-0.3582417666912079,
-0.45144861936569214,
1.036607265472412,
-0.32847195863723755,
-0.5963468551635742,
0.618057131767273,
0.6493342518806458,
1.124492883682251,
-0.061250537633895874,
0.1547696888446808,
0.08590780198574066,
0.1465911865234375,
-0.4646923840045929,
0.950107753276825,
-0.5885804295539856,
0.2921140491962433,
-0.07259619235992432,
-0.6994250416755676,
-0.9695616364479065,
0.22276851534843445,
0.44080302119255066,
-0.2757830321788788,
0.7363373637199402,
0.813886284828186,
-0.1083957776427269,
0.0008894205093383789,
0.35719603300094604,
-0.3295818567276001,
0.13026051223278046,
0.3041991889476776,
0.5274340510368347,
-0.7225739359855652,
0.4564819931983948,
-0.4130036532878876,
-0.4183560907840729,
-0.19528454542160034,
-0.44448333978652954,
-0.7792450189590454,
-0.8042677640914917,
-0.10711635649204254,
-0.20809012651443481,
0.11209634691476822,
0.6943211555480957,
1.0481951236724854,
-1.185097575187683,
-0.6728656888008118,
-0.03949333354830742,
0.4829002022743225,
0.2027638703584671,
-0.2153664082288742,
0.33811187744140625,
0.23805400729179382,
-0.25965970754623413,
-0.0051293885335326195,
0.12261401861906052,
-0.05008018761873245,
-0.17657937109470367,
-0.5504907965660095,
-0.6050592064857483,
0.1798018515110016,
0.48901477456092834,
0.6534688472747803,
-0.7714228630065918,
-0.16357561945915222,
-0.46460914611816406,
-0.3541347086429596,
0.11726658791303635,
0.8859360814094543,
-0.4949387013912201,
0.35470500588417053,
0.526147186756134,
0.9338324666023254,
0.12269344925880432,
0.10395649820566177,
0.39108994603157043,
-0.6255666017532349,
-0.12825161218643188,
-0.1847422868013382,
0.4134516417980194,
0.14993122220039368,
-0.674415111541748,
0.8305519819259644,
0.10106933861970901,
-0.899163544178009,
-0.48739492893218994,
0.42596808075904846,
-1.374524474143982,
0.09766346216201782,
0.4578302502632141,
-0.06907326728105545,
0.08308207988739014,
0.07414648681879044,
-0.36921554803848267,
0.5301995873451233,
-1.0161100625991821,
0.6645615100860596,
0.2537635266780853,
-0.1266472488641739,
-0.3245908319950104,
-0.2494998276233673,
0.17590200901031494,
0.2758912146091461,
-1.1285874843597412,
-0.5105091333389282,
0.588373064994812,
-0.07801488786935806,
0.42101797461509705,
0.9710211157798767,
0.11777396500110626,
0.8546072840690613,
-0.0666583850979805,
0.5912603735923767,
0.2485930174589157,
-0.9676738977432251,
-0.7564008831977844,
-0.040344979614019394,
0.19947783648967743,
-0.6142958402633667
] |
google/mt5-small | google | "2023-09-18T09:35:27Z" | 95,555 | 68 | transformers | [
"transformers",
"pytorch",
"tf",
"jax",
"onnx",
"mt5",
"text2text-generation",
"multilingual",
"af",
"am",
"ar",
"az",
"be",
"bg",
"bn",
"ca",
"ceb",
"co",
"cs",
"cy",
"da",
"de",
"el",
"en",
"eo",
"es",
"et",
"eu",
"fa",
"fi",
"fil",
"fr",
"fy",
"ga",
"gd",
"gl",
"gu",
"ha",
"haw",
"hi",
"hmn",
"ht",
"hu",
"hy",
"ig",
"is",
"it",
"iw",
"ja",
"jv",
"ka",
"kk",
"km",
"kn",
"ko",
"ku",
"ky",
"la",
"lb",
"lo",
"lt",
"lv",
"mg",
"mi",
"mk",
"ml",
"mn",
"mr",
"ms",
"mt",
"my",
"ne",
"nl",
"no",
"ny",
"pa",
"pl",
"ps",
"pt",
"ro",
"ru",
"sd",
"si",
"sk",
"sl",
"sm",
"sn",
"so",
"sq",
"sr",
"st",
"su",
"sv",
"sw",
"ta",
"te",
"tg",
"th",
"tr",
"uk",
"und",
"ur",
"uz",
"vi",
"xh",
"yi",
"yo",
"zh",
"zu",
"dataset:mc4",
"arxiv:2010.11934",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | text2text-generation | "2022-03-02T23:29:05Z" | ---
language:
- multilingual
- af
- am
- ar
- az
- be
- bg
- bn
- ca
- ceb
- co
- cs
- cy
- da
- de
- el
- en
- eo
- es
- et
- eu
- fa
- fi
- fil
- fr
- fy
- ga
- gd
- gl
- gu
- ha
- haw
- hi
- hmn
- ht
- hu
- hy
- ig
- is
- it
- iw
- ja
- jv
- ka
- kk
- km
- kn
- ko
- ku
- ky
- la
- lb
- lo
- lt
- lv
- mg
- mi
- mk
- ml
- mn
- mr
- ms
- mt
- my
- ne
- nl
- no
- ny
- pa
- pl
- ps
- pt
- ro
- ru
- sd
- si
- sk
- sl
- sm
- sn
- so
- sq
- sr
- st
- su
- sv
- sw
- ta
- te
- tg
- th
- tr
- uk
- und
- ur
- uz
- vi
- xh
- yi
- yo
- zh
- zu
datasets:
- mc4
license: apache-2.0
---
[Google's mT5](https://github.com/google-research/multilingual-t5)
mT5 is pretrained on the [mC4](https://www.tensorflow.org/datasets/catalog/c4#c4multilingual) corpus, covering 101 languages:
Afrikaans, Albanian, Amharic, Arabic, Armenian, Azerbaijani, Basque, Belarusian, Bengali, Bulgarian, Burmese, Catalan, Cebuano, Chichewa, Chinese, Corsican, Czech, Danish, Dutch, English, Esperanto, Estonian, Filipino, Finnish, French, Galician, Georgian, German, Greek, Gujarati, Haitian Creole, Hausa, Hawaiian, Hebrew, Hindi, Hmong, Hungarian, Icelandic, Igbo, Indonesian, Irish, Italian, Japanese, Javanese, Kannada, Kazakh, Khmer, Korean, Kurdish, Kyrgyz, Lao, Latin, Latvian, Lithuanian, Luxembourgish, Macedonian, Malagasy, Malay, Malayalam, Maltese, Maori, Marathi, Mongolian, Nepali, Norwegian, Pashto, Persian, Polish, Portuguese, Punjabi, Romanian, Russian, Samoan, Scottish Gaelic, Serbian, Shona, Sindhi, Sinhala, Slovak, Slovenian, Somali, Sotho, Spanish, Sundanese, Swahili, Swedish, Tajik, Tamil, Telugu, Thai, Turkish, Ukrainian, Urdu, Uzbek, Vietnamese, Welsh, West Frisian, Xhosa, Yiddish, Yoruba, Zulu.
**Note**: mT5 was only pre-trained on mC4 excluding any supervised training. Therefore, this model has to be fine-tuned before it is useable on a downstream task.
Pretraining Dataset: [mC4](https://www.tensorflow.org/datasets/catalog/c4#c4multilingual)
Other Community Checkpoints: [here](https://huggingface.co/models?search=mt5)
Paper: [mT5: A massively multilingual pre-trained text-to-text transformer](https://arxiv.org/abs/2010.11934)
Authors: *Linting Xue, Noah Constant, Adam Roberts, Mihir Kale, Rami Al-Rfou, Aditya Siddhant, Aditya Barua, Colin Raffel*
## Abstract
The recent "Text-to-Text Transfer Transformer" (T5) leveraged a unified text-to-text format and scale to attain state-of-the-art results on a wide variety of English-language NLP tasks. In this paper, we introduce mT5, a multilingual variant of T5 that was pre-trained on a new Common Crawl-based dataset covering 101 languages. We describe the design and modified training of mT5 and demonstrate its state-of-the-art performance on many multilingual benchmarks. All of the code and model checkpoints used in this work are publicly available. | [
-0.5287659168243408,
-0.17020736634731293,
0.29125913977622986,
0.411001056432724,
-0.2939440906047821,
0.36009055376052856,
-0.38297703862190247,
-0.4471434950828552,
0.17177559435367584,
0.3612290918827057,
-0.7018294930458069,
-0.8553211092948914,
-0.9299465417861938,
0.7416996955871582,
-0.2503918707370758,
1.0841466188430786,
-0.37709149718284607,
0.2013067752122879,
0.233460932970047,
-0.5431137681007385,
-0.42154890298843384,
-0.6196607351303101,
-0.49560022354125977,
-0.1249396800994873,
0.8160201907157898,
0.4453313648700714,
0.3333050012588501,
0.4619409441947937,
0.5839908123016357,
0.26146456599235535,
0.1784922331571579,
0.22893574833869934,
-0.4870876669883728,
-0.3450133502483368,
0.0006749290623702109,
-0.3941822946071625,
-0.41489458084106445,
-0.14310669898986816,
0.5393335819244385,
0.6068596839904785,
-0.13685527443885803,
0.4702296555042267,
-0.10950390249490738,
0.5276477932929993,
-0.49017658829689026,
0.0010665410663932562,
-0.5381154417991638,
0.09321016818284988,
-0.46708229184150696,
-0.006121326237916946,
-0.39827680587768555,
-0.08440545201301575,
-0.10739824920892715,
-0.7024151086807251,
0.1903952956199646,
0.030630508437752724,
1.0908089876174927,
0.23771516978740692,
-0.6577680706977844,
-0.32248014211654663,
-0.448163241147995,
0.9834946990013123,
-0.4281518757343292,
0.9373108744621277,
0.5267671346664429,
0.3711853623390198,
0.17135311663150787,
-1.0179470777511597,
-0.719574511051178,
0.24352215230464935,
-0.033016905188560486,
0.2380836308002472,
-0.05137020722031593,
-0.1915089339017868,
0.1494176834821701,
0.2620703876018524,
-0.6665552854537964,
0.027179181575775146,
-0.7649306058883667,
-0.12463881820440292,
0.3247493505477905,
-0.14510692656040192,
0.48713189363479614,
-0.1410367488861084,
-0.2749324142932892,
-0.054494068026542664,
-0.7521618008613586,
0.11277471482753754,
0.4091085195541382,
0.3508078157901764,
-0.48851823806762695,
0.3054908812046051,
0.1536911278963089,
0.617260217666626,
-0.07916209846735,
-0.4438342750072479,
0.7383081912994385,
-0.4628865122795105,
-0.10182414203882217,
-0.018812289461493492,
1.0781339406967163,
0.21695268154144287,
0.3720126450061798,
-0.5303317904472351,
-0.03675054386258125,
0.028104456141591072,
0.24528531730175018,
-0.9077159762382507,
-0.26190662384033203,
0.337196946144104,
-0.2603209614753723,
0.0781635195016861,
-0.14798690378665924,
-0.44928357005119324,
0.042243700474500656,
-0.22894272208213806,
0.24792592227458954,
-0.6811641454696655,
-0.3962561786174774,
0.07872182130813599,
-0.007933221757411957,
0.07379433512687683,
0.061126697808504105,
-1.2433538436889648,
0.05642888695001602,
0.32577332854270935,
0.8866039514541626,
-0.37863367795944214,
-0.7934433817863464,
-0.3704870343208313,
0.3213329017162323,
-0.2909301519393921,
0.5987313985824585,
-0.5577380061149597,
-0.3396054804325104,
-0.06448886543512344,
0.5372231006622314,
-0.1494760513305664,
-0.30321094393730164,
0.7759956121444702,
-0.48253610730171204,
0.6751986145973206,
-0.4226829707622528,
-0.014642245136201382,
-0.40093794465065,
0.49358734488487244,
-0.8695905804634094,
1.3061367273330688,
0.1075855940580368,
-0.9730050563812256,
0.6218177676200867,
-0.9446143507957458,
-0.6707247495651245,
-0.15319156646728516,
0.05843881517648697,
-0.4698597490787506,
-0.30862656235694885,
0.5947718620300293,
0.43700987100601196,
-0.06394857913255692,
0.3019412159919739,
-0.12600278854370117,
-0.36386391520500183,
-0.21558751165866852,
-0.19274906814098358,
0.7320467829704285,
0.3503572642803192,
-0.46093273162841797,
0.13628186285495758,
-0.9538672566413879,
-0.04966265335679054,
-0.05629965290427208,
-0.5391768217086792,
-0.00539505947381258,
-0.25826430320739746,
0.1851993054151535,
0.5636165142059326,
0.2741197347640991,
-0.668843686580658,
0.0020309784449636936,
-0.2551964521408081,
0.5535432696342468,
0.5767301917076111,
-0.5031907558441162,
0.36773109436035156,
-0.18313507735729218,
0.6604729890823364,
0.503402590751648,
-0.0866805762052536,
-0.43422931432724,
-0.4117165207862854,
-0.7768277525901794,
-0.4961828291416168,
0.6132076382637024,
0.7016400098800659,
-1.3041877746582031,
0.01942051388323307,
-0.7436871528625488,
-0.27334505319595337,
-1.0370312929153442,
0.25037094950675964,
0.36030298471450806,
0.3688487708568573,
0.7425279021263123,
-0.1268485188484192,
-0.8475779294967651,
-0.6615553498268127,
-0.3061140477657318,
0.29886674880981445,
0.043941061943769455,
-0.04599253460764885,
0.5514217019081116,
-0.45294690132141113,
0.6218560934066772,
0.007242871914058924,
-0.4499889612197876,
-0.43327248096466064,
0.05215882882475853,
0.3375226855278015,
0.4223688244819641,
0.7315600514411926,
-0.8157497644424438,
-0.7407147288322449,
0.16866041719913483,
-0.6790167689323425,
0.11069446802139282,
0.24593839049339294,
-0.03597297891974449,
0.5673356056213379,
0.3469583988189697,
-0.3317081034183502,
-0.011137834750115871,
1.201148509979248,
-0.09011775255203247,
0.23519457876682281,
-0.42298728227615356,
0.36899375915527344,
-1.7931002378463745,
0.33070114254951477,
-0.20526567101478577,
-0.359225332736969,
-0.4989354610443115,
-0.05739780515432358,
0.23968711495399475,
-0.1154259443283081,
-0.6969247460365295,
0.6136739253997803,
-0.8283565044403076,
0.032796308398246765,
-0.01425987295806408,
0.07404185086488724,
-0.11625229567289352,
0.602687418460846,
0.0833018496632576,
0.9612457156181335,
0.38035455346107483,
-0.699108362197876,
0.13591046631336212,
0.3032442331314087,
-0.33176565170288086,
0.5019882917404175,
-0.5114981532096863,
0.23450423777103424,
-0.1579664945602417,
0.24953824281692505,
-0.930966854095459,
-0.1544271558523178,
0.0585230328142643,
-0.6611976027488708,
0.20170128345489502,
-0.40039119124412537,
-0.6786841154098511,
-0.45652443170547485,
-0.15560515224933624,
0.41120168566703796,
0.277851939201355,
-0.6900840401649475,
0.5321743488311768,
0.33436986804008484,
-0.03843673691153526,
-0.9914758205413818,
-1.0641822814941406,
0.46611496806144714,
-0.46618011593818665,
-0.6319088339805603,
0.3407834470272064,
-0.16937457025051117,
0.4097568988800049,
-0.3407660722732544,
0.32931575179100037,
-0.23202894628047943,
0.09782688319683075,
0.024084853008389473,
0.14285989105701447,
-0.12604838609695435,
-0.17087191343307495,
0.026469990611076355,
-0.15748755633831024,
-0.24765105545520782,
-0.4371405243873596,
0.7564414739608765,
-0.06430723518133163,
-0.13733607530593872,
-0.37914636731147766,
0.37554001808166504,
0.6542646884918213,
-0.6270845532417297,
0.8409300446510315,
1.2901355028152466,
-0.2119925320148468,
0.1629558950662613,
-0.4792739450931549,
0.07094677537679672,
-0.47434985637664795,
0.4491400420665741,
-0.9592604041099548,
-1.151069164276123,
0.7058587670326233,
-0.13314026594161987,
0.30834850668907166,
0.5176830887794495,
0.6321477293968201,
0.0346347950398922,
1.1055060625076294,
0.8187008500099182,
-0.07179781049489975,
0.41239601373672485,
-0.27425700426101685,
0.25427404046058655,
-0.8040446639060974,
-0.13379395008087158,
-0.5563840866088867,
-0.36101794242858887,
-1.0504859685897827,
-0.3499913513660431,
0.36288413405418396,
-0.22823061048984528,
-0.21674710512161255,
0.620980441570282,
-0.3160799741744995,
0.4560352563858032,
0.4783059060573578,
-0.2283833771944046,
0.3253903090953827,
0.20438429713249207,
-0.6522554159164429,
-0.3612130582332611,
-0.7851532697677612,
-0.5988466143608093,
1.37196946144104,
0.18600989878177643,
0.16767975687980652,
0.5375699996948242,
0.6286550164222717,
-0.14014257490634918,
0.47488704323768616,
-0.4303051233291626,
0.14159666001796722,
-0.45681336522102356,
-0.8769563436508179,
-0.13362360000610352,
-0.48711374402046204,
-1.357116937637329,
0.3321720063686371,
-0.15711148083209991,
-0.6238225102424622,
-0.08815564960241318,
0.011559044942259789,
-0.03912781551480293,
0.3300091028213501,
-0.9517790675163269,
1.1002323627471924,
-0.14256243407726288,
-0.18317310512065887,
0.07317455857992172,
-0.7927442193031311,
0.39723318815231323,
-0.29171323776245117,
0.6317844390869141,
0.03746059536933899,
0.10418853163719177,
0.7392600774765015,
-0.09551015496253967,
0.6568905115127563,
-0.07776723802089691,
-0.12318800389766693,
-0.25159627199172974,
-0.10532240569591522,
0.40380504727363586,
-0.1627073734998703,
0.094655841588974,
0.44436052441596985,
0.2892536222934723,
-0.6929686069488525,
-0.25355279445648193,
0.6008222699165344,
-1.0814783573150635,
-0.1778792291879654,
-0.4498145282268524,
-0.39943423867225647,
-0.30924278497695923,
0.7304308414459229,
0.431020587682724,
0.2955959439277649,
-0.058849070221185684,
0.3279271721839905,
0.4033306837081909,
-0.34143710136413574,
0.7791664004325867,
0.7706696391105652,
-0.3597799241542816,
-0.766698956489563,
0.9662474393844604,
0.23188358545303345,
0.19958281517028809,
0.43633222579956055,
-0.04261572286486626,
-0.4376998543739319,
-0.6298442482948303,
-0.8614603281021118,
0.3502766191959381,
-0.6007193922996521,
0.05864763259887695,
-0.919839084148407,
0.2155265063047409,
-0.6349590420722961,
-0.09910214692354202,
-0.41111505031585693,
-0.21660135686397552,
-0.1335645616054535,
-0.2630540728569031,
0.01441748533397913,
0.6115430593490601,
0.13842764496803284,
0.46571090817451477,
-0.9893643856048584,
0.46233367919921875,
-0.11932939291000366,
0.458600252866745,
-0.4163858890533447,
-0.5680332779884338,
-0.49585041403770447,
0.21119649708271027,
-0.3719986379146576,
-0.4644934833049774,
0.7027912735939026,
0.19659066200256348,
0.5432195067405701,
0.30147284269332886,
-0.17544160783290863,
0.7952086329460144,
-0.8344060778617859,
0.9091435670852661,
0.4162577688694,
-0.9274218678474426,
0.1868680864572525,
-0.5123159885406494,
0.5250188708305359,
0.6977477073669434,
0.9372514486312866,
-0.8755215406417847,
-0.2561313211917877,
-0.6237018704414368,
-0.8375683426856995,
0.82485431432724,
0.11265309900045395,
0.18973413109779358,
0.00018765052664093673,
-0.12572409212589264,
0.29442092776298523,
0.46483129262924194,
-1.0616823434829712,
-0.27443817257881165,
-0.5293055772781372,
-0.505473256111145,
-0.4548480808734894,
-0.1046137586236,
-0.05650261417031288,
-0.28054311871528625,
0.5703848600387573,
-0.31117457151412964,
0.24573327600955963,
0.03838396072387695,
-0.45084095001220703,
0.24666832387447357,
0.17924349009990692,
0.9861765503883362,
0.8622106909751892,
-0.1602829545736313,
0.2880496680736542,
0.44466063380241394,
-0.8782057166099548,
0.14755971729755402,
-0.007578167598694563,
0.17733994126319885,
0.12396609038114548,
0.4099837839603424,
1.0205258131027222,
0.11638376116752625,
-0.4331338703632355,
0.4043425917625427,
-0.26727980375289917,
-0.36383339762687683,
-0.35138139128685,
-0.36726275086402893,
0.34009888768196106,
-0.14341294765472412,
0.28885483741760254,
-0.030717061832547188,
-0.07858560234308243,
-0.6260740160942078,
-0.009769432246685028,
0.02309575490653515,
-0.4774013161659241,
-0.6337123513221741,
0.7922592163085938,
0.35876980423927307,
-0.10694814473390579,
0.5711290240287781,
-0.0842171460390091,
-0.7176315188407898,
0.22684334218502045,
0.6391227841377258,
0.6801597476005554,
-0.45517611503601074,
0.00793757475912571,
0.5777884721755981,
0.5627527236938477,
0.021393105387687683,
0.5436402559280396,
0.04880637675523758,
-0.8405326008796692,
-0.674691379070282,
-0.6822894811630249,
-0.29730224609375,
-0.06407823413610458,
-0.3042038083076477,
0.5192024111747742,
-0.19690565764904022,
-0.14777997136116028,
0.05359819158911705,
0.05831018462777138,
-0.8615012168884277,
0.4932311177253723,
0.05733971670269966,
0.6303519606590271,
-0.6045839786529541,
1.233332633972168,
1.0422524213790894,
-0.3756653070449829,
-0.8894405961036682,
-0.31064215302467346,
-0.3095158040523529,
-0.902118444442749,
0.8121190667152405,
0.3223210275173187,
-0.1644868403673172,
0.3351759612560272,
-0.19636373221874237,
-0.9433985352516174,
1.2483566999435425,
0.6632682085037231,
-0.23297348618507385,
0.013228795491158962,
0.5801844596862793,
0.47728994488716125,
-0.22455942630767822,
0.5424948334693909,
0.36656343936920166,
0.6203643083572388,
0.18886607885360718,
-1.3154655694961548,
-0.19903184473514557,
-0.5416865348815918,
-0.15333420038223267,
0.28453129529953003,
-0.7407222390174866,
0.8317265510559082,
-0.10828938335180283,
-0.14328458905220032,
-0.3416690230369568,
0.7080010175704956,
0.2380385398864746,
0.11631142348051071,
0.3939049243927002,
0.8186377286911011,
0.8854539394378662,
-0.2680427134037018,
1.2117173671722412,
-0.6718098521232605,
0.3022853434085846,
0.8178414106369019,
0.01104947179555893,
0.818304717540741,
0.515703558921814,
-0.20489366352558136,
0.49942660331726074,
0.8636016249656677,
0.2159908264875412,
0.48946666717529297,
-0.1670786291360855,
-0.18714933097362518,
0.034118764102458954,
0.04852790758013725,
-0.33394500613212585,
0.4439990520477295,
0.1765223890542984,
-0.2728848457336426,
-0.0031714767683297396,
0.2525383532047272,
0.5351459383964539,
-0.399167001247406,
-0.10198657214641571,
0.6213628053665161,
0.1193554624915123,
-0.8544584512710571,
0.9874345064163208,
0.3968648612499237,
0.9662649631500244,
-0.7656703591346741,
0.3745875954627991,
-0.2681361734867096,
0.2484251707792282,
-0.2905694246292114,
-0.6541614532470703,
0.32984626293182373,
0.11575943231582642,
-0.21538294851779938,
-0.5997592210769653,
0.2916458547115326,
-0.7382734417915344,
-0.5240622758865356,
0.3179537355899811,
0.3680780529975891,
0.1998799592256546,
0.024756621569395065,
-0.6064215302467346,
-0.035204362124204636,
0.14907579123973846,
-0.08204180747270584,
0.33621567487716675,
0.6291259527206421,
-0.11498280614614487,
0.7489094138145447,
0.841687798500061,
0.008987843059003353,
0.3649600148200989,
0.1409621685743332,
0.6745909452438354,
-0.7002363801002502,
-0.7039597630500793,
-0.7050954103469849,
0.6209516525268555,
0.2151772528886795,
-0.5685336589813232,
0.8781348466873169,
0.7451289296150208,
1.0908070802688599,
-0.1922798454761505,
0.9017711281776428,
0.19259300827980042,
0.7394611239433289,
-0.5474283695220947,
0.7572113871574402,
-0.6845682859420776,
-0.21166741847991943,
-0.2808333933353424,
-0.903901219367981,
-0.39878877997398376,
0.4294191002845764,
-0.2828361690044403,
0.19922567903995514,
1.1276311874389648,
0.4926869571208954,
-0.35459235310554504,
-0.2877543270587921,
0.485175758600235,
0.1299462765455246,
0.4405063986778259,
0.6024217009544373,
0.4567566514015198,
-0.6544706225395203,
0.8316437602043152,
-0.1433122605085373,
0.23053857684135437,
0.15577249228954315,
-0.8950599431991577,
-1.0837681293487549,
-0.7682431936264038,
-0.0521000437438488,
-0.1899171620607376,
0.011117689311504364,
0.8159913420677185,
0.7809998989105225,
-0.8205469846725464,
-0.36233505606651306,
0.1356893926858902,
-0.10675473511219025,
0.17011408507823944,
-0.1006232276558876,
0.33687180280685425,
-0.45265868306159973,
-1.090272068977356,
0.3384522497653961,
0.07182008028030396,
0.11058253049850464,
-0.16134589910507202,
-0.09910276532173157,
-0.4186778664588928,
-0.25391337275505066,
0.6964258551597595,
0.053171101957559586,
-0.4209804832935333,
-0.07002682238817215,
0.1497775763273239,
-0.17367088794708252,
0.3485918939113617,
0.44819700717926025,
-0.5089111924171448,
0.3399408161640167,
0.27448874711990356,
0.7908571362495422,
0.7610477209091187,
-0.23969148099422455,
0.6703029870986938,
-0.8493480682373047,
0.31890153884887695,
-0.07160995155572891,
0.3767238259315491,
0.6275140643119812,
0.02499430999159813,
0.5326479077339172,
0.4028984010219574,
-0.3918558657169342,
-0.7621126770973206,
-0.03662792965769768,
-0.9603796005249023,
-0.013652957044541836,
1.1882683038711548,
-0.3071388006210327,
-0.27989861369132996,
-0.19385460019111633,
-0.15969614684581757,
0.3171995282173157,
-0.2513239085674286,
0.6288974285125732,
1.0635126829147339,
0.40678876638412476,
-0.509302020072937,
-0.8429936766624451,
0.5306645631790161,
0.4696614146232605,
-0.94880610704422,
-0.4624483287334442,
0.052200425416231155,
0.517101526260376,
0.11662833392620087,
0.6500497460365295,
-0.05660310015082359,
0.054811056703329086,
-0.30575478076934814,
0.49592992663383484,
-0.12962570786476135,
-0.3381270170211792,
-0.05017726123332977,
0.12090030312538147,
-0.1793854832649231,
-0.3405901789665222
] |
juierror/flan-t5-text2sql-with-schema | juierror | "2023-07-31T15:15:31Z" | 94,810 | 28 | transformers | [
"transformers",
"pytorch",
"t5",
"text2text-generation",
"en",
"dataset:wikisql",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | text2text-generation | "2023-01-26T06:59:13Z" | ---
language: en
datasets:
- wikisql
widget:
- text: 'question: get people name with age equal 25 table: id, name, age'
license: apache-2.0
---
There are an upgraded version that support multiple tables and support "<" sign [here](https://huggingface.co/juierror/flan-t5-text2sql-with-schema-v2).
# How to use
```python
from typing import List
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("juierror/flan-t5-text2sql-with-schema")
model = AutoModelForSeq2SeqLM.from_pretrained("juierror/flan-t5-text2sql-with-schema")
def prepare_input(question: str, table: List[str]):
table_prefix = "table:"
question_prefix = "question:"
join_table = ",".join(table)
inputs = f"{question_prefix} {question} {table_prefix} {join_table}"
input_ids = tokenizer(inputs, max_length=512, return_tensors="pt").input_ids
return input_ids
def inference(question: str, table: List[str]) -> str:
input_data = prepare_input(question=question, table=table)
input_data = input_data.to(model.device)
outputs = model.generate(inputs=input_data, num_beams=10, top_k=10, max_length=700)
result = tokenizer.decode(token_ids=outputs[0], skip_special_tokens=True)
return result
print(inference(question="get people name with age equal 25", table=["id", "name", "age"]))
``` | [
-0.12120048701763153,
-0.6410119533538818,
0.2604767680168152,
0.3318871855735779,
-0.2368728220462799,
-0.2108716070652008,
-0.05681278929114342,
-0.25306910276412964,
0.16431981325149536,
0.38676130771636963,
-0.3881756365299225,
-0.4089556038379669,
-0.5032536387443542,
0.32908883690834045,
-0.4314567744731903,
0.983361005783081,
-0.04857044667005539,
0.22005459666252136,
0.08295350521802902,
-0.3931180536746979,
-0.13802659511566162,
-0.5955100655555725,
-0.7539581656455994,
-0.10305678099393845,
0.4973301589488983,
0.46825793385505676,
0.8309485912322998,
0.3149460256099701,
0.4370144307613373,
0.3269519805908203,
0.08199122548103333,
0.33858761191368103,
0.12671251595020294,
0.23709091544151306,
-0.15025272965431213,
-0.42827144265174866,
-0.5893678069114685,
-0.36412665247917175,
0.6885004043579102,
0.4893992841243744,
-0.04513586312532425,
0.03611563891172409,
-0.31617802381515503,
0.476422518491745,
-0.48758843541145325,
0.31307512521743774,
-0.6798854470252991,
0.24584411084651947,
-0.29598361253738403,
0.08415576070547104,
-0.40967053174972534,
-0.47076746821403503,
-0.13627052307128906,
-0.7032077312469482,
-0.22825632989406586,
0.246381014585495,
1.184271216392517,
0.20348694920539856,
-0.9959154725074768,
-0.11472608149051666,
-0.6374238729476929,
0.5594975352287292,
-0.8962637186050415,
0.4396176040172577,
0.3883037269115448,
0.6676625609397888,
-0.3211623430252075,
-1.0158164501190186,
-0.9479153156280518,
-0.17462055385112762,
-0.6431465148925781,
-0.04881983622908592,
0.1748306155204773,
0.24241726100444794,
0.6358276009559631,
0.47835853695869446,
-0.6572303771972656,
-0.1542506068944931,
-0.5924386978149414,
-0.41953256726264954,
0.7593790292739868,
0.193472757935524,
0.3094348907470703,
-0.18227455019950867,
-0.4267120957374573,
-0.07836739718914032,
-0.34566402435302734,
-0.05555397644639015,
0.11526995152235031,
0.33620473742485046,
-0.1074514240026474,
0.8184261918067932,
-0.47113528847694397,
0.6724868416786194,
-0.20010043680667877,
0.09453447163105011,
0.41033393144607544,
-0.5985630750656128,
-0.22811725735664368,
-0.22429679334163666,
1.172548770904541,
0.15541434288024902,
0.3202952742576599,
0.050670817494392395,
-0.07008887827396393,
0.07776752859354019,
-0.22781804203987122,
-0.6741616129875183,
-0.31495264172554016,
0.5303578972816467,
-0.4854218065738678,
-0.3185107111930847,
0.2936909794807434,
-1.0257302522659302,
-0.6323155760765076,
0.2665771245956421,
0.6530352234840393,
-0.41170236468315125,
-0.6660028696060181,
-0.055023614317178726,
-0.5746862888336182,
0.34601834416389465,
0.3699100613594055,
-1.1967741250991821,
0.5447645783424377,
0.4166724383831024,
0.7392820715904236,
-0.01216675341129303,
-0.3898176848888397,
-0.5506543517112732,
0.16896823048591614,
-0.17434453964233398,
0.6272351145744324,
-0.24378922581672668,
-0.23670676350593567,
0.27737563848495483,
0.007502810098230839,
-0.23664148151874542,
-0.38969501852989197,
0.6348353624343872,
-0.13703268766403198,
0.5552008152008057,
-0.36284226179122925,
-0.5972069501876831,
-0.041146572679281235,
-0.057864490896463394,
-0.6710188984870911,
1.4177348613739014,
0.6454201340675354,
-0.7328011393547058,
0.6198269724845886,
-0.7923645377159119,
-0.9303973317146301,
0.0688420832157135,
-0.261534720659256,
-0.6558094024658203,
-0.030342761427164078,
0.17614960670471191,
0.28787389397621155,
-0.03463172912597656,
0.053947485983371735,
-0.5398387312889099,
-0.2763531804084778,
0.4023585617542267,
-0.006996947806328535,
0.7461625337600708,
0.24662218987941742,
-0.46327337622642517,
0.31824955344200134,
-0.9033238291740417,
0.02884894795715809,
0.10625810921192169,
-0.41240400075912476,
-0.03908713161945343,
0.017965203151106834,
0.31328871846199036,
0.5710770487785339,
0.22856110334396362,
-0.4979405105113983,
0.5116409063339233,
-0.4298510253429413,
0.8030354380607605,
0.12577201426029205,
0.11477828025817871,
0.42788979411125183,
-0.3444181978702545,
0.21248194575309753,
0.33226364850997925,
0.09409500658512115,
-0.04243505001068115,
-0.39119940996170044,
-1.1667628288269043,
-0.12397344410419464,
0.16875137388706207,
0.7044253945350647,
-0.8932539820671082,
0.5590581297874451,
-0.10398920625448227,
-0.5208170413970947,
-0.21697403490543365,
-0.3131493330001831,
0.05688240006566048,
0.2998446226119995,
0.736079216003418,
0.16890019178390503,
-0.8714221119880676,
-0.8060382604598999,
-0.5151135921478271,
-0.25987523794174194,
-0.022851325571537018,
0.24820423126220703,
0.8261093497276306,
-0.004198843147605658,
0.6213918924331665,
-0.2901599109172821,
-0.6468369960784912,
-0.31255632638931274,
0.036917828023433685,
0.38821732997894287,
0.7847621440887451,
0.6265835165977478,
-0.5767253637313843,
-0.5545666217803955,
-0.023508010432124138,
-0.5612261891365051,
0.27057087421417236,
-0.3774930238723755,
-0.4797539710998535,
0.37835392355918884,
0.02473226934671402,
-0.9512496590614319,
0.5636767148971558,
0.006634092889726162,
-0.8544416427612305,
0.5669620037078857,
-0.040795739740133286,
0.22486385703086853,
-1.4347381591796875,
-0.16107967495918274,
-0.1280500292778015,
-0.3549748957157135,
-0.771148681640625,
0.09531980007886887,
0.26155614852905273,
0.14312461018562317,
-0.4992818236351013,
0.6811419129371643,
-0.48163241147994995,
-0.22256432473659515,
0.15412935614585876,
-0.07664135098457336,
0.14687921106815338,
0.2278275191783905,
0.2569797933101654,
0.6676060557365417,
0.6731026768684387,
-0.6993737816810608,
0.5545504093170166,
0.45213258266448975,
-0.07179829478263855,
0.4670488238334656,
-0.5578028559684753,
-0.1022973582148552,
0.215373694896698,
0.5136171579360962,
-1.1884042024612427,
-0.4124096632003784,
0.5243105292320251,
-0.4536142945289612,
0.18207158148288727,
-0.03865406662225723,
-0.546658456325531,
-0.7395862340927124,
-0.32318755984306335,
0.041582200676202774,
0.40590864419937134,
-0.4084697365760803,
1.1633946895599365,
0.07263670861721039,
0.14091727137565613,
-0.5142064690589905,
-1.415382981300354,
-0.08914744108915329,
-0.4703831076622009,
-0.7746092081069946,
0.2846603989601135,
0.1983412206172943,
-0.0869065448641777,
-0.36371371150016785,
-0.20622150599956512,
-0.4366990923881531,
-0.060220856219530106,
0.07526543736457825,
0.1972065269947052,
-0.18842098116874695,
0.07826344668865204,
0.4655361771583557,
-0.10789917409420013,
-0.0024759070947766304,
-0.5028688907623291,
0.6569585204124451,
-0.09792885184288025,
0.22670000791549683,
-0.7243391275405884,
0.22771285474300385,
0.7212558388710022,
-0.447143018245697,
0.9544325470924377,
0.8756223917007446,
-0.839008092880249,
-0.16141213476657867,
-0.5767883062362671,
-0.26608195900917053,
-0.4764348566532135,
0.5513131618499756,
-0.8776745200157166,
-0.7971226572990417,
0.9151285886764526,
0.20033100247383118,
0.2729995548725128,
0.841825544834137,
0.5545421242713928,
-0.1487942636013031,
0.8701215982437134,
-0.0466613732278347,
0.3107448220252991,
0.29192402958869934,
-0.10765722393989563,
0.13559788465499878,
-0.5744034051895142,
-0.27850833535194397,
-0.5753217935562134,
0.0009361425181850791,
-0.42792099714279175,
-0.14808784425258636,
0.28315824270248413,
0.019524119794368744,
-0.42883485555648804,
0.610184907913208,
-0.6753467917442322,
0.22252970933914185,
0.6215066313743591,
0.05334284529089928,
0.24650056660175323,
0.016271324828267097,
-0.02880190871655941,
-0.04715695604681969,
-0.3787722587585449,
-0.18650449812412262,
1.0022591352462769,
0.2721923887729645,
0.5830526947975159,
0.3568037450313568,
0.8511902689933777,
0.11181744933128357,
0.06325255334377289,
-0.7622347474098206,
0.44180262088775635,
-0.10254163295030594,
-1.014856219291687,
-0.36867421865463257,
-0.5195459723472595,
-0.4849216639995575,
0.6632885336875916,
-0.288696825504303,
-0.8588362336158752,
0.35541269183158875,
0.19258078932762146,
-0.517613410949707,
0.188278928399086,
-0.4606177508831024,
1.0614789724349976,
-0.2679596543312073,
-0.2520485818386078,
-0.03974676504731178,
-0.5737995505332947,
0.6150382161140442,
0.2515220642089844,
0.1910686194896698,
-0.18034839630126953,
-0.09790312498807907,
0.8858304619789124,
-0.7713145017623901,
0.3136868178844452,
-0.38114485144615173,
0.1124834194779396,
0.14098627865314484,
0.21960504353046417,
0.5105682015419006,
0.5756263136863708,
-0.4463924169540405,
0.08692077547311783,
0.6654847860336304,
-0.045991282910108566,
-0.6281386613845825,
0.5262835025787354,
-0.6363805532455444,
-0.32970312237739563,
-0.8056352138519287,
-0.3714243769645691,
-0.02061302401125431,
0.6034345030784607,
0.2629026472568512,
0.44393178820610046,
0.23566025495529175,
0.14994516968727112,
0.22681018710136414,
-0.01734144240617752,
0.5627843737602234,
0.3422381579875946,
-0.2909353971481323,
-0.8934128880500793,
0.7103239893913269,
0.14880448579788208,
0.11698620766401291,
0.49066397547721863,
0.30353525280952454,
-0.6248644590377808,
-0.23744820058345795,
-0.5584743618965149,
0.09976303577423096,
-0.6656323075294495,
-0.3369310200214386,
-0.9376769661903381,
-0.12180110067129135,
-0.6937926411628723,
0.2378907948732376,
-0.18514929711818695,
-0.9953669309616089,
-0.26723712682724,
-0.17300298810005188,
0.5081170201301575,
0.3171979784965515,
0.02408740669488907,
0.13881829380989075,
-0.6449616551399231,
0.3955637216567993,
0.24911107122898102,
0.207632377743721,
-0.32297661900520325,
-0.5211443305015564,
0.10032157599925995,
-0.08886992931365967,
0.03561888262629509,
-1.3699495792388916,
0.07404188811779022,
0.5639601945877075,
0.3750014901161194,
0.31155478954315186,
0.27137309312820435,
0.6778405904769897,
-0.3222179710865021,
0.8915180563926697,
0.009097193367779255,
-1.1086674928665161,
0.5706120133399963,
-0.22527731955051422,
0.04403295740485191,
0.7699200510978699,
0.13191856443881989,
-0.7435054183006287,
-0.11786842346191406,
-0.4331681430339813,
-0.9439388513565063,
0.9499702453613281,
0.3584955632686615,
-0.012903396040201187,
0.006815974600613117,
0.42781293392181396,
0.18222178518772125,
0.22590109705924988,
-1.106119990348816,
-0.5585680603981018,
-0.48144033551216125,
-0.29380500316619873,
0.7706924080848694,
-0.5105260610580444,
-0.12424413859844208,
-0.6182088851928711,
0.8708251118659973,
-0.09657064080238342,
0.34993600845336914,
0.1927754282951355,
-0.032838642597198486,
0.06491012871265411,
0.3149755597114563,
0.6419147849082947,
0.5319104790687561,
-0.23370739817619324,
0.038233622908592224,
0.4156842827796936,
-0.14464563131332397,
-0.13468143343925476,
0.5001484751701355,
-0.1990615427494049,
0.25725269317626953,
0.08901561796665192,
0.8794262409210205,
-0.03041929192841053,
-0.047261275351047516,
0.4887593388557434,
-0.30730944871902466,
-0.5704389810562134,
-0.8531386852264404,
-0.015934012830257416,
-0.009905001148581505,
0.17273423075675964,
0.5689024329185486,
-0.09143095463514328,
0.16122247278690338,
-0.4724346697330475,
0.34682023525238037,
0.29328224062919617,
-0.24717368185520172,
0.039574284106492996,
1.071189522743225,
0.09879563748836517,
-0.36190927028656006,
0.813591718673706,
-0.21455074846744537,
-0.47031959891319275,
0.5417336821556091,
0.4855984151363373,
0.6887609958648682,
-0.06546104699373245,
0.2410098761320114,
0.5904781222343445,
0.45723697543144226,
0.07734154164791107,
0.9437296986579895,
-0.27361422777175903,
-0.6910212635993958,
0.06625907868146896,
-0.6984549760818481,
-0.17184041440486908,
0.08298715949058533,
-0.5926626324653625,
0.29552486538887024,
-0.5797939300537109,
-0.24796883761882782,
0.1216798946261406,
-0.047642771154642105,
-0.5268371105194092,
0.29220837354660034,
-0.13643299043178558,
0.9440916776657104,
-0.7994210124015808,
1.0687931776046753,
0.9120671153068542,
-0.8309606313705444,
-1.0684880018234253,
-0.30755311250686646,
-0.1419738382101059,
-0.4802509546279907,
0.4209754765033722,
0.09335431456565857,
0.5927232503890991,
-0.006068050861358643,
-0.0936756283044815,
-1.1496554613113403,
1.15952467918396,
-0.20292623341083527,
-0.4433436989784241,
-0.1432129591703415,
0.5696274638175964,
0.31494808197021484,
-0.17245839536190033,
0.8711601495742798,
0.9821980595588684,
0.9069017767906189,
-0.06978753954172134,
-0.9450397491455078,
0.4674502909183502,
-0.10117705166339874,
0.05117051303386688,
0.15893687307834625,
-0.6519591212272644,
0.8185797333717346,
-0.15408021211624146,
-0.13170255720615387,
0.41259777545928955,
1.0847575664520264,
0.35553184151649475,
0.14696162939071655,
0.591709315776825,
0.348084032535553,
0.637086033821106,
-0.8015652894973755,
0.7464121580123901,
-0.29727989435195923,
0.7406153082847595,
0.8774399161338806,
-0.38421565294265747,
0.7062553763389587,
0.520845353603363,
-0.5594920516014099,
0.6885706782341003,
0.7253597974777222,
-0.24013882875442505,
0.3102370798587799,
0.2687493562698364,
-0.01416515838354826,
-0.06645461916923523,
0.21382936835289001,
-0.564378559589386,
0.1823820322751999,
0.671671986579895,
-0.4070756733417511,
-0.05722683295607567,
-0.07816120237112045,
0.29632189869880676,
-0.2262914478778839,
0.20238982141017914,
0.6652116179466248,
0.04370882734656334,
-0.36647599935531616,
0.49340853095054626,
0.1177389994263649,
0.807658851146698,
-0.732566237449646,
-0.11773648858070374,
-0.46306130290031433,
0.06960897147655487,
-0.6249862313270569,
-0.5268244743347168,
0.19872306287288666,
-0.5499058365821838,
0.06248857453465462,
0.2824471592903137,
0.6669079065322876,
-0.8004512786865234,
-0.6026639342308044,
-0.08660932630300522,
0.15357114374637604,
0.10112123936414719,
-0.0876876637339592,
-0.6766822338104248,
0.08933211863040924,
-0.16069713234901428,
-0.35167333483695984,
-0.11396218836307526,
0.2935236692428589,
0.007561214733868837,
0.5097283720970154,
0.4668967127799988,
0.022707577794790268,
0.3356511890888214,
0.3872184753417969,
0.6533434987068176,
-0.5917969942092896,
-0.640006422996521,
-0.7299680709838867,
0.7112029194831848,
-0.374667763710022,
-0.6343621611595154,
0.6485189199447632,
0.6865301728248596,
0.6502978801727295,
-0.2381320297718048,
0.7782683968544006,
-0.5372311472892761,
0.3436906039714813,
-0.35624900460243225,
0.8570533394813538,
-0.6820820569992065,
-0.2604525685310364,
-0.2760767638683319,
-1.0609722137451172,
-0.4549787938594818,
0.7734366655349731,
0.003236084710806608,
0.3248833417892456,
1.131568193435669,
0.6759740114212036,
0.19693708419799805,
-0.012121690437197685,
0.0982586070895195,
0.2821606695652008,
0.48397117853164673,
0.5845164060592651,
0.593334436416626,
-0.9493278861045837,
0.556009829044342,
-0.4976297616958618,
-0.13439004123210907,
-0.18575367331504822,
-0.4096618890762329,
-0.9137934446334839,
-0.6530693769454956,
-0.4941503405570984,
-0.8699004054069519,
0.014845655299723148,
0.8772847056388855,
0.6563528776168823,
-1.2061126232147217,
-0.0103628970682621,
-0.21542420983314514,
0.06445074081420898,
-0.4371209442615509,
-0.3842064142227173,
0.6408360004425049,
-0.17864345014095306,
-0.7135025858879089,
0.3574133515357971,
0.11188757419586182,
-0.032999709248542786,
-0.3266107738018036,
0.07691296190023422,
-0.31984636187553406,
-0.0845944806933403,
0.3801558315753937,
0.30358102917671204,
-0.8665005564689636,
-0.2726748287677765,
-0.36807477474212646,
-0.25028517842292786,
0.054435256868600845,
0.5421618223190308,
-0.5089424848556519,
0.13751927018165588,
0.8253049254417419,
0.30738022923469543,
0.5759989023208618,
-0.15222392976284027,
0.40451982617378235,
-0.3966597020626068,
0.2631285786628723,
0.15946795046329498,
0.7724600434303284,
0.23829540610313416,
-0.6344481706619263,
0.6193161010742188,
0.22097453474998474,
-0.4193471074104309,
-0.7748772501945496,
0.12297490984201431,
-0.7377040386199951,
0.08735266327857971,
1.2937712669372559,
0.07084114849567413,
-0.1643354743719101,
-0.15289559960365295,
-0.2375338226556778,
0.5595412850379944,
-0.6393794417381287,
0.5828132033348083,
0.5892345309257507,
-0.13853366672992706,
-0.23731473088264465,
-0.24761277437210083,
0.7352834939956665,
0.7270867228507996,
-0.8638007640838623,
-0.10437380522489548,
0.35511475801467896,
0.2947126626968384,
0.0012544689234346151,
0.6669546961784363,
-0.31893715262413025,
0.5360015034675598,
0.08450391888618469,
0.10866307467222214,
-0.2534586191177368,
-0.1660071462392807,
-0.1140686646103859,
-0.08826090395450592,
-0.07136011123657227,
-0.27953773736953735
] |
flair/ner-english-fast | flair | "2021-02-26T15:39:34Z" | 94,777 | 17 | flair | [
"flair",
"pytorch",
"token-classification",
"sequence-tagger-model",
"en",
"dataset:conll2003",
"has_space",
"region:us"
] | token-classification | "2022-03-02T23:29:05Z" | ---
tags:
- flair
- token-classification
- sequence-tagger-model
language: en
datasets:
- conll2003
widget:
- text: "George Washington went to Washington"
---
## English NER in Flair (fast model)
This is the fast 4-class NER model for English that ships with [Flair](https://github.com/flairNLP/flair/).
F1-Score: **92,92** (corrected CoNLL-03)
Predicts 4 tags:
| **tag** | **meaning** |
|---------------------------------|-----------|
| PER | person name |
| LOC | location name |
| ORG | organization name |
| MISC | other name |
Based on [Flair embeddings](https://www.aclweb.org/anthology/C18-1139/) and LSTM-CRF.
---
### Demo: How to use in Flair
Requires: **[Flair](https://github.com/flairNLP/flair/)** (`pip install flair`)
```python
from flair.data import Sentence
from flair.models import SequenceTagger
# load tagger
tagger = SequenceTagger.load("flair/ner-english-fast")
# make example sentence
sentence = Sentence("George Washington went to Washington")
# predict NER tags
tagger.predict(sentence)
# print sentence
print(sentence)
# print predicted NER spans
print('The following NER tags are found:')
# iterate over entities and print
for entity in sentence.get_spans('ner'):
print(entity)
```
This yields the following output:
```
Span [1,2]: "George Washington" [− Labels: PER (0.9515)]
Span [5]: "Washington" [− Labels: LOC (0.992)]
```
So, the entities "*George Washington*" (labeled as a **person**) and "*Washington*" (labeled as a **location**) are found in the sentence "*George Washington went to Washington*".
---
### Training: Script to train this model
The following Flair script was used to train this model:
```python
from flair.data import Corpus
from flair.datasets import CONLL_03
from flair.embeddings import WordEmbeddings, StackedEmbeddings, FlairEmbeddings
# 1. get the corpus
corpus: Corpus = CONLL_03()
# 2. what tag do we want to predict?
tag_type = 'ner'
# 3. make the tag dictionary from the corpus
tag_dictionary = corpus.make_tag_dictionary(tag_type=tag_type)
# 4. initialize each embedding we use
embedding_types = [
# GloVe embeddings
WordEmbeddings('glove'),
# contextual string embeddings, forward
FlairEmbeddings('news-forward-fast'),
# contextual string embeddings, backward
FlairEmbeddings('news-backward-fast'),
]
# embedding stack consists of Flair and GloVe embeddings
embeddings = StackedEmbeddings(embeddings=embedding_types)
# 5. initialize sequence tagger
from flair.models import SequenceTagger
tagger = SequenceTagger(hidden_size=256,
embeddings=embeddings,
tag_dictionary=tag_dictionary,
tag_type=tag_type)
# 6. initialize trainer
from flair.trainers import ModelTrainer
trainer = ModelTrainer(tagger, corpus)
# 7. run training
trainer.train('resources/taggers/ner-english',
train_with_dev=True,
max_epochs=150)
```
---
### Cite
Please cite the following paper when using this model.
```
@inproceedings{akbik2018coling,
title={Contextual String Embeddings for Sequence Labeling},
author={Akbik, Alan and Blythe, Duncan and Vollgraf, Roland},
booktitle = {{COLING} 2018, 27th International Conference on Computational Linguistics},
pages = {1638--1649},
year = {2018}
}
```
---
### Issues?
The Flair issue tracker is available [here](https://github.com/flairNLP/flair/issues/).
| [
-0.41303515434265137,
-0.6453087329864502,
0.17782935500144958,
0.15139877796173096,
-0.1086883693933487,
-0.009476808831095695,
-0.2835652530193329,
-0.4214874804019928,
0.5337724089622498,
0.1669321060180664,
-0.49913519620895386,
-0.495381236076355,
-0.4675304591655731,
0.35631611943244934,
-0.09308964014053345,
1.1386760473251343,
0.2012636512517929,
0.2689247131347656,
-0.07068657875061035,
-0.048544399440288544,
-0.45657771825790405,
-0.6629980802536011,
-0.6579285264015198,
-0.20514988899230957,
0.5721091628074646,
0.3850528597831726,
0.621583878993988,
0.7531002163887024,
0.35872212052345276,
0.2799174189567566,
-0.2129412591457367,
0.009337115101516247,
-0.16070407629013062,
-0.024484528228640556,
-0.22980879247188568,
-0.28973257541656494,
-0.7839827537536621,
0.07634654641151428,
0.7112798094749451,
0.42714667320251465,
0.13817545771598816,
0.09276299178600311,
-0.04224836826324463,
0.20759646594524384,
-0.26732251048088074,
0.25459566712379456,
-0.6287504434585571,
-0.35738280415534973,
-0.2886304557323456,
-0.0979262962937355,
-0.45073801279067993,
-0.34806931018829346,
0.2423732876777649,
-0.5719574689865112,
0.14395494759082794,
0.2742607295513153,
1.4198614358901978,
0.17535138130187988,
-0.490468293428421,
-0.16919299960136414,
-0.41384923458099365,
0.8470011949539185,
-1.0376642942428589,
0.452921062707901,
0.34904587268829346,
-0.06498505175113678,
-0.14308376610279083,
-0.6996793746948242,
-0.7164824604988098,
-0.1551150679588318,
-0.08525992929935455,
0.10139860957860947,
-0.06441809237003326,
-0.20803454518318176,
0.2697334885597229,
0.1759418547153473,
-0.7370237708091736,
-0.03235702961683273,
-0.20161212980747223,
-0.31100237369537354,
0.8164728879928589,
0.22635622322559357,
0.17035913467407227,
-0.3648938834667206,
-0.40838536620140076,
-0.1455659121274948,
-0.3581402897834778,
-0.007583816070109606,
0.19438734650611877,
0.518401026725769,
-0.2683965265750885,
0.43498489260673523,
-0.05749371647834778,
0.8506861925125122,
0.2170456200838089,
-0.32470542192459106,
0.6987040042877197,
-0.24493145942687988,
-0.10334470868110657,
-0.09905321896076202,
0.9560152292251587,
0.37677088379859924,
0.2673799693584442,
-0.06179259717464447,
-0.14096477627754211,
0.13861079514026642,
-0.18860122561454773,
-0.7737846374511719,
-0.11710993945598602,
0.1343601942062378,
-0.35738375782966614,
-0.32296010851860046,
-0.0631599947810173,
-0.8370329737663269,
-0.11788009852170944,
-0.0952044278383255,
0.5511561036109924,
-0.5988674759864807,
-0.2205573320388794,
0.029071634635329247,
-0.24472247064113617,
0.31860029697418213,
0.10585808008909225,
-0.8567708134651184,
0.09149611741304398,
0.4561769366264343,
0.684961199760437,
0.16307759284973145,
-0.4536272883415222,
-0.2719135582447052,
-0.19503013789653778,
-0.17517025768756866,
0.6766113638877869,
-0.46660494804382324,
-0.23137639462947845,
-0.07857681065797806,
0.17263168096542358,
-0.30849263072013855,
-0.1593175083398819,
0.5398868918418884,
-0.6411057114601135,
0.3654554486274719,
-0.17152883112430573,
-0.8496289253234863,
-0.45597711205482483,
0.32284942269325256,
-0.6406430006027222,
0.9523851871490479,
0.028657987713813782,
-1.0984281301498413,
0.36209213733673096,
-0.40331146121025085,
-0.5766712427139282,
0.052088454365730286,
0.11485903710126877,
-0.38166344165802,
-0.10348497331142426,
0.14280791580677032,
0.7948836088180542,
-0.23670293390750885,
0.4781477153301239,
-0.3933061957359314,
-0.124468132853508,
0.17242580652236938,
0.018293635919690132,
0.7982311248779297,
0.0898766741156578,
-0.3133126199245453,
0.03953566774725914,
-0.9804093241691589,
-0.08624870330095291,
0.21110670268535614,
-0.4305080771446228,
-0.3052014708518982,
0.08840783685445786,
0.13586746156215668,
0.3067414164543152,
0.22915396094322205,
-0.3839711844921112,
0.4719310402870178,
-0.5573159456253052,
0.39568331837654114,
0.48802608251571655,
0.013707837089896202,
0.6884889602661133,
-0.426719069480896,
0.4655248820781708,
-0.026959188282489777,
-0.1734876185655594,
-0.08560530841350555,
-0.7461078763008118,
-0.7061254978179932,
-0.28671523928642273,
0.5295253992080688,
0.780285120010376,
-0.7148504257202148,
0.6966655254364014,
-0.3837529420852661,
-0.7507967352867126,
-0.4223312437534332,
-0.39311733841896057,
0.2620130777359009,
0.7533886432647705,
0.5686167478561401,
-0.1828625202178955,
-0.8401254415512085,
-0.7159854173660278,
-0.35393306612968445,
-0.15145304799079895,
0.3873751759529114,
0.21495753526687622,
0.959741473197937,
-0.35234299302101135,
0.8413711786270142,
-0.377315491437912,
-0.17785322666168213,
-0.4378224313259125,
0.1444345861673355,
0.5678530931472778,
0.6042131781578064,
0.3710205852985382,
-0.6398295760154724,
-0.6523141264915466,
-0.24055472016334534,
-0.4396350681781769,
0.20527926087379456,
-0.19401784241199493,
0.020333919674158096,
0.38275498151779175,
0.4108644127845764,
-0.4287464916706085,
0.474043607711792,
0.3440385162830353,
-0.6694647669792175,
0.5647121667861938,
0.151530459523201,
-0.1850997805595398,
-1.5626344680786133,
0.2825313210487366,
0.2717263400554657,
-0.3069417178630829,
-0.6658545732498169,
-0.17167356610298157,
0.20342198014259338,
0.2079351246356964,
-0.4209851026535034,
1.0049911737442017,
-0.4267106056213379,
0.19657696783542633,
-0.03953069821000099,
-0.08741231262683868,
0.034048423171043396,
0.4039852023124695,
0.3979123532772064,
0.5263544321060181,
0.647447407245636,
-0.7443887591362,
0.051985133439302444,
0.4331182539463043,
-0.3373395800590515,
0.17015470564365387,
-0.4437631666660309,
-0.13329242169857025,
-0.14860406517982483,
0.2805480659008026,
-0.9325491786003113,
-0.33507832884788513,
0.27281132340431213,
-0.7571761012077332,
0.6312657594680786,
-0.030909055843949318,
-0.34809765219688416,
-0.5125324130058289,
-0.2542494535446167,
0.17790459096431732,
0.46132421493530273,
-0.3954804241657257,
0.5175446271896362,
0.32611656188964844,
0.11740794777870178,
-0.7841725945472717,
-0.6555103659629822,
-0.1697096824645996,
-0.26586249470710754,
-0.6324592232704163,
0.5597308874130249,
-0.19679825007915497,
0.017391102388501167,
0.11830273270606995,
0.11140746623277664,
-0.07844944298267365,
0.26898062229156494,
0.09648954123258591,
0.46135425567626953,
-0.2379443645477295,
0.050847411155700684,
-0.3107614517211914,
0.05423972010612488,
-0.06512413173913956,
-0.09225675463676453,
0.7116644978523254,
-0.21805398166179657,
0.3647247552871704,
-0.5834769606590271,
0.1380959153175354,
0.3877454400062561,
-0.31912338733673096,
0.9209045171737671,
0.8309612274169922,
-0.4761294424533844,
-0.11717458069324493,
-0.4465115964412689,
-0.32582947611808777,
-0.39527931809425354,
0.6559731960296631,
-0.4297378659248352,
-0.7533504962921143,
0.5644991397857666,
0.16664132475852966,
0.1275566667318344,
0.8976420164108276,
0.507141649723053,
0.059314049780368805,
1.1309573650360107,
0.6888040900230408,
-0.22440263628959656,
0.45246621966362,
-0.5109016299247742,
0.15249642729759216,
-0.8394533395767212,
-0.22943389415740967,
-0.5230634808540344,
-0.15949469804763794,
-0.8040205836296082,
-0.19313019514083862,
0.131058931350708,
0.339082270860672,
-0.6292327642440796,
0.5610777735710144,
-0.535418689250946,
0.2998684346675873,
0.5821148157119751,
-0.1795656532049179,
-0.04786871746182442,
-0.17639662325382233,
-0.275893896818161,
-0.23449444770812988,
-0.8022178411483765,
-0.45805788040161133,
1.048175573348999,
0.47680550813674927,
0.7734144926071167,
0.06775613874197006,
0.8707419633865356,
-0.14486877620220184,
0.4206790030002594,
-1.026491403579712,
0.5212828516960144,
-0.16626505553722382,
-0.9073524475097656,
-0.0007842681370675564,
-0.21821938455104828,
-0.8626928329467773,
0.12648752331733704,
-0.39626434445381165,
-0.7766332626342773,
0.28712916374206543,
0.13592751324176788,
-0.5867063999176025,
0.3722929358482361,
-0.39968806505203247,
0.9733027219772339,
-0.10595817118883133,
-0.3647685647010803,
0.23949408531188965,
-0.9558228850364685,
0.340023010969162,
0.04350942745804787,
0.4372342824935913,
-0.19194844365119934,
-0.009752137586474419,
1.0793883800506592,
-0.3138144314289093,
0.9706592559814453,
0.013793524354696274,
0.2829899191856384,
0.17607492208480835,
0.051569610834121704,
0.44961628317832947,
0.16388791799545288,
-0.25604164600372314,
0.14934822916984558,
-0.1366778314113617,
-0.09752817451953888,
-0.028591658920049667,
0.7333186864852905,
-0.7816122770309448,
-0.3378273546695709,
-0.9551770687103271,
-0.32296761870384216,
-0.07376956194639206,
0.3471195101737976,
0.724166750907898,
0.6049709916114807,
-0.13567423820495605,
-0.06437267363071442,
0.491682767868042,
-0.18613389134407043,
0.85608971118927,
0.534124493598938,
-0.3501502573490143,
-0.6919493675231934,
0.8691536784172058,
0.10229127109050751,
-0.08195837587118149,
0.4732961058616638,
0.23063154518604279,
-0.47263747453689575,
-0.2072601467370987,
-0.3454475402832031,
0.5545110106468201,
-0.595700204372406,
-0.513624370098114,
-0.7371005415916443,
-0.2757899761199951,
-0.8071612119674683,
-0.14935031533241272,
-0.3115605413913727,
-0.41514667868614197,
-0.816028356552124,
0.08789458870887756,
0.40575531125068665,
0.7926785349845886,
-0.19498363137245178,
0.3617858290672302,
-0.7198303937911987,
-0.08915650099515915,
-0.02933017536997795,
0.07717233896255493,
-0.06217917054891586,
-0.9944519400596619,
-0.38857606053352356,
-0.21426957845687866,
-0.4266907572746277,
-1.1667883396148682,
1.0493777990341187,
0.35909298062324524,
0.427815705537796,
0.30647364258766174,
-0.14400699734687805,
0.617102324962616,
-0.6064016222953796,
0.9611818790435791,
0.08645839989185333,
-0.9571223258972168,
0.5285901427268982,
-0.22319097816944122,
0.19672656059265137,
0.33138221502304077,
0.8777632117271423,
-0.55882728099823,
-0.0841432511806488,
-0.8254345655441284,
-1.0443212985992432,
0.6825856566429138,
-0.23454582691192627,
0.06407903879880905,
-0.5139496922492981,
0.27559909224510193,
-0.08619659394025803,
0.015435942448675632,
-1.0412814617156982,
-0.5353371500968933,
-0.23014427721500397,
-0.21153217554092407,
-0.3666875958442688,
-0.3122187554836273,
0.31467509269714355,
-0.5796483159065247,
1.29034423828125,
-0.09550768882036209,
0.4234316051006317,
0.370301216840744,
-0.05422598496079445,
0.1520419865846634,
0.22756659984588623,
0.6424582600593567,
0.29353705048561096,
-0.3873400092124939,
-0.14996042847633362,
0.20635688304901123,
-0.2813661992549896,
-0.11768336594104767,
0.23272517323493958,
-0.08666341006755829,
0.2878085970878601,
0.48853740096092224,
0.9202126860618591,
0.27103927731513977,
-0.18143919110298157,
0.6662340760231018,
-0.040421850979328156,
-0.16661298274993896,
-0.5091700553894043,
-0.2989070415496826,
0.13470162451267242,
0.1679072231054306,
0.1634170114994049,
0.20807135105133057,
0.03685043379664421,
-0.5653859972953796,
0.1430092304944992,
0.4019567668437958,
-0.34417209029197693,
-0.5874167084693909,
1.0505502223968506,
0.16178075969219208,
-0.22072136402130127,
0.46635979413986206,
-0.5775344371795654,
-0.8531639575958252,
0.6180526614189148,
0.7969462275505066,
0.825832724571228,
-0.3535862863063812,
0.027471201494336128,
0.9667555689811707,
0.16023020446300507,
-0.32513076066970825,
0.7539329528808594,
0.433368057012558,
-0.9662865400314331,
-0.5041322708129883,
-0.9406418800354004,
0.026952529326081276,
0.2532258927822113,
-0.6061504483222961,
0.5306811332702637,
-0.40034228563308716,
-0.5119478702545166,
0.26360243558883667,
0.19659338891506195,
-0.8955890536308289,
0.3095436990261078,
0.36861366033554077,
1.264655351638794,
-0.9613038301467896,
1.0835648775100708,
1.002535104751587,
-0.6521289944648743,
-1.241833209991455,
-0.022930525243282318,
0.049661390483379364,
-0.6862993836402893,
0.8033679723739624,
0.42029717564582825,
0.3400971591472626,
0.3196784257888794,
-0.6124670505523682,
-1.3517060279846191,
1.0488715171813965,
-0.22850897908210754,
-0.6424147486686707,
-0.19913166761398315,
-0.40543097257614136,
0.31219208240509033,
-0.4339013695716858,
0.5412999391555786,
0.47071006894111633,
0.5107054710388184,
-0.06511901319026947,
-1.0039432048797607,
-0.0009767045266926289,
-0.22258524596691132,
-0.04387873038649559,
0.10344763100147247,
-0.6560236811637878,
1.2092612981796265,
-0.2730265259742737,
-0.1255228966474533,
0.34383735060691833,
0.8887831568717957,
0.02341425232589245,
0.1261764019727707,
0.25166383385658264,
0.8784245252609253,
0.8018128871917725,
-0.1688249260187149,
1.0454403162002563,
-0.4234355390071869,
0.6473404765129089,
1.2443983554840088,
-0.17849509418010712,
1.0312386751174927,
0.3158436715602875,
0.014545004814863205,
0.7137430310249329,
0.7832446694374084,
-0.03479664772748947,
0.6417214274406433,
0.19210736453533173,
-0.10876087099313736,
-0.2746696174144745,
-0.11283127963542938,
-0.531235933303833,
0.5998942852020264,
0.39518219232559204,
-0.4484715759754181,
0.023164596408605576,
-0.08795800805091858,
0.5634182691574097,
-0.10938741266727448,
-0.40879443287849426,
0.7693908214569092,
-0.02672889456152916,
-0.6590148210525513,
0.6856593489646912,
0.14544039964675903,
1.1543582677841187,
-0.48582717776298523,
0.07944105565547943,
-0.16307324171066284,
0.2458004206418991,
-0.25440651178359985,
-0.6095007061958313,
0.20553217828273773,
-0.1932947039604187,
-0.24227219820022583,
-0.08720297366380692,
0.7233976721763611,
-0.5502529144287109,
-0.42949607968330383,
0.26661941409111023,
0.4621157944202423,
0.18860580027103424,
0.058580439537763596,
-0.7511124014854431,
-0.13100315630435944,
0.07339153438806534,
-0.543203592300415,
0.0630631074309349,
0.13940496742725372,
-0.10711409151554108,
0.4421437382698059,
0.511750340461731,
0.07968040555715561,
0.07249993085861206,
-0.1505753993988037,
0.7686319351196289,
-0.9674562215805054,
-0.44750314950942993,
-0.9940283298492432,
0.6420833468437195,
0.013738976791501045,
-0.5523395538330078,
0.744985818862915,
0.8140069842338562,
0.8835607171058655,
-0.14842024445533752,
0.7853387594223022,
-0.4430457353591919,
0.7922629117965698,
-0.19278758764266968,
0.8037755489349365,
-0.7757316827774048,
-0.05075560882687569,
-0.11708749830722809,
-0.7691366672515869,
-0.5295066833496094,
0.7362650632858276,
-0.3057289123535156,
-0.086183562874794,
0.7698739767074585,
0.8339117169380188,
0.07249876856803894,
-0.136819988489151,
0.10617294907569885,
0.455034077167511,
0.09933461993932724,
0.4885564148426056,
0.6784775257110596,
-0.5822623372077942,
0.12920869886875153,
-0.5829637050628662,
-0.1987956464290619,
-0.3555352985858917,
-1.047134280204773,
-0.989388644695282,
-0.7694474458694458,
-0.4285205900669098,
-0.8019598126411438,
-0.20465265214443207,
1.2233062982559204,
0.624362051486969,
-0.9061993360519409,
-0.21785368025302887,
0.1491466611623764,
-0.013740766793489456,
-0.059765543788671494,
-0.3008262813091278,
0.41266223788261414,
-0.25012335181236267,
-0.737725555896759,
0.5183144807815552,
-0.28724905848503113,
0.17489425837993622,
0.23985327780246735,
-0.07396070659160614,
-0.7416694164276123,
0.027021026238799095,
0.4448392987251282,
0.44611984491348267,
-0.80679851770401,
-0.24771398305892944,
0.18809138238430023,
-0.3245657980442047,
0.06985154002904892,
0.2216920107603073,
-0.859765350818634,
0.18931929767131805,
0.6346931457519531,
0.3822396695613861,
0.38256970047950745,
-0.14109890162944794,
0.3102800250053406,
-0.7257301211357117,
0.02156689018011093,
0.4278657138347626,
0.5727200508117676,
0.35049858689308167,
-0.2270456701517105,
0.4860754907131195,
0.45440351963043213,
-0.772281289100647,
-0.6521294116973877,
-0.1041867807507515,
-1.0831011533737183,
-0.24603839218616486,
1.3062537908554077,
0.01474501471966505,
-0.48713621497154236,
0.09129604697227478,
-0.036164429038763046,
0.5517725348472595,
-0.5016143321990967,
0.1884385049343109,
0.5001028776168823,
-0.010915891267359257,
0.21885477006435394,
-0.46799761056900024,
0.7676346898078918,
0.3886320888996124,
-0.5010045170783997,
-0.361096054315567,
0.2973535358905792,
0.7225450277328491,
0.23105227947235107,
0.6812167167663574,
0.12953923642635345,
0.14317290484905243,
-0.15017759799957275,
0.5156334042549133,
0.11043742299079895,
-0.24307361245155334,
-0.5814499258995056,
-0.2035953551530838,
-0.08531014621257782,
-0.2314349263906479
] |
kandinsky-community/kandinsky-2-2-prior | kandinsky-community | "2023-10-09T11:33:28Z" | 94,180 | 39 | diffusers | [
"diffusers",
"text-to-image",
"kandinsky",
"license:apache-2.0",
"has_space",
"diffusers:KandinskyV22PriorPipeline",
"region:us"
] | text-to-image | "2023-06-09T13:37:11Z" | ---
license: apache-2.0
tags:
- text-to-image
- kandinsky
inference: false
---
# Kandinsky 2.2
Kandinsky inherits best practices from Dall-E 2 and Latent diffusion while introducing some new ideas.
It uses the CLIP model as a text and image encoder, and diffusion image prior (mapping) between latent spaces of CLIP modalities. This approach increases the visual performance of the model and unveils new horizons in blending images and text-guided image manipulation.
The Kandinsky model is created by [Arseniy Shakhmatov](https://github.com/cene555), [Anton Razzhigaev](https://github.com/razzant), [Aleksandr Nikolich](https://github.com/AlexWortega), [Igor Pavlov](https://github.com/boomb0om), [Andrey Kuznetsov](https://github.com/kuznetsoffandrey) and [Denis Dimitrov](https://github.com/denndimitrov)
## Usage
Kandinsky 2.2 is available in diffusers!
```python
pip install diffusers transformers accelerate
```
### Text to image
```python
from diffusers import AutoPipelineForText2Image
import torch
pipe = AutoPipelineForText2Image.from_pretrained("kandinsky-community/kandinsky-2-2-decoder", torch_dtype=torch.float16)
pipe = pipe.to("cuda")
prompt = "portrait of a young women, blue eyes, cinematic"
negative_prompt = "low quality, bad quality"
image = pipe(prompt=prompt, negative_prompt=negative_prompt, prior_guidance_scale =1.0, height=768, width=768).images[0]
image.save("portrait.png")
```
![img](https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/kandinskyv22/%20blue%20eyes.png)
### Text Guided Image-to-Image Generation
```python
from PIL import Image
import requests
from io import BytesIO
url = "https://raw.githubusercontent.com/CompVis/stable-diffusion/main/assets/stable-samples/img2img/sketch-mountains-input.jpg"
response = requests.get(url)
original_image = Image.open(BytesIO(response.content)).convert("RGB")
original_image = original_image.resize((768, 512))
```
![img](https://raw.githubusercontent.com/CompVis/stable-diffusion/main/assets/stable-samples/img2img/sketch-mountains-input.jpg)
```python
from diffusers import AutoPipelineForImage2Image
import torch
pipe = AutoPipelineForImage2Image.from_pretrained("kandinsky-community/kandinsky-2-2-decoder", torch_dtype=torch.float16)
pipe.enable_model_cpu_offload()
prompt = "A fantasy landscape, Cinematic lighting"
negative_prompt = "low quality, bad quality"
image = pipe(prompt=prompt, image=original_image, strength=0.3, height=768, width=768).images[0]
out.images[0].save("fantasy_land.png")
```
![img](https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/kandinskyv22/fantasy_land.png)
### Interpolate
```python
from diffusers import KandinskyV22PriorPipeline, KandinskyV22Pipeline
from diffusers.utils import load_image
import PIL
import torch
pipe_prior = KandinskyV22PriorPipeline.from_pretrained(
"kandinsky-community/kandinsky-2-2-prior", torch_dtype=torch.float16
)
pipe_prior.to("cuda")
img1 = load_image(
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" "/kandinsky/cat.png"
)
img2 = load_image(
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" "/kandinsky/starry_night.jpeg"
)
# add all the conditions we want to interpolate, can be either text or image
images_texts = ["a cat", img1, img2]
# specify the weights for each condition in images_texts
weights = [0.3, 0.3, 0.4]
# We can leave the prompt empty
prompt = ""
prior_out = pipe_prior.interpolate(images_texts, weights)
pipe = KandinskyV22Pipeline.from_pretrained("kandinsky-community/kandinsky-2-2-decoder", torch_dtype=torch.float16)
pipe.to("cuda")
image = pipe(**prior_out, height=768, width=768).images[0]
image.save("starry_cat.png")
```
![img](https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/kandinskyv22/starry_cat2.2.png)
### Text Guided Inpainting Generation
```python
from diffusers import AutoPipelineForInpainting
from diffusers.utils import load_image
import torch
import numpy as np
pipe = AutoPipelineForInpainting.from_pretrained("kandinsky-community/kandinsky-2-2-decoder-inpaint", torch_dtype=torch.float16)
pipe.enable_model_cpu_offload()
prompt = "a hat"
init_image = load_image(
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" "/kandinsky/cat.png"
)
mask = np.zeros((768, 768), dtype=np.float32)
# Let's mask out an area above the cat's head
mask[:250, 250:-250] = 1
out = pipe(
prompt=prompt,
image=init_image,
mask_image=mask,
height=768,
width=768,
num_inference_steps=150,
)
image = out.images[0]
image.save("cat_with_hat.png")
```
![img](https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/kandinskyv22/cat_with_hat.png)
__<font color=red>Breaking change on the mask input:</font>__
We introduced a breaking change for Kandinsky inpainting pipeline in the following pull request: https://github.com/huggingface/diffusers/pull/4207. Previously we accepted a mask format where black pixels represent the masked-out area. We have changed to use white pixels to represent masks instead in order to have a unified mask format across all our pipelines.
Please upgrade your inpainting code to follow the above. If you are using Kandinsky Inpaint in production. You now need to change the mask to:
```python
# For PIL input
import PIL.ImageOps
mask = PIL.ImageOps.invert(mask)
# For PyTorch and Numpy input
mask = 1 - mask
```
### Text-to-Image Generation with ControlNet Conditioning
```python
import torch
import numpy as np
from transformers import pipeline
from diffusers.utils import load_image
from diffusers import KandinskyV22PriorPipeline, KandinskyV22ControlnetPipeline
# let's take an image and extract its depth map.
def make_hint(image, depth_estimator):
image = depth_estimator(image)["depth"]
image = np.array(image)
image = image[:, :, None]
image = np.concatenate([image, image, image], axis=2)
detected_map = torch.from_numpy(image).float() / 255.0
hint = detected_map.permute(2, 0, 1)
return hint
img = load_image(
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/kandinskyv22/cat.png"
).resize((768, 768))
# We can use the `depth-estimation` pipeline from transformers to process the image and retrieve its depth map.
depth_estimator = pipeline("depth-estimation")
hint = make_hint(img, depth_estimator).unsqueeze(0).half().to("cuda")
# Now, we load the prior pipeline and the text-to-image controlnet pipeline
pipe_prior = KandinskyV22PriorPipeline.from_pretrained(
"kandinsky-community/kandinsky-2-2-prior", torch_dtype=torch.float16
)
pipe_prior = pipe_prior.to("cuda")
pipe = KandinskyV22ControlnetPipeline.from_pretrained(
"kandinsky-community/kandinsky-2-2-controlnet-depth", torch_dtype=torch.float16
)
pipe = pipe.to("cuda")
# We pass the prompt and negative prompt through the prior to generate image embeddings
prompt = "A robot, 4k photo"
negative_prior_prompt = "lowres, text, error, cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, username, watermark, signature"
generator = torch.Generator(device="cuda").manual_seed(43)
image_emb, zero_image_emb = pipe_prior(
prompt=prompt, negative_prompt=negative_prior_prompt, generator=generator
).to_tuple()
# Now we can pass the image embeddings and the depth image we extracted to the controlnet pipeline. With Kandinsky 2.2, only prior pipelines accept `prompt` input. You do not need to pass the prompt to the controlnet pipeline.
images = pipe(
image_embeds=image_emb,
negative_image_embeds=zero_image_emb,
hint=hint,
num_inference_steps=50,
generator=generator,
height=768,
width=768,
).images
images[0].save("robot_cat.png")
```
![img](https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/kandinskyv22/cat.png)
![img](https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/kandinskyv22/robot_cat_text2img.png)
### Image-to-Image Generation with ControlNet Conditioning
```python
import torch
import numpy as np
from diffusers import KandinskyV22PriorEmb2EmbPipeline, KandinskyV22ControlnetImg2ImgPipeline
from diffusers.utils import load_image
from transformers import pipeline
img = load_image(
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" "/kandinskyv22/cat.png"
).resize((768, 768))
def make_hint(image, depth_estimator):
image = depth_estimator(image)["depth"]
image = np.array(image)
image = image[:, :, None]
image = np.concatenate([image, image, image], axis=2)
detected_map = torch.from_numpy(image).float() / 255.0
hint = detected_map.permute(2, 0, 1)
return hint
depth_estimator = pipeline("depth-estimation")
hint = make_hint(img, depth_estimator).unsqueeze(0).half().to("cuda")
pipe_prior = KandinskyV22PriorEmb2EmbPipeline.from_pretrained(
"kandinsky-community/kandinsky-2-2-prior", torch_dtype=torch.float16
)
pipe_prior = pipe_prior.to("cuda")
pipe = KandinskyV22ControlnetImg2ImgPipeline.from_pretrained(
"kandinsky-community/kandinsky-2-2-controlnet-depth", torch_dtype=torch.float16
)
pipe = pipe.to("cuda")
prompt = "A robot, 4k photo"
negative_prior_prompt = "lowres, text, error, cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, username, watermark, signature"
generator = torch.Generator(device="cuda").manual_seed(43)
# run prior pipeline
img_emb = pipe_prior(prompt=prompt, image=img, strength=0.85, generator=generator)
negative_emb = pipe_prior(prompt=negative_prior_prompt, image=img, strength=1, generator=generator)
# run controlnet img2img pipeline
images = pipe(
image=img,
strength=0.5,
image_embeds=img_emb.image_embeds,
negative_image_embeds=negative_emb.image_embeds,
hint=hint,
num_inference_steps=50,
generator=generator,
height=768,
width=768,
).images
images[0].save("robot_cat.png")
```
Here is the output. Compared with the output from our text-to-image controlnet example, it kept a lot more cat facial details from the original image and worked into the robot style we asked for.
![img](https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/kandinskyv22/robot_cat.png)
## Model Architecture
### Overview
Kandinsky 2.2 is a text-conditional diffusion model based on unCLIP and latent diffusion, composed of a transformer-based image prior model, a unet diffusion model, and a decoder.
The model architectures are illustrated in the figure below - the chart on the left describes the process to train the image prior model, the figure in the center is the text-to-image generation process, and the figure on the right is image interpolation.
<p float="left">
<img src="https://raw.githubusercontent.com/ai-forever/Kandinsky-2/main/content/kandinsky21.png"/>
</p>
Specifically, the image prior model was trained on CLIP text and image embeddings generated with a pre-trained [CLIP-ViT-G model](https://huggingface.co/laion/CLIP-ViT-g-14-laion2B-s12B-b42K). The trained image prior model is then used to generate CLIP image embeddings for input text prompts. Both the input text prompts and its CLIP image embeddings are used in the diffusion process. A [MoVQGAN](https://openreview.net/forum?id=Qb-AoSw4Jnm) model acts as the final block of the model, which decodes the latent representation into an actual image.
### Details
The image prior training of the model was performed on the [LAION Improved Aesthetics dataset](https://huggingface.co/datasets/bhargavsdesai/laion_improved_aesthetics_6.5plus_with_images), and then fine-tuning was performed on the [LAION HighRes data](https://huggingface.co/datasets/laion/laion-high-resolution).
The main Text2Image diffusion model was trained on [LAION HighRes dataset](https://huggingface.co/datasets/laion/laion-high-resolution) and then fine-tuned with a dataset of 2M very high-quality high-resolution images with descriptions (COYO, anime, landmarks_russia, and a number of others) was used separately collected from open sources.
The main change in Kandinsky 2.2 is the replacement of CLIP-ViT-G. Its image encoder significantly increases the model's capability to generate more aesthetic pictures and better understand text, thus enhancing its overall performance.
Due to the switch CLIP model, the image prior model was retrained, and the Text2Image diffusion model was fine-tuned for 2000 iterations. Kandinsky 2.2 was trained on data of various resolutions, from 512 x 512 to 1536 x 1536, and also as different aspect ratios. As a result, Kandinsky 2.2 can generate 1024 x 1024 outputs with any aspect ratio.
### Evaluation
We quantitatively measure the performance of Kandinsky 2.1 on the COCO_30k dataset, in zero-shot mode. The table below presents FID.
FID metric values for generative models on COCO_30k
| | FID (30k)|
|:------|----:|
| eDiff-I (2022) | 6.95 |
| Image (2022) | 7.27 |
| Kandinsky 2.1 (2023) | 8.21|
| Stable Diffusion 2.1 (2022) | 8.59 |
| GigaGAN, 512x512 (2023) | 9.09 |
| DALL-E 2 (2022) | 10.39 |
| GLIDE (2022) | 12.24 |
| Kandinsky 1.0 (2022) | 15.40 |
| DALL-E (2021) | 17.89 |
| Kandinsky 2.0 (2022) | 20.00 |
| GLIGEN (2022) | 21.04 |
For more information, please refer to the upcoming technical report.
## BibTex
If you find this repository useful in your research, please cite:
```
@misc{kandinsky 2.2,
title = {kandinsky 2.2},
author = {Arseniy Shakhmatov, Anton Razzhigaev, Aleksandr Nikolich, Vladimir Arkhipkin, Igor Pavlov, Andrey Kuznetsov, Denis Dimitrov},
year = {2023},
howpublished = {},
}
``` | [
-0.4033067524433136,
-0.5737040638923645,
0.39499127864837646,
0.3357159197330475,
-0.38599762320518494,
0.041577450931072235,
-0.005591338500380516,
-0.26729944348335266,
0.1568170040845871,
0.4896509647369385,
-0.4424274265766144,
-0.42573249340057373,
-0.6195257306098938,
-0.23123925924301147,
-0.08806063234806061,
0.8367570042610168,
-0.2648293375968933,
-0.12035605311393738,
-0.08831940591335297,
0.08373567461967468,
-0.1847693771123886,
0.04918553680181503,
-0.6854516267776489,
-0.3179895877838135,
0.2622831165790558,
0.45896467566490173,
0.6590179204940796,
0.3130996525287628,
0.45870769023895264,
0.3280141055583954,
0.08137724548578262,
0.060487911105155945,
-0.5869165062904358,
0.08334459364414215,
0.22438488900661469,
-0.35387200117111206,
-0.07625877112150192,
-0.04033857211470604,
0.7063450217247009,
0.011365491896867752,
0.15086762607097626,
-0.06953037530183792,
0.13290242850780487,
0.7305760979652405,
-0.5101576447486877,
0.013319209218025208,
-0.2362556904554367,
0.14697976410388947,
-0.07368098944425583,
-0.2779691517353058,
-0.24159006774425507,
-0.2001803070306778,
0.37293246388435364,
-0.963996410369873,
0.22058889269828796,
-0.11815178394317627,
1.3850657939910889,
0.19806693494319916,
-0.20805510878562927,
-0.2783372104167938,
-0.27675169706344604,
0.960462749004364,
-0.7298368215560913,
-0.002293530385941267,
0.2678983509540558,
0.22865155339241028,
-0.15717485547065735,
-1.1289045810699463,
-0.520035982131958,
-0.027202058583498,
-0.343732088804245,
0.4248270094394684,
-0.18738412857055664,
0.06244078278541565,
0.3602421283721924,
0.26359230279922485,
-0.5629206895828247,
-0.28292542695999146,
-0.6790941953659058,
-0.2757479250431061,
0.8170440793037415,
0.01730283349752426,
0.42900142073631287,
-0.31881940364837646,
-0.441137433052063,
-0.4392316937446594,
-0.3041541874408722,
0.20888304710388184,
0.35592028498649597,
-0.2511804401874542,
-0.5316242575645447,
0.4563516676425934,
-0.13207456469535828,
0.5902418494224548,
0.35855478048324585,
-0.2589966058731079,
0.348058819770813,
-0.06545981764793396,
-0.4081582725048065,
-0.25339093804359436,
1.0376026630401611,
0.5545069575309753,
0.18257588148117065,
0.2035856544971466,
-0.006863065529614687,
-0.227813720703125,
-0.20128312706947327,
-1.2880172729492188,
-0.6545569896697998,
0.43066707253456116,
-0.44047632813453674,
-0.372143030166626,
-0.09007043391466141,
-0.960895299911499,
-0.24104073643684387,
0.06090570241212845,
0.7198768258094788,
-0.5657140016555786,
-0.41625329852104187,
0.05902789160609245,
-0.3553081750869751,
0.4369724988937378,
0.3951460123062134,
-0.6319745182991028,
0.1394355595111847,
0.18643614649772644,
1.1922203302383423,
0.15159755945205688,
-0.15272437036037445,
-0.37570229172706604,
-0.20605693757534027,
-0.32187142968177795,
0.581264853477478,
-0.3014499247074127,
-0.27537041902542114,
-0.23170918226242065,
0.2961168587207794,
0.11260829120874405,
-0.5240557193756104,
0.3342612087726593,
-0.45908281207084656,
0.38860824704170227,
-0.0988023579120636,
-0.2787914276123047,
-0.3062824010848999,
-0.0026465102564543486,
-0.3784445524215698,
0.9883085489273071,
0.4405762851238251,
-0.9631834626197815,
0.19120392203330994,
-0.5732370018959045,
-0.14466872811317444,
-0.08332856744527817,
-0.06929430365562439,
-0.8045711517333984,
-0.23726734519004822,
0.2486536204814911,
0.5512299537658691,
-0.22950208187103271,
0.1415812075138092,
-0.23612140119075775,
-0.26895278692245483,
0.1597033590078354,
-0.04922078922390938,
1.2578343152999878,
0.319723904132843,
-0.45820367336273193,
0.09150830656290054,
-0.4154394268989563,
0.1255599707365036,
0.0871131420135498,
-0.08487828820943832,
-0.03025561384856701,
-0.4845733940601349,
0.3167459964752197,
0.41577059030532837,
0.09316691011190414,
-0.7140306830406189,
0.08203835785388947,
-0.5169084668159485,
0.5133267045021057,
0.6625540256500244,
0.17890548706054688,
0.536211371421814,
-0.3481123149394989,
0.6354114413261414,
0.2995398938655853,
0.04415767639875412,
-0.22371387481689453,
-0.6193868517875671,
-0.9803897738456726,
-0.48651793599128723,
-0.00441476795822382,
0.4355550706386566,
-1.0517652034759521,
0.1257489174604416,
0.0036503621377050877,
-0.7338294982910156,
-0.36214184761047363,
-0.14110812544822693,
0.3038686513900757,
0.6411852240562439,
0.38041362166404724,
-0.4430239796638489,
-0.4802131652832031,
-0.9473500847816467,
-0.029324404895305634,
0.16808082163333893,
-0.17742758989334106,
0.21244961023330688,
0.5611412525177002,
-0.07374598830938339,
0.8470677733421326,
-0.5770406126976013,
-0.30269676446914673,
0.2079935520887375,
0.15456685423851013,
0.4506760835647583,
0.936263918876648,
0.5356845259666443,
-0.6553753614425659,
-1.0789910554885864,
0.07404601573944092,
-0.859869658946991,
0.04958077892661095,
-0.16623608767986298,
-0.46304357051849365,
0.2840065062046051,
0.40916237235069275,
-0.7057477235794067,
0.5988345742225647,
0.5552860498428345,
-0.5139843225479126,
0.5862822532653809,
-0.21679462492465973,
0.21550744771957397,
-1.0843054056167603,
0.23108191788196564,
0.04535722732543945,
-0.4059178829193115,
-0.630413293838501,
0.08084908872842789,
0.03721018135547638,
-0.19240155816078186,
-0.5088281631469727,
0.7371628284454346,
-0.7089157700538635,
0.18509167432785034,
-0.1388535052537918,
-0.13785941898822784,
0.21635818481445312,
0.648794412612915,
0.16878846287727356,
0.4484924376010895,
1.108709692955017,
-0.37688717246055603,
0.6382780075073242,
0.21616864204406738,
-0.4585561454296112,
0.5473544001579285,
-0.902665376663208,
0.38782545924186707,
-0.19944140315055847,
0.20017194747924805,
-1.1504801511764526,
-0.3305371403694153,
0.6953535676002502,
-0.59327232837677,
0.45555853843688965,
-0.26809027791023254,
-0.3133105933666229,
-0.16514813899993896,
-0.3899364769458771,
0.509834885597229,
0.9162850975990295,
-0.3992665708065033,
0.5494301319122314,
0.10672442615032196,
0.08032751083374023,
-0.6316508054733276,
-0.9207413792610168,
0.008788200095295906,
-0.31747251749038696,
-0.8898963332176208,
0.39758723974227905,
-0.11851800233125687,
-0.11631153523921967,
0.09458960592746735,
0.20465059578418732,
-0.22599941492080688,
-0.3138748109340668,
0.2282370924949646,
0.12282167375087738,
-0.16908365488052368,
-0.21691270172595978,
0.1712762415409088,
-0.23988589644432068,
0.05750159174203873,
-0.2928955554962158,
0.5782631635665894,
-0.12466040998697281,
-0.013538827188313007,
-0.8810514211654663,
0.18286240100860596,
0.40463733673095703,
0.1892397403717041,
0.5872259140014648,
0.9647863507270813,
-0.3356667160987854,
0.09218655526638031,
-0.3480530083179474,
-0.2861286699771881,
-0.5404762625694275,
0.32623276114463806,
-0.3825094401836395,
-0.48776739835739136,
0.5429089665412903,
0.1597662717103958,
0.0217451099306345,
0.6509180068969727,
0.5065263509750366,
-0.3750695288181305,
0.7894663214683533,
0.4338427782058716,
0.36065515875816345,
0.5353339314460754,
-1.0882112979888916,
-0.1648276299238205,
-1.0121015310287476,
-0.29494592547416687,
-0.04134056717157364,
-0.5998117923736572,
-0.36959654092788696,
-0.6427376866340637,
0.5442104339599609,
0.3478602170944214,
-0.28448817133903503,
0.22866548597812653,
-0.6768338680267334,
0.3832130432128906,
0.42000922560691833,
0.39568397402763367,
-0.04444852098822594,
0.3613157868385315,
-0.12871617078781128,
-0.23205696046352386,
-0.5172992944717407,
-0.2882748246192932,
0.9738114476203918,
0.3644587993621826,
0.7858966588973999,
-0.14035184681415558,
0.689693808555603,
-0.10251405835151672,
0.28110823035240173,
-0.5863757729530334,
0.382677286863327,
0.002145949052646756,
-0.5155208706855774,
-0.26000258326530457,
-0.15270954370498657,
-0.9539961814880371,
0.2676527798175812,
-0.11827706545591354,
-0.6027625203132629,
0.4825323224067688,
0.29160940647125244,
-0.15720286965370178,
0.33311110734939575,
-0.8372777104377747,
0.7960537075996399,
0.11635579913854599,
-0.697032630443573,
-0.11426201462745667,
-0.7628247737884521,
0.3652748763561249,
0.22860750555992126,
-0.21623080968856812,
-0.06663332879543304,
-0.09682149440050125,
0.8186616897583008,
-0.5351686477661133,
0.6847039461135864,
-0.5158529281616211,
-0.008971555158495903,
0.48960357904434204,
0.051649659872055054,
0.4215865731239319,
0.19312480092048645,
-0.13076460361480713,
0.12577727437019348,
0.23452728986740112,
-0.6710291504859924,
-0.6354315876960754,
0.7294891476631165,
-0.8324182033538818,
-0.3452369272708893,
-0.5684678554534912,
-0.5025296807289124,
0.353238046169281,
0.12383783608675003,
0.8377724289894104,
0.619588315486908,
0.25888025760650635,
0.19069498777389526,
0.424543559551239,
-0.34395596385002136,
0.5754971504211426,
-0.08584435284137726,
-0.3438209295272827,
-0.6307104825973511,
0.8428924083709717,
0.14225104451179504,
0.5528461337089539,
0.19654953479766846,
0.3282289505004883,
-0.19498923420906067,
-0.24795883893966675,
-0.45365455746650696,
0.4243755638599396,
-0.8033580780029297,
-0.4630747139453888,
-0.6159730553627014,
-0.44036155939102173,
-0.27782559394836426,
-0.45062941312789917,
-0.1723702996969223,
-0.3067203760147095,
-0.7390921711921692,
0.5334869027137756,
0.6303859353065491,
0.36601072549819946,
-0.23667608201503754,
0.4399189352989197,
-0.26385968923568726,
0.29261913895606995,
0.4077070653438568,
0.20381619036197662,
-0.0297736544162035,
-0.7656080722808838,
-0.28427350521087646,
0.08275572210550308,
-0.5421908497810364,
-0.6440955996513367,
0.6496783494949341,
0.24446161091327667,
0.16180476546287537,
0.26686573028564453,
-0.10611088573932648,
0.7545366883277893,
-0.033842094242572784,
0.6328732371330261,
0.32473254203796387,
-0.9070833921432495,
0.49788427352905273,
-0.3674829304218292,
0.4307948648929596,
0.11144658178091049,
0.3904917240142822,
-0.7120733857154846,
-0.3904953598976135,
-0.8027015328407288,
-0.6439184546470642,
0.9073314666748047,
0.5228995680809021,
-0.06998144090175629,
0.5398046970367432,
0.48292747139930725,
0.003105378011241555,
0.03276799991726875,
-0.8107808828353882,
-0.27950263023376465,
-0.5532998442649841,
-0.18745043873786926,
-0.08922360837459564,
-0.07460690289735794,
-0.10870502144098282,
-0.6101449728012085,
0.8061285018920898,
-0.17063705623149872,
0.6329905986785889,
0.7911986112594604,
-0.26094740629196167,
-0.2738824188709259,
-0.33271801471710205,
0.5676488280296326,
0.6274969577789307,
-0.27564090490341187,
0.08150824159383774,
0.023044781759381294,
-0.6815628409385681,
0.20428475737571716,
-0.007161766290664673,
-0.2649310827255249,
0.12467878311872482,
0.3924209475517273,
0.8469899892807007,
-0.3407452404499054,
-0.34005072712898254,
0.5449548959732056,
-0.028851265087723732,
-0.43687471747398376,
-0.4058438539505005,
-0.07412320375442505,
0.14287453889846802,
0.3705522418022156,
0.34541958570480347,
0.4050144851207733,
0.06826935708522797,
-0.12946717441082,
0.11218079924583435,
0.46204710006713867,
-0.36091840267181396,
-0.39059361815452576,
0.4668025076389313,
-0.09044184535741806,
-0.20617765188217163,
0.5427156686782837,
-0.16710081696510315,
-0.4443638026714325,
0.9242667555809021,
0.5082655549049377,
1.0081851482391357,
-0.06782117486000061,
0.37033626437187195,
0.8667752146720886,
0.279572993516922,
0.28788867592811584,
0.34801650047302246,
0.12865903973579407,
-0.6486384272575378,
-0.1632741391658783,
-0.4035467207431793,
-0.041916623711586,
0.17726044356822968,
-0.21653375029563904,
0.6155994534492493,
-0.6744831204414368,
0.11576367914676666,
-0.240314781665802,
0.1886654645204544,
-0.8012888431549072,
0.2141953706741333,
-0.10521873086690903,
0.6772171258926392,
-0.7656184434890747,
0.7958089113235474,
0.416937917470932,
-0.3698953688144684,
-0.7600768804550171,
-0.03019132651388645,
-0.21517257392406464,
-0.8289541602134705,
0.6669305562973022,
0.3012219965457916,
-0.20281384885311127,
0.3744554817676544,
-0.8595227003097534,
-0.8923531174659729,
1.3358242511749268,
0.49740836024284363,
-0.20485922694206238,
0.23921014368534088,
-0.21371743083000183,
0.49611496925354004,
-0.4218590557575226,
0.5594840049743652,
0.33984777331352234,
0.4601806700229645,
0.2444482147693634,
-0.6209667921066284,
0.25880295038223267,
-0.3229087293148041,
0.2194957286119461,
0.04827822744846344,
-0.8153976202011108,
1.067883014678955,
-0.26458650827407837,
-0.5313299298286438,
0.26256999373435974,
0.6837092041969299,
0.22509635984897614,
0.10945151746273041,
0.5606414675712585,
0.6933514475822449,
0.3232174217700958,
-0.05166799575090408,
0.8860996961593628,
0.05172469839453697,
0.7311663031578064,
0.5125781297683716,
0.35235828161239624,
0.4812418818473816,
0.5197864770889282,
-0.12291620671749115,
0.7988994121551514,
0.8327774405479431,
-0.058655377477407455,
0.7171228528022766,
0.266432523727417,
-0.3197241425514221,
0.17041023075580597,
0.05392376333475113,
-0.48545581102371216,
0.27821826934814453,
0.32685068249702454,
-0.3775666356086731,
-0.16387611627578735,
0.1908302903175354,
0.06256915628910065,
-0.26809459924697876,
0.046652212738990784,
0.4423787295818329,
0.07094810158014297,
-0.5257925391197205,
1.101646065711975,
-0.0695427730679512,
0.9863671660423279,
-0.5503319501876831,
-0.21076738834381104,
0.0012436346150934696,
0.05397450551390648,
-0.45688197016716003,
-1.0871782302856445,
0.35265466570854187,
-0.30599236488342285,
0.16683413088321686,
-0.2222503274679184,
0.7739258408546448,
-0.6637222766876221,
-0.472940593957901,
0.25225991010665894,
-0.09533924609422684,
0.6211311221122742,
0.012702515348792076,
-0.9007130265235901,
0.23956115543842316,
0.17531952261924744,
-0.4914889633655548,
-0.03672046959400177,
0.20018620789051056,
0.4235379099845886,
0.484154611825943,
0.49010077118873596,
-0.03964254632592201,
0.14407654106616974,
-0.44991642236709595,
0.8555375337600708,
-0.44965261220932007,
-0.3226865530014038,
-0.7694669365882874,
0.959911048412323,
-0.2889917194843292,
-0.5649599432945251,
0.5872889161109924,
0.4850105941295624,
0.6928811073303223,
-0.29292675852775574,
0.6759240627288818,
-0.4332975745201111,
0.11173709481954575,
-0.7346392869949341,
0.8903220295906067,
-0.7464810013771057,
-0.28186312317848206,
-0.4793405532836914,
-0.821198046207428,
-0.20106692612171173,
0.86043781042099,
-0.15556444227695465,
0.16114048659801483,
0.7566918730735779,
1.2313125133514404,
-0.2967003285884857,
-0.5915194153785706,
0.1987355798482895,
0.2579355537891388,
0.37000125646591187,
0.6898962259292603,
0.7677802443504333,
-0.9543418288230896,
0.4844117760658264,
-0.8060827255249023,
-0.24165089428424835,
-0.059697818011045456,
-0.9259193539619446,
-0.7313234210014343,
-0.9780992269515991,
-0.5256457328796387,
-0.6841212511062622,
-0.3848011791706085,
0.5932968258857727,
1.1451904773712158,
-0.6347443461418152,
-0.32818299531936646,
-0.28672870993614197,
0.11211971938610077,
0.011183531023561954,
-0.32551562786102295,
0.4115537106990814,
0.0006861514411866665,
-0.9571067094802856,
-0.19134803116321564,
0.29992496967315674,
0.25289687514305115,
-0.32987460494041443,
-0.3732222020626068,
-0.43860483169555664,
-0.2674802243709564,
0.3217194378376007,
0.43758970499038696,
-0.8428608775138855,
-0.21201631426811218,
-0.2405279129743576,
-0.04999593272805214,
0.32792407274246216,
0.4658839702606201,
-0.7568058371543884,
0.8265600204467773,
0.7877824902534485,
0.15071631968021393,
0.9914717674255371,
-0.33990761637687683,
0.28282198309898376,
-0.6518760919570923,
0.5742384791374207,
0.1580696851015091,
0.153085857629776,
0.4604089558124542,
-0.5440952181816101,
0.3474871516227722,
0.3793666362762451,
-0.7707889676094055,
-0.6573057174682617,
0.11727498471736908,
-1.0831166505813599,
-0.06958779692649841,
0.9673855304718018,
-0.25529831647872925,
-0.28715240955352783,
0.006472066510468721,
-0.5518585443496704,
0.28447920083999634,
-0.3488024175167084,
0.4480723440647125,
0.6610105633735657,
-0.2117425501346588,
-0.7151230573654175,
-0.3326948285102844,
0.7276085615158081,
0.33878326416015625,
-0.7028311491012573,
-0.44615375995635986,
0.2766501009464264,
0.5618414282798767,
0.36346837878227234,
0.9008445739746094,
-0.011709106154739857,
0.2688073217868805,
0.1152898296713829,
0.18434903025627136,
0.10810189694166183,
-0.10485339909791946,
-0.5089934468269348,
-0.26584696769714355,
-0.17362557351589203,
-0.3808821439743042
] |
facebook/hubert-large-ll60k | facebook | "2021-11-05T12:42:57Z" | 93,865 | 17 | transformers | [
"transformers",
"pytorch",
"tf",
"hubert",
"feature-extraction",
"speech",
"en",
"dataset:libri-light",
"arxiv:2106.07447",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"region:us"
] | feature-extraction | "2022-03-02T23:29:05Z" | ---
language: en
datasets:
- libri-light
tags:
- speech
license: apache-2.0
---
# Hubert-Large
[Facebook's Hubert](https://ai.facebook.com/blog/hubert-self-supervised-representation-learning-for-speech-recognition-generation-and-compression)
The large model pretrained on 16kHz sampled speech audio. When using the model make sure that your speech input is also sampled at 16Khz.
**Note**: This model does not have a tokenizer as it was pretrained on audio alone. In order to use this model **speech recognition**, a tokenizer should be created and the model should be fine-tuned on labeled text data. Check out [this blog](https://huggingface.co/blog/fine-tune-wav2vec2-english) for more in-detail explanation of how to fine-tune the model.
The model was pretrained on [Libri-Light](https://github.com/facebookresearch/libri-light).
[Paper](https://arxiv.org/abs/2106.07447)
Authors: Wei-Ning Hsu, Benjamin Bolte, Yao-Hung Hubert Tsai, Kushal Lakhotia, Ruslan Salakhutdinov, Abdelrahman Mohamed
**Abstract**
Self-supervised approaches for speech representation learning are challenged by three unique problems: (1) there are multiple sound units in each input utterance, (2) there is no lexicon of input sound units during the pre-training phase, and (3) sound units have variable lengths with no explicit segmentation. To deal with these three problems, we propose the Hidden-Unit BERT (HuBERT) approach for self-supervised speech representation learning, which utilizes an offline clustering step to provide aligned target labels for a BERT-like prediction loss. A key ingredient of our approach is applying the prediction loss over the masked regions only, which forces the model to learn a combined acoustic and language model over the continuous inputs. HuBERT relies primarily on the consistency of the unsupervised clustering step rather than the intrinsic quality of the assigned cluster labels. Starting with a simple k-means teacher of 100 clusters, and using two iterations of clustering, the HuBERT model either matches or improves upon the state-of-the-art wav2vec 2.0 performance on the Librispeech (960h) and Libri-light (60,000h) benchmarks with 10min, 1h, 10h, 100h, and 960h fine-tuning subsets. Using a 1B parameter model, HuBERT shows up to 19% and 13% relative WER reduction on the more challenging dev-other and test-other evaluation subsets.
The original model can be found under https://github.com/pytorch/fairseq/tree/master/examples/hubert .
# Usage
See [this blog](https://huggingface.co/blog/fine-tune-wav2vec2-english) for more information on how to fine-tune the model. Note that the class `Wav2Vec2ForCTC` has to be replaced by `HubertForCTC`. | [
-0.34380367398262024,
-0.46043890714645386,
0.3795440196990967,
0.1662069708108902,
-0.2053493857383728,
-0.10581669211387634,
-0.3817371428012848,
-0.49371498823165894,
0.19288824498653412,
0.2713589370250702,
-0.6138627529144287,
-0.3646881580352783,
-0.4116640090942383,
-0.251213014125824,
-0.20123885571956635,
0.6967265009880066,
0.17496399581432343,
0.34842589497566223,
0.042024966329336166,
-0.14381052553653717,
-0.5126950740814209,
-0.5483688712120056,
-0.7102550268173218,
-0.37077596783638,
0.39759936928749084,
0.3495286703109741,
0.20886701345443726,
0.4918431341648102,
0.14364072680473328,
0.26700589060783386,
-0.06274174153804779,
0.00041684453026391566,
-0.6084706783294678,
-0.0033566567581146955,
0.04336056485772133,
-0.11908645182847977,
-0.3634563982486725,
0.22039061784744263,
0.7964873909950256,
0.5836632251739502,
-0.3942522704601288,
0.3436613380908966,
0.11201103031635284,
0.43175816535949707,
-0.3860328793525696,
0.27872708439826965,
-0.804847776889801,
-0.08553431183099747,
-0.08345100283622742,
0.13343694806098938,
-0.46439170837402344,
0.05611824989318848,
-0.08930215239524841,
-0.46994999051094055,
0.24847543239593506,
-0.06885594874620438,
0.9356019496917725,
0.33603358268737793,
-0.32534322142601013,
-0.002692290348932147,
-0.777559220790863,
1.006849765777588,
-0.5626072883605957,
0.728108286857605,
0.6054804921150208,
0.33397042751312256,
0.0730685293674469,
-0.7849192023277283,
-0.31935927271842957,
-0.1822853684425354,
0.0914640724658966,
0.267735093832016,
-0.29341819882392883,
0.04624669626355171,
0.2680177688598633,
0.1942058652639389,
-0.5085277557373047,
0.34719112515449524,
-0.6811497211456299,
-0.4772602617740631,
0.7724446058273315,
-0.34879520535469055,
-0.20139306783676147,
-0.26189082860946655,
-0.37223348021507263,
-0.26691123843193054,
-0.42842522263526917,
0.3187222480773926,
0.34295833110809326,
0.3391854166984558,
-0.12351923435926437,
0.1868228167295456,
0.10816626995801926,
0.5879326462745667,
0.18924972414970398,
-0.15743964910507202,
0.44582661986351013,
0.10035370290279388,
-0.045680731534957886,
0.33659839630126953,
0.8224160075187683,
-0.08773765712976456,
0.14178825914859772,
0.10172314941883087,
-0.4506874084472656,
-0.10338811576366425,
0.20877030491828918,
-0.7403029799461365,
-0.6102657318115234,
0.1663803905248642,
-0.5200872421264648,
-0.055443696677684784,
0.19139039516448975,
-0.018779771402478218,
0.26465773582458496,
-0.6089677214622498,
0.8800845146179199,
-0.37911084294319153,
-0.16849467158317566,
-0.2775462567806244,
0.06445333361625671,
-0.006351058837026358,
0.08466343581676483,
-1.1468133926391602,
0.3368675708770752,
0.4553810656070709,
0.638726532459259,
-0.15373584628105164,
-0.05782022699713707,
-0.6132611632347107,
0.06245480105280876,
-0.5544446706771851,
0.38716500997543335,
-0.10246799141168594,
-0.27079612016677856,
-0.2694927752017975,
-0.00731724314391613,
0.20303846895694733,
-0.6171448826789856,
0.43481817841529846,
-0.2813604772090912,
0.07245948910713196,
-0.16049139201641083,
-0.7710176706314087,
-0.16589617729187012,
-0.37600669264793396,
-0.5392285585403442,
1.224607229232788,
0.2018229216337204,
-0.4806506931781769,
0.1670856475830078,
-0.4111964702606201,
-0.40416014194488525,
0.015411081723868847,
-0.30445197224617004,
-0.630842924118042,
0.2880556285381317,
0.37063246965408325,
0.6674290895462036,
0.20248045027256012,
0.3866070806980133,
-0.2698773741722107,
-0.3940240442752838,
0.18782633543014526,
-0.40044698119163513,
0.717481791973114,
0.341012179851532,
-0.24693702161312103,
0.20793622732162476,
-1.0697427988052368,
0.17705363035202026,
0.03271475061774254,
-0.3081636130809784,
-0.05778275802731514,
-0.12370388954877853,
0.2799743115901947,
0.10956070572137833,
0.3411196768283844,
-0.631332278251648,
-0.04943762719631195,
-0.5521173477172852,
0.6062291860580444,
0.7945634126663208,
-0.1296410709619522,
0.38008078932762146,
-0.16367372870445251,
0.08666089177131653,
-0.26379477977752686,
0.20916636288166046,
-0.10522094368934631,
-0.4804401993751526,
-0.6649968028068542,
-0.34551650285720825,
0.7213656306266785,
0.2956278622150421,
-0.3248872756958008,
0.6008397340774536,
0.0717209056019783,
-0.5045720338821411,
-0.9229088425636292,
0.09116394817829132,
0.25307968258857727,
0.4429664611816406,
0.7108708024024963,
-0.19681786000728607,
-0.6349547505378723,
-0.9659796953201294,
0.13984620571136475,
-0.28889229893684387,
-0.2903817892074585,
0.2792210578918457,
0.24883484840393066,
-0.30406707525253296,
0.9323654174804688,
-0.2359158992767334,
-0.45489266514778137,
-0.03983544930815697,
0.27896925806999207,
0.21680842339992523,
0.7858586311340332,
0.41379478573799133,
-0.5701232552528381,
-0.3198370635509491,
-0.2137223333120346,
-0.42790451645851135,
-0.14147081971168518,
0.04067635536193848,
0.2683388590812683,
0.25409048795700073,
0.6736778020858765,
-0.23090559244155884,
0.26320314407348633,
0.7029989361763,
0.17255933582782745,
0.3722076714038849,
-0.34154456853866577,
-0.31073591113090515,
-1.1214035749435425,
-0.13568972051143646,
-0.18422940373420715,
-0.46628695726394653,
-0.5725084543228149,
-0.2327868938446045,
0.24922378361225128,
-0.198155015707016,
-0.3387470543384552,
0.45245087146759033,
-0.4530541002750397,
-0.2227654755115509,
-0.2841085195541382,
0.12163867056369781,
-0.16142509877681732,
0.501477837562561,
0.03988947346806526,
0.6382389664649963,
0.621198832988739,
-0.5637558698654175,
0.3522990643978119,
0.09466099739074707,
-0.39866408705711365,
0.08498536795377731,
-0.7998591661453247,
0.3188115060329437,
-0.00013924218364991248,
0.23159246146678925,
-0.9454811215400696,
-0.15898281335830688,
0.0019207479199394584,
-0.7422097325325012,
0.7807595729827881,
-0.0713769719004631,
-0.418213427066803,
-0.3702529966831207,
-0.0318552665412426,
0.4330788254737854,
0.7033461928367615,
-0.8645714521408081,
0.46935927867889404,
0.5278787612915039,
0.07890931516885757,
-0.4250258207321167,
-0.8191992044448853,
-0.123914435505867,
-0.011948523111641407,
-0.5531105399131775,
0.593307375907898,
-0.13686734437942505,
0.14424684643745422,
-0.14857934415340424,
-0.22032146155834198,
0.05217498168349266,
-0.007386806420981884,
0.4136981666088104,
-0.04604322835803032,
-0.07976663112640381,
0.6971769332885742,
0.1826578825712204,
-0.2844262421131134,
0.05142191797494888,
-0.4080997705459595,
0.4608738124370575,
-0.0932805985212326,
-0.19654643535614014,
-0.7735027074813843,
0.29341235756874084,
-0.0039963372983038425,
-0.2665049433708191,
0.293689101934433,
1.2073363065719604,
-0.4366438090801239,
-0.2740551829338074,
-0.7283336520195007,
-0.5258580446243286,
-0.5175057053565979,
0.4958469569683075,
-0.38527828454971313,
-1.114995002746582,
0.3572026789188385,
-0.0038513883482664824,
-0.14721928536891937,
0.6799322366714478,
0.5563459992408752,
-0.48430272936820984,
0.9276130199432373,
0.6165648698806763,
-0.24796436727046967,
0.49906131625175476,
-0.5167350769042969,
0.14938129484653473,
-0.7580030560493469,
-0.2847933769226074,
-0.3826565742492676,
-0.3081107437610626,
-0.7003458738327026,
-0.5151122808456421,
0.34328916668891907,
0.2987193465232849,
-0.13136838376522064,
0.4017329216003418,
-0.6358041167259216,
0.07283873111009598,
0.8173223733901978,
0.1177310049533844,
-0.11163381487131119,
0.285586416721344,
-0.1272440403699875,
-0.19947603344917297,
-0.812663197517395,
-0.1521178036928177,
0.9388862252235413,
0.5927169322967529,
0.7932326197624207,
-0.02775089628994465,
1.1798826456069946,
0.1697007268667221,
-0.15292343497276306,
-0.9207001328468323,
0.35466963052749634,
-0.10225949436426163,
-0.6909716725349426,
-0.5502578020095825,
-0.6038022041320801,
-1.0147559642791748,
0.22464120388031006,
-0.23345345258712769,
-0.8460012674331665,
0.24016569554805756,
0.23119623959064484,
-0.3427281081676483,
0.08116471767425537,
-0.6691553592681885,
0.7480137348175049,
-0.18505460023880005,
-0.020367031916975975,
-0.40296557545661926,
-0.6943955421447754,
0.024927813559770584,
-0.1922474205493927,
0.27774786949157715,
-0.27752530574798584,
0.3229488432407379,
1.015122652053833,
-0.38271623849868774,
0.7262141704559326,
-0.395996630191803,
0.0013407061342149973,
0.4816648066043854,
-0.14331358671188354,
0.3687538504600525,
0.12128552049398422,
0.12695194780826569,
0.3984937369823456,
0.22740530967712402,
-0.39603835344314575,
-0.3876182734966278,
0.7096619606018066,
-1.0219740867614746,
-0.34969401359558105,
-0.22120584547519684,
-0.30750977993011475,
-0.31536608934402466,
-0.02631254866719246,
0.47453466057777405,
0.6039717197418213,
-0.1929539442062378,
0.3045649826526642,
0.6785642504692078,
0.03260902687907219,
0.5908325910568237,
0.4550847113132477,
-0.32865360379219055,
-0.46706411242485046,
1.10746431350708,
0.4134022295475006,
0.07959283888339996,
0.28716233372688293,
0.3823343515396118,
-0.4036075472831726,
-0.4627068042755127,
-0.2709311246871948,
0.31609901785850525,
-0.6060672998428345,
-0.23991134762763977,
-0.5671587586402893,
-0.4242110252380371,
-0.6631967425346375,
0.28631719946861267,
-0.6749537587165833,
-0.6279005408287048,
-0.7498009204864502,
-0.1457323580980301,
0.2854463756084442,
0.7347506880760193,
-0.6259544491767883,
0.5250326991081238,
-0.5237526893615723,
0.37584033608436584,
0.6848553419113159,
0.1212875172495842,
-0.06943481415510178,
-0.976791262626648,
-0.41204309463500977,
0.013723443262279034,
-0.1601233035326004,
-0.7065296173095703,
0.2559051811695099,
0.415475994348526,
0.5596891641616821,
0.49991774559020996,
0.02181481570005417,
0.5903093814849854,
-0.5265848636627197,
0.736971378326416,
0.3129933178424835,
-0.9892241358757019,
0.770082950592041,
-0.17812155187129974,
0.20896869897842407,
0.4735816419124603,
0.2768419682979584,
-0.2905775308609009,
-0.12107598036527634,
-0.7458195090293884,
-0.7422568798065186,
0.8360894322395325,
0.28103727102279663,
0.2286904752254486,
0.17246662080287933,
0.38607099652290344,
-0.05919141322374344,
0.0212298221886158,
-0.8367195725440979,
-0.40818190574645996,
-0.37552720308303833,
-0.13456006348133087,
-0.30117085576057434,
-0.5235990881919861,
0.05198405310511589,
-0.6523187160491943,
0.9762668013572693,
0.02533283829689026,
0.29908287525177,
0.22017885744571686,
-0.02315433695912361,
-0.06936217844486237,
0.13677896559238434,
0.37295767664909363,
0.5032115578651428,
-0.36554160714149475,
0.06918325275182724,
0.18297822773456573,
-0.25635045766830444,
0.009896369650959969,
0.3501150608062744,
-0.0473928265273571,
0.20751166343688965,
0.3946767747402191,
1.1492551565170288,
0.19088754057884216,
-0.16686367988586426,
0.5658607482910156,
-0.004038325510919094,
-0.45606809854507446,
-0.43641677498817444,
0.010845838114619255,
0.05677829310297966,
0.2348749190568924,
0.5818520784378052,
-0.052298154681921005,
0.15239183604717255,
-0.3977254629135132,
0.29449379444122314,
0.2879331409931183,
-0.7782023549079895,
-0.290721595287323,
0.6925061941146851,
-0.003891552798449993,
-0.2449587732553482,
0.4970398247241974,
-0.43587905168533325,
-0.35885506868362427,
0.3096233904361725,
0.6327062249183655,
0.7368277907371521,
-0.7265097498893738,
0.2095285803079605,
0.5829952955245972,
0.28948062658309937,
-0.12393072992563248,
0.37018337845802307,
-0.32435545325279236,
-0.49738460779190063,
-0.5047538876533508,
-0.7277935743331909,
-0.1116543561220169,
0.2815990149974823,
-0.6986351609230042,
0.17991788685321808,
-0.32343152165412903,
-0.35193154215812683,
0.13928468525409698,
0.08364218473434448,
-0.49874019622802734,
0.2152722328901291,
0.25182226300239563,
0.4756411015987396,
-0.6382008194923401,
1.2072961330413818,
0.3588338792324066,
-0.14100298285484314,
-1.3050670623779297,
-0.17031733691692352,
-0.1894131749868393,
-0.7480962872505188,
0.4710645079612732,
0.24084748327732086,
-0.023844817653298378,
0.1230713278055191,
-0.6428067684173584,
-1.1171618700027466,
0.9592188596725464,
0.4241381287574768,
-1.0132684707641602,
0.21378283202648163,
-0.17461882531642914,
0.4773511588573456,
-0.2512272298336029,
-0.14145711064338684,
0.38100695610046387,
0.3039298951625824,
0.08076021075248718,
-1.0685480833053589,
-0.24150267243385315,
0.11564188450574875,
0.13885138928890228,
-0.0680326297879219,
-0.5837416648864746,
0.9618497490882874,
-0.1907496154308319,
-0.23721620440483093,
0.046949174255132675,
0.9353392720222473,
0.0925026386976242,
0.298036128282547,
0.48365017771720886,
0.6097696423530579,
0.9467455148696899,
-0.1522422432899475,
0.6011840105056763,
-0.23002208769321442,
0.6954665780067444,
1.2987991571426392,
0.21344898641109467,
0.9895296692848206,
0.3658754825592041,
-0.3741637170314789,
0.3624350130558014,
0.6442742943763733,
-0.2837190330028534,
0.604210615158081,
0.33330458402633667,
-0.08949907124042511,
-0.38473567366600037,
0.012902386486530304,
-0.6211105585098267,
0.8134350776672363,
0.31171995401382446,
-0.2968795597553253,
0.18783129751682281,
0.15950362384319305,
-0.3365888297557831,
-0.03672030195593834,
-0.3825482726097107,
0.7454946041107178,
0.362984836101532,
-0.23941664397716522,
0.8357223868370056,
0.13944251835346222,
0.5195512175559998,
-0.5440144538879395,
0.09651348739862442,
0.06476894021034241,
-0.02192925661802292,
-0.22169509530067444,
-0.32877910137176514,
0.011626804247498512,
-0.37250012159347534,
-0.2008027285337448,
-0.16175487637519836,
0.6919573545455933,
-0.6773864030838013,
-0.6480101943016052,
0.476521372795105,
0.28086838126182556,
0.3775140941143036,
-0.2263200432062149,
-0.7174584865570068,
0.13358908891677856,
0.057553909718990326,
-0.053697943687438965,
0.1944383680820465,
0.2346286028623581,
0.163023442029953,
0.2877562344074249,
0.4845750331878662,
0.04982294514775276,
0.0018407312454655766,
0.39556005597114563,
0.6225810050964355,
-0.4489886164665222,
-0.5583887100219727,
-0.459933876991272,
0.20975668728351593,
0.06030058488249779,
0.025452671572566032,
0.49191510677337646,
0.5568965673446655,
1.0633914470672607,
0.010100330226123333,
0.38593897223472595,
0.25428712368011475,
0.7561660408973694,
-0.5828339457511902,
0.7642101049423218,
-0.6555565595626831,
0.11159715056419373,
-0.19069398939609528,
-0.875487744808197,
-0.11356648802757263,
0.8977653980255127,
0.03411755710840225,
0.3162600100040436,
0.37682244181632996,
0.7350777387619019,
-0.03480785712599754,
-0.17396774888038635,
0.6014171838760376,
0.2747036814689636,
0.15202869474887848,
0.20846153795719147,
0.7505854964256287,
-0.655494213104248,
0.530197024345398,
-0.4390508830547333,
-0.1962459683418274,
-0.2361346185207367,
-0.4559294283390045,
-0.8953478932380676,
-0.8757550120353699,
-0.4160144329071045,
-0.20484517514705658,
0.03529663756489754,
1.0362589359283447,
1.1994255781173706,
-0.9535531997680664,
-0.3081022799015045,
0.2271329164505005,
-0.1393657922744751,
-0.2011496126651764,
-0.17457155883312225,
0.548163652420044,
-0.388235479593277,
-0.5076780915260315,
0.7730754017829895,
0.08051205426454544,
0.2266145795583725,
-0.2790418863296509,
-0.20016606152057648,
-0.009352607652544975,
-0.12174982577562332,
0.5896235108375549,
0.1665826290845871,
-0.9727023839950562,
-0.31322434544563293,
-0.326825886964798,
0.06974543631076813,
0.23437802493572235,
0.5975888967514038,
-0.9128912091255188,
0.6943393349647522,
0.08149133622646332,
0.3507777452468872,
1.0666794776916504,
-0.09380551427602768,
0.11760888248682022,
-1.128896951675415,
0.061046626418828964,
0.30629807710647583,
0.3865165412425995,
0.4023175537586212,
-0.1660013496875763,
0.27608242630958557,
0.21679584681987762,
-0.7380023002624512,
-0.6614986062049866,
0.16492760181427002,
-1.2917213439941406,
-0.36815398931503296,
1.0363658666610718,
0.03519374877214432,
-0.12851093709468842,
0.19798654317855835,
-0.3356582224369049,
0.5093753337860107,
-0.68526691198349,
0.5989919900894165,
0.4692818522453308,
-0.12686659395694733,
-0.22653546929359436,
-0.44765573740005493,
0.575174868106842,
0.4076436460018158,
-0.19309568405151367,
-0.0614740289747715,
0.42745301127433777,
0.32392624020576477,
0.1507866233587265,
0.6246978640556335,
0.09189406037330627,
0.0807521715760231,
-0.10652647167444229,
0.2015063762664795,
-0.09841937571763992,
-0.48245862126350403,
-0.6269544363021851,
0.04559388384222984,
0.11987846344709396,
-0.39822253584861755
] |
cross-encoder/stsb-roberta-large | cross-encoder | "2021-08-05T08:42:03Z" | 93,852 | 6 | transformers | [
"transformers",
"pytorch",
"jax",
"roberta",
"text-classification",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"region:us"
] | text-classification | "2022-03-02T23:29:05Z" | ---
license: apache-2.0
---
# Cross-Encoder for Quora Duplicate Questions Detection
This model was trained using [SentenceTransformers](https://sbert.net) [Cross-Encoder](https://www.sbert.net/examples/applications/cross-encoder/README.html) class.
## Training Data
This model was trained on the [STS benchmark dataset](http://ixa2.si.ehu.eus/stswiki/index.php/STSbenchmark). The model will predict a score between 0 and 1 how for the semantic similarity of two sentences.
## Usage and Performance
Pre-trained models can be used like this:
```
from sentence_transformers import CrossEncoder
model = CrossEncoder('model_name')
scores = model.predict([('Sentence 1', 'Sentence 2'), ('Sentence 3', 'Sentence 4')])
```
The model will predict scores for the pairs `('Sentence 1', 'Sentence 2')` and `('Sentence 3', 'Sentence 4')`.
You can use this model also without sentence_transformers and by just using Transformers ``AutoModel`` class | [
-0.2337435483932495,
-0.8359883427619934,
0.2704041600227356,
0.23892052471637726,
-0.39293766021728516,
-0.03495657816529274,
0.1684756577014923,
-0.17820724844932556,
0.12467557191848755,
0.7178803086280823,
-0.7079653143882751,
-0.441781222820282,
-0.48284655809402466,
0.4586295485496521,
-0.8812296986579895,
1.0624881982803345,
-0.15582185983657837,
0.4117394685745239,
-0.7210993766784668,
-0.34884294867515564,
-0.3752514719963074,
-0.44514721632003784,
-0.5014163255691528,
-0.25818243622779846,
0.13688044250011444,
0.35915908217430115,
0.3952420651912689,
0.12024358659982681,
0.33845776319503784,
0.4170320928096771,
-0.015857765451073647,
0.10859864950180054,
-0.2458478808403015,
0.07400453835725784,
-0.32146069407463074,
-0.6293549537658691,
0.17587168514728546,
-0.18226923048496246,
0.38658279180526733,
0.2561603784561157,
-0.14221584796905518,
0.4847038686275482,
0.03870009630918503,
0.3054753243923187,
-0.14875145256519318,
-0.20902274549007416,
-0.7331336140632629,
0.20473618805408478,
0.07508869469165802,
-0.28866046667099,
-0.05913437530398369,
-0.6431150436401367,
-0.07070872187614441,
-0.5795235633850098,
0.3973231911659241,
0.012193565256893635,
1.1396411657333374,
0.35961952805519104,
-0.5087421536445618,
-0.2227366864681244,
-0.4304977357387543,
0.8463109135627747,
-0.5363669395446777,
0.18907280266284943,
0.3750622272491455,
0.3323788344860077,
0.09360936284065247,
-0.8670312166213989,
-1.045505166053772,
0.12362257391214371,
-0.2283414751291275,
0.12427078932523727,
-0.451626181602478,
-0.5526468753814697,
0.2862018346786499,
0.3629502058029175,
-1.0314747095108032,
-0.0525381974875927,
-0.7903012037277222,
-0.36903488636016846,
0.4049226939678192,
0.46116000413894653,
0.26279643177986145,
-0.5991887450218201,
-0.7804632782936096,
-0.20130489766597748,
-0.1301984190940857,
0.25819873809814453,
0.3647986650466919,
-0.039426613599061966,
-0.10291874408721924,
0.6177671551704407,
-0.4270491898059845,
0.553059458732605,
0.21995261311531067,
0.23183493316173553,
0.7629356384277344,
-0.544670581817627,
-0.013767316937446594,
-0.26744702458381653,
1.090348482131958,
0.26546379923820496,
0.5012702345848083,
0.05889822542667389,
0.0023061896208673716,
0.1794733703136444,
0.4356907904148102,
-0.6181126236915588,
-0.08773007243871689,
0.27874401211738586,
-0.4132935702800751,
-0.4408397674560547,
0.14371687173843384,
-0.4781820476055145,
0.1432569921016693,
-0.21760235726833344,
0.8166073560714722,
-0.5302343368530273,
0.015351387672126293,
0.3847143352031708,
-0.3946138322353363,
0.4271673262119293,
-0.020205672830343246,
-0.42433658242225647,
0.47100237011909485,
0.5812572240829468,
0.623746395111084,
-0.16424930095672607,
-0.6663837432861328,
-0.3551398515701294,
-0.34009721875190735,
0.12529805302619934,
0.994377613067627,
-0.3972465693950653,
-0.17739035189151764,
-0.1685241460800171,
0.30231523513793945,
-0.15917237102985382,
-0.5417366027832031,
0.6245054602622986,
-0.5861890316009521,
0.9618236422538757,
-0.3101558983325958,
-0.7017820477485657,
-0.4855155944824219,
0.5989780426025391,
-0.7752678990364075,
1.2606602907180786,
0.3146687150001526,
-0.9398790001869202,
0.170999214053154,
-0.4010327160358429,
-0.48888376355171204,
0.0866703987121582,
-0.1457994133234024,
-0.7187998294830322,
-0.23645974695682526,
0.29029491543769836,
0.1863303780555725,
-0.3330638110637665,
0.12766170501708984,
-0.08684077858924866,
-0.41555312275886536,
0.3872620463371277,
-0.27288591861724854,
0.8376720547676086,
0.04596583917737007,
-0.2971179187297821,
0.10778679698705673,
-0.6756772398948669,
0.3930101990699768,
0.20408639311790466,
-0.2968771457672119,
-0.28141242265701294,
-0.4835553765296936,
0.2994682192802429,
0.4065314829349518,
0.38202735781669617,
-0.7824657559394836,
-0.23836106061935425,
-0.22547118365764618,
0.2990085184574127,
0.49053245782852173,
0.19005393981933594,
0.19246208667755127,
-0.48114070296287537,
0.9425013065338135,
0.28513646125793457,
0.18316398561000824,
0.1575324982404709,
-0.58051997423172,
-0.7283249497413635,
0.33167049288749695,
0.3261161148548126,
0.8986366391181946,
-0.8288432359695435,
0.8349912166595459,
-0.15212325751781464,
-0.573782742023468,
-0.8107203841209412,
0.2643511891365051,
0.31941157579421997,
0.34800857305526733,
0.682111382484436,
-0.2315889298915863,
-0.7600811719894409,
-1.0134280920028687,
-0.5298272967338562,
0.03421464189887047,
0.01456092856824398,
0.013223077170550823,
0.9341298341751099,
-0.10894978046417236,
1.073784351348877,
-0.47921785712242126,
-0.2215041071176529,
-0.38967734575271606,
0.15332511067390442,
0.05574584752321243,
0.6917460560798645,
0.4702345132827759,
-1.0701409578323364,
-0.6787818074226379,
-0.38839390873908997,
-0.7809937000274658,
0.044273778796195984,
0.0015977614093571901,
-0.17684416472911835,
0.09543734043836594,
0.4284745752811432,
-0.7604367136955261,
0.42579540610313416,
0.43825381994247437,
-0.24015268683433533,
0.3916965425014496,
0.013524680398404598,
0.3443058133125305,
-1.483167052268982,
-0.012432306073606014,
-0.14439204335212708,
-0.3530257046222687,
-0.41137561202049255,
0.07976531982421875,
0.031249426305294037,
-0.04536992684006691,
-0.43761152029037476,
0.4909367859363556,
-0.10238274186849594,
0.13215062022209167,
-0.2039979249238968,
0.11396785825490952,
0.3224136233329773,
0.5659842491149902,
0.02207917347550392,
0.7143713235855103,
0.48465782403945923,
-0.5246923565864563,
0.5606997609138489,
0.699164867401123,
-0.7154791355133057,
0.48748165369033813,
-1.0898164510726929,
0.3581011891365051,
-0.04674313962459564,
0.32243597507476807,
-1.013802409172058,
0.17611218988895416,
0.3812180757522583,
-0.7281274199485779,
-0.47595101594924927,
0.11893182247877121,
-0.570310652256012,
-0.7527107000350952,
-0.3731379210948944,
0.6667370796203613,
0.5010291934013367,
-0.6439645290374756,
0.6176217794418335,
0.2287386655807495,
-0.0631178468465805,
-0.7406480312347412,
-0.9744651913642883,
-0.37578684091567993,
-0.03290901705622673,
-0.6069730520248413,
0.1539447158575058,
-0.19515129923820496,
0.2802504599094391,
0.2652072608470917,
0.051972754299640656,
-0.21698129177093506,
-0.089598149061203,
0.29969409108161926,
0.11072410643100739,
-0.3246428966522217,
0.21031664311885834,
0.1604936271905899,
-0.15665514767169952,
0.10746998339891434,
-0.32720327377319336,
0.8909398913383484,
-0.11742429435253143,
-0.3245575726032257,
-0.46704360842704773,
0.48174574971199036,
0.3700312674045563,
-0.31576207280158997,
0.7137433290481567,
0.6882554888725281,
-0.3985687494277954,
-0.23642593622207642,
-0.6717294454574585,
-0.047024961560964584,
-0.48833340406417847,
0.4991886019706726,
-0.4601691663265228,
-0.9856826663017273,
0.5159586668014526,
0.3268860876560211,
-0.45262622833251953,
0.5342050790786743,
0.4353596866130829,
0.0842023566365242,
0.7730830311775208,
0.49517714977264404,
-0.2031729519367218,
0.2472933530807495,
-0.20713825523853302,
0.21520434319972992,
-0.5019439458847046,
-0.4617500305175781,
-0.47296154499053955,
-0.214406818151474,
-0.5097629427909851,
-0.6173014640808105,
0.17647850513458252,
-0.004524949472397566,
-0.14189468324184418,
0.6689287424087524,
-0.6781512498855591,
0.7189804911613464,
0.723632276058197,
0.17768940329551697,
0.11776704341173172,
0.22117812931537628,
0.09880669414997101,
0.09752245247364044,
-0.7224960327148438,
-0.2781740427017212,
1.040744423866272,
-0.02928205393254757,
0.6321334838867188,
-0.2891663908958435,
0.6728101372718811,
0.19828397035598755,
-0.238698348402977,
-0.45158088207244873,
0.718201220035553,
-0.30052435398101807,
-0.5944111347198486,
-0.27226191759109497,
-0.6053239703178406,
-1.1531039476394653,
0.3050462603569031,
-0.1665075123310089,
-0.19186459481716156,
0.0700819119811058,
-0.23055483400821686,
-0.5428656339645386,
0.26531165838241577,
-0.3002870976924896,
1.1980208158493042,
-0.3229517936706543,
0.05738913640379906,
-0.3520582616329193,
-0.5341038703918457,
0.28802087903022766,
-0.18459920585155487,
-0.08398041874170303,
0.03523065894842148,
-0.03106832690536976,
0.8862242698669434,
-0.3828865885734558,
0.6179867386817932,
0.08302462846040726,
0.20111757516860962,
0.39295071363449097,
-0.18353170156478882,
0.11847566813230515,
-0.050787266343832016,
-0.049947600811719894,
0.223345547914505,
0.10802837461233139,
-0.42926162481307983,
-0.3172658383846283,
0.7982756495475769,
-0.9771583080291748,
-0.3780404031276703,
-0.37437301874160767,
-0.3656727373600006,
0.10951390862464905,
0.1830756813287735,
0.6279690265655518,
0.31769314408302307,
-0.41644400358200073,
0.05972462520003319,
0.39662858843803406,
-0.31564849615097046,
0.09768533706665039,
0.626569390296936,
-0.14820609986782074,
-0.5800223350524902,
0.577756941318512,
-0.044785160571336746,
0.17942170798778534,
0.6055930852890015,
0.059960417449474335,
-0.3967055082321167,
-0.18994717299938202,
-0.16904012858867645,
0.1786094307899475,
-0.7998886108398438,
-0.4099295735359192,
-1.0637766122817993,
-0.631014347076416,
-0.5892221927642822,
0.31515344977378845,
-0.12106674164533615,
-0.6096689105033875,
-0.3157561719417572,
-0.26835307478904724,
0.7521350979804993,
0.6088438034057617,
-0.13311368227005005,
0.2093125283718109,
-0.8753235936164856,
0.7105798125267029,
0.4274623692035675,
0.11473777890205383,
-0.08106474578380585,
-0.8469987511634827,
-0.1487179696559906,
-0.08366109430789948,
-0.28050002455711365,
-0.5751782059669495,
0.4518513083457947,
-0.06396016478538513,
0.5594485998153687,
0.01396746002137661,
0.0569261834025383,
0.5431370735168457,
-0.33797141909599304,
0.7558349967002869,
0.16714663803577423,
-1.02359938621521,
0.6064820289611816,
0.17161862552165985,
0.46924856305122375,
0.7683005928993225,
0.7488300204277039,
-0.6286729574203491,
-0.3703174293041229,
-0.633419930934906,
-0.7813321352005005,
0.7526677846908569,
0.28104448318481445,
0.4274415075778961,
-0.09817610681056976,
0.18605007231235504,
0.5191801190376282,
0.12886758148670197,
-1.059627890586853,
-0.2367653250694275,
-0.530189037322998,
-0.43190860748291016,
-0.018327565863728523,
-0.15318991243839264,
0.14187006652355194,
-0.5235999822616577,
0.6609126925468445,
0.12539012730121613,
-0.055219028145074844,
0.20303405821323395,
-0.2602558434009552,
-0.09034276753664017,
0.3200041651725769,
0.2962549328804016,
0.30445969104766846,
-0.024085769429802895,
-0.2327425330877304,
0.4178037941455841,
-0.34574806690216064,
0.017861800268292427,
0.2696623206138611,
-0.385458767414093,
0.30387258529663086,
0.3011210262775421,
0.8966200947761536,
0.100064218044281,
-0.506963849067688,
0.6977032423019409,
-0.18086707592010498,
-0.315094530582428,
-0.8767592906951904,
-0.054496534168720245,
0.07027489691972733,
0.47262412309646606,
0.13086071610450745,
0.24254867434501648,
0.0874873474240303,
-0.497158944606781,
0.40596455335617065,
0.19118840992450714,
-0.31588101387023926,
-0.19698838889598846,
0.6932678818702698,
0.11156756430864334,
-0.6478545069694519,
0.8152192234992981,
-0.14857470989227295,
-1.1654188632965088,
0.7012839913368225,
0.30234044790267944,
0.7710106372833252,
-0.08799417316913605,
0.38324642181396484,
0.7029372453689575,
0.21131424605846405,
-0.30673959851264954,
0.7021884322166443,
-0.15873363614082336,
-1.0028932094573975,
0.04005781561136246,
-0.5938705205917358,
-0.3495708405971527,
0.29126429557800293,
-1.0490741729736328,
0.3456451892852783,
-0.30893397331237793,
-0.12901794910430908,
-0.0089648999273777,
-0.14306969940662384,
-0.8355007767677307,
0.26257216930389404,
-0.0218253955245018,
0.8038650155067444,
-0.9502451419830322,
0.7637928128242493,
0.6124128103256226,
-0.8453248143196106,
-0.7540746927261353,
-0.04691990464925766,
-0.15704986453056335,
-0.8842324018478394,
0.6857191324234009,
0.37279650568962097,
0.09875359386205673,
-0.15900784730911255,
-0.6013889312744141,
-0.8148505091667175,
1.073102593421936,
-0.16886261105537415,
-0.5061779618263245,
-0.010879037901759148,
0.5213351249694824,
0.6556836366653442,
-0.3253064453601837,
0.3850518763065338,
0.5108503103256226,
0.2422531694173813,
-0.23884952068328857,
-0.8812428712844849,
0.15095122158527374,
-0.7103018760681152,
-0.20709124207496643,
0.04454128071665764,
-0.638300359249115,
1.2232028245925903,
0.021131742745637894,
-0.04143884778022766,
0.6251171231269836,
0.5162319540977478,
0.3744798004627228,
0.32477647066116333,
0.648758053779602,
0.7667257189750671,
0.5862427949905396,
0.08854750543832779,
1.0260452032089233,
-0.27026796340942383,
0.48131904006004333,
1.2399945259094238,
-0.33521080017089844,
0.9907751083374023,
0.3181205987930298,
-0.14845044910907745,
0.9820255041122437,
0.3574466407299042,
-0.6328139901161194,
0.47712355852127075,
0.24601396918296814,
0.1740572601556778,
-0.4692111313343048,
0.20332786440849304,
-0.5738855004310608,
0.5436069369316101,
-0.08032175153493881,
-0.3418547213077545,
-0.04466300830245018,
0.23344704508781433,
-0.39391976594924927,
0.43130606412887573,
0.011044139973819256,
0.6013944745063782,
0.022742630913853645,
-0.7193617820739746,
0.5041977167129517,
-0.09582778066396713,
0.9209587574005127,
-0.8060336112976074,
0.02479068748652935,
-0.32153791189193726,
0.3583761155605316,
-0.030960163101553917,
-0.993513286113739,
0.18966078758239746,
-0.03368549793958664,
-0.41935116052627563,
-0.007546249311417341,
0.8178482055664062,
-0.702567994594574,
-0.7208782434463501,
0.596778154373169,
0.6408606767654419,
0.22891739010810852,
-0.19672469794750214,
-1.060227632522583,
-0.300864040851593,
0.06320830434560776,
0.03366286680102348,
-0.012929225340485573,
0.6030928492546082,
0.08536618947982788,
0.6890925168991089,
0.6119635105133057,
-0.2709258198738098,
0.1666395515203476,
0.42156514525413513,
0.8229193687438965,
-1.054868459701538,
-0.6669396758079529,
-0.5563499927520752,
0.19833281636238098,
-0.342617392539978,
-0.6741082668304443,
0.9538940787315369,
0.9862798452377319,
1.0785549879074097,
-0.37573376297950745,
0.7584690451622009,
0.19077736139297485,
0.9544984102249146,
-0.39492082595825195,
0.6385753750801086,
-0.7335911393165588,
0.12965507805347443,
-0.017469968646764755,
-0.6271412968635559,
0.1449972242116928,
0.5338446497917175,
-0.2524075210094452,
0.053105782717466354,
0.9912139773368835,
1.0219708681106567,
-0.1652723252773285,
0.26166415214538574,
0.02682485431432724,
0.17405343055725098,
-0.376143217086792,
0.7917618155479431,
1.1292061805725098,
-0.9439566731452942,
1.0453846454620361,
-0.31101396679878235,
0.44465744495391846,
0.06636542826890945,
-0.12911728024482727,
-1.0380210876464844,
-0.5351217985153198,
-0.4548296332359314,
-0.47349363565444946,
-0.11680720746517181,
0.6471579074859619,
0.4789963662624359,
-1.14995539188385,
-0.07770555466413498,
0.06552242487668991,
0.14475733041763306,
-0.17828039824962616,
-0.27972105145454407,
0.2325800210237503,
0.016014311462640762,
-0.5941177606582642,
0.11477412283420563,
-0.06271017342805862,
-0.047573961317539215,
-0.0681915134191513,
0.03372245281934738,
-0.5189976692199707,
0.18658243119716644,
0.3388668894767761,
0.12219875305891037,
-0.7310510873794556,
-0.30290836095809937,
0.004537483677268028,
-0.40916144847869873,
0.03794887289404869,
0.5517133474349976,
-1.1108365058898926,
-0.03534756600856781,
0.8254148364067078,
0.5014280676841736,
0.7046147584915161,
0.24325618147850037,
0.40272364020347595,
-0.45815983414649963,
0.0332852303981781,
0.23963330686092377,
0.38194844126701355,
0.5390134453773499,
-0.27901193499565125,
0.5492445230484009,
0.34923186898231506,
-0.44627246260643005,
-0.6285543441772461,
-0.036775629967451096,
-1.1439110040664673,
-0.4026256203651428,
1.1038340330123901,
-0.07806581258773804,
-0.26885393261909485,
-0.18121035397052765,
-0.1385723501443863,
0.3166533410549164,
-0.1972455382347107,
0.7474128007888794,
0.44392159581184387,
0.19125919044017792,
-0.12024934589862823,
-0.07789372652769089,
0.1189703494310379,
0.7706339359283447,
-0.962205171585083,
-0.4860088527202606,
0.054238513112068176,
0.8913545608520508,
0.17716357111930847,
0.46022504568099976,
-0.07202313095331192,
0.5246529579162598,
0.15787352621555328,
0.10635751485824585,
-0.03206239268183708,
0.18662871420383453,
-0.4204172194004059,
0.19138669967651367,
-0.6670414805412292,
-0.6109390258789062
] |
microsoft/dit-base-finetuned-rvlcdip | microsoft | "2023-02-27T17:57:24Z" | 93,232 | 20 | transformers | [
"transformers",
"pytorch",
"beit",
"image-classification",
"dit",
"vision",
"dataset:rvl_cdip",
"arxiv:2203.02378",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | image-classification | "2022-03-07T20:48:42Z" | ---
tags:
- dit
- vision
- image-classification
datasets:
- rvl_cdip
widget:
- src: https://huggingface.co/microsoft/dit-base-finetuned-rvlcdip/resolve/main/coca_cola_advertisement.png
example_title: Advertisement
- src: https://huggingface.co/microsoft/dit-base-finetuned-rvlcdip/resolve/main/scientific_publication.png
example_title: Scientific publication
---
# Document Image Transformer (base-sized model)
Document Image Transformer (DiT) model pre-trained on IIT-CDIP (Lewis et al., 2006), a dataset that includes 42 million document images and fine-tuned on [RVL-CDIP](https://www.cs.cmu.edu/~aharley/rvl-cdip/), a dataset consisting of 400,000 grayscale images in 16 classes, with 25,000 images per class. It was introduced in the paper [DiT: Self-supervised Pre-training for Document Image Transformer](https://arxiv.org/abs/2203.02378) by Li et al. and first released in [this repository](https://github.com/microsoft/unilm/tree/master/dit). Note that DiT is identical to the architecture of [BEiT](https://huggingface.co/docs/transformers/model_doc/beit).
Disclaimer: The team releasing DiT did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
The Document Image Transformer (DiT) is a transformer encoder model (BERT-like) pre-trained on a large collection of images in a self-supervised fashion. The pre-training objective for the model is to predict visual tokens from the encoder of a discrete VAE (dVAE), based on masked patches.
Images are presented to the model as a sequence of fixed-size patches (resolution 16x16), which are linearly embedded. One also adds absolute position embeddings before feeding the sequence to the layers of the Transformer encoder.
By pre-training the model, it learns an inner representation of images that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled document images for instance, you can train a standard classifier by placing a linear layer on top of the pre-trained encoder.
## Intended uses & limitations
You can use the raw model for encoding document images into a vector space, but it's mostly meant to be fine-tuned on tasks like document image classification, table detection or document layout analysis. See the [model hub](https://huggingface.co/models?search=microsoft/dit) 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 AutoImageProcessor, AutoModelForImageClassification
import torch
from PIL import Image
image = Image.open('path_to_your_document_image').convert('RGB')
processor = AutoImageProcessor.from_pretrained("microsoft/dit-base-finetuned-rvlcdip")
model = AutoModelForImageClassification.from_pretrained("microsoft/dit-base-finetuned-rvlcdip")
inputs = processor(images=image, return_tensors="pt")
outputs = model(**inputs)
logits = outputs.logits
# model predicts one of the 16 RVL-CDIP classes
predicted_class_idx = logits.argmax(-1).item()
print("Predicted class:", model.config.id2label[predicted_class_idx])
```
### BibTeX entry and citation info
```bibtex
@article{Lewis2006BuildingAT,
title={Building a test collection for complex document information processing},
author={David D. Lewis and Gady Agam and Shlomo Engelson Argamon and Ophir Frieder and David A. Grossman and Jefferson Heard},
journal={Proceedings of the 29th annual international ACM SIGIR conference on Research and development in information retrieval},
year={2006}
}
``` | [
-0.5997927784919739,
-0.5164029598236084,
0.21623143553733826,
-0.08350001275539398,
-0.1855650693178177,
-0.11744416505098343,
0.03223063796758652,
-0.39300695061683655,
-0.23729582130908966,
0.19479501247406006,
-0.4367349445819855,
-0.2896881699562073,
-0.8898075222969055,
0.005306665785610676,
-0.6121654510498047,
1.0285276174545288,
-0.09465772658586502,
-0.12603630125522614,
-0.13686175644397736,
0.02479696460068226,
-0.4049615263938904,
-0.3727320432662964,
-0.33649784326553345,
-0.30236464738845825,
0.2768264710903168,
0.17170563340187073,
0.5541285276412964,
0.4933077096939087,
0.7530195713043213,
0.45572879910469055,
0.1792001873254776,
-0.09155335277318954,
-0.4172629117965698,
-0.27696967124938965,
0.0007711438811384141,
-0.49480876326560974,
-0.45755666494369507,
0.32375144958496094,
0.4318123161792755,
0.19695957005023956,
0.12363796681165695,
0.10570113360881805,
0.11396364867687225,
0.603958249092102,
-0.43377169966697693,
0.16071078181266785,
-0.4862590730190277,
0.08857014775276184,
-0.037923846393823624,
-0.10052815079689026,
-0.46592968702316284,
-0.10824047774076462,
0.2597886919975281,
-0.49586981534957886,
0.7284218668937683,
-0.15431536734104156,
1.2154901027679443,
0.26861679553985596,
-0.21872451901435852,
-0.3113473653793335,
-0.6644300222396851,
0.5751722455024719,
-0.4643866717815399,
0.41100120544433594,
0.1954444795846939,
0.2316935658454895,
-0.005069041159003973,
-1.0683079957962036,
-0.793127715587616,
-0.17414319515228271,
-0.32744100689888,
0.330544650554657,
-0.4732944965362549,
0.19624173641204834,
0.40801844000816345,
0.5834776163101196,
-0.6900069713592529,
0.0036259684711694717,
-0.6184077262878418,
-0.08602023869752884,
0.46195679903030396,
-0.18376152217388153,
0.30298224091529846,
-0.18746356666088104,
-0.4919891953468323,
-0.5047237873077393,
-0.1151486188173294,
-0.24201402068138123,
0.31006723642349243,
-0.22256667912006378,
-0.16953428089618683,
0.45285549759864807,
0.20146504044532776,
0.7409087419509888,
0.38318875432014465,
-0.1546044945716858,
0.38802582025527954,
-0.0907837375998497,
-0.3300034999847412,
-0.16498883068561554,
0.8218292593955994,
0.29620805382728577,
0.20513008534908295,
-0.015745675191283226,
-0.3240582346916199,
0.2403775453567505,
0.3071397542953491,
-1.0475908517837524,
-0.5096874833106995,
0.1196044310927391,
-0.607336699962616,
-0.2934221029281616,
0.1366019994020462,
-0.6865797638893127,
-0.026302872225642204,
-0.43748509883880615,
0.6200924515724182,
-0.701568067073822,
-0.26204437017440796,
-0.11011375486850739,
-0.2567897140979767,
0.34360674023628235,
0.47910192608833313,
-0.64182049036026,
0.15363061428070068,
0.12769314646720886,
0.8571961522102356,
-0.1290646642446518,
-0.5274580121040344,
-0.21153686940670013,
-0.16771890223026276,
-0.1186937689781189,
0.7771894931793213,
-0.2512015104293823,
-0.40050017833709717,
-0.04890235513448715,
0.19890274107456207,
-0.08429886400699615,
-0.32925477623939514,
0.39927515387535095,
-0.535739541053772,
0.41470038890838623,
-0.010171030648052692,
-0.4870505630970001,
-0.06458740681409836,
0.3013833463191986,
-0.5594558119773865,
1.1803852319717407,
0.45180436968803406,
-0.9432865977287292,
0.3228854835033417,
-0.5004582405090332,
-0.1352987438440323,
-0.0463937446475029,
-0.07777087390422821,
-0.6534518003463745,
0.04519674554467201,
0.16578148305416107,
0.6289162635803223,
-0.24692930281162262,
0.07505985349416733,
-0.14465972781181335,
-0.3327106237411499,
0.050142813473939896,
-0.4158615171909332,
0.6378346681594849,
0.45069941878318787,
-0.3680805563926697,
-0.07311276346445084,
-0.7586483359336853,
-0.13623924553394318,
0.3990366756916046,
-0.22401024401187897,
-0.09754878282546997,
-0.4378400444984436,
0.32360562682151794,
0.43860089778900146,
0.38633662462234497,
-0.5800920128822327,
0.4330092966556549,
-0.07416900247335434,
0.3078277111053467,
0.6604748964309692,
-0.3661574423313141,
0.5049576759338379,
-0.26259127259254456,
0.47063249349594116,
0.11931952834129333,
0.26444172859191895,
-0.31371480226516724,
-0.19350150227546692,
-0.734782338142395,
-0.48792940378189087,
0.3504377603530884,
0.4005250632762909,
-0.5577206611633301,
0.5233415365219116,
-0.30951184034347534,
-0.7134711742401123,
-0.3421191871166229,
-0.12964865565299988,
0.3363400995731354,
0.5722484588623047,
0.3875735402107239,
-0.3839300572872162,
-0.3391024172306061,
-0.8384222388267517,
0.29196980595588684,
-0.054161187261343,
-0.017999157309532166,
-0.05282137170433998,
0.664002001285553,
-0.3576766550540924,
0.9122855067253113,
-0.5651488900184631,
-0.5069326758384705,
-0.11985819041728973,
0.4186505079269409,
0.2725958526134491,
0.5109611749649048,
0.6705003380775452,
-0.9256688952445984,
-0.7568150758743286,
-0.2722757160663605,
-0.6603578329086304,
0.05464237183332443,
-0.25341925024986267,
-0.0805182009935379,
0.3115679621696472,
0.46690797805786133,
-0.7280006408691406,
0.6921712756156921,
0.4082338511943817,
-0.2184540033340454,
0.4259263873100281,
-0.49826139211654663,
0.1097111776471138,
-1.0213459730148315,
0.006421304773539305,
0.23218455910682678,
-0.14852075278759003,
-0.43335309624671936,
-0.15677694976329803,
0.32497718930244446,
-0.2173636257648468,
-0.2178279161453247,
0.3976854085922241,
-0.7782823443412781,
-0.11824492365121841,
-0.3841191530227661,
-0.10068593174219131,
0.18163159489631653,
0.48797407746315,
0.2583506405353546,
0.6487146019935608,
0.6512398719787598,
-0.3401765525341034,
0.25092634558677673,
0.46182191371917725,
-0.11398103088140488,
0.7854753732681274,
-0.6896572113037109,
0.2604958117008209,
-0.23428107798099518,
0.2743038833141327,
-1.0737454891204834,
-0.011291221715509892,
-0.07475950568914413,
-0.41778242588043213,
0.9067583084106445,
-0.26668214797973633,
-0.6680644750595093,
-0.7080069780349731,
-0.16927219927310944,
0.2026674449443817,
0.6588488817214966,
-0.6229801774024963,
0.6548691391944885,
0.2094331979751587,
0.2716595530509949,
-0.5933863520622253,
-0.666110634803772,
-0.07922443002462387,
-0.04163682460784912,
-0.699396014213562,
0.6837943196296692,
-0.13807877898216248,
0.20600822567939758,
0.20546656847000122,
-0.04169207811355591,
-0.026509854942560196,
-0.1549992561340332,
0.35146766901016235,
0.49709662795066833,
-0.025109991431236267,
0.13552559912204742,
-0.33079028129577637,
-0.2422974705696106,
-0.11715631186962128,
-0.2132875919342041,
0.6430976390838623,
-0.37511634826660156,
-0.41125422716140747,
-0.3099641799926758,
0.21832187473773956,
0.5499461889266968,
-0.26350805163383484,
0.5469160676002502,
0.9065086245536804,
-0.3008626401424408,
-0.12684984505176544,
-0.643907904624939,
-0.1224958524107933,
-0.4934583902359009,
0.5370914340019226,
-0.5019339919090271,
-0.3605894148349762,
0.46470049023628235,
-0.09543038159608841,
-0.004574476275593042,
0.7950482964515686,
0.5788735151290894,
-0.21786215901374817,
0.7106047868728638,
0.781863272190094,
-0.033822689205408096,
0.7563607692718506,
-0.8185129165649414,
0.00790317915380001,
-0.7014838457107544,
-0.10404643416404724,
-0.33541345596313477,
-0.31042537093162537,
-0.6466990113258362,
-0.37995752692222595,
0.2270234227180481,
0.08874910324811935,
-0.1883026361465454,
0.582608163356781,
-1.1552140712738037,
0.333877831697464,
0.7469861507415771,
0.12360012531280518,
-0.009509394876658916,
0.031191611662507057,
0.08631228655576706,
0.11582748591899872,
-0.5197251439094543,
-0.42376965284347534,
1.1022659540176392,
0.45251700282096863,
0.9477083086967468,
-0.2817608118057251,
0.7815396189689636,
0.27260851860046387,
0.2602830231189728,
-0.6454320549964905,
0.3146933317184448,
-0.2682226896286011,
-0.5672691464424133,
-0.13543574512004852,
-0.01968190260231495,
-1.0595184564590454,
0.0490943007171154,
-0.15861497819423676,
-0.5689281821250916,
0.47048094868659973,
0.10039244592189789,
0.015725847333669662,
0.3041931688785553,
-0.9251181483268738,
0.9835888743400574,
-0.37834444642066956,
-0.2621740400791168,
0.0446753203868866,
-0.6620168685913086,
-0.0016997122438624501,
-0.09635552763938904,
-0.11452444642782211,
0.12696093320846558,
0.3846719264984131,
0.7796370983123779,
-0.5541574954986572,
0.778958261013031,
-0.17760780453681946,
0.13998261094093323,
0.44447994232177734,
-0.0733397826552391,
0.5219857096672058,
-0.4069259464740753,
-0.02707158401608467,
0.30952930450439453,
0.32771000266075134,
-0.2829242944717407,
-0.5132570862770081,
0.49664366245269775,
-1.1922444105148315,
-0.43016961216926575,
-0.7403477430343628,
-0.5129404067993164,
0.18031693994998932,
0.36301079392433167,
0.7245664000511169,
0.47790810465812683,
-0.15396209061145782,
0.1137060821056366,
0.6593163013458252,
-0.1901257038116455,
0.4897715151309967,
0.3172301650047302,
-0.02298857271671295,
-0.17088784277439117,
0.7996939420700073,
0.3972944915294647,
0.17420312762260437,
0.36492061614990234,
0.11417970061302185,
-0.3978293538093567,
-0.598409116268158,
-0.23027315735816956,
0.289681613445282,
-0.9623138904571533,
-0.34194791316986084,
-0.7117334604263306,
-0.5323907732963562,
-0.44704627990722656,
-0.270041823387146,
-0.3327292203903198,
-0.08773702383041382,
-0.548762857913971,
-0.021276988089084625,
0.40458694100379944,
0.7540200352668762,
-0.039172280579805374,
0.5304520130157471,
-0.6004925966262817,
0.32270359992980957,
0.35367366671562195,
0.352841854095459,
-0.13830788433551788,
-0.7424663305282593,
-0.04930068925023079,
-0.17973853647708893,
-0.632295548915863,
-0.831478476524353,
0.5528834462165833,
0.12569491565227509,
0.632005512714386,
0.08944498747587204,
0.10704122483730316,
0.5396914482116699,
-0.4410560131072998,
0.4730960726737976,
0.34679168462753296,
-0.6560788154602051,
0.6241415143013,
-0.2338230311870575,
0.21950146555900574,
0.33562397956848145,
0.5148270130157471,
-0.20624947547912598,
-0.0955207422375679,
-1.063372254371643,
-0.6426894068717957,
0.8084933161735535,
0.20001545548439026,
0.15306177735328674,
0.08769040554761887,
0.30823713541030884,
0.013907949440181255,
0.01919320784509182,
-0.8366721272468567,
-0.28421539068222046,
-0.6592602133750916,
-0.4302745461463928,
-0.03556772321462631,
-0.4020768105983734,
0.027202146127820015,
-0.37465953826904297,
0.590173065662384,
-0.06712473928928375,
0.6679300665855408,
0.483498215675354,
-0.3573068380355835,
0.008152870461344719,
-0.07510879635810852,
0.1873425394296646,
0.38968533277511597,
-0.5214017033576965,
0.12349479645490646,
-0.054194431751966476,
-0.7562015652656555,
0.0991457924246788,
0.44164350628852844,
0.044662438333034515,
0.08983520418405533,
0.3310724198818207,
0.8577451109886169,
-0.3010799288749695,
-0.16248002648353577,
0.6925209164619446,
-0.1478818953037262,
-0.3314955234527588,
-0.5548662543296814,
-0.07667646557092667,
-0.12397241592407227,
0.14522463083267212,
0.3699643015861511,
0.05820604786276817,
0.06379160284996033,
-0.49181562662124634,
0.3747444748878479,
0.37556028366088867,
-0.39126622676849365,
-0.2904638648033142,
0.6061350107192993,
0.06788090616464615,
-0.1475515067577362,
0.8007680773735046,
-0.10262147337198257,
-0.506817102432251,
0.8161144852638245,
0.6127686500549316,
0.7196493744850159,
0.01599232852458954,
0.19291897118091583,
0.5641799569129944,
0.3665340542793274,
0.03030606545507908,
-0.056405697017908096,
0.03636041283607483,
-0.7151312232017517,
0.10766346752643585,
-0.7015179991722107,
-0.0438089594244957,
0.21765226125717163,
-0.4804183542728424,
0.5137287378311157,
-0.3527737557888031,
-0.24143490195274353,
0.24698732793331146,
0.2274164855480194,
-1.1480073928833008,
0.5084426403045654,
0.28035905957221985,
0.8950522541999817,
-0.747114360332489,
1.0450905561447144,
0.5639939308166504,
-0.8150838017463684,
-0.8190132975578308,
-0.10893016308546066,
-0.1885237842798233,
-0.8082999587059021,
0.9242762923240662,
0.37141695618629456,
0.14052143692970276,
0.1619369387626648,
-0.41891831159591675,
-0.7697449922561646,
1.2519768476486206,
0.26747778058052063,
-0.5915907025337219,
-0.13304826617240906,
0.06888777762651443,
0.5006558299064636,
-0.28283774852752686,
0.731462836265564,
0.2838466465473175,
0.32036465406417847,
0.30481046438217163,
-0.6595324873924255,
0.11885687708854675,
-0.41847968101501465,
0.10393679887056351,
0.09058471769094467,
-0.6137445569038391,
1.0155707597732544,
-0.01892191171646118,
-0.14077551662921906,
-0.125653937458992,
0.5388550758361816,
-0.0439167357981205,
0.08016368001699448,
0.6496699452400208,
0.6971597075462341,
0.5965775847434998,
-0.15568485856056213,
1.2711050510406494,
-0.2166268676519394,
0.5208762884140015,
0.9884629845619202,
0.11666303873062134,
0.43448707461357117,
0.29703614115715027,
-0.337741881608963,
0.39454540610313416,
0.7773835062980652,
-0.573379635810852,
0.5922279953956604,
0.040416233241558075,
0.09031865745782852,
-0.03723843768239021,
0.1816171258687973,
-0.4649072587490082,
0.4477759301662445,
0.15361183881759644,
-0.6277885437011719,
-0.2639842629432678,
0.09572144597768784,
-0.1630328893661499,
-0.18349923193454742,
-0.014475809410214424,
0.6423348188400269,
-0.08171364665031433,
-0.5794593691825867,
0.6900845170021057,
-0.08176001906394958,
0.7951751351356506,
-0.5989289879798889,
-0.06615912914276123,
-0.07208520174026489,
0.35623693466186523,
-0.22499677538871765,
-0.895595908164978,
0.2762955129146576,
-0.178889662027359,
-0.28314876556396484,
-0.19851656258106232,
0.9324462413787842,
-0.22854986786842346,
-0.5987572073936462,
0.3326479494571686,
0.24588021636009216,
0.1804516762495041,
-0.10813696682453156,
-0.9314740300178528,
0.01653352566063404,
-0.07489866018295288,
-0.45450112223625183,
0.5398306250572205,
0.5723741054534912,
0.1015014499425888,
0.36393097043037415,
0.5979304909706116,
-0.21564218401908875,
0.1420694887638092,
-0.15827526152133942,
1.0527480840682983,
-0.2589380145072937,
-0.2068103402853012,
-0.6928786635398865,
0.6863735318183899,
-0.1555383950471878,
-0.3659495711326599,
0.629418134689331,
0.4957469403743744,
0.9527146816253662,
-0.2867307960987091,
0.8069341778755188,
-0.3531651794910431,
0.04192632809281349,
-0.2285001128911972,
0.706224262714386,
-0.6302224397659302,
-0.2049005776643753,
-0.4512970745563507,
-0.8311706781387329,
-0.07612861692905426,
0.8040978908538818,
-0.47295692563056946,
0.1370701640844345,
0.6100602746009827,
0.765669047832489,
-0.3308350145816803,
-0.2889760434627533,
0.37876349687576294,
0.10968293994665146,
0.32884687185287476,
0.18712596595287323,
0.6102678775787354,
-0.7947169542312622,
0.5703214406967163,
-0.6382629871368408,
-0.2887499928474426,
-0.08637648075819016,
-0.8569656014442444,
-0.9650962948799133,
-0.9090718626976013,
-0.5440443158149719,
-0.4349106252193451,
-0.2587088644504547,
0.5402655005455017,
0.9703670144081116,
-0.5835980176925659,
0.09745313972234726,
-0.2414153814315796,
-0.18065030872821808,
0.0439671128988266,
-0.22339357435703278,
0.7113199234008789,
-0.2771439850330353,
-0.8951342105865479,
-0.28066542744636536,
-0.05116010084748268,
0.3804260492324829,
-0.15369215607643127,
0.004910065792500973,
-0.333528071641922,
-0.15518715977668762,
0.5183932185173035,
0.230154350399971,
-0.41095274686813354,
-0.19217386841773987,
-0.027446424588561058,
-0.24021466076374054,
0.2831041216850281,
0.3998844623565674,
-0.6252681612968445,
0.5265624523162842,
0.49702396988868713,
0.36156174540519714,
0.9735673069953918,
-0.1759580373764038,
0.24431174993515015,
-0.6135954856872559,
0.4832739531993866,
0.11048699170351028,
0.6174769401550293,
0.3000616133213043,
-0.5135729312896729,
0.5581002235412598,
0.3246484100818634,
-0.6268349289894104,
-0.7203956246376038,
-0.024942584335803986,
-1.1779346466064453,
-0.35843032598495483,
0.8658542633056641,
-0.29681655764579773,
-0.3431533873081207,
0.2729620337486267,
-0.40434613823890686,
0.5241993069648743,
-0.19949114322662354,
0.7039097547531128,
0.4671142101287842,
0.08381005376577377,
-0.4502541124820709,
-0.4708861708641052,
0.306240051984787,
-0.006155902519822121,
-0.6889476776123047,
-0.2656605541706085,
0.41229909658432007,
0.43190544843673706,
0.4922114610671997,
0.6665153503417969,
-0.21674446761608124,
0.10144750773906708,
0.21007773280143738,
0.5396038293838501,
-0.20527809858322144,
-0.2020045518875122,
-0.10140322893857956,
0.04721903055906296,
-0.0398317351937294,
-0.453635573387146
] |
timm/ViT-SO400M-14-SigLIP-384 | timm | "2023-10-27T16:10:34Z" | 92,664 | 13 | open_clip | [
"open_clip",
"clip",
"siglip",
"zero-shot-image-classification",
"dataset:webli",
"arxiv:2303.15343",
"license:apache-2.0",
"region:us"
] | zero-shot-image-classification | "2023-10-16T23:56:46Z" | ---
tags:
- clip
- siglip
library_name: open_clip
pipeline_tag: zero-shot-image-classification
license: apache-2.0
datasets:
- webli
---
# Model card for ViT-SO400M-14-SigLIP-384
A SigLIP (Sigmoid loss for Language-Image Pre-training) model trained on WebLI.
This model has been converted to PyTorch from the original JAX checkpoints in [Big Vision](https://github.com/google-research/big_vision). These weights are usable in both OpenCLIP (image + text) and timm (image only).
## Model Details
- **Model Type:** Contrastive Image-Text, Zero-Shot Image Classification.
- **Original:** https://github.com/google-research/big_vision
- **Dataset:** WebLI
- **Papers:**
- Sigmoid loss for language image pre-training: https://arxiv.org/abs/2303.15343
## Model Usage
### With OpenCLIP
```python
import torch
import torch.nn.functional as F
from urllib.request import urlopen
from PIL import Image
from open_clip import create_model_from_pretrained, get_tokenizer # works on open-clip-torch>=2.23.0, timm>=0.9.8
model, preprocess = create_model_from_pretrained('hf-hub:timm/ViT-SO400M-14-SigLIP-384')
tokenizer = get_tokenizer('hf-hub:timm/ViT-SO400M-14-SigLIP-384')
image = Image.open(urlopen(
'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))
image = preprocess(image).unsqueeze(0)
labels_list = ["a dog", "a cat", "a donut", "a beignet"]
text = tokenizer(labels_list, context_length=model.context_length)
with torch.no_grad(), torch.cuda.amp.autocast():
image_features = model.encode_image(image)
text_features = model.encode_text(text)
image_features = F.normalize(image_features, dim=-1)
text_features = F.normalize(text_features, dim=-1)
text_probs = torch.sigmoid(image_features @ text_features.T * model.logit_scale.exp() + model.logit_bias)
zipped_list = list(zip(labels_list, [round(p.item(), 3) for p in text_probs[0]]))
print("Label probabilities: ", zipped_list)
```
### With `timm` (for image embeddings)
```python
from urllib.request import urlopen
from PIL import Image
import timm
image = Image.open(urlopen(
'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))
model = timm.create_model(
'vit_so400m_patch14_siglip_384',
pretrained=True,
num_classes=0,
)
model = model.eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
output = model(transforms(image).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor
```
## Citation
```bibtex
@article{zhai2023sigmoid,
title={Sigmoid loss for language image pre-training},
author={Zhai, Xiaohua and Mustafa, Basil and Kolesnikov, Alexander and Beyer, Lucas},
journal={arXiv preprint arXiv:2303.15343},
year={2023}
}
```
```bibtex
@misc{big_vision,
author = {Beyer, Lucas and Zhai, Xiaohua and Kolesnikov, Alexander},
title = {Big Vision},
year = {2022},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/google-research/big_vision}}
}
```
| [
-0.39755988121032715,
-0.499790757894516,
0.2315748780965805,
0.23008126020431519,
-0.42909395694732666,
-0.3632488548755646,
-0.4048554599285126,
-0.37505409121513367,
0.31968358159065247,
0.29644131660461426,
-0.5431315302848816,
-0.7879849672317505,
-0.7634720206260681,
-0.13930882513523102,
0.06157633289694786,
1.2939996719360352,
-0.1967896968126297,
0.09437147527933121,
-0.09385966509580612,
-0.5614938735961914,
-0.0998947024345398,
-0.4800432026386261,
-0.5936480760574341,
-0.3013884723186493,
0.41435813903808594,
0.12087428569793701,
0.5310249328613281,
0.4740186035633087,
0.6970287561416626,
0.3643730878829956,
-0.058547280728816986,
-0.019244220107793808,
-0.4666459262371063,
-0.3614121079444885,
0.14838016033172607,
-0.6517027616500854,
-0.541774570941925,
0.21240535378456116,
0.7655017375946045,
0.38780084252357483,
0.11442647129297256,
0.51349276304245,
0.13746081292629242,
0.37467360496520996,
-0.5028243064880371,
0.29900923371315,
-0.41620752215385437,
0.16448535025119781,
-0.2590163052082062,
-0.06736822426319122,
-0.36447402834892273,
-0.3819297254085541,
0.25048232078552246,
-0.6405477523803711,
0.27856960892677307,
-0.06668244302272797,
1.454588532447815,
0.20117980241775513,
-0.011016522534191608,
-0.21689489483833313,
-0.4023815393447876,
0.7915383577346802,
-0.8385183215141296,
0.3517332673072815,
0.24665164947509766,
-0.053142089396715164,
-0.053195688873529434,
-0.9117690324783325,
-0.6417369842529297,
-0.13667340576648712,
-0.05902108550071716,
0.12762141227722168,
-0.25058838725090027,
0.03928424045443535,
0.37751534581184387,
0.34540125727653503,
-0.6161612868309021,
-0.09048745036125183,
-0.5773946046829224,
-0.3306044340133667,
0.5750144124031067,
-0.09899488836526871,
0.40566322207450867,
-0.23796924948692322,
-0.5691785216331482,
-0.4556291699409485,
-0.4167049527168274,
0.03135143965482712,
0.3250320553779602,
0.014441416598856449,
-0.6016983389854431,
0.6030722856521606,
0.17717678844928741,
0.6938620805740356,
0.14600272476673126,
-0.4533866047859192,
0.8238159418106079,
-0.22246862947940826,
-0.4671536386013031,
-0.059454698115587234,
1.14131760597229,
0.5188741087913513,
0.24017126858234406,
0.1602534055709839,
0.12373457103967667,
-0.222899928689003,
-0.3699153959751129,
-1.1699415445327759,
-0.48807069659233093,
0.0561782531440258,
-0.4957277774810791,
-0.23270422220230103,
0.23929151892662048,
-0.6599564552307129,
-0.15284302830696106,
0.08065462112426758,
0.7693861126899719,
-0.5998501777648926,
-0.3103262186050415,
0.20083099603652954,
-0.14187750220298767,
0.3163662850856781,
0.11086840182542801,
-0.6888935565948486,
-0.010338039137423038,
0.07266752421855927,
1.1324968338012695,
0.1156054213643074,
-0.5176715850830078,
-0.3458350896835327,
-0.00507785938680172,
-0.16889388859272003,
0.4782786965370178,
-0.13428975641727448,
-0.13864238560199738,
-0.34046828746795654,
0.3720047175884247,
-0.35369640588760376,
-0.5468935370445251,
0.3736529052257538,
-0.19634658098220825,
0.4293893575668335,
-0.058858100324869156,
-0.2498094141483307,
-0.398943692445755,
0.26825058460235596,
-0.4337036907672882,
1.1059331893920898,
0.18919861316680908,
-1.0716099739074707,
0.49508434534072876,
-0.5341489911079407,
-0.15844592452049255,
-0.1163843497633934,
-0.18617366254329681,
-1.0670140981674194,
-0.057091157883405685,
0.3916618227958679,
0.6903849840164185,
-0.24322515726089478,
0.06912079453468323,
-0.6183840036392212,
-0.29502859711647034,
0.22101719677448273,
-0.09422239661216736,
1.0735554695129395,
0.009525139816105366,
-0.5428287386894226,
0.24422428011894226,
-0.5767737030982971,
0.11907876282930374,
0.4193500578403473,
-0.28667429089546204,
-0.22155776619911194,
-0.49419069290161133,
0.1737242341041565,
0.2454441785812378,
0.22842703759670258,
-0.6273033618927002,
0.3561159372329712,
-0.4009551703929901,
0.4932452142238617,
0.6462867259979248,
-0.13209468126296997,
0.3204079568386078,
-0.12288425862789154,
0.3448415994644165,
0.26035046577453613,
0.2166416198015213,
-0.0323638878762722,
-0.5727299451828003,
-0.8943498730659485,
-0.6558862328529358,
0.4034230709075928,
0.3842400014400482,
-0.6422383785247803,
0.5791217088699341,
-0.27222156524658203,
-0.7525103092193604,
-0.6369181871414185,
-0.028707779943943024,
0.5460104942321777,
0.4739146828651428,
0.36263009905815125,
-0.5680292248725891,
-0.5836578607559204,
-0.8150282502174377,
0.025465551763772964,
-0.023252608254551888,
-0.008514354936778545,
0.3720483183860779,
0.7615754008293152,
-0.4011155664920807,
0.6699789762496948,
-0.7128342390060425,
-0.5250627398490906,
-0.17164872586727142,
0.21615538001060486,
0.38076522946357727,
0.7746450304985046,
0.8579174876213074,
-0.6314588785171509,
-0.4821613132953644,
-0.1811620593070984,
-0.8947069048881531,
0.0873570665717125,
-0.017344508320093155,
-0.2323843240737915,
0.32209646701812744,
0.35526612401008606,
-0.7359560132026672,
0.7502996325492859,
0.4834775924682617,
-0.4091157019138336,
0.5299767851829529,
-0.3668906092643738,
0.23986151814460754,
-1.2187548875808716,
0.2799449563026428,
0.20545890927314758,
-0.05078072100877762,
-0.368279367685318,
-0.06752128899097443,
0.005643671378493309,
-0.035444118082523346,
-0.5078507661819458,
0.6773014664649963,
-0.572975754737854,
-0.22427645325660706,
0.056238021701574326,
-0.1262042224407196,
0.10075551271438599,
0.745387613773346,
0.0012253804598003626,
0.7070754766464233,
0.7127421498298645,
-0.47058606147766113,
0.42068883776664734,
0.41321831941604614,
-0.320840984582901,
0.5377919673919678,
-0.7477206587791443,
0.0835953876376152,
-0.13510924577713013,
0.35149767994880676,
-0.9809417724609375,
-0.3225948214530945,
0.5579783916473389,
-0.6899004578590393,
0.37160784006118774,
-0.44601982831954956,
-0.5009986162185669,
-0.5784925818443298,
-0.5167464017868042,
0.5599362850189209,
0.4917866885662079,
-0.6057611703872681,
0.3752921223640442,
0.32352253794670105,
0.11750392615795135,
-0.5645910501480103,
-0.9065931439399719,
-0.26892539858818054,
-0.2689459025859833,
-0.654718816280365,
0.49933838844299316,
-0.19550356268882751,
0.2755137085914612,
0.06803446263074875,
-0.05508578568696976,
0.022114064544439316,
-0.25037091970443726,
0.4993472099304199,
0.44399142265319824,
-0.31595370173454285,
-0.03918593376874924,
-0.31476274132728577,
-0.04365530610084534,
-0.06125504523515701,
-0.37393972277641296,
0.8936711549758911,
-0.2938590347766876,
-0.2437458634376526,
-0.8093426823616028,
-0.2440059334039688,
0.5184037089347839,
-0.29726117849349976,
0.9188922643661499,
1.2194000482559204,
-0.43387100100517273,
0.23300135135650635,
-0.5454639196395874,
-0.09244973212480545,
-0.4909916818141937,
0.6029183268547058,
-0.40152204036712646,
-0.5497278571128845,
0.7534351944923401,
0.12579448521137238,
-0.05632960423827171,
0.7856553792953491,
0.6780469417572021,
-0.04563349112868309,
0.9648877382278442,
0.7220445275306702,
-0.006248383317142725,
0.7679384350776672,
-0.8877505660057068,
-0.07137466222047806,
-0.9458375573158264,
-0.4670046865940094,
-0.2878073453903198,
-0.30909720063209534,
-0.5240902900695801,
-0.6085565686225891,
0.4880017638206482,
0.32263752818107605,
-0.37803637981414795,
0.4174998998641968,
-0.7793484926223755,
0.21649429202079773,
0.7199842929840088,
0.4352324604988098,
-0.16574344038963318,
0.318589985370636,
-0.25821179151535034,
-0.09529879689216614,
-0.7084227800369263,
-0.264518141746521,
1.1724066734313965,
0.44775721430778503,
0.8113425374031067,
-0.21893441677093506,
0.7801690101623535,
-0.23061782121658325,
0.24311524629592896,
-0.5993736386299133,
0.6196762919425964,
-0.030089909210801125,
-0.46147823333740234,
-0.20969845354557037,
-0.4377145767211914,
-1.0511271953582764,
0.08131150901317596,
-0.3069675862789154,
-0.9253115057945251,
0.13523568212985992,
0.22887974977493286,
-0.2623225748538971,
0.5951893925666809,
-0.8227009177207947,
1.077162504196167,
-0.11097170412540436,
-0.3797714412212372,
0.12418628484010696,
-0.5934565663337708,
0.2609022855758667,
0.3000625669956207,
-0.1617603302001953,
-0.15620610117912292,
0.18999285995960236,
1.2964879274368286,
-0.5361615419387817,
0.7085517644882202,
-0.40213632583618164,
0.1474086195230484,
0.4135403037071228,
-0.23090149462223053,
0.33235734701156616,
0.013247368857264519,
-0.04365069419145584,
0.3232198655605316,
0.1697625368833542,
-0.45566272735595703,
-0.44552963972091675,
0.6536948084831238,
-1.0892738103866577,
-0.3045397400856018,
-0.6003619432449341,
-0.45807722210884094,
0.15023857355117798,
0.22846263647079468,
0.7531186938285828,
0.6010600924491882,
0.19637979567050934,
0.27940553426742554,
0.6771885752677917,
-0.45106276869773865,
0.4254622161388397,
-0.005300980526953936,
-0.253418505191803,
-0.6739467978477478,
0.9964520335197449,
0.2555043697357178,
0.24313007295131683,
-0.020856650546193123,
0.15768451988697052,
-0.3021925091743469,
-0.5611291527748108,
-0.6055831909179688,
0.6630842089653015,
-0.6593871712684631,
-0.35976627469062805,
-0.5792635083198547,
-0.4522574543952942,
-0.5828205347061157,
-0.08022560924291611,
-0.3721243441104889,
-0.15328261256217957,
-0.5032125115394592,
0.1353871375322342,
0.6273117065429688,
0.4331842362880707,
-0.09325817227363586,
0.46748849749565125,
-0.5849922895431519,
0.18661564588546753,
0.14554953575134277,
0.4726394712924957,
-0.1395733505487442,
-0.8617874979972839,
-0.31932052969932556,
0.05324782803654671,
-0.3826303780078888,
-0.8253714442253113,
0.5973160862922668,
0.22773495316505432,
0.3787924647331238,
0.2978084981441498,
-0.16650162637233734,
1.0126947164535522,
-0.14619439840316772,
0.6401221752166748,
0.5418957471847534,
-0.7996017932891846,
0.6408753991127014,
-0.20706966519355774,
0.4226357340812683,
0.28924089670181274,
0.45472773909568787,
-0.30598917603492737,
-0.15981920063495636,
-0.8540665507316589,
-0.9304817318916321,
0.9609649181365967,
0.2051452100276947,
0.00607379199936986,
0.33592867851257324,
0.41229018568992615,
-0.09962063282728195,
0.14881311357021332,
-1.0620746612548828,
-0.34777969121932983,
-0.31335222721099854,
-0.49729394912719727,
-0.10426698625087738,
-0.18510352075099945,
-0.17163026332855225,
-0.5877319574356079,
0.6796057820320129,
-0.11977055668830872,
0.701250433921814,
0.45686882734298706,
-0.2817073464393616,
-0.042589616030454636,
-0.2503550946712494,
0.6499440670013428,
0.4254746437072754,
-0.39359039068222046,
0.0858750119805336,
0.1998220980167389,
-0.7732224464416504,
-0.03744586557149887,
0.2153773456811905,
-0.12296788394451141,
0.09319959580898285,
0.4309994578361511,
1.092267632484436,
0.13613687455654144,
-0.2951046824455261,
0.7131891250610352,
0.01464856043457985,
-0.45971086621284485,
-0.2910810112953186,
-0.0034760572016239166,
-0.02947680465877056,
0.4163229167461395,
0.4141463339328766,
0.1714129000902176,
-0.12049351632595062,
-0.47615721821784973,
0.14791510999202728,
0.4527725279331207,
-0.3510347604751587,
-0.43340790271759033,
0.8110138177871704,
-0.10819647461175919,
-0.04271676018834114,
0.5554186701774597,
-0.11430399864912033,
-0.5305984020233154,
0.8039584159851074,
0.531961977481842,
0.7944690585136414,
-0.03504776209592819,
0.1455589234828949,
0.7267372608184814,
0.21419338881969452,
0.03549538925290108,
0.19621063768863678,
0.16050390899181366,
-0.6355471611022949,
-0.03894650563597679,
-0.7520322203636169,
0.06739255785942078,
0.29972824454307556,
-0.6183039546012878,
0.4421723484992981,
-0.6741096377372742,
-0.4468284249305725,
0.19726741313934326,
0.2026146799325943,
-0.9141480922698975,
0.29844993352890015,
0.12601624429225922,
0.5648800134658813,
-0.8108135461807251,
0.834308922290802,
0.8110482096672058,
-0.7223790287971497,
-0.9520817399024963,
0.02574538066983223,
-0.15769998729228973,
-0.9741732478141785,
0.7916526794433594,
0.3970976173877716,
0.03649267181754112,
0.15365901589393616,
-0.7824710011482239,
-0.8883876800537109,
1.2962054014205933,
0.5803436636924744,
-0.29739248752593994,
-0.13448315858840942,
-0.1021147146821022,
0.32938775420188904,
-0.23451973497867584,
0.4900820851325989,
0.22557297348976135,
0.37156370282173157,
0.22822418808937073,
-0.986003041267395,
0.14783477783203125,
-0.15997356176376343,
0.03410378843545914,
0.1955956220626831,
-0.862075924873352,
1.0118292570114136,
-0.4713283181190491,
-0.11998933553695679,
0.05446789786219597,
0.7706263661384583,
0.4320763051509857,
0.28060463070869446,
0.4582099914550781,
0.7440658211708069,
0.5408656597137451,
-0.21323765814304352,
0.7635079026222229,
-0.10253836959600449,
0.8021811246871948,
0.7910459637641907,
0.2323952615261078,
0.6685227155685425,
0.47024187445640564,
-0.14527466893196106,
0.4407447576522827,
0.7918999791145325,
-0.3755919337272644,
0.46284347772598267,
0.165647953748703,
-0.01349634025245905,
-0.039114344865083694,
0.10959983617067337,
-0.5820987224578857,
0.53963702917099,
0.25994232296943665,
-0.5465101599693298,
-0.03224329277873039,
0.32769379019737244,
0.3440241813659668,
-0.3457239270210266,
-0.31319814920425415,
0.4902847409248352,
-0.07401535660028458,
-0.3806476294994354,
0.9823216199874878,
0.049724698066711426,
1.0029577016830444,
-0.46372389793395996,
0.1474524289369583,
-0.011373921297490597,
0.34886205196380615,
-0.3249996304512024,
-0.8083415627479553,
0.2361188530921936,
-0.23981104791164398,
-0.04523326829075813,
0.07131198048591614,
0.5203467607498169,
-0.5445958971977234,
-0.6379172801971436,
0.24126210808753967,
0.10080946981906891,
0.4502102732658386,
0.0827246829867363,
-1.1184756755828857,
0.40753450989723206,
0.2027452141046524,
-0.6311928629875183,
0.27619239687919617,
0.32396283745765686,
0.09085208177566528,
0.6277227401733398,
0.5330285429954529,
0.030763700604438782,
0.20867277681827545,
-0.19319763779640198,
0.9466085433959961,
-0.5836914777755737,
-0.29324761033058167,
-0.941245973110199,
0.4446943998336792,
-0.17670868337154388,
-0.6678731441497803,
0.6959859132766724,
0.6444172263145447,
1.0039019584655762,
-0.1832030713558197,
0.5080982446670532,
-0.3109092116355896,
0.0608644112944603,
-0.5946303009986877,
0.8853873014450073,
-0.7154913544654846,
-0.23236910998821259,
-0.5473898649215698,
-0.8013171553611755,
-0.49134960770606995,
0.8791132569313049,
-0.4891335964202881,
0.20313872396945953,
0.5851021409034729,
0.9700982570648193,
-0.2169008105993271,
-0.5282697677612305,
0.16015397012233734,
0.25604209303855896,
0.20003551244735718,
0.6134338974952698,
0.24870769679546356,
-0.9178270697593689,
0.7399396896362305,
-0.3103295862674713,
-0.2032524198293686,
-0.3551783859729767,
-0.5640707612037659,
-1.072235107421875,
-0.9194437265396118,
-0.6477442383766174,
-0.6299166083335876,
-0.04702581465244293,
0.9242876768112183,
1.0992581844329834,
-0.6490933895111084,
-0.09123020619153976,
0.1389904022216797,
0.008966420777142048,
0.021134786307811737,
-0.22684279084205627,
0.7459491491317749,
0.0027394890785217285,
-0.8887941241264343,
-0.32179489731788635,
0.16404254734516144,
0.46256327629089355,
-0.10217076539993286,
-0.1895114630460739,
-0.3226342499256134,
-0.25108423829078674,
0.4410184919834137,
0.39913344383239746,
-0.712447464466095,
-0.2678348422050476,
-0.2042560875415802,
-0.2394278198480606,
0.32647064328193665,
0.3263944089412689,
-0.6013768911361694,
0.3940896689891815,
0.45734044909477234,
0.2722581624984741,
0.9715419411659241,
-0.3591596782207489,
0.18050621449947357,
-0.7628422975540161,
0.735369861125946,
0.012784838676452637,
0.4544389247894287,
0.3422802984714508,
-0.2249220460653305,
0.5100988745689392,
0.5406020283699036,
-0.48340606689453125,
-1.038501262664795,
-0.06648917496204376,
-1.1333320140838623,
-0.029024699702858925,
1.0519919395446777,
-0.4718605875968933,
-0.596648633480072,
0.45078045129776,
-0.4522778391838074,
0.5759699940681458,
-0.08884088695049286,
0.48710423707962036,
0.37316587567329407,
0.07025520503520966,
-0.5093638300895691,
-0.3972643315792084,
0.5462354421615601,
0.29712581634521484,
-0.6769533157348633,
-0.2941690981388092,
0.16890999674797058,
0.6585900187492371,
0.3022768497467041,
0.8250092267990112,
-0.1360054314136505,
0.16949062049388885,
0.0008534332737326622,
0.6155059933662415,
-0.1279948353767395,
-0.18743588030338287,
-0.16437683999538422,
-0.03254040330648422,
-0.0063528199680149555,
-0.652323842048645
] |
EleutherAI/pythia-70m-deduped | EleutherAI | "2023-07-09T16:07:33Z" | 92,034 | 18 | transformers | [
"transformers",
"pytorch",
"safetensors",
"gpt_neox",
"text-generation",
"causal-lm",
"pythia",
"en",
"dataset:EleutherAI/the_pile_deduplicated",
"arxiv:2304.01373",
"arxiv:2101.00027",
"arxiv:2201.07311",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | text-generation | "2023-02-13T16:01:41Z" | ---
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-70M-deduped
## Model Details
- Developed by: [EleutherAI](http://eleuther.ai)
- Model type: Transformer-based Language Model
- Language: English
- Learn more: [Pythia's GitHub repository](https://github.com/EleutherAI/pythia)
for training procedure, config files, and details on how to use.
[See paper](https://arxiv.org/pdf/2304.01373.pdf) for more evals and implementation
details.
- Library: [GPT-NeoX](https://github.com/EleutherAI/gpt-neox)
- License: Apache 2.0
- Contact: to ask questions about this model, join the [EleutherAI
Discord](https://discord.gg/zBGx3azzUn), and post them in `#release-discussion`.
Please read the existing *Pythia* documentation before asking about it in the
EleutherAI Discord. For general correspondence: [contact@eleuther.
ai](mailto:contact@eleuther.ai).
<figure>
| Pythia model | Non-Embedding Params | Layers | Model Dim | Heads | Batch Size | Learning Rate | Equivalent Models |
| -----------: | -------------------: | :----: | :-------: | :---: | :--------: | :-------------------: | :--------------------: |
| 70M | 18,915,328 | 6 | 512 | 8 | 2M | 1.0 x 10<sup>-3</sup> | — |
| 160M | 85,056,000 | 12 | 768 | 12 | 2M | 6.0 x 10<sup>-4</sup> | GPT-Neo 125M, OPT-125M |
| 410M | 302,311,424 | 24 | 1024 | 16 | 2M | 3.0 x 10<sup>-4</sup> | OPT-350M |
| 1.0B | 805,736,448 | 16 | 2048 | 8 | 2M | 3.0 x 10<sup>-4</sup> | — |
| 1.4B | 1,208,602,624 | 24 | 2048 | 16 | 2M | 2.0 x 10<sup>-4</sup> | GPT-Neo 1.3B, OPT-1.3B |
| 2.8B | 2,517,652,480 | 32 | 2560 | 32 | 2M | 1.6 x 10<sup>-4</sup> | GPT-Neo 2.7B, OPT-2.7B |
| 6.9B | 6,444,163,072 | 32 | 4096 | 32 | 2M | 1.2 x 10<sup>-4</sup> | OPT-6.7B |
| 12B | 11,327,027,200 | 36 | 5120 | 40 | 2M | 1.2 x 10<sup>-4</sup> | — |
<figcaption>Engineering details for the <i>Pythia Suite</i>. Deduped and
non-deduped models of a given size have the same hyperparameters. “Equivalent”
models have <b>exactly</b> the same architecture, and the same number of
non-embedding parameters.</figcaption>
</figure>
## Uses and Limitations
### Intended Use
The primary intended use of Pythia is research on the behavior, functionality,
and limitations of large language models. This suite is intended to provide
a controlled setting for performing scientific experiments. We also provide
154 checkpoints per model: initial `step0`, 10 log-spaced checkpoints
`step{1,2,4...512}`, and 143 evenly-spaced checkpoints from `step1000` to
`step143000`. These checkpoints are hosted on Hugging Face as branches. Note
that branch `143000` corresponds exactly to the model checkpoint on the `main`
branch of each model.
You may also further fine-tune and adapt Pythia-70M-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-70M-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-70M-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-70M-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-70M-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-70M-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-70M-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-70M-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.3346916735172272,
-0.8030831217765808,
0.3333195447921753,
0.03534220904111862,
-0.23924338817596436,
-0.19417403638362885,
-0.2283724695444107,
-0.4279853403568268,
0.17794136703014374,
0.18745890259742737,
-0.34355878829956055,
-0.3080441355705261,
-0.438960462808609,
-0.03719669207930565,
-0.47061437368392944,
1.0989712476730347,
-0.12205231189727783,
-0.1504390835762024,
0.12325892597436905,
-0.048509158194065094,
-0.06320223957300186,
-0.5591374635696411,
-0.4562990367412567,
-0.40609508752822876,
0.6031548380851746,
0.1889525055885315,
0.8739206790924072,
0.5826084613800049,
0.1666593998670578,
0.29854604601860046,
-0.3964312970638275,
-0.07821852713823318,
-0.14585208892822266,
-0.09260794520378113,
-0.024121206253767014,
-0.2637878358364105,
-0.7525072693824768,
0.01542813703417778,
0.7005568146705627,
0.6682664155960083,
-0.16334782540798187,
0.2524104416370392,
-0.0028979419730603695,
0.3796899914741516,
-0.5198924541473389,
0.04984324797987938,
-0.3523249924182892,
-0.18738490343093872,
-0.059833258390426636,
0.16847804188728333,
-0.3779763877391815,
-0.3372628092765808,
0.43536970019340515,
-0.6224697828292847,
0.2778809070587158,
0.040533486753702164,
1.1859623193740845,
-0.11195719242095947,
-0.42993226647377014,
-0.05998256057500839,
-0.7423744201660156,
0.6860157251358032,
-0.7372591495513916,
0.33228179812431335,
0.2985437512397766,
0.16405782103538513,
-0.027023904025554657,
-0.8827013373374939,
-0.5707470178604126,
-0.22074086964130402,
-0.12303140759468079,
-0.043435778468847275,
-0.6317013502120972,
0.013363173231482506,
0.525679886341095,
0.6350038647651672,
-0.8255841732025146,
-0.04527423903346062,
-0.3771178126335144,
-0.3358118534088135,
0.350524365901947,
0.0768495500087738,
0.44073620438575745,
-0.32440340518951416,
-0.007298321928828955,
-0.3880356252193451,
-0.6916302442550659,
-0.2507396340370178,
0.5329222679138184,
0.0674576535820961,
-0.35874325037002563,
0.5102566480636597,
-0.4124371111392975,
0.5911893844604492,
-0.07013756036758423,
0.24871516227722168,
0.43638619780540466,
-0.17904362082481384,
-0.5287524461746216,
-0.06593509763479233,
0.9359193444252014,
0.11692209541797638,
0.21625462174415588,
-0.005612431094050407,
-0.054600078612565994,
0.06454502046108246,
0.04641640931367874,
-1.128639817237854,
-0.7841861248016357,
0.23668009042739868,
-0.3972042202949524,
-0.41857290267944336,
-0.18645042181015015,
-0.9381398558616638,
-0.19038598239421844,
-0.22559061646461487,
0.5778692364692688,
-0.5174440145492554,
-0.7350486516952515,
-0.11351945251226425,
0.0010773725807666779,
0.19994430243968964,
0.37284761667251587,
-0.9211001396179199,
0.3907950520515442,
0.437502384185791,
1.0180652141571045,
0.23845575749874115,
-0.5452530980110168,
-0.1901906132698059,
-0.23733343183994293,
-0.11268077790737152,
0.3458409011363983,
-0.13890385627746582,
-0.20765657722949982,
-0.11307858675718307,
0.18158695101737976,
-0.11600056290626526,
-0.36197128891944885,
0.3984866440296173,
-0.4156726598739624,
0.2585912048816681,
-0.28086286783218384,
-0.42311450839042664,
-0.4029015004634857,
0.1412300318479538,
-0.6260145902633667,
0.8448827266693115,
0.24805577099323273,
-0.9635350704193115,
0.21985851228237152,
-0.23499320447444916,
-0.06813984364271164,
-0.030458791181445122,
0.20996896922588348,
-0.6745495796203613,
0.020849179476499557,
0.3398069441318512,
0.06426560133695602,
-0.4012289047241211,
0.21617713570594788,
-0.24749577045440674,
-0.44524824619293213,
0.18155032396316528,
-0.5745658278465271,
0.9305775761604309,
0.21665063500404358,
-0.6863222122192383,
0.26300615072250366,
-0.6075644493103027,
0.1882522851228714,
0.24979911744594574,
-0.37789955735206604,
0.025081399828195572,
-0.19835060834884644,
0.3512415587902069,
0.21513248980045319,
0.1741587370634079,
-0.3743324279785156,
0.28874677419662476,
-0.5106981992721558,
0.7592770457267761,
0.7419459819793701,
-0.09834770113229752,
0.4748852252960205,
-0.4203110933303833,
0.4747363328933716,
0.023789001628756523,
0.1955251395702362,
-0.03791271895170212,
-0.5914556980133057,
-1.0080888271331787,
-0.315739244222641,
0.37540972232818604,
0.3114873170852661,
-0.4847008287906647,
0.4612463116645813,
-0.2539076805114746,
-0.8725470304489136,
-0.15377257764339447,
-0.08267886191606522,
0.41553783416748047,
0.3291165828704834,
0.4315303564071655,
-0.16806410253047943,
-0.5173194408416748,
-0.8809352517127991,
-0.18997253477573395,
-0.42998361587524414,
0.12014599144458771,
0.17180971801280975,
0.9504113793373108,
-0.1491636484861374,
0.5875979065895081,
-0.36381813883781433,
0.23223713040351868,
-0.38099828362464905,
0.16150791943073273,
0.44416338205337524,
0.6223020553588867,
0.3779725432395935,
-0.5738974809646606,
-0.38547828793525696,
-0.008018790744245052,
-0.5813624858856201,
0.09445858746767044,
0.04343719780445099,
-0.32167714834213257,
0.31612563133239746,
0.08459685742855072,
-1.0119096040725708,
0.4739375114440918,
0.6190659403800964,
-0.5379020571708679,
0.7902570962905884,
-0.34156307578086853,
0.013977950438857079,
-1.076407551765442,
0.2808516025543213,
0.10825852304697037,
-0.23522324860095978,
-0.5859301090240479,
0.05395837128162384,
0.18741586804389954,
-0.2153042107820511,
-0.42523321509361267,
0.6021328568458557,
-0.5463966131210327,
-0.151949942111969,
-0.23250462114810944,
0.07823162525892258,
-0.026092376559972763,
0.6303578019142151,
0.1662541627883911,
0.5496808290481567,
0.7979297637939453,
-0.7938107848167419,
0.42942485213279724,
0.22119756042957306,
-0.2785608470439911,
0.38509461283683777,
-0.9087810516357422,
0.17505332827568054,
0.06508908420801163,
0.4198666214942932,
-0.6154826283454895,
-0.32791295647621155,
0.5528642535209656,
-0.5528854727745056,
0.16931986808776855,
-0.4338453710079193,
-0.5427492260932922,
-0.43817439675331116,
-0.16643501818180084,
0.6218726634979248,
0.7908231616020203,
-0.5919933915138245,
0.7010000944137573,
0.06619589030742645,
0.12185771763324738,
-0.38770315051078796,
-0.5516021847724915,
-0.24365483224391937,
-0.5461987257003784,
-0.6568291783332825,
0.4013765752315521,
0.17294399440288544,
-0.19952607154846191,
0.034498684108257294,
0.006297725718468428,
0.10953933745622635,
-0.04095599800348282,
0.3431994915008545,
0.3447265625,
-0.03354066610336304,
0.038473423570394516,
-0.13281658291816711,
-0.1300266981124878,
-0.003364742500707507,
-0.4955165684223175,
1.0062315464019775,
-0.29453882575035095,
-0.19609075784683228,
-0.8063915967941284,
-0.011234631761908531,
0.8996714949607849,
-0.4253101050853729,
0.871218204498291,
0.6146706342697144,
-0.7175298929214478,
0.1481200009584427,
-0.369537353515625,
-0.29054880142211914,
-0.44367364048957825,
0.6715444326400757,
-0.2886468470096588,
-0.3624708354473114,
0.6178932785987854,
0.28680357336997986,
0.2688325047492981,
0.5991177558898926,
0.7560040354728699,
0.25045523047447205,
1.2156587839126587,
0.4415225088596344,
-0.16839683055877686,
0.6370993852615356,
-0.5486516952514648,
0.2174866497516632,
-1.107823371887207,
-0.17184045910835266,
-0.5464411377906799,
-0.27159982919692993,
-0.932226836681366,
-0.31967464089393616,
0.3124665319919586,
0.23130854964256287,
-0.7707622051239014,
0.5660898685455322,
-0.5709450840950012,
0.06185828521847725,
0.6560280323028564,
0.24969404935836792,
0.20674368739128113,
0.2039785236120224,
0.07746756821870804,
-0.038433562964200974,
-0.6665635108947754,
-0.3649657964706421,
1.2342069149017334,
0.49630773067474365,
0.6321690678596497,
0.27903926372528076,
0.7297715544700623,
-0.1282394677400589,
0.23760929703712463,
-0.6977097392082214,
0.4450228214263916,
0.31316113471984863,
-0.7208636403083801,
-0.20496197044849396,
-0.7953657507896423,
-0.9561545252799988,
0.48732081055641174,
0.09401659667491913,
-1.102601170539856,
0.2242986559867859,
0.2307213693857193,
-0.36123719811439514,
0.49306222796440125,
-0.6168671250343323,
0.9924049377441406,
-0.2413061559200287,
-0.46360141038894653,
-0.3795243203639984,
-0.29607442021369934,
0.2455187439918518,
0.3748057186603546,
0.12495090812444687,
0.08242448419332504,
0.3264584541320801,
1.0028716325759888,
-0.6543676853179932,
0.676630437374115,
-0.13297143578529358,
0.13500842452049255,
0.3618946373462677,
0.30483147501945496,
0.6502999067306519,
0.16448086500167847,
0.1346711814403534,
-0.017888380214571953,
0.16455097496509552,
-0.542167603969574,
-0.3527012765407562,
0.9416542649269104,
-1.1068000793457031,
-0.3858753442764282,
-0.808223307132721,
-0.6081238985061646,
0.10721993446350098,
0.20855708420276642,
0.40412914752960205,
0.6795177459716797,
-0.050651129335165024,
0.021795736625790596,
0.6079965829849243,
-0.534152090549469,
0.37705332040786743,
0.24592147767543793,
-0.4608369469642639,
-0.5279818773269653,
0.9884780049324036,
0.023754067718982697,
0.3541713058948517,
0.03476322069764137,
0.23469561338424683,
-0.4170752167701721,
-0.4350852072238922,
-0.6125855445861816,
0.5492055416107178,
-0.7390899658203125,
-0.001871311105787754,
-0.7434346675872803,
-0.031469400972127914,
-0.4703845977783203,
0.1304088532924652,
-0.41032344102859497,
-0.3957304060459137,
-0.24573826789855957,
-0.00767393596470356,
0.5796233415603638,
0.4665163457393646,
0.08481011539697647,
0.3361161947250366,
-0.5750718116760254,
-0.0206991545855999,
0.24048064649105072,
0.08770499378442764,
0.11896776407957077,
-0.9105764031410217,
-0.09129787236452103,
0.1765894591808319,
-0.4345194101333618,
-1.1359096765518188,
0.5213800668716431,
-0.06328053772449493,
0.3648415505886078,
0.05340743809938431,
-0.22426582872867584,
0.595596969127655,
-0.07651478052139282,
0.6755568385124207,
0.150598406791687,
-1.0564018487930298,
0.5472422242164612,
-0.4713127911090851,
0.33870047330856323,
0.35277798771858215,
0.35886362195014954,
-0.7416839599609375,
-0.09136046469211578,
-0.9956060647964478,
-1.091410517692566,
0.7481071949005127,
0.46858176589012146,
0.19234298169612885,
0.10106725245714188,
0.3969665765762329,
-0.44324541091918945,
0.16029758751392365,
-1.021499752998352,
-0.2673560678958893,
-0.23913036286830902,
-0.09245771914720535,
0.1544344574213028,
-0.038874149322509766,
0.05376690998673439,
-0.5759879350662231,
1.0271862745285034,
0.048830896615982056,
0.3407748341560364,
0.2995396852493286,
-0.41177117824554443,
-0.09348631650209427,
-0.019218934699892998,
0.18083082139492035,
0.7742384672164917,
-0.1536162793636322,
0.0864533856511116,
0.20936410129070282,
-0.5510918498039246,
0.04114098846912384,
0.16878820955753326,
-0.39339134097099304,
-0.053812623023986816,
0.1632806807756424,
0.867670476436615,
0.1087040901184082,
-0.42587804794311523,
0.20895716547966003,
-0.05074572563171387,
-0.08454318344593048,
-0.29560422897338867,
-0.16770726442337036,
0.1813391149044037,
0.21689721941947937,
-0.02315624989569187,
-0.1841825246810913,
-0.013477461412549019,
-0.8750630021095276,
0.05435372516512871,
0.24082626402378082,
-0.183271586894989,
-0.4185523986816406,
0.6053193211555481,
0.03845234960317612,
-0.1996423900127411,
1.1351944208145142,
-0.2557946741580963,
-0.710487961769104,
0.7930466532707214,
0.49720773100852966,
0.7578977346420288,
-0.17832055687904358,
0.3732791841030121,
0.8922880291938782,
0.3272266685962677,
-0.2188573032617569,
0.08894181996583939,
0.09611406922340393,
-0.5215163826942444,
-0.12546129524707794,
-0.8258886337280273,
-0.2344052642583847,
0.28460660576820374,
-0.5795982480049133,
0.4590663015842438,
-0.6173300743103027,
-0.09411288052797318,
-0.06589236110448837,
0.2003757655620575,
-0.6030269861221313,
0.33884674310684204,
0.16564875841140747,
0.7041037678718567,
-0.9213561415672302,
0.8376339077949524,
0.655058741569519,
-0.7388922572135925,
-1.0925750732421875,
0.021621311083436012,
0.0032946402207016945,
-0.44771575927734375,
0.21230070292949677,
0.21245871484279633,
0.2001020461320877,
0.16076302528381348,
-0.2660157382488251,
-0.8717937469482422,
1.2984719276428223,
0.2369946837425232,
-0.6809224486351013,
-0.2680666148662567,
-0.09374555200338364,
0.5356612801551819,
0.05515800788998604,
0.7181578278541565,
0.7175332307815552,
0.4019545912742615,
0.08330579847097397,
-1.0746785402297974,
0.38118642568588257,
-0.3059660792350769,
-0.07599133998155594,
0.24422764778137207,
-0.6874191164970398,
1.3395285606384277,
-0.053793635219335556,
-0.011496779508888721,
0.38883647322654724,
0.5670682787895203,
0.386620432138443,
-0.11486946046352386,
0.39782705903053284,
0.7786191701889038,
0.8593286275863647,
-0.36300304532051086,
1.2106293439865112,
-0.3081432282924652,
0.7878977060317993,
0.8569266200065613,
0.18176151812076569,
0.5089755058288574,
0.39354437589645386,
-0.3776054084300995,
0.5203424096107483,
0.8161594271659851,
-0.08021251857280731,
0.17877313494682312,
0.27051863074302673,
-0.2854635417461395,
-0.28154119849205017,
0.12208244949579239,
-0.6296008229255676,
0.2166559398174286,
0.12705263495445251,
-0.6067154407501221,
-0.2255997210741043,
-0.34173697233200073,
0.3587389886379242,
-0.41968005895614624,
-0.23694950342178345,
0.26750004291534424,
0.10630152374505997,
-0.6446563601493835,
0.6640207767486572,
0.2511732876300812,
0.5723668336868286,
-0.452266126871109,
0.14284338057041168,
-0.15410688519477844,
0.3552483916282654,
-0.32502323389053345,
-0.42204830050468445,
0.09476503729820251,
0.007698397152125835,
0.05965351313352585,
0.09519954770803452,
0.4513857066631317,
-0.1582021713256836,
-0.5845542550086975,
0.19211897253990173,
0.4951140582561493,
0.24837461113929749,
-0.4741816222667694,
-0.6897724270820618,
0.08267895877361298,
-0.15824559330940247,
-0.5435535907745361,
0.4477061927318573,
0.26256367564201355,
-0.12066500633955002,
0.5908393263816833,
0.6279929280281067,
0.049055278301239014,
-0.024530300870537758,
0.14540059864521027,
0.9852142930030823,
-0.4838520884513855,
-0.46391957998275757,
-0.9565435647964478,
0.5086250901222229,
0.004705777391791344,
-0.6669352650642395,
0.8597161769866943,
0.5596213936805725,
0.700812041759491,
0.23702727258205414,
0.6069114208221436,
-0.45316410064697266,
0.0020080117974430323,
-0.29459890723228455,
0.6800268888473511,
-0.5225430727005005,
0.054928846657276154,
-0.5241235494613647,
-1.1591702699661255,
-0.03953953832387924,
0.9529779553413391,
-0.5156283378601074,
0.379859060049057,
0.7765249013900757,
0.8067221641540527,
-0.0791422575712204,
0.07728979736566544,
0.05142232030630112,
0.2835286855697632,
0.5484362244606018,
0.9545145630836487,
0.9167609214782715,
-0.6959724426269531,
0.5688076019287109,
-0.5362936854362488,
-0.26926079392433167,
-0.14996953308582306,
-0.5095301866531372,
-0.8625515103340149,
-0.45813465118408203,
-0.5224353671073914,
-0.7536282539367676,
-0.04099588096141815,
0.8772916793823242,
0.7233458757400513,
-0.6160898804664612,
-0.15570931136608124,
-0.5178115963935852,
0.060139600187540054,
-0.2736768424510956,
-0.24011854827404022,
0.43970704078674316,
0.1488710641860962,
-0.989443838596344,
-0.040609121322631836,
-0.1491989642381668,
0.1110665425658226,
-0.42520901560783386,
-0.2762700021266937,
-0.18969404697418213,
-0.12276370078325272,
0.09003130346536636,
0.2831113040447235,
-0.5039193630218506,
-0.2613702118396759,
0.048075757920742035,
0.035444192588329315,
-0.016697797924280167,
0.7085106372833252,
-0.5902173519134521,
0.12292324751615524,
0.6619204878807068,
0.10310117900371552,
0.8245070576667786,
-0.2602662146091461,
0.42261484265327454,
-0.24901829659938812,
0.3515388071537018,
0.29488107562065125,
0.6341038942337036,
0.32988056540489197,
-0.2503769099712372,
0.17044614255428314,
0.4267566502094269,
-0.7458279728889465,
-0.8794371485710144,
0.35952404141426086,
-0.733151912689209,
-0.11871208250522614,
1.306322455406189,
-0.26409608125686646,
-0.3887729346752167,
0.05642630159854889,
-0.2366410195827484,
0.5501096844673157,
-0.27403515577316284,
0.6903908848762512,
0.6222522854804993,
0.08498732000589371,
-0.17633458971977234,
-0.631056547164917,
0.36524859070777893,
0.6791503429412842,
-0.8194619417190552,
0.36876577138900757,
0.6294541358947754,
0.6262563467025757,
0.25261449813842773,
0.5841544270515442,
-0.29820120334625244,
0.5951629877090454,
0.076852947473526,
0.08763318508863449,
0.017321716994047165,
-0.45912712812423706,
-0.43280676007270813,
-0.12388455122709274,
0.23085026443004608,
-0.006878018379211426
] |
bert-large-cased | null | "2023-04-06T13:41:58Z" | 91,095 | 14 | transformers | [
"transformers",
"pytorch",
"tf",
"jax",
"safetensors",
"bert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1810.04805",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | fill-mask | "2022-03-02T23:29:04Z" | ---
language: en
license: apache-2.0
datasets:
- bookcorpus
- wikipedia
---
# BERT large model (cased)
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 cased: it makes a difference
between english and English.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## 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.
This model has the following configuration:
- 24-layer
- 1024 hidden dimension
- 16 attention heads
- 336M parameters.
## 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 downstream task. See the [model hub](https://huggingface.co/models?filter=bert) to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='bert-large-cased')
>>> unmasker("Hello I'm a [MASK] model.")
[
{
"sequence":"[CLS] Hello I'm a male model. [SEP]",
"score":0.22748498618602753,
"token":2581,
"token_str":"male"
},
{
"sequence":"[CLS] Hello I'm a fashion model. [SEP]",
"score":0.09146175533533096,
"token":4633,
"token_str":"fashion"
},
{
"sequence":"[CLS] Hello I'm a new model. [SEP]",
"score":0.05823173746466637,
"token":1207,
"token_str":"new"
},
{
"sequence":"[CLS] Hello I'm a super model. [SEP]",
"score":0.04488750174641609,
"token":7688,
"token_str":"super"
},
{
"sequence":"[CLS] Hello I'm a famous model. [SEP]",
"score":0.03271442651748657,
"token":2505,
"token_str":"famous"
}
]
```
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('bert-large-cased')
model = BertModel.from_pretrained("bert-large-cased")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import BertTokenizer, TFBertModel
tokenizer = BertTokenizer.from_pretrained('bert-large-cased')
model = TFBertModel.from_pretrained("bert-large-cased")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='bert-large-cased')
>>> unmasker("The man worked as a [MASK].")
[
{
"sequence":"[CLS] The man worked as a doctor. [SEP]",
"score":0.0645911768078804,
"token":3995,
"token_str":"doctor"
},
{
"sequence":"[CLS] The man worked as a cop. [SEP]",
"score":0.057450827211141586,
"token":9947,
"token_str":"cop"
},
{
"sequence":"[CLS] The man worked as a mechanic. [SEP]",
"score":0.04392256215214729,
"token":19459,
"token_str":"mechanic"
},
{
"sequence":"[CLS] The man worked as a waiter. [SEP]",
"score":0.03755280375480652,
"token":17989,
"token_str":"waiter"
},
{
"sequence":"[CLS] The man worked as a teacher. [SEP]",
"score":0.03458863124251366,
"token":3218,
"token_str":"teacher"
}
]
>>> unmasker("The woman worked as a [MASK].")
[
{
"sequence":"[CLS] The woman worked as a nurse. [SEP]",
"score":0.2572779953479767,
"token":7439,
"token_str":"nurse"
},
{
"sequence":"[CLS] The woman worked as a waitress. [SEP]",
"score":0.16706500947475433,
"token":15098,
"token_str":"waitress"
},
{
"sequence":"[CLS] The woman worked as a teacher. [SEP]",
"score":0.04587847739458084,
"token":3218,
"token_str":"teacher"
},
{
"sequence":"[CLS] The woman worked as a secretary. [SEP]",
"score":0.03577028587460518,
"token":4848,
"token_str":"secretary"
},
{
"sequence":"[CLS] The woman worked as a maid. [SEP]",
"score":0.03298963978886604,
"token":13487,
"token_str":"maid"
}
]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
The BERT model was pretrained on [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038
unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and
headers).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of 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 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size
of 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer
used is Adam with a learning rate of 1e-4, \\(\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.
## Evaluation results
When fine-tuned on downstream tasks, this model achieves the following results:
Model | SQUAD 1.1 F1/EM | Multi NLI Accuracy
---------------------------------------- | :-------------: | :----------------:
BERT-Large, Cased (Original) | 91.5/84.8 | 86.09
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1810-04805,
author = {Jacob Devlin and
Ming{-}Wei Chang and
Kenton Lee and
Kristina Toutanova},
title = {{BERT:} Pre-training of Deep Bidirectional Transformers for Language
Understanding},
journal = {CoRR},
volume = {abs/1810.04805},
year = {2018},
url = {http://arxiv.org/abs/1810.04805},
archivePrefix = {arXiv},
eprint = {1810.04805},
timestamp = {Tue, 30 Oct 2018 20:39:56 +0100},
biburl = {https://dblp.org/rec/journals/corr/abs-1810-04805.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
```
| [
-0.15062527358531952,
-0.6206334829330444,
0.26696357131004333,
0.27141308784484863,
-0.5652679204940796,
0.021382538601756096,
-0.04145267233252525,
-0.17088501155376434,
0.4202847480773926,
0.5277096629142761,
-0.5613031387329102,
-0.4106621742248535,
-0.8237980008125305,
0.09935367852449417,
-0.6030853390693665,
1.13748300075531,
0.23495543003082275,
0.39016488194465637,
0.0869055986404419,
0.19229747354984283,
-0.4503980875015259,
-0.7964615821838379,
-0.8403050303459167,
-0.25694525241851807,
0.47541940212249756,
0.3599330484867096,
0.5700914263725281,
0.542110025882721,
0.5089895129203796,
0.3978561758995056,
-0.058445271104574203,
-0.11409161239862442,
-0.3482998311519623,
0.06466516852378845,
-0.06775757670402527,
-0.5857812762260437,
-0.3702971935272217,
0.169738307595253,
0.6307897567749023,
0.8002191781997681,
-0.010805616155266762,
0.2990367114543915,
-0.13452288508415222,
0.5875831842422485,
-0.19672153890132904,
0.2845180928707123,
-0.4853561520576477,
0.18560637533664703,
-0.2864726483821869,
0.1115247830748558,
-0.38755786418914795,
-0.2555902302265167,
0.1891147941350937,
-0.5520235300064087,
0.28642550110816956,
0.20100830495357513,
1.1207305192947388,
0.08873022347688675,
-0.2304716408252716,
-0.11317873001098633,
-0.5099647641181946,
0.7704617381095886,
-0.6935040354728699,
0.1518135368824005,
0.43858322501182556,
0.32727542519569397,
-0.1991770714521408,
-1.046606183052063,
-0.4718770682811737,
-0.02823745459318161,
-0.077597476541996,
-0.00017572290380485356,
0.02720959112048149,
-0.10811344534158707,
0.38259002566337585,
0.4074106216430664,
-0.30599546432495117,
0.017780324444174767,
-0.7536001801490784,
-0.3304073214530945,
0.6817796230316162,
0.14966590702533722,
0.16353119909763336,
-0.34941935539245605,
-0.351656973361969,
-0.30441927909851074,
-0.2800210118293762,
0.0658668726682663,
0.5497936010360718,
0.4149987995624542,
-0.1810983270406723,
0.7275038957595825,
-0.18703021109104156,
0.6078897714614868,
0.01351086050271988,
0.021029967814683914,
0.433907687664032,
-0.0762559175491333,
-0.3999139964580536,
0.025905784219503403,
0.9604291915893555,
0.24183867871761322,
0.45743894577026367,
-0.05296945571899414,
-0.3197579085826874,
-0.01065536867827177,
0.3585829734802246,
-0.6530168652534485,
-0.2739602327346802,
0.10917498916387558,
-0.535478413105011,
-0.4794904291629791,
0.5160248279571533,
-0.6661031246185303,
-0.11223028600215912,
-0.11251524835824966,
0.6157824397087097,
-0.3408317565917969,
-0.0868658721446991,
0.14750488102436066,
-0.5075153708457947,
0.19672152400016785,
0.07340841740369797,
-0.8827401399612427,
0.20343877375125885,
0.6850934028625488,
0.851353645324707,
0.2938126027584076,
-0.17944398522377014,
-0.4180295169353485,
-0.19570933282375336,
-0.38902348279953003,
0.45347651839256287,
-0.3336367607116699,
-0.5252381563186646,
0.025548985227942467,
0.2987545430660248,
-0.0838303416967392,
-0.23797504603862762,
0.7437960505485535,
-0.5453261733055115,
0.544619619846344,
-0.06969445198774338,
-0.6192291975021362,
-0.25025302171707153,
0.015216165222227573,
-0.736181378364563,
1.1601089239120483,
0.2997567355632782,
-0.6610450148582458,
0.3584471344947815,
-0.9323563575744629,
-0.6262540817260742,
0.2104291170835495,
0.0974341556429863,
-0.46032312512397766,
0.23856817185878754,
0.0721195638179779,
0.48362600803375244,
-0.08649279922246933,
0.3604220151901245,
-0.19666235148906708,
-0.4615541696548462,
0.42459192872047424,
-0.25978320837020874,
1.021681547164917,
0.2165200263261795,
-0.2810688614845276,
0.15335750579833984,
-0.7986796498298645,
-0.020139887928962708,
0.24513506889343262,
-0.3705165386199951,
-0.19331298768520355,
-0.13082686066627502,
0.3007260859012604,
0.18295662105083466,
0.40352562069892883,
-0.6754785776138306,
0.31521621346473694,
-0.5396110415458679,
0.6576002240180969,
0.8754527568817139,
-0.07635720074176788,
0.2556906044483185,
-0.40879154205322266,
0.5010824203491211,
-0.04775388911366463,
0.003996329847723246,
-0.18021245300769806,
-0.7356926798820496,
-0.7802704572677612,
-0.35150301456451416,
0.6397255063056946,
0.6695438623428345,
-0.4843085706233978,
0.7467659115791321,
-0.07400516420602798,
-0.5693685412406921,
-0.6077461242675781,
-0.14911486208438873,
0.2997298240661621,
0.4841265082359314,
0.3117051124572754,
-0.45361942052841187,
-0.865474283695221,
-0.866756796836853,
-0.2583175003528595,
-0.11205001920461655,
-0.26785239577293396,
0.1018759086728096,
0.7419131398200989,
-0.24734507501125336,
0.8318992853164673,
-0.7938321828842163,
-0.4435281455516815,
-0.15936605632305145,
0.2517869472503662,
0.6099042892456055,
0.7104106545448303,
0.37833839654922485,
-0.6240706443786621,
-0.38085049390792847,
-0.4142446219921112,
-0.5823870897293091,
0.04026429355144501,
-0.007989902049303055,
-0.2507965862751007,
0.17173181474208832,
0.6151730418205261,
-0.7389163374900818,
0.5302547812461853,
0.273841917514801,
-0.5719634294509888,
0.6944460272789001,
-0.3841565251350403,
-0.036024317145347595,
-1.2945835590362549,
0.1847752034664154,
-0.14624731242656708,
-0.324273020029068,
-0.7035582065582275,
0.03055761195719242,
-0.1321755051612854,
-0.10316316038370132,
-0.5627885460853577,
0.5321705341339111,
-0.42658567428588867,
-0.05401872098445892,
-0.0032838527113199234,
-0.13061730563640594,
0.016759419813752174,
0.4026488661766052,
0.016410503536462784,
0.5559310913085938,
0.5660601854324341,
-0.5666617155075073,
0.5589191913604736,
0.42785850167274475,
-0.5987160801887512,
0.26501086354255676,
-0.8076426982879639,
0.24609526991844177,
0.051429543644189835,
0.06070742756128311,
-1.1156914234161377,
-0.3517438769340515,
0.2069191038608551,
-0.5583844780921936,
0.24506525695323944,
-0.04197021573781967,
-0.8020362257957458,
-0.6807924509048462,
-0.2250232696533203,
0.4470314383506775,
0.5646397471427917,
-0.30817753076553345,
0.44876840710639954,
0.32903289794921875,
-0.0957426056265831,
-0.5794312357902527,
-0.7261777520179749,
0.1644158661365509,
-0.16227351129055023,
-0.533545196056366,
0.38393434882164,
-0.03776154667139053,
-0.11577663570642471,
-0.2212161272764206,
0.11523111909627914,
-0.1380358189344406,
0.0772458165884018,
0.23403631150722504,
0.4829074740409851,
-0.1723184883594513,
-0.030939389020204544,
-0.14165861904621124,
-0.12660576403141022,
0.320935994386673,
-0.1700853556394577,
0.8524522185325623,
0.012754866853356361,
-0.11788228899240494,
-0.3374701142311096,
0.39677679538726807,
0.6748024821281433,
-0.053300511091947556,
0.7821769714355469,
0.8361758589744568,
-0.5911479592323303,
0.058052144944667816,
-0.36699381470680237,
-0.23819100856781006,
-0.522967517375946,
0.5347108244895935,
-0.4692259728908539,
-0.8567609786987305,
0.7316269874572754,
0.3197520673274994,
-0.1675790548324585,
0.7361855506896973,
0.5857980847358704,
-0.1522764265537262,
1.0341795682907104,
0.4739744961261749,
-0.13009412586688995,
0.5096002817153931,
-0.15059737861156464,
0.32104524970054626,
-0.754960298538208,
-0.47208839654922485,
-0.456756055355072,
-0.33575767278671265,
-0.4904303550720215,
-0.19567003846168518,
0.25305095314979553,
0.18823909759521484,
-0.4816214442253113,
0.5268490314483643,
-0.6727872490882874,
0.3681815564632416,
1.0222067832946777,
0.3206871449947357,
-0.18514195084571838,
-0.21996024250984192,
-0.1883614957332611,
0.0379788801074028,
-0.4474661350250244,
-0.3466123044490814,
1.1662863492965698,
0.5448394417762756,
0.6486483812332153,
0.10517386347055435,
0.6956162452697754,
0.32694554328918457,
-0.0013311688089743257,
-0.692145824432373,
0.6759968400001526,
-0.37301144003868103,
-0.9344881176948547,
-0.414716899394989,
-0.12315424531698227,
-1.0599366426467896,
0.12630140781402588,
-0.3088909387588501,
-0.8529234528541565,
-0.05345597118139267,
-0.1825430989265442,
-0.3393114507198334,
0.16336019337177277,
-0.770643413066864,
1.054374098777771,
-0.27679112553596497,
-0.07785388082265854,
0.05479942634701729,
-0.9509478807449341,
0.2726585865020752,
-0.03245176374912262,
0.12115046381950378,
-0.0633038729429245,
0.23138940334320068,
1.1213374137878418,
-0.6124913096427917,
0.9887081980705261,
-0.2501367926597595,
0.21733908355236053,
0.06113484129309654,
-0.06618257611989975,
0.33833280205726624,
0.01882130838930607,
0.08954403549432755,
0.2841208577156067,
0.057306379079818726,
-0.4757656753063202,
-0.1204761266708374,
0.3914976119995117,
-0.7987881302833557,
-0.5385668873786926,
-0.6497817039489746,
-0.6091476678848267,
0.1500614732503891,
0.456003338098526,
0.5846502184867859,
0.5108674764633179,
-0.17816714942455292,
0.27353906631469727,
0.48438599705696106,
-0.2619467079639435,
0.7890753746032715,
0.40158721804618835,
-0.2629573345184326,
-0.47922706604003906,
0.611901044845581,
0.04618743434548378,
0.04195732995867729,
0.5037127733230591,
0.2498064637184143,
-0.5995922684669495,
-0.1348395198583603,
-0.35672470927238464,
0.16217473149299622,
-0.577312707901001,
-0.3148270547389984,
-0.5698040723800659,
-0.491166353225708,
-0.6357190012931824,
-0.10221312940120697,
-0.1469215750694275,
-0.47625547647476196,
-0.6831291317939758,
-0.19693370163440704,
0.4727412760257721,
0.644715428352356,
-0.08173301070928574,
0.4998331367969513,
-0.7536635398864746,
0.2702697515487671,
0.331977516412735,
0.42940232157707214,
-0.24690525233745575,
-0.8364489674568176,
-0.2989955544471741,
-0.04965880885720253,
-0.12126805633306503,
-0.8610544204711914,
0.6269415020942688,
0.23730136454105377,
0.4636097550392151,
0.5778292417526245,
-0.030149132013320923,
0.6186075210571289,
-0.6435758471488953,
0.9595550298690796,
0.22610166668891907,
-1.1547777652740479,
0.5693762898445129,
-0.31765007972717285,
0.2712790071964264,
0.3371841311454773,
0.2020648717880249,
-0.5629073977470398,
-0.39899975061416626,
-0.8998059034347534,
-0.9837916493415833,
0.8252905607223511,
0.13345354795455933,
0.3621803820133209,
-0.07065373659133911,
0.29736781120300293,
0.08999080955982208,
0.4187942445278168,
-0.8944116234779358,
-0.5347123742103577,
-0.4463546574115753,
-0.33991485834121704,
-0.2100263386964798,
-0.31246933341026306,
-0.0750642716884613,
-0.5683416128158569,
0.6926374435424805,
0.15732216835021973,
0.5754840970039368,
0.09485334903001785,
-0.10420655459165573,
0.11326711624860764,
0.20560234785079956,
0.8933186531066895,
0.46991586685180664,
-0.47933241724967957,
0.001547702238894999,
-0.006506539881229401,
-0.6630582809448242,
0.037016429007053375,
0.2414969652891159,
0.012463963590562344,
0.24822406470775604,
0.5338919758796692,
0.8269771933555603,
0.25545376539230347,
-0.49896469712257385,
0.6315304040908813,
0.12347538769245148,
-0.30911192297935486,
-0.6377668976783752,
0.10078857839107513,
-0.08054348081350327,
0.1313968151807785,
0.5730783343315125,
0.12749014794826508,
0.08477193862199783,
-0.5328933596611023,
0.41139522194862366,
0.38602590560913086,
-0.49883607029914856,
-0.19710958003997803,
0.937730610370636,
0.08458363264799118,
-0.7069650888442993,
0.7798601388931274,
-0.22302018105983734,
-0.7684692740440369,
0.770766019821167,
0.68058842420578,
0.9406751394271851,
-0.2488160878419876,
0.23315811157226562,
0.4629150927066803,
0.32286757230758667,
-0.3240188658237457,
0.3889029324054718,
0.3688565790653229,
-0.8226030468940735,
-0.3572598397731781,
-0.7756847739219666,
-0.1806543618440628,
0.20677316188812256,
-0.8247296810150146,
0.3455946147441864,
-0.5216984748840332,
-0.25195232033729553,
0.21328400075435638,
-0.020011844113469124,
-0.6906223893165588,
0.47504904866218567,
-0.0061574713326990604,
1.0710983276367188,
-1.0050355195999146,
0.9980185627937317,
0.776057779788971,
-0.6011883616447449,
-0.944348156452179,
-0.42135298252105713,
-0.29839175939559937,
-1.117582082748413,
0.7700300216674805,
0.3306826651096344,
0.3696030080318451,
0.03748910501599312,
-0.5889990925788879,
-0.682881772518158,
0.8520428538322449,
0.1669311374425888,
-0.559986412525177,
-0.11484716832637787,
0.08241383731365204,
0.5932248830795288,
-0.554074227809906,
0.4047606289386749,
0.5434884428977966,
0.42705774307250977,
-0.04315745458006859,
-0.8113258481025696,
0.08744315057992935,
-0.36847588419914246,
-0.0013103187084197998,
0.17514120042324066,
-0.4766365587711334,
1.184470534324646,
-0.14444996416568756,
0.06544870883226395,
0.22060343623161316,
0.5303195714950562,
-0.015268518589437008,
0.13977666199207306,
0.4839063286781311,
0.6261683702468872,
0.7405786514282227,
-0.33890870213508606,
0.864734947681427,
-0.2529934346675873,
0.5381792783737183,
0.8489566445350647,
0.06564304232597351,
0.8187070488929749,
0.42779916524887085,
-0.2811029851436615,
0.9069628715515137,
0.8472814559936523,
-0.39167264103889465,
0.7034044861793518,
0.256874144077301,
-0.11234578490257263,
-0.060771506279706955,
0.1440054327249527,
-0.3088717758655548,
0.5089274644851685,
0.21985943615436554,
-0.6587632298469543,
0.13088171184062958,
-0.021480942144989967,
0.18687425553798676,
-0.1785057783126831,
-0.5064206719398499,
0.7052056789398193,
0.16987638175487518,
-0.710217297077179,
0.25798919796943665,
0.21712802350521088,
0.6110982894897461,
-0.5330793261528015,
0.02191944606602192,
-0.09023749828338623,
0.2191363126039505,
-0.09005461633205414,
-0.8521994352340698,
0.19417493045330048,
-0.20060065388679504,
-0.44435206055641174,
-0.20066829025745392,
0.661004900932312,
-0.44888031482696533,
-0.7199352383613586,
-0.02094794064760208,
0.24195992946624756,
0.3398655951023102,
-0.13790884613990784,
-0.7524662017822266,
-0.23617815971374512,
-0.011189955286681652,
-0.10793165117502213,
0.1795310378074646,
0.34416258335113525,
0.062189266085624695,
0.5351215600967407,
0.7759461998939514,
-0.09966059774160385,
0.07255431264638901,
0.11456053704023361,
0.6899948120117188,
-0.9932825565338135,
-0.9018433094024658,
-1.012264370918274,
0.5327596664428711,
-0.15127474069595337,
-0.5682647824287415,
0.6106147170066833,
0.7622079253196716,
0.7058102488517761,
-0.4464298188686371,
0.5194393396377563,
-0.16155201196670532,
0.5990371704101562,
-0.4124813377857208,
0.7753809094429016,
-0.33571407198905945,
0.02472098357975483,
-0.39562395215034485,
-0.856684684753418,
-0.2955061197280884,
0.8538508415222168,
-0.08726358413696289,
0.04772278293967247,
0.7489354014396667,
0.6028443574905396,
0.10272020846605301,
-0.0735325962305069,
0.21324874460697174,
0.17412611842155457,
0.10339590162038803,
0.40678128600120544,
0.5620295405387878,
-0.6401052474975586,
0.41623184084892273,
-0.13900126516819,
-0.07800482213497162,
-0.4101671874523163,
-0.8957859873771667,
-1.0244840383529663,
-0.6300843954086304,
-0.23047569394111633,
-0.6241667866706848,
-0.17853933572769165,
0.9195395112037659,
0.7779757976531982,
-0.924563467502594,
-0.24215289950370789,
-0.103121317923069,
0.09822166711091995,
-0.2493349015712738,
-0.3080691397190094,
0.4938950538635254,
-0.19265179336071014,
-0.7959906458854675,
0.18916518986225128,
-0.05813620612025261,
0.10767874121665955,
-0.2101713865995407,
0.051406051963567734,
-0.3654508888721466,
0.08363344520330429,
0.5448123812675476,
0.09980285912752151,
-0.7373521327972412,
-0.5633490681648254,
0.0393490344285965,
-0.2117244452238083,
0.07649706304073334,
0.5473872423171997,
-0.5620546340942383,
0.38326871395111084,
0.37992072105407715,
0.3686841130256653,
0.7251390814781189,
0.11336902529001236,
0.6683334112167358,
-1.1084200143814087,
0.2816254496574402,
0.19875338673591614,
0.4873802065849304,
0.3321477472782135,
-0.44745320081710815,
0.49936920404434204,
0.5237008333206177,
-0.5111950635910034,
-0.8747612237930298,
-0.010399604216217995,
-1.036974310874939,
-0.2892046570777893,
0.8953657746315002,
-0.11344980448484421,
-0.27293646335601807,
-0.07253459841012955,
-0.3778751790523529,
0.4039832651615143,
-0.4407826066017151,
0.7774366736412048,
0.8895413279533386,
0.07875455915927887,
-0.1288616806268692,
-0.42273783683776855,
0.39441925287246704,
0.40486574172973633,
-0.48018789291381836,
-0.5218340158462524,
0.12948466837406158,
0.4549131989479065,
0.24497216939926147,
0.5528853535652161,
-0.046183496713638306,
0.18589219450950623,
0.16766367852687836,
0.22936084866523743,
-0.07628822326660156,
-0.1303231418132782,
-0.2832777500152588,
0.1901431679725647,
-0.14207294583320618,
-0.738542914390564
] |
cl-tohoku/bert-base-japanese-char | cl-tohoku | "2021-09-23T13:45:29Z" | 90,175 | 7 | transformers | [
"transformers",
"pytorch",
"tf",
"jax",
"bert",
"fill-mask",
"ja",
"dataset:wikipedia",
"license:cc-by-sa-4.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | fill-mask | "2022-03-02T23:29:05Z" | ---
language: ja
license: cc-by-sa-4.0
datasets:
- wikipedia
widget:
- text: 仙台は「[MASK]の都」と呼ばれている。
---
# BERT base Japanese (character tokenization)
This is a [BERT](https://github.com/google-research/bert) model pretrained on texts in the Japanese language.
This version of the model processes input texts with word-level tokenization based on the IPA dictionary, followed by character-level tokenization.
The codes for the pretraining are available at [cl-tohoku/bert-japanese](https://github.com/cl-tohoku/bert-japanese/tree/v1.0).
## Model architecture
The model architecture is the same as the original BERT base model; 12 layers, 768 dimensions of hidden states, and 12 attention heads.
## Training Data
The model is trained on Japanese Wikipedia as of September 1, 2019.
To generate the training corpus, [WikiExtractor](https://github.com/attardi/wikiextractor) is used to extract plain texts from a dump file of Wikipedia articles.
The text files used for the training are 2.6GB in size, consisting of approximately 17M sentences.
## Tokenization
The texts are first tokenized by [MeCab](https://taku910.github.io/mecab/) morphological parser with the IPA dictionary and then split into characters.
The vocabulary size is 4000.
## Training
The model is trained with the same configuration as the original BERT; 512 tokens per instance, 256 instances per batch, and 1M training steps.
## Licenses
The pretrained models are distributed under the terms of the [Creative Commons Attribution-ShareAlike 3.0](https://creativecommons.org/licenses/by-sa/3.0/).
## Acknowledgments
For training models, we used Cloud TPUs provided by [TensorFlow Research Cloud](https://www.tensorflow.org/tfrc/) program.
| [
-0.43161481618881226,
-0.7526209354400635,
0.4062121510505676,
0.15376827120780945,
-0.6306077241897583,
-0.14882197976112366,
-0.2548786699771881,
-0.5062409043312073,
0.43788260221481323,
0.5080763697624207,
-0.7038288712501526,
-0.5082024335861206,
-0.6199324131011963,
0.09705115109682083,
-0.11364448070526123,
1.2455109357833862,
-0.001665778225287795,
0.3498978912830353,
0.26141467690467834,
0.22923296689987183,
-0.37012413144111633,
-0.5866909027099609,
-0.7738704681396484,
-0.2820083796977997,
0.5688275694847107,
0.33098673820495605,
0.543715238571167,
0.5453130602836609,
0.4268384575843811,
0.2204127460718155,
-0.02202550508081913,
-0.27071934938430786,
-0.6380046010017395,
-0.2162022441625595,
-0.004387319553643465,
-0.4119512140750885,
-0.24581925570964813,
-0.18459674715995789,
0.7301323413848877,
0.6636461019515991,
0.2203577309846878,
0.08092426508665085,
-0.29194438457489014,
0.3051626682281494,
-0.524518609046936,
0.19232071936130524,
-0.6172077059745789,
0.011303529143333435,
-0.32378190755844116,
0.2046324461698532,
-0.3937298655509949,
-0.1614573448896408,
0.19651810824871063,
-0.7904278039932251,
0.33735033869743347,
-0.0859176442027092,
1.2458789348602295,
0.040629222989082336,
-0.15313635766506195,
-0.28048211336135864,
-0.3934572637081146,
0.7248952984809875,
-0.7547627091407776,
0.4025823175907135,
0.5898680686950684,
0.09492120891809464,
-0.028440384194254875,
-0.91432124376297,
-0.6470744609832764,
-0.2568109631538391,
0.0858469009399414,
0.06199530139565468,
0.0007534751202911139,
0.13030734658241272,
0.45091646909713745,
0.31413358449935913,
-0.6440396904945374,
0.39616045355796814,
-0.511771559715271,
-0.20183414220809937,
0.4569164514541626,
-0.04914567992091179,
0.6228458881378174,
-0.5224830508232117,
-0.3971012234687805,
-0.5030161738395691,
-0.512435257434845,
0.09005391597747803,
0.357046514749527,
0.21230612695217133,
-0.16078928112983704,
0.6921818256378174,
0.12079280614852905,
0.36848708987236023,
0.025836003944277763,
-0.18723396956920624,
0.4362723231315613,
-0.29918012022972107,
-0.20692692697048187,
0.15108607709407806,
0.9700762033462524,
0.09074553102254868,
0.31703120470046997,
-0.17968600988388062,
-0.22264845669269562,
-0.12830020487308502,
0.5282063484191895,
-0.8805301189422607,
-0.1496153175830841,
0.06842644512653351,
-0.7598752975463867,
-0.31896695494651794,
-0.10915929079055786,
-0.35466238856315613,
0.06442323327064514,
0.05819461867213249,
0.6439960598945618,
-1.0559825897216797,
-0.3340610861778259,
-0.0785631388425827,
-0.45102426409721375,
0.34474340081214905,
0.08461125195026398,
-1.1772022247314453,
0.14076484739780426,
0.570730984210968,
0.725764811038971,
0.07964011281728745,
-0.4661637544631958,
0.28460943698883057,
0.262594997882843,
-0.43052035570144653,
0.3894587755203247,
-0.3273222744464874,
-0.6314471364021301,
-0.12481912225484848,
0.0028135147877037525,
-0.048443280160427094,
-0.06726055592298508,
0.6388587355613708,
-0.5169409513473511,
0.15646927058696747,
-0.35481393337249756,
-0.8116357922554016,
-0.11527331173419952,
0.23169569671154022,
-0.6922031044960022,
1.0874192714691162,
0.0979437604546547,
-0.8567041158676147,
0.3938801884651184,
-0.9574180245399475,
-0.47552403807640076,
0.3507128655910492,
0.06808952242136002,
-0.3719426095485687,
0.15095719695091248,
0.2554285228252411,
0.35600459575653076,
0.17826013267040253,
0.26363542675971985,
-0.24757085740566254,
-0.47309941053390503,
0.020061371847987175,
-0.25467878580093384,
1.2636747360229492,
0.27697375416755676,
-0.3198213279247284,
0.006308234762400389,
-0.9210168123245239,
0.0951603353023529,
0.2729324698448181,
-0.4360520541667938,
-0.5387808680534363,
-0.12941598892211914,
0.2718237042427063,
-0.06869287043809891,
0.6703441143035889,
-0.7926235198974609,
0.2595621347427368,
-0.541472315788269,
0.39253294467926025,
0.5961707830429077,
0.04328404739499092,
0.2817497253417969,
-0.05436677113175392,
0.16136713325977325,
-0.05081426352262497,
0.2662496864795685,
-0.46728047728538513,
-0.6871200799942017,
-0.8855655193328857,
-0.3116697072982788,
0.40973061323165894,
0.29797840118408203,
-0.7305917739868164,
0.9939891695976257,
-0.5525583028793335,
-0.6776387095451355,
-0.7355489134788513,
-0.20682364702224731,
0.3585434556007385,
0.48707032203674316,
0.303046315908432,
-0.393189400434494,
-0.5823519825935364,
-0.9475472569465637,
0.16135624051094055,
-0.41894102096557617,
-0.1482386440038681,
-0.029947753995656967,
0.7677903771400452,
-0.3258207142353058,
0.8215518593788147,
-0.2009912133216858,
-0.10744360089302063,
-0.29867133498191833,
0.41920310258865356,
0.27427321672439575,
0.6955499649047852,
0.6391926407814026,
-0.6473039984703064,
-0.5447340607643127,
-0.07306864112615585,
-0.56892991065979,
0.10141621530056,
-0.023036528378725052,
-0.24658268690109253,
0.1084049642086029,
0.3359121084213257,
-0.6698569059371948,
0.2716792821884155,
0.371358186006546,
-0.20802617073059082,
0.41533881425857544,
-0.28224843740463257,
-0.08673954010009766,
-1.4455233812332153,
0.5189961194992065,
-0.24851533770561218,
-0.10325577855110168,
-0.6160228848457336,
0.3781331181526184,
0.1964576691389084,
-0.3979561924934387,
-0.2927747964859009,
0.5644919872283936,
-0.43004128336906433,
-0.08922754973173141,
-0.1615440994501114,
-0.280321329832077,
-0.08687900006771088,
0.813308835029602,
0.262431800365448,
0.8412518501281738,
0.3637312650680542,
-0.5087377429008484,
0.11948231607675552,
0.3742051124572754,
-0.615426778793335,
0.021892739459872246,
-0.8946536183357239,
0.24029970169067383,
-0.09366694837808609,
0.18058250844478607,
-1.0916727781295776,
-0.2713610529899597,
0.36686503887176514,
-0.6566357016563416,
0.4589451849460602,
-0.019928013905882835,
-0.8802865147590637,
-0.4536384046077728,
-0.43854010105133057,
0.10561776906251907,
0.7058879137039185,
-0.5046655535697937,
0.48276594281196594,
0.3780832588672638,
-0.22395527362823486,
-0.8001861572265625,
-0.7961074113845825,
0.10135898739099503,
0.2215329110622406,
-0.44079887866973877,
0.4945533871650696,
-0.15668460726737976,
0.2208653688430786,
0.19228221476078033,
0.13507413864135742,
-0.3291875422000885,
0.1272636353969574,
0.2219947725534439,
0.37288662791252136,
-0.17544911801815033,
0.12012280523777008,
0.3135092854499817,
0.10335158556699753,
-0.001499412814155221,
-0.014744531363248825,
0.9749414920806885,
0.08304101973772049,
-0.1661936640739441,
-0.4744148254394531,
0.2819902300834656,
0.5185150504112244,
0.025950126349925995,
0.9246860146522522,
0.845155656337738,
-0.4337317943572998,
0.14427392184734344,
-0.5136279463768005,
-0.04664882645010948,
-0.44691088795661926,
0.649358868598938,
-0.6168994903564453,
-0.6774758100509644,
0.5972269773483276,
0.3784363269805908,
0.3450333774089813,
0.6927881836891174,
0.579759955406189,
-0.3433168828487396,
1.0512235164642334,
0.6908570528030396,
-0.4789709150791168,
0.7302141189575195,
-0.27347689867019653,
0.05958609655499458,
-0.669241189956665,
-0.3302207887172699,
-0.5569730401039124,
-0.3081403970718384,
-0.562320351600647,
-0.13828711211681366,
0.1876421719789505,
0.1555251032114029,
-0.5132846236228943,
0.3978579640388489,
-0.3767678737640381,
0.5151363611221313,
0.7342065572738647,
0.2163258194923401,
-0.13620030879974365,
0.2830066680908203,
-0.25562724471092224,
-0.1267228126525879,
-0.6096615195274353,
-0.437785267829895,
1.2338775396347046,
0.6186079382896423,
0.5244904160499573,
-0.09734910726547241,
0.8532034754753113,
0.11036565154790878,
0.19026140868663788,
-0.8255756497383118,
0.5253371596336365,
-0.41682538390159607,
-1.0115392208099365,
-0.46387210488319397,
-0.2800196409225464,
-1.0326656103134155,
0.05871927738189697,
-0.23501858115196228,
-0.6067883968353271,
-0.10900270938873291,
-0.24458007514476776,
0.1110914871096611,
0.3604734241962433,
-0.827984631061554,
0.8378025889396667,
-0.2958586812019348,
0.27916884422302246,
-0.2786277234554291,
-0.8122521042823792,
0.26227647066116333,
-0.16529716551303864,
-0.06989852339029312,
0.09690448641777039,
-0.0061571598052978516,
1.0425667762756348,
-0.5850391983985901,
1.0572257041931152,
-0.380147784948349,
-0.06409580260515213,
0.05853709205985069,
-0.39291274547576904,
0.2626142203807831,
-0.1797160804271698,
0.1739477515220642,
0.6376330852508545,
-0.07371111214160919,
-0.43745893239974976,
-0.09819917380809784,
0.5231266617774963,
-1.4465501308441162,
-0.2674013376235962,
-0.20769372582435608,
-0.3648107647895813,
-0.07343126833438873,
0.733245849609375,
0.7467030882835388,
0.0731598362326622,
-0.44959166646003723,
0.289734810590744,
0.7787686586380005,
-0.31935012340545654,
0.4325059652328491,
0.4512028098106384,
-0.1634136289358139,
-0.49955183267593384,
0.8882806897163391,
0.20554116368293762,
-0.04225074499845505,
0.5642760396003723,
-0.042480289936065674,
-0.272588849067688,
-0.5159429907798767,
-0.45992934703826904,
0.4401892423629761,
-0.6606913208961487,
0.06540186703205109,
-0.6864687204360962,
-0.497626394033432,
-0.632050633430481,
0.08274481445550919,
-0.3520817756652832,
-0.40636613965034485,
-0.46978849172592163,
-0.08375239372253418,
0.1353154182434082,
0.6402859687805176,
0.12516584992408752,
0.6125019192695618,
-0.7924556732177734,
0.3672434389591217,
0.12866853177547455,
0.3675362765789032,
0.07774734497070312,
-0.5098918080329895,
-0.454588919878006,
0.14504669606685638,
-0.16024307906627655,
-0.7718255519866943,
0.3661227822303772,
-0.021962381899356842,
0.6747986078262329,
0.5255169868469238,
-0.2627951204776764,
0.7890059351921082,
-0.764020562171936,
1.0887373685836792,
0.5475106835365295,
-1.0230165719985962,
0.553847074508667,
-0.26533621549606323,
0.3416311740875244,
0.6038183569908142,
0.7103378176689148,
-0.49719735980033875,
-0.39524808526039124,
-0.7925101518630981,
-0.7893299460411072,
0.8508585095405579,
0.1304091513156891,
0.4195880591869354,
-0.14477817714214325,
0.4687599539756775,
0.2082032859325409,
0.020111853256821632,
-0.9297522306442261,
-0.33407941460609436,
-0.5952152609825134,
-0.39340919256210327,
-0.14590361714363098,
-0.5479373931884766,
0.17048197984695435,
-0.28673410415649414,
0.7776205539703369,
0.1337173879146576,
0.49639207124710083,
-0.022393403574824333,
-0.3127426505088806,
-0.06426090747117996,
-0.029184091836214066,
0.46320196986198425,
0.4218139052391052,
-0.4056006371974945,
-0.33606305718421936,
0.007048200815916061,
-0.8912421464920044,
-0.15766668319702148,
0.039919108152389526,
-0.3364400565624237,
0.5087807178497314,
0.47327351570129395,
1.307680368423462,
0.36532896757125854,
-0.5725774765014648,
0.4872690439224243,
-0.07390802353620529,
-0.3043915331363678,
-0.43864211440086365,
0.1797153800725937,
-0.0032260618172585964,
-0.07607119530439377,
0.5097863674163818,
-0.3205503225326538,
0.0533469021320343,
-0.41963016986846924,
-0.0881134569644928,
0.3290019631385803,
-0.03850213438272476,
-0.36831626296043396,
0.517899751663208,
0.1864485740661621,
-0.13368329405784607,
0.8928950428962708,
0.08297470957040787,
-0.4921012818813324,
0.704660177230835,
0.6619622111320496,
0.8768602609634399,
-0.06919485330581665,
0.0756407305598259,
0.6918439269065857,
0.37531140446662903,
0.03238159045577049,
0.2770065367221832,
-0.1988515555858612,
-0.9528582692146301,
-0.3628446161746979,
-0.6607531905174255,
-0.5029696822166443,
0.5711961388587952,
-0.7842060923576355,
0.30484738945961,
-0.7125868201255798,
-0.29293274879455566,
0.14954058825969696,
0.3185426890850067,
-0.5403215885162354,
0.3720116913318634,
0.36389508843421936,
1.1129730939865112,
-0.7191223502159119,
1.2322800159454346,
0.8538488745689392,
-0.6970773935317993,
-0.8410682082176208,
0.008144292049109936,
-0.6252422332763672,
-1.1359435319900513,
0.7794477343559265,
0.18989206850528717,
0.3400137722492218,
0.13999122381210327,
-0.8167465329170227,
-0.9125821590423584,
0.8934176564216614,
0.23804248869419098,
-0.5344038605690002,
-0.4793933629989624,
0.0621037520468235,
0.6987792253494263,
-0.09095866978168488,
0.1370561569929123,
0.2762638330459595,
0.28767484426498413,
-0.06009785085916519,
-0.9071065783500671,
-0.36176878213882446,
-0.5188971161842346,
0.48875972628593445,
0.00042055477388203144,
-0.4843556880950928,
0.9601309299468994,
0.06819818913936615,
-0.12409395724534988,
0.2929593622684479,
0.5794104337692261,
0.3534483015537262,
-0.22921061515808105,
0.4986344575881958,
0.7431583404541016,
0.7454226016998291,
-0.024038897827267647,
1.0181931257247925,
-0.4904480576515198,
0.3844117522239685,
0.8604722023010254,
0.05490047112107277,
0.9206572771072388,
0.5358492136001587,
-0.08548133075237274,
0.6954261660575867,
0.7927564978599548,
-0.3298262059688568,
0.7757593393325806,
-0.12120336294174194,
0.05028141662478447,
0.08046326786279678,
0.10963190346956253,
-0.4885135889053345,
0.24454089999198914,
0.4856049716472626,
-0.5624510049819946,
-0.09282611310482025,
0.1598728597164154,
0.06836321949958801,
-0.521324634552002,
-0.5139689445495605,
0.8976373672485352,
-0.18381915986537933,
-0.6558637619018555,
0.6174230575561523,
0.28197500109672546,
0.8091881275177002,
-1.1360265016555786,
0.2047388255596161,
-0.09990502148866653,
-0.020672449842095375,
0.14708371460437775,
-0.8809177875518799,
-0.007198113016784191,
0.32663804292678833,
-0.38288894295692444,
-0.23652438819408417,
0.7621507048606873,
-0.2301160842180252,
-0.4593380391597748,
0.13131892681121826,
0.14224575459957123,
0.4991166293621063,
0.3765023350715637,
-0.769942045211792,
0.17858338356018066,
0.1154048889875412,
-0.38987910747528076,
0.32884863018989563,
0.3925511837005615,
0.0012764552375301719,
0.39474862813949585,
0.7388973832130432,
0.1550012081861496,
0.21253442764282227,
0.2994207441806793,
0.7907623648643494,
-0.5467426180839539,
-0.8079339265823364,
-0.717751145362854,
0.4125002920627594,
-0.17298777401447296,
-0.4786597192287445,
0.5910075902938843,
0.4663426876068115,
1.0450115203857422,
-0.46611517667770386,
0.8690141439437866,
-0.2968484163284302,
0.48101282119750977,
-0.48874631524086,
0.9088672995567322,
-0.6196487545967102,
-0.26608335971832275,
-0.18543824553489685,
-0.8405889868736267,
-0.04419218376278877,
0.9523753523826599,
0.023781416937708855,
0.10405623912811279,
0.44109809398651123,
0.3820130527019501,
0.05935470014810562,
-0.0775168389081955,
0.3171214759349823,
0.2586946487426758,
0.22813239693641663,
0.4526630640029907,
0.498928964138031,
-0.5013114213943481,
0.37807223200798035,
-0.35492029786109924,
-0.05250098928809166,
-0.20314499735832214,
-0.5965201258659363,
-1.0666487216949463,
-0.6166422963142395,
-0.035333115607500076,
-0.1674586534500122,
-0.0020702520851045847,
0.8905014991760254,
0.7094992995262146,
-0.8206430673599243,
-0.2495564967393875,
-0.19508543610572815,
-0.32708990573883057,
0.1495097279548645,
-0.2369205504655838,
0.37911951541900635,
-0.6248325705528259,
-0.9732520580291748,
0.20353209972381592,
-0.0852527990937233,
0.19482821226119995,
-0.25897344946861267,
-0.1371700018644333,
-0.19736282527446747,
-0.12355406582355499,
0.4344799220561981,
0.21714504063129425,
-0.6410127878189087,
-0.2977859675884247,
-0.03896279260516167,
-0.39934298396110535,
-0.022185491397976875,
0.5179679989814758,
-0.413944810628891,
0.5412132143974304,
0.44248348474502563,
0.6890836358070374,
0.8658642172813416,
-0.28860634565353394,
0.45868393778800964,
-1.0783461332321167,
0.2992188334465027,
0.08993330597877502,
0.5682365894317627,
0.21604834496974945,
-0.25403285026550293,
0.4145580530166626,
0.23991714417934418,
-0.23753617703914642,
-0.8281379342079163,
-0.09451644867658615,
-1.0260746479034424,
-0.5203306674957275,
0.856922447681427,
-0.34405502676963806,
-0.41345375776290894,
0.15904980897903442,
-0.3205068111419678,
0.6195206642150879,
-0.26024171710014343,
0.7359892129898071,
1.0790526866912842,
0.2816739082336426,
-0.20627012848854065,
-0.036173637956380844,
0.2649317681789398,
0.2725454270839691,
-0.5860230922698975,
-0.36348894238471985,
0.29262009263038635,
0.6150721907615662,
0.5159934163093567,
0.809424638748169,
-0.1210806593298912,
0.2700577974319458,
0.11264937371015549,
0.5224229693412781,
0.03169713914394379,
-0.1840992122888565,
-0.21654249727725983,
-0.02304862067103386,
-0.06881465762853622,
-0.4093494713306427
] |
persiannlp/mt5-small-parsinlu-opus-translation_fa_en | persiannlp | "2021-09-23T16:20:36Z" | 90,095 | 0 | transformers | [
"transformers",
"pytorch",
"mt5",
"text2text-generation",
"machine-translation",
"persian",
"farsi",
"fa",
"multilingual",
"dataset:parsinlu",
"license:cc-by-nc-sa-4.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | text2text-generation | "2022-03-02T23:29:05Z" | ---
language:
- fa
- multilingual
thumbnail: https://upload.wikimedia.org/wikipedia/commons/a/a2/Farsi.svg
tags:
- machine-translation
- mt5
- persian
- farsi
license: cc-by-nc-sa-4.0
datasets:
- parsinlu
metrics:
- sacrebleu
---
# Machine Translation (ترجمهی ماشینی)
This is an mT5-based model for machine translation (Persian -> English).
Here is an example of how you can run this model:
```python
from transformers import MT5ForConditionalGeneration, MT5Tokenizer
model_size = "small"
model_name = f"persiannlp/mt5-{model_size}-parsinlu-opus-translation_fa_en"
tokenizer = MT5Tokenizer.from_pretrained(model_name)
model = MT5ForConditionalGeneration.from_pretrained(model_name)
def run_model(input_string, **generator_args):
input_ids = tokenizer.encode(input_string, return_tensors="pt")
res = model.generate(input_ids, **generator_args)
output = tokenizer.batch_decode(res, skip_special_tokens=True)
print(output)
return output
run_model("ستایش خدای را که پروردگار جهانیان است.")
run_model("در هاید پارک کرنر بر گلدانی ایستاده موعظه میکند؛")
run_model("وی از تمامی بلاگرها، سازمانها و افرادی که از وی پشتیبانی کردهاند، تشکر کرد.")
run_model("مشابه سال ۲۰۰۱، تولید آمونیاک بی آب در ایالات متحده در سال ۲۰۰۰ تقریباً ۱۷،۴۰۰،۰۰۰ تن (معادل بدون آب) با مصرف ظاهری ۲۲،۰۰۰،۰۰۰ تن و حدود ۴۶۰۰۰۰۰ با واردات خالص مواجه شد. ")
run_model("می خواهم دکترای علوم کامپیوتر راجع به شبکه های اجتماعی را دنبال کنم، چالش حل نشده در شبکه های اجتماعی چیست؟")
```
For more details, visit this page: https://github.com/persiannlp/parsinlu/
| [
-0.32748907804489136,
-0.7124526500701904,
0.27819228172302246,
0.28516557812690735,
-0.6478947401046753,
0.025339864194393158,
-0.06034659594297409,
0.04086067155003548,
-0.03301073983311653,
0.7306801676750183,
-0.6890435218811035,
-0.677230954170227,
-0.6755702495574951,
0.4281686544418335,
-0.5493744611740112,
1.1811147928237915,
-0.16164100170135498,
0.4839300215244293,
0.2529388666152954,
0.03810538724064827,
-0.4037342071533203,
-0.4735388159751892,
-0.5472999811172485,
-0.46791872382164,
0.167690709233284,
0.29780319333076477,
0.8119667768478394,
0.5426385402679443,
0.9516670107841492,
0.36449873447418213,
-0.13103121519088745,
0.021616730839014053,
-0.10855261236429214,
0.02951359935104847,
0.05942400172352791,
-0.6460503935813904,
-0.35367444157600403,
-0.05900442600250244,
0.802964448928833,
0.5182111859321594,
-0.3240998089313507,
0.458457887172699,
-0.05568119138479233,
0.884524405002594,
-0.3236304819583893,
-0.1755487620830536,
-0.10901417583227158,
0.1696595698595047,
-0.36559832096099854,
-0.13760440051555634,
-0.23316088318824768,
-0.29721468687057495,
-0.532001256942749,
-0.49651631712913513,
0.05221862345933914,
0.25962206721305847,
1.310160756111145,
0.0718752071261406,
-0.5165608525276184,
-0.3428342938423157,
-0.9393125176429749,
1.2987967729568481,
-0.9905220866203308,
0.18786486983299255,
0.27987876534461975,
0.5941792130470276,
-0.1096276268362999,
-0.9985489249229431,
-0.8902156949043274,
0.024163294583559036,
-0.3274097144603729,
0.10778049379587173,
-0.0952175185084343,
-0.3053591847419739,
0.6464968323707581,
0.6142346858978271,
-0.6543532609939575,
-0.4346275329589844,
-0.7203174233436584,
0.023779671639204025,
0.3019653558731079,
0.5971285700798035,
0.6926394104957581,
-0.3230530619621277,
-0.5873615145683289,
-0.28914088010787964,
-0.3952534794807434,
0.2827152907848358,
0.26591017842292786,
0.19771629571914673,
-0.4979216456413269,
0.9158518314361572,
-0.44341036677360535,
0.8957757353782654,
0.24495425820350647,
-0.30684399604797363,
0.3883628845214844,
-0.32629549503326416,
-0.5940526723861694,
-0.06795065850019455,
1.0359365940093994,
0.32746458053588867,
0.17006191611289978,
0.3402291536331177,
-0.2286641001701355,
-0.2758258283138275,
0.2987973093986511,
-1.0591537952423096,
0.06676546484231949,
0.27990517020225525,
-0.9246597290039062,
-0.6853424906730652,
0.17165037989616394,
-0.7984476089477539,
-0.03073691390454769,
-0.0837625041604042,
0.41671109199523926,
-0.573564887046814,
-0.27542078495025635,
-0.10747091472148895,
0.04328487813472748,
0.5086646676063538,
0.11030910164117813,
-0.88078773021698,
0.28016307950019836,
0.4898546040058136,
0.956639289855957,
0.2964230477809906,
-0.26078522205352783,
-0.08422563970088959,
0.4460764527320862,
-0.46844589710235596,
0.4155784249305725,
-0.3693069517612457,
-0.513778805732727,
-0.212023064494133,
0.24707898497581482,
-0.37766340374946594,
-0.3364579975605011,
0.9336669445037842,
-0.604202926158905,
0.6080026626586914,
0.02818361669778824,
-0.3691664934158325,
-0.7539700269699097,
0.2244766801595688,
-0.717729389667511,
1.0794869661331177,
-0.10154842585325241,
-1.242130160331726,
-0.050915759056806564,
-1.1722339391708374,
-0.4760167896747589,
-0.07052208483219147,
0.17768046259880066,
-0.80408775806427,
0.23770731687545776,
0.28125500679016113,
0.5519958734512329,
-0.36540788412094116,
0.12987655401229858,
0.09621412307024002,
-0.3134846091270447,
0.4352412223815918,
-0.09169185161590576,
1.1652638912200928,
0.5912997126579285,
-0.3382970988750458,
0.47736892104148865,
-0.8683226704597473,
0.1868901401758194,
0.32789942622184753,
-0.1676923632621765,
-0.2628551125526428,
-0.06667456030845642,
0.14146050810813904,
0.5119422674179077,
0.4430794417858124,
-0.4491666853427887,
0.2920187711715698,
-0.7454091310501099,
0.41567277908325195,
0.5626950860023499,
0.058004673570394516,
0.2921896278858185,
-0.5680791139602661,
0.6533241868019104,
0.29829198122024536,
0.15524087846279144,
-0.008638137020170689,
-0.44501423835754395,
-1.0064432621002197,
-0.21812941133975983,
0.3029734492301941,
0.7946887612342834,
-0.8595052361488342,
0.24900661408901215,
-0.06347900629043579,
-0.8213568329811096,
-0.5820002555847168,
-0.03258068487048149,
0.3736233413219452,
0.3532068431377411,
0.4142534136772156,
-0.09848432242870331,
-0.5897687673568726,
-0.8491247892379761,
-0.5311815738677979,
-0.07145468145608902,
0.05608784779906273,
0.09860391169786453,
0.9079734086990356,
-0.38310518860816956,
0.29032033681869507,
-0.3446735441684723,
-0.35598769783973694,
-0.7777882814407349,
0.04425579681992531,
1.061208724975586,
0.8241469860076904,
0.352186918258667,
-0.8487493991851807,
-0.7929863929748535,
0.2531536817550659,
-0.7755294442176819,
0.06748150289058685,
-0.1798173189163208,
-0.36155378818511963,
0.20686404407024384,
0.1902918517589569,
-0.7236162424087524,
0.5860579013824463,
0.5643212795257568,
-0.6178874373435974,
0.5166319012641907,
-0.3156503140926361,
0.6001343727111816,
-1.7785975933074951,
0.5095352530479431,
-0.5926830768585205,
-0.3436926603317261,
-0.6299474835395813,
0.3575829565525055,
-0.005836155731230974,
-0.1750117987394333,
-0.5637869238853455,
0.5245367884635925,
-0.5414845943450928,
0.3033025860786438,
-0.13735096156597137,
-0.3976021707057953,
-0.13025681674480438,
0.3964751958847046,
-0.22690850496292114,
0.8982680439949036,
0.45808932185173035,
-0.5563211441040039,
0.504939079284668,
0.3655722439289093,
-0.19511523842811584,
0.2768195569515228,
-0.9490565061569214,
0.017696578055620193,
0.20012713968753815,
-0.08481398969888687,
-0.950869619846344,
-0.5534226298332214,
0.6525301337242126,
-0.6690584421157837,
0.3369804620742798,
-0.04802566021680832,
-0.7407460808753967,
-0.36822763085365295,
-0.21676191687583923,
0.2798876166343689,
0.7589291930198669,
-0.39241695404052734,
0.7494850754737854,
0.14594227075576782,
0.058783188462257385,
-0.4523565173149109,
-0.8577619791030884,
0.1501692682504654,
-0.45645102858543396,
-0.5567641854286194,
0.1857127994298935,
0.07315504550933838,
0.033206913620233536,
-0.18933872878551483,
0.2685540020465851,
-0.3141259253025055,
0.23598253726959229,
0.4758681058883667,
0.17632220685482025,
-0.18958780169487,
-0.47161826491355896,
0.11117486655712128,
-0.32614994049072266,
-0.02212023362517357,
0.05864629149436951,
0.7631628513336182,
-0.2699865400791168,
-0.4267682433128357,
-0.8939213156700134,
0.48818638920783997,
0.798846423625946,
-0.296903133392334,
1.15255606174469,
1.0125668048858643,
-0.37501105666160583,
-0.03160281851887703,
-0.16894009709358215,
0.02388855442404747,
-0.46356523036956787,
0.3321932852268219,
-0.6789458394050598,
-0.44494298100471497,
0.5772326588630676,
-0.31374651193618774,
-0.09537933021783829,
1.0857126712799072,
1.0591117143630981,
-0.15539959073066711,
1.3976126909255981,
0.7564821243286133,
-0.07320200651884079,
0.12431932985782623,
-0.475807785987854,
0.4126895070075989,
-0.95567786693573,
-0.3183518648147583,
-0.4298994243144989,
-0.22564981877803802,
-0.6639577746391296,
-0.43488040566444397,
0.41619980335235596,
0.22864127159118652,
-0.26891300082206726,
0.502192497253418,
-0.7957606911659241,
0.2781018614768982,
0.6020466089248657,
-0.08026861399412155,
0.29833707213401794,
-0.10507804155349731,
-0.635783314704895,
-0.19296923279762268,
-0.6089615821838379,
-0.8705485463142395,
1.0645837783813477,
0.31653881072998047,
0.5480731129646301,
0.3334387242794037,
0.7854933142662048,
0.21554765105247498,
0.18718382716178894,
-0.36935171484947205,
0.5231383442878723,
-0.182857945561409,
-0.9850255250930786,
-0.15818437933921814,
-0.2247559130191803,
-0.9198145270347595,
0.3709716498851776,
-0.028789818286895752,
-0.5532867908477783,
-0.07918848842382431,
-0.1300661414861679,
-0.21311451494693756,
0.48827481269836426,
-0.4728105962276459,
1.2263802289962769,
-0.44532206654548645,
-0.24978169798851013,
-0.44455385208129883,
-0.7481945157051086,
0.7513967752456665,
-0.0003698024374898523,
0.5396770238876343,
-0.030787304043769836,
0.013320831581950188,
0.8973574042320251,
-0.569746196269989,
0.6868624091148376,
-0.007272662594914436,
0.30632373690605164,
0.2065148949623108,
0.27720755338668823,
0.3329906165599823,
-0.006743988487869501,
-0.09005966782569885,
0.35045376420021057,
0.4590946435928345,
-0.5735266208648682,
-0.23988352715969086,
0.8674587607383728,
-0.887259304523468,
-0.4977581202983856,
-1.0232423543930054,
-0.44537514448165894,
0.46364259719848633,
0.8333560824394226,
0.3075829744338989,
0.2927761971950531,
-0.23777805268764496,
0.2318456470966339,
0.18719834089279175,
-0.5621118545532227,
0.41767576336860657,
0.5372934341430664,
-0.5389651656150818,
-0.587073802947998,
0.8406531810760498,
-0.06328961998224258,
0.007945552468299866,
0.2751117944717407,
0.14701682329177856,
-0.16577942669391632,
-0.3883751928806305,
-0.9015495181083679,
0.2717345356941223,
-0.4749152362346649,
-0.18935619294643402,
-0.5384603142738342,
-0.28126710653305054,
-0.42922860383987427,
-0.005711284466087818,
-0.19064553081989288,
-0.5049984455108643,
-0.20421749353408813,
0.10585352033376694,
0.3381830155849457,
0.7092804312705994,
-0.12688416242599487,
0.5087884664535522,
-0.9312748312950134,
0.4744110703468323,
-0.26515597105026245,
0.024637270718812943,
-0.20551182329654694,
-0.6705687642097473,
-0.7134647965431213,
0.139558807015419,
-0.644841194152832,
-1.1809004545211792,
1.2078756093978882,
0.1828545331954956,
0.41374751925468445,
0.5712045431137085,
0.11973048746585846,
0.7235702872276306,
-0.5990227460861206,
0.9885290861129761,
0.052368856966495514,
-0.9335301518440247,
0.6334804892539978,
-0.5209596157073975,
0.2823755443096161,
0.3993107080459595,
0.47957730293273926,
-0.5765967965126038,
-0.22893854975700378,
-0.6387233734130859,
-0.8232159614562988,
0.9477089643478394,
0.4847734272480011,
0.21274934709072113,
0.1751023381948471,
0.16371729969978333,
-0.2784484922885895,
0.2722879946231842,
-0.7400727272033691,
-0.5943619608879089,
-0.2282244861125946,
-0.3635018467903137,
0.14101406931877136,
-0.4165806770324707,
-0.19412392377853394,
-0.5057540535926819,
0.9953574538230896,
0.4024103283882141,
0.4777604341506958,
0.16371743381023407,
-0.1286066323518753,
-0.14096346497535706,
0.3314386010169983,
0.735209584236145,
0.3110508918762207,
-0.19478701055049896,
0.06842350959777832,
0.44114816188812256,
-0.5502772927284241,
0.04485728591680527,
-0.031132275238633156,
-0.36197131872177124,
0.20213158428668976,
0.5190035104751587,
0.8676949143409729,
-0.05856114998459816,
-0.4913640022277832,
0.48209115862846375,
-0.1684872806072235,
0.0026885245461016893,
-0.7560731768608093,
-0.0714949369430542,
0.19937558472156525,
0.1706853210926056,
0.21169732511043549,
0.09592385590076447,
0.358365923166275,
-0.40722042322158813,
0.041581716388463974,
0.2818085849285126,
-0.3127615749835968,
-0.30318936705589294,
0.9869260191917419,
-0.02021489478647709,
-0.34033191204071045,
0.6804203987121582,
-0.04580662399530411,
-1.055773377418518,
0.6636269688606262,
0.4908255338668823,
1.0193703174591064,
-0.5381598472595215,
-0.028565824031829834,
0.8598716855049133,
0.34476563334465027,
-0.05042474716901779,
0.5778627991676331,
-0.05681703984737396,
-0.273606538772583,
-0.32253676652908325,
-1.0051426887512207,
-0.2636227011680603,
-0.010401107370853424,
-0.7688356637954712,
0.30631959438323975,
-0.6209693551063538,
-0.392456978559494,
-0.12644007802009583,
0.23915885388851166,
-0.526284396648407,
0.4678792357444763,
-0.09451077878475189,
0.7281833291053772,
-0.7855966091156006,
1.2377264499664307,
1.0581806898117065,
-0.6188163161277771,
-0.9528434872627258,
-0.07866611331701279,
-0.21081723272800446,
-0.6985911130905151,
0.9763452410697937,
0.2110910564661026,
0.08060196042060852,
0.09589128196239471,
-0.48414912819862366,
-1.0718953609466553,
1.100029468536377,
-0.25110310316085815,
-0.4435659348964691,
0.18671618402004242,
0.34986335039138794,
0.4546854496002197,
-0.3750995099544525,
0.43499067425727844,
0.24584048986434937,
0.49204662442207336,
-0.07851069420576096,
-1.0129812955856323,
0.3982980251312256,
-0.6743232011795044,
0.1496460884809494,
0.10659341514110565,
-0.6334579586982727,
1.2865666151046753,
-0.29029324650764465,
-0.29931962490081787,
0.5258959531784058,
0.6944125890731812,
0.16443677246570587,
0.27940261363983154,
0.29817673563957214,
0.7050693035125732,
0.2684849798679352,
-0.06293594837188721,
1.1608076095581055,
-0.8518408536911011,
0.6605632901191711,
0.6136949062347412,
0.17748768627643585,
0.7827332615852356,
0.6809658408164978,
-0.3805953860282898,
0.9852691888809204,
0.5928549766540527,
-0.45205312967300415,
0.6060280203819275,
0.007848670706152916,
-0.1736268252134323,
-0.5040190815925598,
0.01310649048537016,
-0.5449166893959045,
0.2239120602607727,
0.24766437709331512,
-0.6715068221092224,
-0.1900273561477661,
-0.14544175565242767,
-0.03957073390483856,
0.05074165761470795,
-0.025440478697419167,
0.5786051750183105,
0.19236022233963013,
-0.49185264110565186,
0.8520704507827759,
0.6237147450447083,
0.4092911183834076,
-0.58470618724823,
-0.13748008012771606,
-0.0017618222627788782,
0.5221116542816162,
-0.34210291504859924,
-0.6128892302513123,
0.7031081318855286,
0.3030999004840851,
-0.314580500125885,
-0.22862204909324646,
0.7746866345405579,
-0.1017877534031868,
-1.1497023105621338,
0.07130343466997147,
0.4553643763065338,
0.3082110583782196,
0.10814310610294342,
-1.1447504758834839,
-0.0393046960234642,
0.2643590569496155,
-0.6129558682441711,
0.21695838868618011,
0.45180538296699524,
-0.14662764966487885,
0.7108442187309265,
1.1522786617279053,
0.14169245958328247,
-0.01563904620707035,
-0.19855472445487976,
0.8683810830116272,
-1.0959129333496094,
-0.4298376441001892,
-1.1410503387451172,
0.7914243340492249,
-0.15454573929309845,
-0.3504571318626404,
1.1888679265975952,
0.9328045845031738,
0.6750396490097046,
-0.4686014950275421,
0.7204005122184753,
-0.23612332344055176,
1.0211524963378906,
-0.4115208685398102,
0.927460789680481,
-0.8052036166191101,
0.15225520730018616,
-0.2867302894592285,
-0.5649005770683289,
-0.3843478262424469,
1.0301504135131836,
-0.35571417212486267,
0.03651198372244835,
0.586819589138031,
0.8595553636550903,
-0.04882342740893364,
-0.2916247546672821,
0.32933586835861206,
0.42993372678756714,
0.03860051929950714,
0.646416187286377,
0.9128804206848145,
-0.7019686698913574,
0.4195699989795685,
-0.5470077395439148,
0.027586443349719048,
-0.23488552868366241,
-0.570022702217102,
-1.241424560546875,
-0.44336435198783875,
-0.0433165542781353,
-0.6122235059738159,
-0.09327373653650284,
1.0206681489944458,
0.506463885307312,
-1.2425537109375,
-0.5092132687568665,
0.007774077355861664,
0.2873680293560028,
-0.37507501244544983,
-0.2900932729244232,
0.41412708163261414,
-0.1565490961074829,
-1.0041178464889526,
0.049403540790081024,
-0.046519890427589417,
0.08388149738311768,
-0.01652231067419052,
-0.1162576675415039,
-0.3950752317905426,
0.1346459984779358,
0.1996658593416214,
0.08605721592903137,
-0.7885151505470276,
0.21272796392440796,
-0.013446862809360027,
-0.4440321624279022,
-0.04983954876661301,
0.4820508360862732,
-0.4688003957271576,
0.14521586894989014,
0.605476438999176,
0.19884216785430908,
0.626388669013977,
-0.0011000673985108733,
0.6062538027763367,
-0.24547700583934784,
0.17596718668937683,
-0.027498945593833923,
0.2455904483795166,
0.3400527536869049,
-0.3475741147994995,
0.4641851484775543,
0.5443320870399475,
-0.5222554802894592,
-0.9060360789299011,
0.10848663747310638,
-0.997785210609436,
-0.37065404653549194,
1.0952115058898926,
-0.17620156705379486,
-0.5126844644546509,
0.24414081871509552,
-0.5838642716407776,
0.6032018065452576,
-0.15544961392879486,
0.5848289132118225,
0.7379673719406128,
0.054363105446100235,
-0.041617099195718765,
-0.939061164855957,
0.3850654363632202,
0.4570714235305786,
-0.43845510482788086,
-0.37221378087997437,
0.08062189817428589,
0.4249334931373596,
0.2215534746646881,
0.31068912148475647,
-0.2209446281194687,
0.20343846082687378,
-0.1770780235528946,
0.3837599456310272,
-0.3002333343029022,
0.15317201614379883,
-0.39960843324661255,
0.006529853213578463,
-0.08389703184366226,
-0.5671034455299377
] |
meta-llama/Llama-2-13b-hf | meta-llama | "2023-11-13T16:32:49Z" | 90,008 | 450 | transformers | [
"transformers",
"pytorch",
"safetensors",
"llama",
"text-generation",
"facebook",
"meta",
"llama-2",
"en",
"arxiv:2307.09288",
"has_space",
"text-generation-inference",
"region:us"
] | text-generation | "2023-07-13T15:49:56Z" | ---
extra_gated_heading: Access Llama 2 on Hugging Face
extra_gated_description: >-
This is a form to enable access to Llama 2 on Hugging Face after you have been
granted access from Meta. Please visit the [Meta website](https://ai.meta.com/resources/models-and-libraries/llama-downloads) and accept our
license terms and acceptable use policy before submitting this form. Requests
will be processed in 1-2 days.
extra_gated_prompt: "**Your Hugging Face account email address MUST match the email you provide on the Meta website, or your request will not be approved.**"
extra_gated_button_content: Submit
extra_gated_fields:
I agree to share my name, email address and username with Meta and confirm that I have already been granted download access on the Meta website: checkbox
language:
- en
pipeline_tag: text-generation
inference: false
tags:
- facebook
- meta
- pytorch
- llama
- llama-2
---
# **Llama 2**
Llama 2 is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 70 billion parameters. This is the repository for the 13B pretrained model, converted for the Hugging Face Transformers format. Links to other models can be found in the index at the bottom.
## Model Details
*Note: Use of this model is governed by the Meta license. In order to download the model weights and tokenizer, please visit the [website](https://ai.meta.com/resources/models-and-libraries/llama-downloads/) and accept our License before requesting access here.*
Meta developed and publicly released the Llama 2 family of large language models (LLMs), a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 70 billion parameters. Our fine-tuned LLMs, called Llama-2-Chat, are optimized for dialogue use cases. Llama-2-Chat models outperform open-source chat models on most benchmarks we tested, and in our human evaluations for helpfulness and safety, are on par with some popular closed-source models like ChatGPT and PaLM.
**Model Developers** Meta
**Variations** Llama 2 comes in a range of parameter sizes — 7B, 13B, and 70B — as well as pretrained and fine-tuned variations.
**Input** Models input text only.
**Output** Models generate text only.
**Model Architecture** Llama 2 is an auto-regressive language model that uses an optimized transformer architecture. The tuned versions use supervised fine-tuning (SFT) and reinforcement learning with human feedback (RLHF) to align to human preferences for helpfulness and safety.
||Training Data|Params|Content Length|GQA|Tokens|LR|
|---|---|---|---|---|---|---|
|Llama 2|*A new mix of publicly available online data*|7B|4k|✗|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/meta-llama/Llama-2-7b) | [Link](https://huggingface.co/meta-llama/Llama-2-7b-hf) | [Link](https://huggingface.co/meta-llama/Llama-2-7b-chat) | [Link](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf)|
|13B| [Link](https://huggingface.co/meta-llama/Llama-2-13b) | [Link](https://huggingface.co/meta-llama/Llama-2-13b-hf) | [Link](https://huggingface.co/meta-llama/Llama-2-13b-chat) | [Link](https://huggingface.co/meta-llama/Llama-2-13b-chat-hf)|
|70B| [Link](https://huggingface.co/meta-llama/Llama-2-70b) | [Link](https://huggingface.co/meta-llama/Llama-2-70b-hf) | [Link](https://huggingface.co/meta-llama/Llama-2-70b-chat) | [Link](https://huggingface.co/meta-llama/Llama-2-70b-chat-hf)| | [
-0.2223382443189621,
-0.7215827703475952,
0.38010919094085693,
0.206135094165802,
-0.3836880922317505,
0.24464204907417297,
-0.05848738178610802,
-0.7660358548164368,
0.07296165823936462,
0.3066508173942566,
-0.7250076532363892,
-0.5679712891578674,
-0.6913701891899109,
0.07135531306266785,
-0.2244655042886734,
1.09470534324646,
-0.016867700964212418,
-0.29249900579452515,
-0.12398014217615128,
0.09560950845479965,
-0.4959183931350708,
-0.40353521704673767,
-0.5408106446266174,
-0.43453148007392883,
0.39737841486930847,
0.49567535519599915,
0.6142555475234985,
0.6644877195358276,
0.5603367686271667,
0.24924856424331665,
-0.2619156539440155,
0.22681112587451935,
-0.7325180768966675,
-0.27290308475494385,
0.13054980337619781,
-0.503402590751648,
-0.6970859169960022,
0.16904979944229126,
0.36880722641944885,
0.1789376437664032,
-0.2918318510055542,
0.5398060083389282,
0.0795651227235794,
0.487043172121048,
-0.5713430643081665,
0.17001967132091522,
-0.7490247488021851,
0.03795619681477547,
-0.2312764674425125,
-0.08357242494821548,
-0.19705528020858765,
-0.30177801847457886,
-0.197523832321167,
-0.8464266061782837,
-0.1201050877571106,
0.07994887977838516,
1.0724364519119263,
0.6642281413078308,
-0.46352750062942505,
-0.1177256852388382,
-0.2955453395843506,
0.9695948362350464,
-0.8644026517868042,
0.05886758491396904,
0.5971412062644958,
0.29270920157432556,
-0.227952241897583,
-0.7812632918357849,
-0.6570549011230469,
-0.14142869412899017,
0.06494376808404922,
0.36466458439826965,
-0.42087864875793457,
0.004247765988111496,
0.17168498039245605,
0.3859155476093292,
-0.5880542397499084,
0.5924667716026306,
-0.5208303332328796,
-0.17610526084899902,
1.07625412940979,
0.24504989385604858,
-0.00851624459028244,
-0.04287714138627052,
-0.5044699907302856,
-0.29669272899627686,
-0.8145267367362976,
0.17843319475650787,
0.5006822943687439,
-0.04306548461318016,
-0.48531806468963623,
0.6332945823669434,
-0.4207048714160919,
0.29094186425209045,
0.026863958686590195,
-0.5242130160331726,
0.49504542350769043,
-0.4828765094280243,
-0.27802225947380066,
-0.1326332688331604,
0.9153991341590881,
0.7419896125793457,
0.16431914269924164,
0.10420233756303787,
-0.06227312609553337,
0.11976093053817749,
-0.013495156541466713,
-0.8410269021987915,
-0.05279117822647095,
0.2482510507106781,
-0.3838643431663513,
-0.6085875034332275,
-0.3092446029186249,
-0.7610861659049988,
-0.16196899116039276,
-0.10110204666852951,
0.25431811809539795,
-0.04147392138838768,
-0.3967406451702118,
0.11741720885038376,
0.052561018615961075,
0.5667170882225037,
0.2153194695711136,
-0.9717473983764648,
0.23085586726665497,
0.5758993625640869,
0.7999444007873535,
-0.25253021717071533,
-0.36801376938819885,
0.015149010345339775,
-0.02732192352414131,
-0.32730358839035034,
0.9268730282783508,
-0.3599224090576172,
-0.546461820602417,
-0.22863233089447021,
-0.025189649313688278,
0.1660177856683731,
-0.525123119354248,
0.4333195388317108,
-0.40400177240371704,
0.18430089950561523,
-0.3390335738658905,
-0.3840807378292084,
-0.33608129620552063,
0.20131747424602509,
-0.39564618468284607,
1.4886969327926636,
0.12161780148744583,
-0.49824902415275574,
0.31248223781585693,
-0.6919680833816528,
-0.18890368938446045,
-0.20848116278648376,
0.0991717278957367,
-0.5397615432739258,
-0.2759973108768463,
0.13230647146701813,
0.3707203269004822,
-0.6602654457092285,
0.48306864500045776,
-0.20766277611255646,
-0.4457528293132782,
0.04614454135298729,
-0.42339104413986206,
0.8610982298851013,
0.2977667450904846,
-0.47471311688423157,
0.07245541363954544,
-0.8438809514045715,
0.06467963010072708,
0.4680958688259125,
-0.48839128017425537,
0.28052854537963867,
0.07938999682664871,
-0.11810708045959473,
0.19561783969402313,
0.505824863910675,
-0.37340018153190613,
0.16893689334392548,
-0.3219738304615021,
0.5122939944267273,
0.768634021282196,
0.04439383000135422,
0.17203958332538605,
-0.5281907320022583,
0.5253176093101501,
-0.03947337344288826,
0.3974916934967041,
0.02022399567067623,
-0.7311357259750366,
-1.0467803478240967,
-0.1891968548297882,
-0.03927130252122879,
0.8665756583213806,
-0.2612089216709137,
0.717920184135437,
-0.013802614063024521,
-0.7634921669960022,
-0.4244818389415741,
0.37739649415016174,
0.6931218504905701,
0.5149309039115906,
0.4370540678501129,
-0.2907290458679199,
-0.6308212876319885,
-1.0346020460128784,
0.05935123190283775,
-0.45525988936424255,
-0.02690097875893116,
0.3624365031719208,
0.6671695709228516,
-0.3461867570877075,
0.7461195588111877,
-0.5554727911949158,
-0.1812288761138916,
-0.26947614550590515,
-0.13680365681648254,
0.05881914496421814,
0.3600102365016937,
0.6724172830581665,
-0.39150646328926086,
-0.22125741839408875,
-0.12979863584041595,
-0.9205201268196106,
-0.10780231654644012,
0.11911636590957642,
-0.22016401588916779,
0.23989488184452057,
0.3203211724758148,
-0.6243313550949097,
0.4642096757888794,
0.7289177775382996,
-0.1828019917011261,
0.5346364378929138,
0.004049757961183786,
-0.18028022348880768,
-1.1036523580551147,
0.03475895896553993,
-0.21429231762886047,
0.03573125973343849,
-0.44497573375701904,
-0.04154583811759949,
-0.2152826339006424,
0.08575744926929474,
-0.6215887665748596,
0.6089026927947998,
-0.31381067633628845,
-0.16540712118148804,
-0.13460887968540192,
0.05811558663845062,
0.05956827476620674,
0.6336075067520142,
-0.1293291449546814,
1.095288634300232,
0.4121793210506439,
-0.5990633368492126,
0.2647240459918976,
0.4084266126155853,
-0.5140119194984436,
0.15728677809238434,
-0.9038532972335815,
0.3761901557445526,
0.11836210638284683,
0.5430548787117004,
-1.0071396827697754,
-0.3937469720840454,
0.32984834909439087,
-0.44642746448516846,
0.10044603794813156,
0.2417677938938141,
-0.5669302344322205,
-0.41286700963974,
-0.43979233503341675,
0.31873995065689087,
0.8420838117599487,
-0.465885728597641,
0.17676152288913727,
0.3915162682533264,
0.029668711125850677,
-0.7053747177124023,
-0.8556943535804749,
0.060381703078746796,
-0.3689696788787842,
-0.5462363958358765,
0.30858901143074036,
-0.19019748270511627,
-0.24025431275367737,
-0.267427533864975,
0.0709853246808052,
-0.00540182925760746,
0.38790619373321533,
0.3762706518173218,
0.37642914056777954,
-0.12347293645143509,
-0.022739851847290993,
0.14618393778800964,
-0.21062006056308746,
0.037369903177022934,
0.20647041499614716,
0.6088647246360779,
-0.17571000754833221,
-0.2288038432598114,
-0.7592286467552185,
0.03905770555138588,
0.2875088155269623,
-0.26247406005859375,
0.6258955001831055,
0.440983384847641,
-0.22356419265270233,
0.23835550248622894,
-0.7964558601379395,
-0.11592596024274826,
-0.5491712093353271,
0.5575535297393799,
-0.2198210060596466,
-0.8549606800079346,
0.5428292751312256,
-0.008504791185259819,
0.4473435580730438,
0.760606586933136,
0.642795979976654,
-0.09012944251298904,
0.8166463971138,
0.5863837003707886,
-0.07041164487600327,
0.35051223635673523,
-0.5014688372612,
-0.10560374706983566,
-0.9615431427955627,
-0.6367365717887878,
-0.32737356424331665,
-0.4506753087043762,
-0.6775569915771484,
-0.4290984272956848,
0.2659668028354645,
0.1942838728427887,
-0.7002742886543274,
0.33106371760368347,
-0.5994595885276794,
0.5883883833885193,
0.5459870100021362,
0.13761325180530548,
0.3052830696105957,
0.11373022198677063,
0.14819876849651337,
0.049641288816928864,
-0.5270659327507019,
-0.7581724524497986,
1.5076037645339966,
0.43922561407089233,
0.4591408371925354,
0.10512574762105942,
0.6943925023078918,
0.14346379041671753,
0.3290219306945801,
-0.7225022315979004,
0.6679785251617432,
0.05099939554929733,
-0.7341583967208862,
-0.15929755568504333,
-0.11702731251716614,
-0.9152094721794128,
0.14963796734809875,
-0.2127152532339096,
-0.8059646487236023,
0.02606942504644394,
-0.025894053280353546,
-0.37460950016975403,
0.29923638701438904,
-0.6850443482398987,
0.6145365238189697,
-0.5790491700172424,
-0.3166637122631073,
-0.3618274927139282,
-0.8208298087120056,
0.7011910080909729,
-0.20871418714523315,
0.0972408875823021,
-0.5101937651634216,
-0.26991692185401917,
0.9231716394424438,
-0.361368328332901,
1.0270363092422485,
-0.05035017430782318,
-0.10500428080558777,
0.588875412940979,
-0.1855381578207016,
0.46130210161209106,
0.0309054646641016,
-0.27430057525634766,
0.6814482808113098,
-0.1337767392396927,
-0.32878488302230835,
-0.15861164033412933,
0.545600175857544,
-1.2471078634262085,
-0.8059960007667542,
-0.5004482269287109,
-0.5188177227973938,
-0.04490673914551735,
0.08713299036026001,
0.5260619521141052,
-0.0991046205163002,
-0.034930769354104996,
0.1271992176771164,
0.46562856435775757,
-0.521480143070221,
0.4800095558166504,
0.567201554775238,
-0.10615662485361099,
-0.471383273601532,
0.669205367565155,
0.04979399964213371,
0.3726840019226074,
0.23223142325878143,
0.042837806046009064,
-0.42100951075553894,
-0.433467835187912,
-0.5153679847717285,
0.2838425636291504,
-0.4758993685245514,
-0.4992993474006653,
-0.5522210001945496,
-0.365413635969162,
-0.3357883095741272,
-0.07462780177593231,
-0.4542488157749176,
-0.4483121335506439,
-0.7640369534492493,
-0.396596759557724,
0.5370224714279175,
0.8355153799057007,
-0.005684848874807358,
0.6621633768081665,
-0.3313375413417816,
0.18783210217952728,
0.39091649651527405,
0.19108158349990845,
-0.021130815148353577,
-0.7924298644065857,
0.06466621160507202,
0.1332157999277115,
-0.7826510071754456,
-0.6304447054862976,
0.24039578437805176,
0.28686246275901794,
0.4767817258834839,
0.48988696932792664,
-0.07955487817525864,
0.7982738018035889,
-0.3660026490688324,
1.1177233457565308,
0.37195631861686707,
-0.677041232585907,
0.7196230888366699,
-0.20993933081626892,
0.03855228051543236,
0.6528608202934265,
0.2714819014072418,
-0.08139251917600632,
-0.1627873033285141,
-0.6519747972488403,
-0.6880561709403992,
0.825023353099823,
0.24328722059726715,
0.19205978512763977,
0.060325589030981064,
0.46609607338905334,
0.05887499079108238,
0.10843013226985931,
-0.8408181071281433,
-0.3166700601577759,
-0.27928948402404785,
-0.10483597964048386,
-0.20201651751995087,
-0.5209048986434937,
-0.06954542547464371,
-0.32338544726371765,
0.6496562957763672,
0.05960444360971451,
0.3541039228439331,
-0.1431906372308731,
0.020483963191509247,
-0.10499749332666397,
0.04384597763419151,
0.7426354289054871,
0.503695011138916,
-0.2636622488498688,
-0.15430405735969543,
0.6578966379165649,
-0.6519219279289246,
0.3548230826854706,
0.010603302158415318,
-0.12655968964099884,
-0.3807320296764374,
0.41686680912971497,
0.9060347676277161,
0.2681790292263031,
-0.7221276164054871,
0.34919628500938416,
0.14670948684215546,
-0.3799358308315277,
-0.4297717809677124,
0.3716219365596771,
0.09172027558088303,
0.33821985125541687,
0.2842971086502075,
-0.14584210515022278,
0.0758306011557579,
-0.5171554684638977,
-0.12345017492771149,
0.39362043142318726,
0.12228581309318542,
-0.4355883002281189,
1.021133303642273,
0.3268396556377411,
-0.2954995036125183,
0.5454285144805908,
-0.17610801756381989,
-0.37062200903892517,
0.925617516040802,
0.6484087109565735,
0.6649203300476074,
-0.2780749499797821,
0.12154188752174377,
0.7291285395622253,
0.4638296961784363,
-0.2350166290998459,
0.2344300001859665,
-0.013507198542356491,
-0.503788948059082,
-0.2197961062192917,
-0.7135643362998962,
-0.4794042706489563,
0.36659154295921326,
-0.5788941383361816,
0.3191719353199005,
-0.6413572430610657,
-0.2786599397659302,
-0.3246285021305084,
0.46883124113082886,
-0.6969677805900574,
0.21064577996730804,
0.11337601393461227,
0.9460487961769104,
-0.7357311844825745,
0.7847437858581543,
0.5046388506889343,
-0.5060349702835083,
-0.9079112410545349,
-0.3051649034023285,
0.20666125416755676,
-1.2705814838409424,
0.5424433350563049,
0.3821382224559784,
-0.0646614283323288,
0.13065597414970398,
-0.7779799103736877,
-1.2428208589553833,
1.735540509223938,
0.46560657024383545,
-0.7762438654899597,
-0.02604757994413376,
0.34829485416412354,
0.5052245855331421,
-0.11473753303289413,
0.46266481280326843,
0.8464083075523376,
0.505431592464447,
0.12794294953346252,
-1.0855239629745483,
0.09722182154655457,
-0.364643931388855,
-0.0318899042904377,
-0.19810396432876587,
-1.3415580987930298,
0.8278254866600037,
-0.4048072099685669,
-0.24072954058647156,
0.2236832231283188,
0.6599669456481934,
0.7031844854354858,
0.5594661235809326,
0.3569180369377136,
0.8094444870948792,
0.9324344396591187,
-0.03389611467719078,
1.1345888376235962,
-0.3729730248451233,
0.186697855591774,
0.9129763245582581,
-0.3047647476196289,
0.9947532415390015,
0.24343007802963257,
-0.6112449765205383,
0.6301249861717224,
1.036181092262268,
-0.030011260882019997,
0.6093816161155701,
0.06414298713207245,
-0.16631002724170685,
-0.18878354132175446,
-0.1697121262550354,
-0.6716752052307129,
0.5277527570724487,
0.25610482692718506,
-0.14094717800617218,
-0.031453631818294525,
-0.3397064208984375,
0.23489563167095184,
-0.33887961506843567,
-0.0036693315487354994,
0.826357901096344,
0.1680097132921219,
-0.6270886063575745,
0.9097861051559448,
0.0435745045542717,
0.8728358149528503,
-0.6703645586967468,
0.09922577440738678,
-0.5379489660263062,
0.012511474080383778,
-0.38032346963882446,
-0.7236083745956421,
0.0739462599158287,
0.3783125579357147,
-0.0018756792414933443,
-0.09882351011037827,
0.5606679916381836,
0.041210517287254333,
-0.5753192901611328,
0.3610253632068634,
0.2852850556373596,
0.3641689419746399,
0.21836026012897491,
-0.6904783844947815,
0.18769849836826324,
0.09323394298553467,
-0.5581368207931519,
0.39239025115966797,
0.03611382469534874,
-0.06090717017650604,
0.8136792182922363,
0.7577917575836182,
-0.2143937647342682,
0.13935501873493195,
-0.2200395166873932,
1.0232213735580444,
-0.5061072111129761,
-0.2032642960548401,
-0.7789839506149292,
0.5423764586448669,
0.04805494099855423,
-0.7266706824302673,
0.5576120018959045,
0.6614126563072205,
0.7109272480010986,
0.2771008610725403,
0.6639924645423889,
0.07219814509153366,
0.32568350434303284,
-0.5367277264595032,
0.6292232275009155,
-0.7922914028167725,
0.3862719237804413,
0.08060305565595627,
-0.9996517896652222,
-0.06374093890190125,
0.6841061115264893,
-0.24518321454524994,
0.05107085034251213,
0.37782225012779236,
0.8754363656044006,
0.1730877310037613,
-0.16782140731811523,
0.1227574497461319,
0.1790400743484497,
0.35947588086128235,
0.9129789471626282,
0.8653565645217896,
-0.6503655910491943,
0.7253698706626892,
-0.39609405398368835,
-0.24737970530986786,
-0.28404200077056885,
-0.7511411905288696,
-0.9983679056167603,
-0.27722400426864624,
-0.2511596381664276,
-0.15921826660633087,
0.06236246973276138,
0.7631788849830627,
0.5192726254463196,
-0.5976693034172058,
-0.30222222208976746,
-0.07264524698257446,
-0.09219712018966675,
0.03855329006910324,
-0.16197600960731506,
0.34560391306877136,
-0.12512074410915375,
-0.5943218469619751,
0.49004751443862915,
0.006143262144178152,
0.2109813392162323,
-0.32975319027900696,
-0.2793363034725189,
-0.19838504493236542,
0.14849239587783813,
0.6299563646316528,
0.28873538970947266,
-0.9451168775558472,
-0.2324378788471222,
0.04436936974525452,
-0.1507260650396347,
0.1284361332654953,
0.016625985503196716,
-0.7890917658805847,
0.09206468611955643,
0.14541596174240112,
0.3922645151615143,
0.6823013424873352,
0.06056782603263855,
0.056412264704704285,
-0.5308935046195984,
0.4695188105106354,
0.008244771510362625,
0.14238665997982025,
0.3093259036540985,
-0.4174206256866455,
0.8116735816001892,
0.15084512531757355,
-0.7167588472366333,
-0.9729763269424438,
0.11209464073181152,
-1.0684494972229004,
-0.0024029973428696394,
1.4084147214889526,
0.010665751062333584,
-0.12250591069459915,
0.20147624611854553,
-0.21553783118724823,
0.3929395377635956,
-0.38373270630836487,
0.8233948349952698,
0.5741522312164307,
-0.08012121915817261,
-0.09828081727027893,
-0.8051401972770691,
0.3575572967529297,
0.40393751859664917,
-1.1167665719985962,
-0.2611631751060486,
0.46002253890037537,
0.5005974769592285,
-0.09912983328104019,
0.7051748037338257,
0.020606815814971924,
0.23760220408439636,
0.07647836953401566,
0.1093939021229744,
-0.2541074752807617,
-0.15256339311599731,
-0.09702413529157639,
-0.27125829458236694,
-0.055835675448179245,
-0.23039889335632324
] |
setu4993/smaller-LaBSE | setu4993 | "2023-10-19T06:24:02Z" | 89,868 | 12 | transformers | [
"transformers",
"pytorch",
"tf",
"jax",
"safetensors",
"bert",
"feature-extraction",
"sentence_embedding",
"multilingual",
"google",
"sentence-similarity",
"labse",
"ar",
"de",
"en",
"es",
"fr",
"it",
"ja",
"ko",
"nl",
"pl",
"pt",
"ru",
"th",
"tr",
"zh",
"dataset:CommonCrawl",
"dataset:Wikipedia",
"arxiv:2010.05609",
"arxiv:2007.01852",
"license:apache-2.0",
"endpoints_compatible",
"region:us"
] | sentence-similarity | "2022-03-02T23:29:05Z" | ---
pipeline_tag: sentence-similarity
language:
- ar
- de
- en
- es
- fr
- it
- ja
- ko
- nl
- pl
- pt
- ru
- th
- tr
- zh
tags:
- bert
- sentence_embedding
- multilingual
- google
- sentence-similarity
- labse
license: apache-2.0
datasets:
- CommonCrawl
- Wikipedia
---
# LaBSE
## Model description
Smaller Language-agnostic BERT Sentence Encoder (LaBSE) is a BERT-based model distilled from the [original LaBSE model](https://huggingface.co/setu4993/LaBSE) to 15 languages (from the original 109 languages) using the techniques described in the paper ['Load What You Need: Smaller Versions of Multilingual BERT'](https://arxiv.org/abs/2010.05609) by [Ukjae Jeong](https://github.com/jeongukjae/).
- Model: [HuggingFace's model hub](https://huggingface.co/setu4993/smaller-LaBSE).
- Original model: [TensorFlow Hub](https://tfhub.dev/jeongukjae/smaller_LaBSE_15lang/1).
- Distillation source: [GitHub](https://github.com/jeongukjae/smaller-labse).
- Conversion from TensorFlow to PyTorch: [GitHub](https://github.com/setu4993/convert-labse-tf-pt).
## Usage
Using the model:
```python
import torch
from transformers import BertModel, BertTokenizerFast
tokenizer = BertTokenizerFast.from_pretrained("setu4993/smaller-LaBSE")
model = BertModel.from_pretrained("setu4993/smaller-LaBSE")
model = model.eval()
english_sentences = [
"dog",
"Puppies are nice.",
"I enjoy taking long walks along the beach with my dog.",
]
english_inputs = tokenizer(english_sentences, return_tensors="pt", padding=True)
with torch.no_grad():
english_outputs = model(**english_inputs)
```
To get the sentence embeddings, use the pooler output:
```python
english_embeddings = english_outputs.pooler_output
```
Output for other languages:
```python
italian_sentences = [
"cane",
"I cuccioli sono carini.",
"Mi piace fare lunghe passeggiate lungo la spiaggia con il mio cane.",
]
japanese_sentences = ["犬", "子犬はいいです", "私は犬と一緒にビーチを散歩するのが好きです"]
italian_inputs = tokenizer(italian_sentences, return_tensors="pt", padding=True)
japanese_inputs = tokenizer(japanese_sentences, return_tensors="pt", padding=True)
with torch.no_grad():
italian_outputs = model(**italian_inputs)
japanese_outputs = model(**japanese_inputs)
italian_embeddings = italian_outputs.pooler_output
japanese_embeddings = japanese_outputs.pooler_output
```
For similarity between sentences, an L2-norm is recommended before calculating the similarity:
```python
import torch.nn.functional as F
def similarity(embeddings_1, embeddings_2):
normalized_embeddings_1 = F.normalize(embeddings_1, p=2)
normalized_embeddings_2 = F.normalize(embeddings_2, p=2)
return torch.matmul(
normalized_embeddings_1, normalized_embeddings_2.transpose(0, 1)
)
print(similarity(english_embeddings, italian_embeddings))
print(similarity(english_embeddings, japanese_embeddings))
print(similarity(italian_embeddings, japanese_embeddings))
```
## Details
Details about data, training, evaluation and performance metrics are available in the [original paper](https://arxiv.org/abs/2007.01852).
### BibTeX entry and citation info
```bibtex
@misc{feng2020languageagnostic,
title={Language-agnostic BERT Sentence Embedding},
author={Fangxiaoyu Feng and Yinfei Yang and Daniel Cer and Naveen Arivazhagan and Wei Wang},
year={2020},
eprint={2007.01852},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
```
| [
-0.2993796169757843,
-0.7398253679275513,
0.35811132192611694,
0.21376512944698334,
-0.21372614800930023,
-0.25431716442108154,
-0.4574570059776306,
-0.17898182570934296,
0.2988502085208893,
0.03145087510347366,
-0.42853909730911255,
-0.5942453742027283,
-0.6741645336151123,
0.17346160113811493,
-0.1929692029953003,
0.9261041283607483,
-0.16834264993667603,
0.40961676836013794,
0.02126934565603733,
-0.2459218055009842,
-0.13040514290332794,
-0.31883805990219116,
-0.6695421934127808,
-0.44127485156059265,
0.4626460671424866,
-0.06044746935367584,
0.449365496635437,
0.4057691991329193,
0.2187669426202774,
0.39231038093566895,
-0.014601115137338638,
0.0925367921590805,
-0.4408227503299713,
-0.38159072399139404,
0.14492887258529663,
-0.5351101160049438,
-0.11047564446926117,
0.051994942128658295,
0.5422719717025757,
0.5400387048721313,
0.05912822484970093,
-0.050663698464632034,
0.15402726829051971,
0.5083879828453064,
-0.36577868461608887,
0.14454177021980286,
-0.4056403934955597,
0.1537264734506607,
0.030048208311200142,
0.1509680449962616,
-0.6009515523910522,
-0.5426203608512878,
0.10649602860212326,
-0.4638216495513916,
0.3319592773914337,
-0.08886288851499557,
1.3150006532669067,
0.10929253697395325,
-0.19690634310245514,
-0.37614306807518005,
-0.23936665058135986,
0.7795893549919128,
-1.0560548305511475,
0.48269835114479065,
0.24203720688819885,
-0.10564273595809937,
-0.2722896933555603,
-1.0144102573394775,
-0.6645331382751465,
-0.2742149531841278,
-0.3740043342113495,
0.1623525172472,
-0.17019954323768616,
-0.008860591799020767,
0.11619656533002853,
0.36863911151885986,
-0.7473709583282471,
0.05802807956933975,
-0.5260133147239685,
-0.16136348247528076,
0.5886018872261047,
-0.1905546337366104,
0.3439379930496216,
-0.23435339331626892,
-0.2945854663848877,
-0.35867464542388916,
-0.5284976363182068,
0.04227406904101372,
0.21275082230567932,
0.08746106177568436,
-0.3516509234905243,
0.5211967825889587,
0.01790516823530197,
0.5184521079063416,
0.0581107959151268,
0.08638855814933777,
0.657367467880249,
-0.15375176072120667,
-0.3006772994995117,
0.057812295854091644,
1.1702115535736084,
0.20881903171539307,
0.31572529673576355,
-0.237178236246109,
0.02522469498217106,
-0.037823498249053955,
-0.06726188957691193,
-0.9967342615127563,
-0.51302170753479,
0.11921422928571701,
-0.5182494521141052,
-0.2465212196111679,
0.19770212471485138,
-0.485982745885849,
-0.09229224920272827,
0.21232640743255615,
0.6865636110305786,
-0.8739182949066162,
0.0357791893184185,
0.18207748234272003,
-0.2905174493789673,
0.3141750991344452,
-0.0947885811328888,
-0.774138331413269,
0.21379444003105164,
0.4285762310028076,
1.08746337890625,
0.23253868520259857,
-0.5863744616508484,
-0.3850761950016022,
-0.05567927658557892,
-0.12431327998638153,
0.3729609251022339,
-0.3400658071041107,
-0.33732932806015015,
-0.04671061411499977,
0.29722803831100464,
-0.296589195728302,
-0.3285108804702759,
0.40730100870132446,
-0.35816890001296997,
0.5642670392990112,
-0.15315380692481995,
-0.9442062973976135,
-0.17250919342041016,
0.2117108851671219,
-0.6325576305389404,
1.2673372030258179,
0.00006789041799493134,
-0.8690218925476074,
0.2210688441991806,
-0.6030685305595398,
-0.3224430978298187,
-0.1452455222606659,
-0.2475101500749588,
-0.5182273387908936,
0.16798381507396698,
0.44317445158958435,
0.5709636807441711,
-0.06174124404788017,
0.2632255256175995,
-0.24971340596675873,
-0.42362847924232483,
0.3068786561489105,
-0.3375427722930908,
1.23027765750885,
0.19607020914554596,
-0.33829739689826965,
0.09325101226568222,
-0.5260897874832153,
0.023009879514575005,
0.17609821259975433,
-0.2926086485385895,
-0.2783644497394562,
0.0005484115099534392,
0.24117392301559448,
0.14915777742862701,
0.26656320691108704,
-0.8288846611976624,
0.10751331597566605,
-0.6571876406669617,
0.8395002484321594,
0.718649685382843,
-0.13472309708595276,
0.32382330298423767,
-0.4310579001903534,
0.062448564916849136,
-0.036873288452625275,
-0.05232623219490051,
0.10475429147481918,
-0.5509610772132874,
-0.8044388294219971,
-0.570294201374054,
0.5430137515068054,
0.5369415283203125,
-0.7858240008354187,
0.8189151883125305,
-0.5274831652641296,
-0.6581096053123474,
-0.8930220603942871,
0.06840746849775314,
0.37317442893981934,
0.2804068326950073,
0.3791060447692871,
-0.24735885858535767,
-0.5485232472419739,
-0.9970325827598572,
-0.12808312475681305,
-0.0915173664689064,
-0.12942878901958466,
-0.004543299786746502,
0.7842873334884644,
-0.27344492077827454,
0.801002562046051,
-0.5868726372718811,
-0.3084421753883362,
-0.23204606771469116,
0.13123439252376556,
0.35476329922676086,
0.8169003129005432,
0.7847146987915039,
-0.5561813116073608,
-0.6824235916137695,
-0.15303325653076172,
-0.7729030847549438,
0.25440749526023865,
-0.07630842924118042,
-0.12248171120882034,
0.24487391114234924,
0.6051033735275269,
-0.6216892600059509,
0.26703450083732605,
0.49040114879608154,
-0.3116612136363983,
0.3097267150878906,
-0.4547761082649231,
0.16820582747459412,
-1.438645601272583,
0.03320074453949928,
0.0491446778178215,
-0.11621635407209396,
-0.5030492544174194,
0.07986806333065033,
0.03768331930041313,
-0.027400102466344833,
-0.511197566986084,
0.6454054713249207,
-0.5133224725723267,
0.2238934487104416,
0.10442886501550674,
0.2984507381916046,
0.07762453705072403,
0.6330549120903015,
0.08795592933893204,
0.7588675618171692,
0.5533180236816406,
-0.38994404673576355,
0.3013068735599518,
0.48232150077819824,
-0.6108077764511108,
0.15438690781593323,
-0.8387397527694702,
0.0790327712893486,
0.06584363430738449,
0.19282136857509613,
-1.0296883583068848,
-0.07975560426712036,
0.07795597612857819,
-0.7647578716278076,
0.16258268058300018,
0.14680686593055725,
-0.7986886501312256,
-0.3878048360347748,
-0.6315874457359314,
0.18370448052883148,
0.7337275147438049,
-0.6736953258514404,
0.41685667634010315,
-0.06089276447892189,
-0.008207481354475021,
-0.5683838129043579,
-1.2102493047714233,
-0.2508198916912079,
-0.15119808912277222,
-0.6419357657432556,
0.42601338028907776,
-0.03285399079322815,
0.10781511664390564,
0.2987681031227112,
0.19867274165153503,
-0.07029184699058533,
-0.10282718390226364,
-0.003057581139728427,
0.25153031945228577,
-0.24540860950946808,
0.2662545144557953,
0.13087275624275208,
0.13971073925495148,
0.0054803406819701195,
-0.11687546223402023,
0.79888916015625,
-0.3194166421890259,
-0.06656771153211594,
-0.4795609414577484,
0.2118232250213623,
0.2630466818809509,
-0.03859555348753929,
1.0786508321762085,
1.2784202098846436,
-0.5228180885314941,
0.1275583654642105,
-0.5530989766120911,
-0.3908800482749939,
-0.5561216473579407,
0.6476098299026489,
-0.5221381187438965,
-0.9680168628692627,
0.6371048092842102,
0.19607478380203247,
0.00955655612051487,
0.5623202323913574,
0.6198145151138306,
-0.17073889076709747,
0.8426018953323364,
0.5786033868789673,
-0.22239503264427185,
0.5890997052192688,
-0.5774585008621216,
0.36066582798957825,
-0.8748303651809692,
-0.2229708582162857,
-0.3956063389778137,
-0.4036770761013031,
-0.887761116027832,
-0.4918600618839264,
0.28410059213638306,
0.08427039533853531,
-0.35855987668037415,
0.42446115612983704,
-0.49632275104522705,
0.4167924225330353,
0.6483381986618042,
0.2948545515537262,
-0.08318541944026947,
0.20255045592784882,
-0.3157189190387726,
-0.2198212742805481,
-0.8225963711738586,
-0.5335353016853333,
0.9516778588294983,
0.3575899600982666,
0.5133613348007202,
0.10441580414772034,
0.9826561212539673,
0.13484787940979004,
0.16606862843036652,
-0.815534770488739,
0.5801244974136353,
-0.4380565583705902,
-0.5666235685348511,
-0.19824664294719696,
-0.4988095462322235,
-1.1003128290176392,
0.32457786798477173,
-0.14157262444496155,
-1.0230592489242554,
0.13773445785045624,
-0.2064843773841858,
-0.23236383497714996,
0.4364614188671112,
-0.9176448583602905,
1.052010416984558,
-0.04337918758392334,
-0.3792210817337036,
-0.20983587205410004,
-0.5833078026771545,
0.13520990312099457,
0.3037291169166565,
0.19332784414291382,
0.0011903505073860288,
0.04160359501838684,
1.0571482181549072,
-0.5598525404930115,
0.885313868522644,
-0.18153338134288788,
0.09478192776441574,
0.14738255739212036,
-0.11591728776693344,
0.3940288722515106,
0.09507447481155396,
-0.17718788981437683,
0.18624918162822723,
0.1514265537261963,
-0.6549556851387024,
-0.42887282371520996,
1.0055878162384033,
-1.1080944538116455,
-0.4297916293144226,
-0.559154748916626,
-0.5369170904159546,
-0.11373972147703171,
0.3516537845134735,
0.6456950306892395,
0.38263434171676636,
-0.3616814613342285,
0.34103691577911377,
0.5686632394790649,
-0.40859362483024597,
0.6560732126235962,
0.23783625662326813,
-0.03348400071263313,
-0.5348148941993713,
0.8405097723007202,
0.025154218077659607,
0.08822669088840485,
0.481450617313385,
0.1294996291399002,
-0.27112242579460144,
-0.35509562492370605,
-0.36711737513542175,
0.5859251022338867,
-0.5870715975761414,
-0.045777577906847,
-0.7099387049674988,
-0.36122652888298035,
-0.5816015005111694,
-0.5255192518234253,
-0.3887922167778015,
-0.3400990664958954,
-0.39043188095092773,
-0.24760673940181732,
0.5794532299041748,
0.5112507343292236,
-0.128426656126976,
0.34965193271636963,
-0.6848376989364624,
0.09329874813556671,
0.11705001443624496,
0.26070553064346313,
-0.08590436726808548,
-0.5752187967300415,
-0.5064276456832886,
0.15191560983657837,
-0.22059251368045807,
-0.8855823874473572,
0.5937415361404419,
0.29255911707878113,
0.5650249123573303,
0.17232194542884827,
-0.0061269644647836685,
0.6404018402099609,
-0.5091592073440552,
0.9753590822219849,
0.3334140479564667,
-1.0360486507415771,
0.5063215494155884,
0.06591696292161942,
0.2524220645427704,
0.6629576683044434,
0.4276498258113861,
-0.3872620165348053,
-0.3556147515773773,
-0.7161433100700378,
-0.9534228444099426,
0.7127161026000977,
0.3852017819881439,
0.29057392477989197,
-0.2227737158536911,
0.2631179690361023,
0.057848114520311356,
0.05306140333414078,
-1.053087592124939,
-0.42186418175697327,
-0.1723473221063614,
-0.6081094145774841,
-0.26336753368377686,
-0.0431213453412056,
-0.09973172098398209,
-0.49016740918159485,
0.9157276749610901,
0.09198068827390671,
0.7295409440994263,
0.4402690827846527,
-0.32511192560195923,
0.3542270064353943,
0.245369091629982,
0.3182711899280548,
0.19269748032093048,
-0.40723687410354614,
0.1083606481552124,
0.368778258562088,
-0.5452013611793518,
0.06114950403571129,
0.33406567573547363,
-0.1582563817501068,
0.35829588770866394,
0.453125923871994,
0.9543114304542542,
0.12526731193065643,
-0.6321749687194824,
0.5694702863693237,
-0.019044695422053337,
-0.3534510135650635,
-0.39514753222465515,
-0.10306178033351898,
0.1343337446451187,
0.31169795989990234,
0.1778532862663269,
-0.1036292165517807,
0.13099513947963715,
-0.6307149529457092,
0.17718777060508728,
0.2507176995277405,
-0.4371790885925293,
-0.2124623954296112,
0.6361669898033142,
0.16023629903793335,
-0.12149882316589355,
0.7968426942825317,
-0.3735363185405731,
-0.5233065485954285,
0.6914660930633545,
0.6078945994377136,
0.995301365852356,
0.019880762323737144,
0.2710326313972473,
0.7481416463851929,
0.510565459728241,
-0.12530171871185303,
0.225105419754982,
0.15628795325756073,
-0.9011214375495911,
-0.20943503081798553,
-0.46668973565101624,
0.07193933427333832,
0.1679350733757019,
-0.8057270646095276,
0.26868516206741333,
-0.31352052092552185,
-0.12156083434820175,
-0.010067054070532322,
0.2159029096364975,
-0.7022217512130737,
0.11122100055217743,
0.01957346312701702,
0.908842146396637,
-0.9892678260803223,
1.2365992069244385,
0.8700659871101379,
-0.6266885995864868,
-0.8015323281288147,
-0.024315735325217247,
-0.29248732328414917,
-0.8516915440559387,
0.501106321811676,
0.32200148701667786,
0.01445410493761301,
0.12692472338676453,
-0.31627947092056274,
-0.652750551700592,
1.3191615343093872,
0.41153228282928467,
-0.5221248865127563,
-0.04141225665807724,
-0.1291731297969818,
0.6603592038154602,
-0.3381536900997162,
0.2503772974014282,
0.585818886756897,
0.31111907958984375,
-0.1967369019985199,
-0.8451873064041138,
0.2099878489971161,
-0.5520758032798767,
0.2676505148410797,
0.0011554730590432882,
-0.7619252800941467,
0.8995237946510315,
-0.1945505291223526,
-0.12715521454811096,
0.21910502016544342,
0.6837776303291321,
0.3164268434047699,
0.05510107800364494,
0.2310841977596283,
0.6615362763404846,
0.7498460412025452,
-0.296610027551651,
1.0448427200317383,
-0.23695030808448792,
0.6519668102264404,
1.076540470123291,
0.14311479032039642,
1.0273916721343994,
0.669717013835907,
-0.29749998450279236,
0.7796876430511475,
0.6619774103164673,
-0.29282647371292114,
0.8010368943214417,
0.06906329840421677,
-0.027822360396385193,
0.10424208641052246,
0.1443251073360443,
-0.6299883723258972,
0.19500230252742767,
0.2870314419269562,
-0.6633155345916748,
0.0523674450814724,
0.16582728922367096,
0.32004982233047485,
0.0685259997844696,
-0.011757644824683666,
0.6121812462806702,
0.04022569954395294,
-0.3995705842971802,
0.8026328086853027,
0.18568368256092072,
1.0203591585159302,
-0.6159180402755737,
0.35350456833839417,
-0.1377224326133728,
0.4209767282009125,
-0.12430517375469208,
-0.7022733688354492,
0.2468261420726776,
0.061376918107271194,
-0.04790356755256653,
0.008639543317258358,
0.2734089493751526,
-0.616777241230011,
-0.6386076807975769,
0.44918251037597656,
0.45172107219696045,
0.23593725264072418,
0.38020405173301697,
-0.9657662510871887,
0.14824020862579346,
0.23077058792114258,
-0.41325461864471436,
0.22571523487567902,
0.3574252724647522,
0.3421195447444916,
0.4146336019039154,
0.30076783895492554,
0.007065005600452423,
0.23966501653194427,
0.09323190897703171,
0.7493776679039001,
-0.5464164614677429,
-0.4606010913848877,
-1.0130537748336792,
0.467481791973114,
-0.18872147798538208,
-0.3878916800022125,
0.7395390272140503,
0.7789617776870728,
1.1449689865112305,
-0.4360907971858978,
0.815480649471283,
-0.4476998448371887,
0.07430962473154068,
-0.6559908390045166,
0.74751877784729,
-0.7477191090583801,
0.0476030558347702,
-0.14289923012256622,
-0.7925078868865967,
-0.2671133577823639,
1.091249942779541,
-0.45877861976623535,
0.1528991311788559,
0.9789538383483887,
0.9396753907203674,
-0.044027093797922134,
-0.20676663517951965,
0.13732556998729706,
0.41672006249427795,
0.30798599123954773,
0.7432283759117126,
0.31322821974754333,
-0.9016563296318054,
0.5654905438423157,
-0.4774250388145447,
0.016414325684309006,
-0.08397167176008224,
-0.578956663608551,
-1.1085000038146973,
-0.7766724228858948,
-0.5557828545570374,
-0.4235980212688446,
0.0389975942671299,
1.091365933418274,
0.5996636748313904,
-0.9512456059455872,
-0.27656760811805725,
-0.25441333651542664,
-0.09825559705495834,
-0.30238914489746094,
-0.2883932888507843,
0.7131999731063843,
-0.30236881971359253,
-1.0015026330947876,
0.10385757684707642,
-0.08364004641771317,
0.04611053317785263,
-0.09159228950738907,
-0.3038318157196045,
-0.5925700664520264,
0.18397413194179535,
0.5478050708770752,
0.030616946518421173,
-0.8817997574806213,
-0.31483253836631775,
-0.03522292152047157,
-0.3908419907093048,
0.0012379386462271214,
0.41958776116371155,
-0.5912325382232666,
0.4524628221988678,
0.5561099052429199,
0.5599966049194336,
0.8744685649871826,
-0.5012365579605103,
0.40589195489883423,
-0.9808813333511353,
0.5181013941764832,
0.08200705051422119,
0.693214476108551,
0.43835264444351196,
-0.21710899472236633,
0.6923249959945679,
0.2277718186378479,
-0.3792027533054352,
-0.8323689103126526,
0.026835914701223373,
-1.0890933275222778,
-0.4114057719707489,
1.044090986251831,
-0.5391287207603455,
-0.33460959792137146,
0.28136587142944336,
-0.24298538267612457,
0.5694612264633179,
-0.35013464093208313,
0.7982804775238037,
0.8730785250663757,
0.020872829481959343,
-0.24882502853870392,
-0.36644411087036133,
0.306338369846344,
0.5262300372123718,
-0.632074236869812,
-0.3416319489479065,
0.29005929827690125,
0.5441011190414429,
0.18847090005874634,
0.6052166819572449,
-0.08542349189519882,
0.10139447450637817,
0.20537754893302917,
0.3229199945926666,
-0.04887281730771065,
0.2524220943450928,
-0.2181040495634079,
0.012713351286947727,
-0.020754478871822357,
-0.5106487274169922
] |
Helsinki-NLP/opus-mt-tc-big-sh-en | Helsinki-NLP | "2023-10-10T10:32:07Z" | 89,839 | 0 | transformers | [
"transformers",
"pytorch",
"tf",
"safetensors",
"marian",
"text2text-generation",
"translation",
"opus-mt-tc",
"tc",
"big",
"sh",
"en",
"license:cc-by-4.0",
"model-index",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | translation | "2022-04-13T16:21:20Z" | ---
language:
- bs_Latn
- en
- hr
- sh
- sr_Cyrl
- sr_Latn
tags:
- translation
- opus-mt-tc
license: cc-by-4.0
model-index:
- name: opus-mt-tc-big-sh-en
results:
- task:
name: Translation hrv-eng
type: translation
args: hrv-eng
dataset:
name: flores101-devtest
type: flores_101
args: hrv eng devtest
metrics:
- name: BLEU
type: bleu
value: 37.1
- task:
name: Translation bos_Latn-eng
type: translation
args: bos_Latn-eng
dataset:
name: tatoeba-test-v2021-08-07
type: tatoeba_mt
args: bos_Latn-eng
metrics:
- name: BLEU
type: bleu
value: 66.5
- task:
name: Translation hbs-eng
type: translation
args: hbs-eng
dataset:
name: tatoeba-test-v2021-08-07
type: tatoeba_mt
args: hbs-eng
metrics:
- name: BLEU
type: bleu
value: 56.4
- task:
name: Translation hrv-eng
type: translation
args: hrv-eng
dataset:
name: tatoeba-test-v2021-08-07
type: tatoeba_mt
args: hrv-eng
metrics:
- name: BLEU
type: bleu
value: 58.8
- task:
name: Translation srp_Cyrl-eng
type: translation
args: srp_Cyrl-eng
dataset:
name: tatoeba-test-v2021-08-07
type: tatoeba_mt
args: srp_Cyrl-eng
metrics:
- name: BLEU
type: bleu
value: 44.7
- task:
name: Translation srp_Latn-eng
type: translation
args: srp_Latn-eng
dataset:
name: tatoeba-test-v2021-08-07
type: tatoeba_mt
args: srp_Latn-eng
metrics:
- name: BLEU
type: bleu
value: 58.4
---
# opus-mt-tc-big-sh-en
Neural machine translation model for translating from Serbo-Croatian (sh) to English (en).
This model is part of the [OPUS-MT project](https://github.com/Helsinki-NLP/Opus-MT), an effort to make neural machine translation models widely available and accessible for many languages in the world. All models are originally trained using the amazing framework of [Marian NMT](https://marian-nmt.github.io/), an efficient NMT implementation written in pure C++. The models have been converted to pyTorch using the transformers library by huggingface. Training data is taken from [OPUS](https://opus.nlpl.eu/) and training pipelines use the procedures of [OPUS-MT-train](https://github.com/Helsinki-NLP/Opus-MT-train).
* Publications: [OPUS-MT – Building open translation services for the World](https://aclanthology.org/2020.eamt-1.61/) and [The Tatoeba Translation Challenge – Realistic Data Sets for Low Resource and Multilingual MT](https://aclanthology.org/2020.wmt-1.139/) (Please, cite if you use this model.)
```
@inproceedings{tiedemann-thottingal-2020-opus,
title = "{OPUS}-{MT} {--} Building open translation services for the World",
author = {Tiedemann, J{\"o}rg and Thottingal, Santhosh},
booktitle = "Proceedings of the 22nd Annual Conference of the European Association for Machine Translation",
month = nov,
year = "2020",
address = "Lisboa, Portugal",
publisher = "European Association for Machine Translation",
url = "https://aclanthology.org/2020.eamt-1.61",
pages = "479--480",
}
@inproceedings{tiedemann-2020-tatoeba,
title = "The Tatoeba Translation Challenge {--} Realistic Data Sets for Low Resource and Multilingual {MT}",
author = {Tiedemann, J{\"o}rg},
booktitle = "Proceedings of the Fifth Conference on Machine Translation",
month = nov,
year = "2020",
address = "Online",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2020.wmt-1.139",
pages = "1174--1182",
}
```
## Model info
* Release: 2022-02-25
* source language(s): bos_Latn hrv srp_Cyrl srp_Latn
* target language(s): eng
* model: transformer-big
* data: opusTCv20210807+bt ([source](https://github.com/Helsinki-NLP/Tatoeba-Challenge))
* tokenization: SentencePiece (spm32k,spm32k)
* original model: [opusTCv20210807+bt_transformer-big_2022-02-25.zip](https://object.pouta.csc.fi/Tatoeba-MT-models/hbs-eng/opusTCv20210807+bt_transformer-big_2022-02-25.zip)
* more information released models: [OPUS-MT hbs-eng README](https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/hbs-eng/README.md)
## Usage
A short example code:
```python
from transformers import MarianMTModel, MarianTokenizer
src_text = [
"Ispostavilo se da je istina.",
"Ovaj vikend imamo besplatne pozive."
]
model_name = "pytorch-models/opus-mt-tc-big-sh-en"
tokenizer = MarianTokenizer.from_pretrained(model_name)
model = MarianMTModel.from_pretrained(model_name)
translated = model.generate(**tokenizer(src_text, return_tensors="pt", padding=True))
for t in translated:
print( tokenizer.decode(t, skip_special_tokens=True) )
# expected output:
# Turns out it's true.
# We got free calls this weekend.
```
You can also use OPUS-MT models with the transformers pipelines, for example:
```python
from transformers import pipeline
pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-tc-big-sh-en")
print(pipe("Ispostavilo se da je istina."))
# expected output: Turns out it's true.
```
## Benchmarks
* test set translations: [opusTCv20210807+bt_transformer-big_2022-02-25.test.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/hbs-eng/opusTCv20210807+bt_transformer-big_2022-02-25.test.txt)
* test set scores: [opusTCv20210807+bt_transformer-big_2022-02-25.eval.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/hbs-eng/opusTCv20210807+bt_transformer-big_2022-02-25.eval.txt)
* benchmark results: [benchmark_results.txt](benchmark_results.txt)
* benchmark output: [benchmark_translations.zip](benchmark_translations.zip)
| langpair | testset | chr-F | BLEU | #sent | #words |
|----------|---------|-------|-------|-------|--------|
| bos_Latn-eng | tatoeba-test-v2021-08-07 | 0.80010 | 66.5 | 301 | 1826 |
| hbs-eng | tatoeba-test-v2021-08-07 | 0.71744 | 56.4 | 10017 | 68934 |
| hrv-eng | tatoeba-test-v2021-08-07 | 0.73563 | 58.8 | 1480 | 10620 |
| srp_Cyrl-eng | tatoeba-test-v2021-08-07 | 0.68248 | 44.7 | 1580 | 10181 |
| srp_Latn-eng | tatoeba-test-v2021-08-07 | 0.71781 | 58.4 | 6656 | 46307 |
| hrv-eng | flores101-devtest | 0.63948 | 37.1 | 1012 | 24721 |
## Acknowledgements
The work is supported by the [European Language Grid](https://www.european-language-grid.eu/) as [pilot project 2866](https://live.european-language-grid.eu/catalogue/#/resource/projects/2866), by the [FoTran project](https://www.helsinki.fi/en/researchgroups/natural-language-understanding-with-cross-lingual-grounding), funded by the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No 771113), and the [MeMAD project](https://memad.eu/), funded by the European Union’s Horizon 2020 Research and Innovation Programme under grant agreement No 780069. We are also grateful for the generous computational resources and IT infrastructure provided by [CSC -- IT Center for Science](https://www.csc.fi/), Finland.
## Model conversion info
* transformers version: 4.16.2
* OPUS-MT git hash: 3405783
* port time: Wed Apr 13 19:21:10 EEST 2022
* port machine: LM0-400-22516.local
| [
-0.36183467507362366,
-0.6029699444770813,
0.3000057339668274,
0.2984068989753723,
-0.5101419687271118,
-0.2551930248737335,
-0.5601488947868347,
-0.35501930117607117,
0.23182417452335358,
0.40267282724380493,
-0.476673424243927,
-0.7080787420272827,
-0.6176879405975342,
0.35719794034957886,
-0.17878565192222595,
0.8344332575798035,
-0.29501011967658997,
0.2491234987974167,
0.24312901496887207,
-0.32780489325523376,
-0.23977257311344147,
-0.4450286328792572,
-0.32402893900871277,
-0.3930431604385376,
0.27076250314712524,
0.1551373302936554,
0.4964126646518707,
0.6516479253768921,
0.6140913367271423,
0.36217638850212097,
-0.2290368378162384,
0.21970421075820923,
-0.12995368242263794,
-0.11571013927459717,
0.05828685685992241,
-0.5230867266654968,
-0.579315721988678,
-0.1078413650393486,
0.9377296566963196,
0.5822171568870544,
0.07503556460142136,
0.3762425482273102,
0.10922856628894806,
0.6105472445487976,
-0.15635183453559875,
0.21139131486415863,
-0.6427421569824219,
0.058896489441394806,
-0.34718799591064453,
-0.3305360674858093,
-0.627159059047699,
-0.1527079939842224,
0.07087622582912445,
-0.570692777633667,
0.040151335299015045,
0.11096900701522827,
1.3132396936416626,
0.23292101919651031,
-0.31885644793510437,
-0.13378654420375824,
-0.7115857601165771,
1.0204589366912842,
-0.8315861821174622,
0.650319516658783,
0.21764568984508514,
0.0183672234416008,
-0.17221872508525848,
-0.6048750877380371,
-0.5991278886795044,
-0.02989562228322029,
-0.24677713215351105,
0.32642796635627747,
-0.36690664291381836,
-0.11365101486444473,
0.2679804861545563,
0.5983155965805054,
-0.6700146198272705,
0.03551921248435974,
-0.46534207463264465,
-0.19383946061134338,
0.4439893364906311,
0.026506762951612473,
0.21994128823280334,
-0.4525018334388733,
-0.4041562080383301,
-0.4759969115257263,
-0.6921021342277527,
0.1260126233100891,
0.34314200282096863,
0.4231451153755188,
-0.6334981322288513,
0.7265473008155823,
-0.051543939858675,
0.7649145722389221,
0.017565082758665085,
-0.06763272732496262,
0.7332552075386047,
-0.5498695969581604,
-0.21587996184825897,
-0.18698371946811676,
1.2569462060928345,
0.26100167632102966,
0.10163896530866623,
-0.19851604104042053,
-0.1379353106021881,
-0.16232150793075562,
-0.1927603781223297,
-0.8782808184623718,
0.15801064670085907,
0.26209399104118347,
-0.43219736218452454,
-0.04818301647901535,
-0.019145354628562927,
-0.6667234301567078,
0.21951544284820557,
-0.31005629897117615,
0.4960973262786865,
-0.6652447581291199,
-0.4286905825138092,
0.23175372183322906,
0.06513398885726929,
0.31500867009162903,
0.018150005489587784,
-0.6077825427055359,
-0.02170456387102604,
0.41083961725234985,
0.9407914876937866,
-0.16450484097003937,
-0.4765906035900116,
-0.48091045022010803,
-0.127376988530159,
-0.24896836280822754,
0.5129322409629822,
-0.0767810046672821,
-0.27770504355430603,
-0.18358181416988373,
0.3120400309562683,
-0.28239676356315613,
-0.3238142430782318,
0.853665828704834,
-0.337812215089798,
0.5247532725334167,
-0.22500616312026978,
-0.37583473324775696,
-0.23491010069847107,
0.2606494426727295,
-0.45832887291908264,
1.2147212028503418,
0.1377762109041214,
-0.9324573874473572,
0.10785561800003052,
-0.6481805443763733,
-0.20787739753723145,
-0.053544189780950546,
0.1895221471786499,
-0.48926815390586853,
0.08982772380113602,
0.26969990134239197,
0.41896960139274597,
-0.6200462579727173,
0.4197283983230591,
0.03313148394227028,
-0.1769612431526184,
0.16955360770225525,
-0.5260969996452332,
1.1408225297927856,
0.30978256464004517,
-0.5218525528907776,
0.12364731729030609,
-0.7606938481330872,
0.10196111351251602,
0.10458876937627792,
-0.5139323472976685,
-0.2025911957025528,
-0.1122761219739914,
0.09294258803129196,
0.32536831498146057,
0.17595474421977997,
-0.6615034341812134,
0.19039741158485413,
-0.7067054510116577,
0.4147731065750122,
0.6983429193496704,
-0.2453785389661789,
0.36794188618659973,
-0.21679599583148956,
0.43225669860839844,
0.20384106040000916,
-0.07872981578111649,
-0.1549430787563324,
-0.6611743569374084,
-0.9455983638763428,
-0.2915800213813782,
0.6099687814712524,
0.6183038353919983,
-1.1267917156219482,
0.744742751121521,
-0.7562021613121033,
-0.8459571003913879,
-0.7917900085449219,
-0.28797268867492676,
0.6091423034667969,
0.3893025815486908,
0.7003302574157715,
-0.17192497849464417,
-0.5639578700065613,
-0.8958914279937744,
-0.3229318857192993,
-0.19470427930355072,
-0.08074533939361572,
0.14518913626670837,
0.6701638102531433,
-0.3041473627090454,
0.7182010412216187,
-0.23908744752407074,
-0.34410640597343445,
-0.32160839438438416,
0.15413689613342285,
0.6714534759521484,
0.7376060485839844,
0.4475977420806885,
-0.7312135696411133,
-0.6830557584762573,
0.3351912498474121,
-0.699796199798584,
-0.14714187383651733,
-0.005693312268704176,
-0.22216477990150452,
0.37695974111557007,
0.11422844231128693,
-0.6699748635292053,
0.17322474718093872,
0.7682164907455444,
-0.47956106066703796,
0.5141699314117432,
-0.2521345615386963,
0.2321499139070511,
-1.5252939462661743,
0.24359706044197083,
-0.0910177156329155,
-0.14704552292823792,
-0.6446865797042847,
0.05748976767063141,
0.10444211214780807,
0.10909320414066315,
-0.64708012342453,
0.6977373957633972,
-0.6452134251594543,
-0.05002132058143616,
0.3059656023979187,
0.0525798574090004,
-0.09107625484466553,
0.8243839740753174,
0.0101582370698452,
0.8592796325683594,
0.5719078183174133,
-0.5462585687637329,
0.21920733153820038,
0.4990295171737671,
-0.39350610971450806,
0.255958616733551,
-0.7414408326148987,
0.005316330119967461,
0.19304980337619781,
0.07856541872024536,
-0.6788753271102905,
0.07953941822052002,
0.5001533031463623,
-0.7365639805793762,
0.40398770570755005,
-0.378775030374527,
-0.7360920906066895,
-0.4275321662425995,
-0.10796838253736496,
0.45302245020866394,
0.5258150100708008,
-0.4644109606742859,
0.6866909265518188,
0.12630382180213928,
0.006470560561865568,
-0.6335273385047913,
-0.920388400554657,
0.0684586763381958,
-0.1986716091632843,
-0.797508955001831,
0.46218815445899963,
-0.13838142156600952,
0.012061674147844315,
0.04624965786933899,
0.07421194761991501,
0.02600635588169098,
-0.010487338528037071,
-0.009367302991449833,
0.19445794820785522,
-0.4181097745895386,
-0.03227640315890312,
0.010874442756175995,
-0.3544606566429138,
-0.17905369400978088,
-0.5908141732215881,
0.8992524147033691,
-0.5253246426582336,
-0.22045621275901794,
-0.7526242136955261,
0.15315154194831848,
0.7906774878501892,
-0.5739368200302124,
0.9619159698486328,
0.692908525466919,
-0.2358015924692154,
0.1934819519519806,
-0.43098580837249756,
-0.02873663231730461,
-0.4565107822418213,
0.39320236444473267,
-0.5628933906555176,
-0.6848956942558289,
0.713304340839386,
0.2680143117904663,
0.21962563693523407,
0.9114394187927246,
0.8252477645874023,
0.22317947447299957,
0.8528509140014648,
0.3004419207572937,
0.10396768897771835,
0.359307199716568,
-0.6998616456985474,
0.15381355583667755,
-0.9639397263526917,
-0.12821216881275177,
-0.7115062475204468,
-0.18901313841342926,
-0.9007806777954102,
-0.6049134731292725,
0.3309417963027954,
-0.06410333514213562,
-0.02101805992424488,
0.7556461095809937,
-0.5335078239440918,
0.1463327258825302,
0.5684303045272827,
-0.14839813113212585,
0.3481830358505249,
0.17538633942604065,
-0.5307225584983826,
-0.34397315979003906,
-0.6542499661445618,
-0.5044931769371033,
1.172250509262085,
0.35858073830604553,
0.2903823256492615,
0.15417420864105225,
0.6238603591918945,
-0.12617601454257965,
0.277457594871521,
-0.6442461609840393,
0.5206989645957947,
-0.24907627701759338,
-0.6106715798377991,
-0.19641001522541046,
-0.7307323217391968,
-0.9625561833381653,
0.6401315927505493,
-0.1989552229642868,
-0.6721683740615845,
0.1933097243309021,
0.02680465206503868,
-0.00445207767188549,
0.6772668361663818,
-0.7050756812095642,
1.0039728879928589,
-0.15118734538555145,
-0.3035280704498291,
-0.008215557783842087,
-0.5809401273727417,
0.16948308050632477,
0.033181820064783096,
0.2594142258167267,
-0.03631876781582832,
0.1332503706216812,
0.8421342968940735,
-0.3248879909515381,
0.5121532082557678,
-0.07948242872953415,
-0.22364673018455505,
0.15215511620044708,
0.019460558891296387,
0.5476243495941162,
-0.22651350498199463,
-0.3119894862174988,
0.6000249981880188,
0.0010832612169906497,
-0.36525389552116394,
-0.1566253900527954,
0.5663727521896362,
-0.8600022792816162,
-0.3881074786186218,
-0.45203709602355957,
-0.6531702280044556,
0.09702780097723007,
0.48990708589553833,
0.6896299719810486,
0.6544482707977295,
0.05864459276199341,
0.5865762829780579,
0.5412570834159851,
-0.4852648675441742,
0.44261905550956726,
0.5486548542976379,
-0.11855902522802353,
-0.5384336709976196,
0.8958641290664673,
0.3778435289859772,
0.3960491716861725,
0.5815589427947998,
0.202371284365654,
-0.24244321882724762,
-0.6728581786155701,
-0.8573356866836548,
0.5227455496788025,
-0.4714779853820801,
-0.24212878942489624,
-0.7986969351768494,
-0.0393325611948967,
-0.3460235595703125,
0.18141698837280273,
-0.6304357647895813,
-0.6100794076919556,
-0.15791387856006622,
-0.05319901555776596,
0.3529570698738098,
0.3310253918170929,
0.007025605998933315,
0.35282033681869507,
-0.955093502998352,
0.18111592531204224,
-0.28177860379219055,
0.31393250823020935,
-0.15896421670913696,
-0.838127076625824,
-0.47410234808921814,
0.31485626101493835,
-0.4295043349266052,
-0.8954344987869263,
0.7331960201263428,
-0.0007886607199907303,
0.3619860112667084,
0.09146469831466675,
0.11070644110441208,
0.5865163207054138,
-0.6528663635253906,
0.8182868957519531,
0.10304465144872665,
-1.0250394344329834,
0.37036165595054626,
-0.435230016708374,
0.33543649315834045,
0.34865719079971313,
0.23804911971092224,
-0.7422914505004883,
-0.6362154483795166,
-0.7504302859306335,
-0.9713942408561707,
1.0300689935684204,
0.587256908416748,
0.0024648497346788645,
0.029971668496727943,
0.04461899772286415,
-0.013935315422713757,
0.10180184245109558,
-1.0887911319732666,
-0.5400617718696594,
-0.059260983020067215,
-0.24035762250423431,
-0.13245782256126404,
-0.16361390054225922,
0.020174283534288406,
-0.3815889060497284,
1.028275728225708,
0.054605040699243546,
0.5280868411064148,
0.3915770649909973,
-0.3479979932308197,
-0.095883309841156,
0.34593766927719116,
0.731728732585907,
0.4494490623474121,
-0.17180241644382477,
0.059259314090013504,
0.36962172389030457,
-0.4664205014705658,
0.014669237658381462,
0.11115190386772156,
-0.341910719871521,
0.4110925495624542,
0.4061470925807953,
1.0484516620635986,
0.135361909866333,
-0.36982661485671997,
0.5143612623214722,
-0.07033777981996536,
-0.3656778037548065,
-0.35106682777404785,
-0.3895893096923828,
0.1592944711446762,
0.07631748914718628,
0.37126073241233826,
0.098185695707798,
-0.19959811866283417,
-0.2486206293106079,
0.018013108521699905,
0.194887176156044,
-0.29261764883995056,
-0.6343858242034912,
0.7236102223396301,
0.1398145705461502,
-0.28549039363861084,
0.5304070711135864,
-0.2407931089401245,
-0.7989805340766907,
0.49471959471702576,
0.4675035774707794,
1.0712724924087524,
-0.18279288709163666,
-0.009639747440814972,
0.7789745330810547,
0.6112010478973389,
-0.09975749999284744,
0.16335248947143555,
-0.05892530828714371,
-0.66258305311203,
-0.4544970691204071,
-0.8391302824020386,
-0.06629083305597305,
-0.011544372886419296,
-0.6474379301071167,
0.37856778502464294,
0.10864585638046265,
-0.11781278997659683,
-0.22465310990810394,
0.16735342144966125,
-0.6287614107131958,
-0.008418038487434387,
-0.15255068242549896,
0.8970858454704285,
-0.8811629414558411,
0.9924943447113037,
0.5330489277839661,
-0.5139586925506592,
-0.9244170784950256,
-0.08432744443416595,
-0.3984985649585724,
-0.5872610807418823,
0.6922047734260559,
0.21732988953590393,
-0.01146320253610611,
0.16982610523700714,
-0.18915453553199768,
-0.9558413028717041,
1.0627973079681396,
0.47893404960632324,
-0.4113803505897522,
-0.0844113677740097,
0.3851906657218933,
0.6851299405097961,
-0.12197355926036835,
0.2958316504955292,
0.3970317542552948,
0.7607041597366333,
-0.10922115296125412,
-1.1585886478424072,
0.0028560692444443703,
-0.5755859017372131,
-0.025091225281357765,
0.37458154559135437,
-0.6432392001152039,
1.0822043418884277,
0.10697106271982193,
-0.3524843752384186,
0.16669300198554993,
0.6733204126358032,
0.14976032078266144,
-0.009410668164491653,
0.37788641452789307,
0.8379414677619934,
0.528509795665741,
-0.5418438911437988,
1.1291669607162476,
-0.47356298565864563,
0.6217702627182007,
0.8263698816299438,
0.21841710805892944,
0.85960453748703,
0.6071617007255554,
-0.29705649614334106,
0.460245817899704,
0.5493821501731873,
-0.08758783340454102,
0.2614658772945404,
-0.07943885773420334,
0.06560864299535751,
-0.12476541846990585,
-0.025302421301603317,
-0.7455791234970093,
0.36958345770835876,
0.27839627861976624,
-0.28001517057418823,
-0.11813906580209732,
-0.059849511831998825,
0.2301134318113327,
-0.05767536535859108,
-0.02710524946451187,
0.48411089181900024,
0.12267725169658661,
-0.793756365776062,
1.1584023237228394,
0.28183573484420776,
0.7895604968070984,
-0.5416043400764465,
0.18996822834014893,
-0.13964617252349854,
0.35960450768470764,
-0.10959996283054352,
-0.6196978688240051,
0.3562072813510895,
0.23980116844177246,
-0.22239801287651062,
-0.5556045174598694,
0.058851007372140884,
-0.7099824547767639,
-0.703648030757904,
0.5004639625549316,
0.5032856464385986,
0.3555299639701843,
0.12089955806732178,
-0.6994695663452148,
0.0028409729711711407,
0.26726454496383667,
-0.5816056132316589,
-0.002104339422658086,
0.5893905162811279,
0.0008541566203348339,
0.557304322719574,
0.7529100775718689,
0.2784329056739807,
0.32113611698150635,
-0.19932694733142853,
0.6887550354003906,
-0.4890981614589691,
-0.48021358251571655,
-0.9020693302154541,
0.7582800388336182,
0.07890385389328003,
-0.5554736852645874,
0.8582408428192139,
0.8270189762115479,
0.9808546304702759,
-0.19451496005058289,
0.46790263056755066,
-0.2108861356973648,
0.5336490273475647,
-0.609434962272644,
0.7301502823829651,
-0.8240471482276917,
0.2802726626396179,
-0.24336685240268707,
-1.0784887075424194,
-0.34149646759033203,
0.42972809076309204,
-0.31706511974334717,
-0.2112741321325302,
0.8282192945480347,
0.7408284544944763,
-0.12259656935930252,
-0.3603770434856415,
0.19832973182201385,
0.5668148994445801,
0.4149269461631775,
0.7292227745056152,
0.5011622905731201,
-0.9403019547462463,
0.6818882822990417,
-0.42283204197883606,
-0.045906875282526016,
-0.09939776360988617,
-0.676256537437439,
-0.7565458416938782,
-0.8106188178062439,
-0.1178830936551094,
-0.475631445646286,
-0.18361856043338776,
1.1254322528839111,
0.3216363191604614,
-0.8622370958328247,
-0.41382908821105957,
-0.07826188206672668,
0.19833849370479584,
-0.22318874299526215,
-0.1933428943157196,
0.6108059883117676,
-0.1592126190662384,
-1.0762025117874146,
0.3060675859451294,
0.055412519723176956,
0.1036514863371849,
-0.0022030414547771215,
-0.28598350286483765,
-0.38550710678100586,
-0.23711244761943817,
0.3462289571762085,
0.12837885320186615,
-0.867429792881012,
-0.05431487783789635,
0.27196040749549866,
-0.22359448671340942,
0.34389954805374146,
0.3645714521408081,
-0.44802284240722656,
0.41657555103302,
0.737785816192627,
0.5425915122032166,
0.6221280694007874,
-0.2722565829753876,
0.6307860612869263,
-0.6540548801422119,
0.5106999278068542,
0.18424153327941895,
0.5704357028007507,
0.4464558959007263,
-0.027794605121016502,
0.5995056629180908,
0.3989574909210205,
-0.2815263867378235,
-1.156203031539917,
0.031207721680402756,
-0.9915854930877686,
0.022328490391373634,
1.1937450170516968,
-0.24947790801525116,
-0.3768409192562103,
0.19399939477443695,
-0.17480218410491943,
0.5167312026023865,
-0.26416119933128357,
0.46160855889320374,
0.7493254542350769,
0.47017571330070496,
0.10361488908529282,
-0.6071673035621643,
0.2607700824737549,
0.6315006613731384,
-0.6056779623031616,
0.09273618459701538,
0.12481933832168579,
0.1751975566148758,
0.39756959676742554,
0.4424048364162445,
-0.2944898307323456,
0.09138820320367813,
-0.3108350932598114,
0.4954547584056854,
-0.11157000064849854,
-0.14286474883556366,
-0.37757641077041626,
-0.15690255165100098,
-0.19450514018535614,
-0.1821063905954361
] |
anushehchaudry/llama-2-tiny-random | anushehchaudry | "2023-08-24T16:46:28Z" | 89,437 | 1 | transformers | [
"transformers",
"pytorch",
"safetensors",
"llama",
"text-generation",
"license:openrail",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] | text-generation | "2023-08-22T16:25:30Z" | ---
license: openrail
---
| [
-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
] |
Yntec/epiCPhotoGasm | Yntec | "2023-11-24T12:46:29Z" | 88,943 | 10 | diffusers | [
"diffusers",
"Photorealistic",
"Realism",
"Girls",
"epinikion",
"text-to-image",
"stable-diffusion",
"stable-diffusion-diffusers",
"license:creativeml-openrail-m",
"endpoints_compatible",
"has_space",
"diffusers:StableDiffusionPipeline",
"region:us"
] | text-to-image | "2023-10-01T17:51:17Z" | ---
license: creativeml-openrail-m
library_name: diffusers
pipeline_tag: text-to-image
tags:
- Photorealistic
- Realism
- Girls
- epinikion
- text-to-image
- stable-diffusion
- stable-diffusion-diffusers
- diffusers
---
Original page: https://civitai.com/models/132632?modelVersionId=145885
UPDATE: Now with the MoistMixV2VAE baked in!
Comparison and prompt:
![Comparison](https://cdn-uploads.huggingface.co/production/uploads/63239b8370edc53f51cd5d42/V2t1IAL7XC2JxFRkZiFdm.png)
(Click for larger)
macro studio photo of old antique Victorian marmor figurine of cute Rinoa, chibi Rinoa Heartilly, eyeliner, very slim, arm warmers, necklace, sleeveless coat, black shirt, blue skirt, arm ribbon, bike shorts, boots, long hair, black hair, cozy home in the background with candles and plants, Rinoa on flat round porcelain base, by Michelangelo
Samples and prompt:
![Sample](https://cdn-uploads.huggingface.co/production/uploads/63239b8370edc53f51cd5d42/oNSlSlgKRFNDQBzsqbqJD.png)
![Sample](https://cdn-uploads.huggingface.co/production/uploads/63239b8370edc53f51cd5d42/srMnx1nftgelbTTB04a9S.png)
(hyperrealist painting of a girl as genie with a sun on each shoulder ), 1940, magazine ad, iconic. by Daniel F. Gerhartz and greg rutkowski, aggressive color palette, elegant, dream, fantasy, dynamic lighting, beautiful, poster, wlop, trending on artstation, wallpaper, 4 k, award winning, digital art, very | [
-0.33378341794013977,
-0.44704970717430115,
0.17994871735572815,
0.1919090896844864,
-0.39450913667678833,
-0.15321770310401917,
0.2892656922340393,
-0.4407722055912018,
0.778602123260498,
0.8457635641098022,
-0.536331057548523,
-0.11305847018957138,
-0.4462999701499939,
-0.1948307752609253,
-0.01742972433567047,
0.39778247475624084,
0.2151726335287094,
0.35252439975738525,
-0.36564138531684875,
0.07931561022996902,
-0.24114501476287842,
0.14228732883930206,
-0.3313711881637573,
-0.015824271366000175,
0.15479277074337006,
0.6480077505111694,
0.7427325248718262,
0.17352809011936188,
0.20816977322101593,
0.37028148770332336,
0.05634826049208641,
0.44461962580680847,
-0.40389567613601685,
0.07457055896520615,
0.008560534566640854,
-0.564641535282135,
-0.2693730890750885,
0.30596551299095154,
0.14580048620700836,
0.2066778838634491,
0.22064410150051117,
0.12426654249429703,
-0.006774012465029955,
0.4456469714641571,
-1.0124702453613281,
0.03806286305189133,
-0.16107359528541565,
-0.22080101072788239,
-0.2035396844148636,
-0.33981049060821533,
-0.576906681060791,
-0.4449813961982727,
-0.11470338702201843,
-0.7820430994033813,
0.2719312906265259,
-0.489961713552475,
1.208642601966858,
-0.02602994441986084,
-0.7529894709587097,
-0.3719615936279297,
-0.9124289751052856,
0.5815533995628357,
-0.5689750909805298,
0.4580717980861664,
-0.029783444479107857,
0.5351240038871765,
-0.7262253761291504,
-0.9999307990074158,
-0.42769530415534973,
0.19852350652217865,
0.00975105445832014,
0.738436222076416,
-0.25837987661361694,
-0.9366721510887146,
0.212463840842247,
0.15888383984565735,
-0.6377174854278564,
-0.3952649235725403,
-0.29958704113960266,
0.25424543023109436,
0.45895689725875854,
-0.17514196038246155,
0.533525288105011,
0.05247535556554794,
-0.950628936290741,
-0.2654708921909332,
-0.8066816329956055,
0.24267242848873138,
0.08284340798854828,
-0.09532057493925095,
-0.2888179421424866,
0.7503411769866943,
-0.1542884111404419,
0.34098678827285767,
0.12465253472328186,
-0.12508524954319,
0.22988814115524292,
-0.22888194024562836,
-0.35158178210258484,
-0.3952578902244568,
0.9211753010749817,
0.909931480884552,
0.15070053935050964,
0.18200179934501648,
0.0843445360660553,
-0.37310269474983215,
0.15945659577846527,
-1.4336897134780884,
-0.3077191710472107,
-0.09172406047582626,
-0.30621933937072754,
-0.11870690435171127,
0.5985877513885498,
-0.82892245054245,
-0.14221227169036865,
0.1842670738697052,
0.21827483177185059,
-0.23261652886867523,
-0.45560503005981445,
0.09114355593919754,
-0.1070161685347557,
0.3031564950942993,
0.47275516390800476,
-0.6380802989006042,
0.1859852373600006,
0.4409894645214081,
0.609348714351654,
0.5084177255630493,
0.517401397228241,
-0.11643073707818985,
0.0715322196483612,
-0.5400086045265198,
0.9354449510574341,
-0.4539138376712799,
-0.45596083998680115,
-0.08974527567625046,
0.36239323019981384,
0.05480440706014633,
-0.7794598937034607,
0.8017433881759644,
-0.5928305387496948,
0.31461501121520996,
-0.5962414741516113,
-0.33073922991752625,
-0.3547930419445038,
-0.2824702262878418,
-0.6333514451980591,
0.6303789615631104,
0.569280207157135,
-0.9309378266334534,
0.7978812456130981,
0.02429637499153614,
0.015404799021780491,
0.16531796753406525,
-0.10436705499887466,
-0.6473455429077148,
0.33034375309944153,
-0.050794925540685654,
0.3276296555995941,
-0.6763476729393005,
-0.5322097539901733,
-0.839923083782196,
-0.4728870689868927,
0.5511594414710999,
-0.23863962292671204,
1.0298657417297363,
0.4320732355117798,
-0.7376068234443665,
-0.20756307244300842,
-0.8825151324272156,
0.30514147877693176,
0.6724210381507874,
0.03176676109433174,
-0.4991556406021118,
-0.475149542093277,
0.0827728658914566,
0.48111721873283386,
0.4641346335411072,
-0.49781277775764465,
0.0004668532346840948,
-0.19821690022945404,
0.14702029526233673,
0.3804089426994324,
0.28406721353530884,
0.10589449852705002,
-0.5725966691970825,
0.6877758502960205,
0.07508040219545364,
0.5488518476486206,
-0.11332365870475769,
-0.5980850458145142,
-1.1602510213851929,
-0.610500156879425,
0.25499242544174194,
0.37668576836586,
-0.828028678894043,
0.2795921266078949,
0.029538191854953766,
-1.0397306680679321,
-0.5817373394966125,
0.13068939745426178,
0.3905700743198395,
0.1734609454870224,
-0.06821906566619873,
-0.5327069759368896,
-0.15064364671707153,
-1.398521900177002,
-0.06432659924030304,
-0.0740586593747139,
-0.25218096375465393,
0.6105889081954956,
0.17854848504066467,
-0.11649540066719055,
0.4904291033744812,
-0.3619076907634735,
-0.15662860870361328,
0.24123305082321167,
-0.03111138939857483,
0.4391475021839142,
0.5990908741950989,
1.061686635017395,
-0.9642971754074097,
-0.7381130456924438,
0.005810505710542202,
-0.4407433569431305,
-0.007295035757124424,
0.27586081624031067,
-0.41720500588417053,
-0.1721547245979309,
0.14733870327472687,
-0.817526638507843,
0.7233163714408875,
0.22961314022541046,
-0.571127712726593,
0.6969099044799805,
-0.5326135158538818,
0.9410340189933777,
-1.4217449426651,
-0.24375461041927338,
0.07888408750295639,
-0.1692328155040741,
-0.33517804741859436,
0.5191522836685181,
0.2977687418460846,
0.22560086846351624,
-0.937329113483429,
0.6068052053451538,
-0.8942589163780212,
0.08966023474931717,
-0.3629775941371918,
-0.0855066180229187,
0.2630881071090698,
0.018526621162891388,
-0.174810528755188,
0.9541676640510559,
0.4878007173538208,
-0.4554268717765808,
0.38759416341781616,
0.29995954036712646,
-0.5098432302474976,
0.4289573132991791,
-0.9937875270843506,
0.1556926667690277,
0.0750209242105484,
-0.018683072179555893,
-1.0826877355575562,
-0.24783265590667725,
0.5267688035964966,
-0.6738651990890503,
0.2512531280517578,
-0.15509726107120514,
-0.7541623711585999,
-0.26610100269317627,
-0.4300837218761444,
0.41449153423309326,
0.6990062594413757,
-0.3468491733074188,
0.3566567897796631,
0.15266568958759308,
0.26126542687416077,
-0.22905415296554565,
-0.7049710750579834,
0.08503439277410507,
-0.38043412566185,
-0.634204626083374,
0.260153204202652,
-0.3673805892467499,
-0.49829238653182983,
-0.274965763092041,
-0.0671922042965889,
-0.2691362202167511,
-0.01937796361744404,
0.5423827767372131,
0.39715686440467834,
-0.3424009084701538,
-0.6712479591369629,
-0.08618536591529846,
-0.08328135311603546,
0.058663129806518555,
0.24025464057922363,
0.4857587516307831,
-0.2636241614818573,
-0.4403550624847412,
-0.8341265320777893,
0.2695716321468353,
1.0657143592834473,
-0.060899652540683746,
0.7408958673477173,
0.6322329640388489,
-0.47231027483940125,
0.13938748836517334,
-0.8165050148963928,
-0.2518925070762634,
-0.44284582138061523,
-0.4761938750743866,
-0.7076634764671326,
-0.2620091736316681,
0.36527690291404724,
0.12399269640445709,
-0.24343083798885345,
0.6209292411804199,
0.6986721158027649,
-0.07857853174209595,
1.0447460412979126,
0.26494479179382324,
0.48566365242004395,
0.4177859425544739,
-0.7854589223861694,
-0.051195647567510605,
-0.7736139893531799,
-0.43336743116378784,
-0.43553972244262695,
-0.3023492991924286,
-0.822016179561615,
-0.8197100162506104,
0.09158089756965637,
0.2189183086156845,
-0.2839079797267914,
0.7545938491821289,
-0.3349170982837677,
0.21887624263763428,
0.5486841797828674,
0.6167084574699402,
0.2251274287700653,
-0.019700050354003906,
0.0313710980117321,
-0.4116223454475403,
-0.3928860127925873,
-0.6467180848121643,
0.7272090315818787,
-0.08748246729373932,
0.5158404111862183,
0.520232617855072,
0.4946952164173126,
-0.0500592365860939,
0.3204098641872406,
-0.35419631004333496,
0.46289217472076416,
-0.13784199953079224,
-0.8897836804389954,
0.4622540771961212,
-0.2495581954717636,
-0.8711832165718079,
0.5016982555389404,
-0.5224855542182922,
-0.45839494466781616,
0.6365331411361694,
-0.25079357624053955,
-0.30645832419395447,
0.246787428855896,
-0.8362544178962708,
0.6743281483650208,
-0.33553898334503174,
-0.9003971219062805,
0.114165298640728,
-0.2028363049030304,
0.5438660383224487,
0.4331354796886444,
0.09413837641477585,
-0.15447421371936798,
-0.3428356647491455,
0.29315200448036194,
-0.4207720458507538,
0.5220649242401123,
-0.10019955784082413,
0.21714399755001068,
0.295283704996109,
0.4052162766456604,
0.2704000473022461,
0.6365340948104858,
-0.189450204372406,
-0.6476992964744568,
0.03971094638109207,
-0.6805192232131958,
-0.8639097809791565,
1.0222502946853638,
-0.5346918702125549,
-0.6438377499580383,
-0.5483636856079102,
-0.136030375957489,
0.07435859739780426,
0.31601235270500183,
0.6095547080039978,
0.8294867277145386,
-0.5729045867919922,
0.4180600345134735,
0.6795929074287415,
-0.07120759785175323,
0.08426960557699203,
0.3719422221183777,
-0.20608572661876678,
-0.3985952138900757,
0.509645938873291,
-0.024187222123146057,
0.6212617754936218,
0.3027005195617676,
0.22103457152843475,
0.05287891626358032,
-0.20321279764175415,
-0.4274515211582184,
0.6199340224266052,
-0.4017484784126282,
-0.0691792219877243,
-0.7012921571731567,
-0.08990167081356049,
-0.5732977986335754,
-0.02973383478820324,
-0.4300869107246399,
-0.3479456603527069,
-0.7463304400444031,
0.24701347947120667,
0.3931652307510376,
0.7595177888870239,
0.13501907885074615,
-0.07695845514535904,
-0.4320553243160248,
0.0035404423251748085,
0.5986356139183044,
-0.06659277528524399,
-0.2503821551799774,
-0.39394286274909973,
0.3268510401248932,
0.3654608130455017,
-0.3590002954006195,
-0.9117676019668579,
0.595111072063446,
-0.1459323912858963,
0.13672737777233124,
0.918006420135498,
0.19364573061466217,
0.7169674038887024,
-0.2965529263019562,
0.6128759384155273,
0.5474904179573059,
-0.15479537844657898,
0.44455018639564514,
-0.47203028202056885,
0.2328076958656311,
0.7656777501106262,
0.3842344582080841,
-0.17494972050189972,
-0.3252996802330017,
-1.0285296440124512,
-0.7933650612831116,
0.1839306652545929,
0.3907564580440521,
0.32727375626564026,
-0.08999741822481155,
0.3033934235572815,
0.4553241729736328,
0.2543177902698517,
-0.4468218684196472,
-0.40053653717041016,
0.044393423944711685,
0.2619328796863556,
-0.02899356000125408,
-0.5491134524345398,
-0.10610748082399368,
-0.40586450695991516,
0.786422848701477,
0.015067202970385551,
0.4926547110080719,
0.04646041616797447,
0.1853521466255188,
-0.027785494923591614,
0.17727531492710114,
0.9511941075325012,
1.0730212926864624,
-0.7416853904724121,
-0.11859109252691269,
-0.17696042358875275,
-0.24689871072769165,
0.05913392826914787,
-0.23210501670837402,
-0.39803943037986755,
0.2011346071958542,
0.22053810954093933,
0.758776843547821,
0.6898543238639832,
-0.6437082886695862,
0.8028651475906372,
-0.5650628209114075,
0.17249101400375366,
-0.8705098032951355,
0.461029052734375,
0.5015348792076111,
0.6114001870155334,
0.06332528591156006,
0.10695435851812363,
0.4728708863258362,
-0.9364040493965149,
0.19710972905158997,
0.5725181102752686,
-0.5723787546157837,
-0.30293673276901245,
0.8895065784454346,
-0.27121639251708984,
-0.4782496690750122,
0.33231139183044434,
-0.20535355806350708,
-0.21356524527072906,
0.7725926041603088,
0.6919615268707275,
0.7555745840072632,
-0.2657957971096039,
0.6197055578231812,
0.3502269387245178,
-0.03750905394554138,
0.2967918813228607,
0.4458286464214325,
-0.05250358581542969,
-0.36547428369522095,
0.4974500834941864,
-0.2641296982765198,
-0.32255932688713074,
-0.02505558729171753,
-0.7019962072372437,
0.5629479289054871,
-0.7075390219688416,
-0.06868825107812881,
-0.14990490674972534,
0.11432427912950516,
-0.8704242706298828,
0.5973280668258667,
-0.27069568634033203,
1.1909598112106323,
-0.8949794769287109,
0.8693575263023376,
0.29152965545654297,
-0.5979974269866943,
-0.6619529128074646,
-0.08013609796762466,
0.21445508301258087,
-0.6985569000244141,
0.411391943693161,
0.2701042592525482,
-0.04922527074813843,
-0.5007383227348328,
-0.33122989535331726,
-0.7735098600387573,
1.255151391029358,
0.2838941514492035,
-0.39715301990509033,
0.20928466320037842,
-0.32753458619117737,
0.48781147599220276,
-0.7848098278045654,
1.0132322311401367,
0.5819228887557983,
0.38289675116539,
0.9839618802070618,
-0.4992898404598236,
-0.1371859908103943,
-0.8796572089195251,
0.0988081693649292,
-0.07055409997701645,
-1.2552555799484253,
0.9207157492637634,
-0.2615472972393036,
-0.4253999888896942,
0.7980632781982422,
0.9301065802574158,
0.28802934288978577,
0.3981066048145294,
0.6797991991043091,
0.7792019248008728,
0.16782641410827637,
-0.2983284592628479,
1.3121289014816284,
0.2136664092540741,
0.012227983213961124,
0.9654489755630493,
-0.22893628478050232,
0.7227773070335388,
0.13059906661510468,
-0.3320125639438629,
0.5270957946777344,
1.0145201683044434,
0.04823639988899231,
0.6753779649734497,
0.17207330465316772,
-0.5243873596191406,
-0.11918508261442184,
-0.25500422716140747,
-0.6359118819236755,
0.31864026188850403,
0.04003138840198517,
-0.3737899363040924,
-0.07856417447328568,
0.18260721862316132,
0.1778329610824585,
0.025572268292307854,
0.1534198820590973,
0.6617462038993835,
0.20245562493801117,
-0.32336950302124023,
0.6287363767623901,
-0.3320903778076172,
0.4036247730255127,
-0.44028356671333313,
-0.01236573327332735,
-0.2627409100532532,
0.307233601808548,
-0.13593411445617676,
-0.5949006080627441,
-0.0458151176571846,
-0.2295747846364975,
-0.0711997002363205,
-0.09057126194238663,
0.6732231378555298,
-0.20938007533550262,
-0.8561707735061646,
0.40712404251098633,
0.29094335436820984,
0.4558715522289276,
0.3388005197048187,
-0.9900685548782349,
0.0844474509358406,
-0.03956469148397446,
-0.4109567105770111,
-0.013371378183364868,
0.5266661643981934,
0.30844447016716003,
0.6672013401985168,
0.28127360343933105,
0.33109989762306213,
0.15116752684116364,
0.053486261516809464,
0.7478814721107483,
-0.34342920780181885,
-0.19181720912456512,
-0.3421482443809509,
0.6453081965446472,
-0.37357765436172485,
-0.6012052297592163,
0.9868953824043274,
0.8210383057594299,
0.5826144814491272,
-0.2726416289806366,
0.28714075684547424,
0.054958079010248184,
0.2855357825756073,
-0.6208446621894836,
0.7294188141822815,
-1.2405457496643066,
-0.1339414119720459,
-0.38078340888023376,
-1.2712541818618774,
-0.10215876251459122,
0.5027781128883362,
0.2719801664352417,
0.41700559854507446,
0.4438379108905792,
0.9262328147888184,
-0.3209543228149414,
-0.04376964271068573,
0.1575929820537567,
0.32692304253578186,
0.4959758222103119,
0.31849443912506104,
0.682049572467804,
-0.642547607421875,
-0.06378520280122757,
-0.6232519149780273,
-0.4671780467033386,
-0.6777022480964661,
-0.6872643232345581,
-0.9710947275161743,
-0.8359118700027466,
-0.4235377013683319,
-0.5288196206092834,
0.03482578694820404,
0.8918808102607727,
0.8172210454940796,
-0.8560469746589661,
-0.0572887621819973,
0.5643899440765381,
-0.11323275417089462,
-0.15982352197170258,
-0.24091503024101257,
0.08757267147302628,
0.6771416664123535,
-1.0320512056350708,
0.4995618164539337,
0.37056952714920044,
0.49076035618782043,
-0.257148802280426,
0.39310288429260254,
-0.2664724886417389,
0.2662496864795685,
0.19037939608097076,
0.15104474127292633,
-0.6045792698860168,
-0.16066701710224152,
-0.049945805221796036,
-0.18230892717838287,
0.19907747209072113,
0.958020031452179,
-0.3511326014995575,
0.4323229491710663,
0.8390138149261475,
0.0031908825039863586,
0.7827346324920654,
-0.20833495259284973,
0.36918431520462036,
0.11479502171278,
0.3380875885486603,
0.08382780849933624,
0.7495509386062622,
0.3699638843536377,
-0.5592079162597656,
0.4411372244358063,
0.3205864429473877,
-0.48172569274902344,
-0.6534526348114014,
0.3751751780509949,
-1.5615360736846924,
-0.3707331120967865,
0.8991432785987854,
0.05517645925283432,
-0.8586511611938477,
0.5330447554588318,
-0.2965584099292755,
0.22204943001270294,
-0.204766646027565,
0.5519102811813354,
0.6844976544380188,
0.16736933588981628,
-0.3633062541484833,
-0.9530385136604309,
0.04190937057137489,
0.21159696578979492,
-0.6765221357345581,
-0.26612389087677,
0.31208163499832153,
0.547814667224884,
0.09091929346323013,
0.30297160148620605,
-0.54025799036026,
0.6656826138496399,
-0.20075808465480804,
0.2092340737581253,
-0.06001534312963486,
-0.3405434489250183,
0.5294110774993896,
0.0656801238656044,
0.02871204912662506,
-0.41168975830078125
] |
Helsinki-NLP/opus-mt-en-fr | Helsinki-NLP | "2023-08-16T11:29:35Z" | 88,202 | 22 | transformers | [
"transformers",
"pytorch",
"tf",
"jax",
"marian",
"text2text-generation",
"translation",
"en",
"fr",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | translation | "2022-03-02T23:29:04Z" | ---
tags:
- translation
license: apache-2.0
---
### opus-mt-en-fr
* source languages: en
* target languages: fr
* OPUS readme: [en-fr](https://github.com/Helsinki-NLP/OPUS-MT-train/blob/master/models/en-fr/README.md)
* dataset: opus
* model: transformer-align
* pre-processing: normalization + SentencePiece
* download original weights: [opus-2020-02-26.zip](https://object.pouta.csc.fi/OPUS-MT-models/en-fr/opus-2020-02-26.zip)
* test set translations: [opus-2020-02-26.test.txt](https://object.pouta.csc.fi/OPUS-MT-models/en-fr/opus-2020-02-26.test.txt)
* test set scores: [opus-2020-02-26.eval.txt](https://object.pouta.csc.fi/OPUS-MT-models/en-fr/opus-2020-02-26.eval.txt)
## Benchmarks
| testset | BLEU | chr-F |
|-----------------------|-------|-------|
| newsdiscussdev2015-enfr.en.fr | 33.8 | 0.602 |
| newsdiscusstest2015-enfr.en.fr | 40.0 | 0.643 |
| newssyscomb2009.en.fr | 29.8 | 0.584 |
| news-test2008.en.fr | 27.5 | 0.554 |
| newstest2009.en.fr | 29.4 | 0.577 |
| newstest2010.en.fr | 32.7 | 0.596 |
| newstest2011.en.fr | 34.3 | 0.611 |
| newstest2012.en.fr | 31.8 | 0.592 |
| newstest2013.en.fr | 33.2 | 0.589 |
| Tatoeba.en.fr | 50.5 | 0.672 |
| [
-0.4755152761936188,
-0.40986406803131104,
0.31511190533638,
0.44702592492103577,
-0.42570164799690247,
-0.4180273711681366,
-0.3693591058254242,
-0.15376177430152893,
0.08973833173513412,
0.46109136939048767,
-0.9041013121604919,
-0.6320434212684631,
-0.7021795511245728,
0.26908281445503235,
-0.07781333476305008,
0.8094654083251953,
-0.2238728106021881,
0.48498430848121643,
0.18403396010398865,
-0.5379566550254822,
-0.4160079061985016,
-0.4345757067203522,
-0.48826906085014343,
-0.4290243983268738,
0.34417763352394104,
0.5226491689682007,
0.3965418040752411,
0.4579351842403412,
1.036993145942688,
0.275271475315094,
-0.15203458070755005,
0.04098978266119957,
-0.4556569755077362,
-0.19122032821178436,
0.25139185786247253,
-0.6432337760925293,
-0.8993470668792725,
-0.11509710550308228,
1.07594895362854,
0.5117920637130737,
-0.05558671057224274,
0.46365275979042053,
0.029377121478319168,
1.1143014430999756,
-0.2907736897468567,
0.03414569050073624,
-0.5766429901123047,
0.16252586245536804,
-0.3653726577758789,
-0.3689204752445221,
-0.6474369168281555,
-0.22775831818580627,
0.017245611175894737,
-0.6611364483833313,
0.13890817761421204,
0.1796993762254715,
1.6143966913223267,
0.26314252614974976,
-0.31382036209106445,
-0.0994252935051918,
-0.5808743834495544,
1.1466519832611084,
-0.9089896082878113,
0.6611087918281555,
0.40454667806625366,
0.2537555992603302,
0.1300288736820221,
-0.6023207902908325,
-0.420398473739624,
0.23497186601161957,
-0.27717307209968567,
0.33341777324676514,
-0.16631783545017242,
-0.2891961932182312,
0.3374587595462799,
0.8566420078277588,
-0.9064319729804993,
0.012785310856997967,
-0.6609518527984619,
0.041505366563797,
0.7979061603546143,
0.22043538093566895,
0.18498824536800385,
-0.1718382090330124,
-0.5130825638771057,
-0.5959874987602234,
-0.8733155131340027,
0.21607160568237305,
0.45217275619506836,
0.2894359529018402,
-0.5453131794929504,
0.7080563306808472,
-0.21740329265594482,
0.7258589267730713,
-0.02110971137881279,
-0.08898025751113892,
1.1586267948150635,
-0.39719492197036743,
-0.3541660010814667,
-0.14807280898094177,
1.376765251159668,
0.5031649470329285,
0.011174643412232399,
0.1793297678232193,
-0.3081720173358917,
-0.29639580845832825,
0.07001877576112747,
-1.0833216905593872,
-0.053407419472932816,
0.22418707609176636,
-0.509870171546936,
-0.14680124819278717,
0.09642263501882553,
-0.7992430329322815,
0.30994123220443726,
-0.40088558197021484,
0.6112465858459473,
-0.6320520639419556,
-0.2509783208370209,
0.3966982066631317,
0.01597621664404869,
0.41347312927246094,
0.00784337893128395,
-0.6932553648948669,
0.24005240201950073,
0.4234759211540222,
0.8059131503105164,
-0.40728819370269775,
-0.27111896872520447,
-0.3684702217578888,
-0.21811610460281372,
-0.157447949051857,
0.7557299137115479,
-0.12738662958145142,
-0.46640706062316895,
-0.13602899014949799,
0.5441150665283203,
-0.3919695317745209,
-0.4055236577987671,
1.4547452926635742,
-0.28243282437324524,
0.8803849816322327,
-0.46177926659584045,
-0.5955225229263306,
-0.3577137589454651,
0.5567207932472229,
-0.5818271636962891,
1.4918107986450195,
0.07770784944295883,
-0.9571816921234131,
0.2601366341114044,
-0.8953884243965149,
-0.08934790641069412,
-0.11591172963380814,
-0.0022265096195042133,
-0.8153119087219238,
0.013606457971036434,
0.2132299393415451,
0.4613831639289856,
-0.44089311361312866,
0.31341803073883057,
-0.04241585731506348,
-0.3354855179786682,
-0.00665742252022028,
-0.45124587416648865,
1.2055567502975464,
0.34653106331825256,
-0.3222281038761139,
0.23373915255069733,
-1.1068710088729858,
0.003972459118813276,
0.13234327733516693,
-0.5399214625358582,
-0.15444491803646088,
0.049686018377542496,
0.24028339982032776,
0.11122138798236847,
0.24022510647773743,
-0.7300044894218445,
0.249860942363739,
-0.7219412326812744,
0.27451828122138977,
0.7037620544433594,
-0.2364898920059204,
0.42097505927085876,
-0.5571973919868469,
0.41162487864494324,
0.12677644193172455,
0.21887202560901642,
0.07634594291448593,
-0.5196896195411682,
-0.9462754726409912,
-0.308027058839798,
0.5176137089729309,
1.1337478160858154,
-0.729967474937439,
0.9942746162414551,
-0.7282223701477051,
-0.905565619468689,
-0.7306102514266968,
-0.15282562375068665,
0.4335227906703949,
0.5556210279464722,
0.5578601360321045,
-0.1999828815460205,
-0.4702163636684418,
-1.2737951278686523,
-0.11507921665906906,
-0.14788739383220673,
-0.19893774390220642,
0.25197911262512207,
0.7876663208007812,
-0.08783691376447678,
0.667054295539856,
-0.693926990032196,
-0.4851840138435364,
-0.23939307034015656,
0.20081695914268494,
0.6762359142303467,
0.7737396955490112,
0.6893039345741272,
-1.019329309463501,
-0.6846359968185425,
-0.09037017077207565,
-0.7269312143325806,
-0.2387535572052002,
0.08088850975036621,
-0.31208640336990356,
0.030359484255313873,
0.12329715490341187,
-0.4166345000267029,
0.1096143126487732,
0.6805713772773743,
-0.7001006007194519,
0.6381320357322693,
-0.102349653840065,
0.30884572863578796,
-1.5467129945755005,
0.09594184905290604,
-0.163295716047287,
-0.09307756274938583,
-0.5556806921958923,
-0.05689413100481033,
0.2894875407218933,
0.154297336935997,
-0.80355304479599,
0.680542528629303,
-0.41644927859306335,
-0.050884097814559937,
0.3683329224586487,
-0.03893452137708664,
0.12759503722190857,
0.8159458637237549,
-0.06425169855356216,
0.8887559771537781,
0.8034552335739136,
-0.5096712112426758,
0.15936750173568726,
0.5728247165679932,
-0.5756957530975342,
0.4694143235683441,
-0.8547376394271851,
-0.3352660536766052,
0.21193236112594604,
-0.04721581190824509,
-0.8619734048843384,
0.011548742651939392,
0.4095664620399475,
-0.7802290320396423,
0.5082566738128662,
-0.09062950313091278,
-0.7537268400192261,
-0.2025020271539688,
-0.3555724322795868,
0.43863508105278015,
0.7025980949401855,
-0.1949564665555954,
0.6327827572822571,
0.19942031800746918,
-0.06793846935033798,
-0.511676013469696,
-1.111314296722412,
-0.22135528922080994,
-0.49206292629241943,
-0.887860119342804,
0.3536195158958435,
-0.46180206537246704,
0.038249582052230835,
-0.0023557806853204966,
0.28117117285728455,
-0.11166468262672424,
-0.004138430580496788,
0.11787009984254837,
0.2947784960269928,
-0.49675416946411133,
0.029539024457335472,
-0.0542721301317215,
-0.18782515823841095,
-0.07224225997924805,
-0.09341232478618622,
0.6678413152694702,
-0.452472984790802,
-0.36555513739585876,
-0.5947854518890381,
0.05438584089279175,
0.6627089381217957,
-0.45957857370376587,
0.9112443327903748,
0.6497084498405457,
-0.17378206551074982,
0.2151876986026764,
-0.4539487361907959,
0.05855296179652214,
-0.5076367855072021,
0.2044762521982193,
-0.5346072316169739,
-0.91591477394104,
0.6996313333511353,
0.20954778790473938,
0.5828508138656616,
1.0040075778961182,
0.7053489685058594,
0.09629485011100769,
0.9330215454101562,
0.3378494381904602,
0.18463537096977234,
0.5420210361480713,
-0.6085121035575867,
-0.16237859427928925,
-1.1613484621047974,
-0.0822390541434288,
-0.7614246606826782,
-0.4697178900241852,
-0.9557034373283386,
-0.31047242879867554,
0.38695982098579407,
0.05729806795716286,
-0.40560558438301086,
0.7450562715530396,
-0.7087377905845642,
0.2603186070919037,
0.6432994604110718,
-0.0872887521982193,
0.28778862953186035,
0.07087573409080505,
-0.6015825867652893,
-0.2804272472858429,
-0.5678462386131287,
-0.49001824855804443,
1.330856204032898,
0.4670959711074829,
0.34627261757850647,
0.2939002215862274,
0.7137495279312134,
-0.04361864551901817,
0.32158541679382324,
-0.6508924961090088,
0.5519929528236389,
-0.22669759392738342,
-0.9201234579086304,
-0.36136355996131897,
-0.7058859467506409,
-0.817470371723175,
0.6169084906578064,
-0.2886081337928772,
-0.6680815815925598,
0.3154211640357971,
-0.015476361848413944,
-0.20296266674995422,
0.5441286563873291,
-0.7442724108695984,
1.2563786506652832,
-0.12604905664920807,
-0.19207452237606049,
0.33788058161735535,
-0.5692307949066162,
0.3567911684513092,
0.020115967839956284,
0.3955298066139221,
-0.34036535024642944,
0.15252412855625153,
0.8640260696411133,
-0.22681091725826263,
0.465053915977478,
-0.09383843839168549,
-0.06966045498847961,
0.11304261535406113,
0.0668049231171608,
0.4902656376361847,
-0.15066298842430115,
-0.356235146522522,
0.3899335563182831,
0.08288665860891342,
-0.4551088213920593,
-0.1304606795310974,
0.6334770321846008,
-0.8233234286308289,
-0.21308501064777374,
-0.5755589604377747,
-0.6806337833404541,
-0.03118106536567211,
0.47141677141189575,
0.7737388014793396,
0.7143911719322205,
-0.30394282937049866,
0.6830545663833618,
0.8941956162452698,
-0.3869861960411072,
0.43271827697753906,
0.7897090315818787,
-0.20240089297294617,
-0.6491377353668213,
0.9337978363037109,
0.11670996993780136,
0.36393338441848755,
0.6721471548080444,
0.17592744529247284,
-0.23574046790599823,
-0.7386006116867065,
-0.79753178358078,
0.25238633155822754,
-0.3438933193683624,
-0.25624746084213257,
-0.6867622137069702,
-0.12269493192434311,
-0.3022250235080719,
0.10498993843793869,
-0.5850146412849426,
-0.6468806862831116,
-0.24004201591014862,
-0.22488640248775482,
0.2956130802631378,
0.2256132811307907,
-0.15965145826339722,
0.48889410495758057,
-1.1113868951797485,
0.17910434305667877,
-0.1582278460264206,
0.39948219060897827,
-0.4540182650089264,
-0.952533483505249,
-0.40302154421806335,
0.046037036925554276,
-0.7167847156524658,
-0.7997570633888245,
0.6666664481163025,
0.17500048875808716,
0.3330252468585968,
0.43722909688949585,
0.15584765374660492,
0.531423807144165,
-0.7909524440765381,
1.0861843824386597,
0.1964498609304428,
-0.6762700080871582,
0.5432918071746826,
-0.4862423539161682,
0.5004589557647705,
0.9784400463104248,
0.2930314838886261,
-0.3938726484775543,
-0.5939076542854309,
-0.8333616256713867,
-1.016158103942871,
1.0216902494430542,
0.7617040872573853,
-0.11149600148200989,
0.19185172021389008,
-0.15412376821041107,
-0.04937320202589035,
0.11787960678339005,
-1.2126779556274414,
-0.5918552279472351,
0.13099294900894165,
-0.4355720281600952,
-0.13915881514549255,
-0.31457391381263733,
-0.29517972469329834,
-0.3591628968715668,
1.1283105611801147,
0.16841670870780945,
0.32953789830207825,
0.46701934933662415,
0.037474628537893295,
-0.18995118141174316,
0.42026031017303467,
1.0557301044464111,
0.6085422039031982,
-0.6318759918212891,
-0.12624815106391907,
0.3572685420513153,
-0.5210815072059631,
-0.12163549661636353,
0.1528368592262268,
-0.457582026720047,
0.2877349555492401,
0.43717485666275024,
1.112272024154663,
0.19393810629844666,
-0.618658185005188,
0.5463021397590637,
-0.3776678740978241,
-0.5976800322532654,
-0.7873451709747314,
-0.16999176144599915,
0.1351005584001541,
0.08679573982954025,
0.2729681730270386,
0.2204737812280655,
0.15964367985725403,
-0.24721726775169373,
0.20490342378616333,
0.16164861619472504,
-0.7115841507911682,
-0.5243323445320129,
0.6947818994522095,
0.1084175780415535,
-0.22005829215049744,
0.4684543013572693,
-0.3822302222251892,
-0.6754881739616394,
0.5490370392799377,
0.1752333641052246,
1.1463550329208374,
-0.24834540486335754,
-0.25236397981643677,
0.9403207898139954,
0.6603047251701355,
-0.2929810881614685,
0.5823085308074951,
0.18237939476966858,
-0.7457961440086365,
-0.4742048382759094,
-0.9644761681556702,
-0.07749290019273758,
0.1340431272983551,
-1.0015876293182373,
0.42781439423561096,
0.3325197994709015,
-0.08177853375673294,
-0.3235853612422943,
0.2687263786792755,
-0.6866700053215027,
0.14586208760738373,
-0.24789480865001678,
1.26210618019104,
-1.0855437517166138,
0.9381870627403259,
0.56806880235672,
-0.3402586877346039,
-0.9230045676231384,
-0.316410630941391,
-0.17191579937934875,
-0.5796343088150024,
0.6699036955833435,
0.16652481257915497,
0.3725956678390503,
-0.15557479858398438,
-0.3215620219707489,
-1.048069953918457,
1.3177570104599,
0.134162038564682,
-0.6756146550178528,
0.08890784531831741,
0.19572529196739197,
0.5224285125732422,
-0.41945552825927734,
0.18364694714546204,
0.47017616033554077,
0.8545777201652527,
0.19335351884365082,
-1.154170274734497,
-0.17469251155853271,
-0.6552650332450867,
-0.4041357636451721,
0.6632208228111267,
-0.7814539074897766,
1.163949728012085,
0.4180230498313904,
-0.1322796642780304,
0.013899093493819237,
0.6625908613204956,
0.4082861542701721,
0.3176765441894531,
0.612191379070282,
1.3179008960723877,
0.4883301854133606,
-0.6349697709083557,
1.059323787689209,
-0.43565353751182556,
0.6468893885612488,
1.2560313940048218,
0.01412856113165617,
0.9949493408203125,
0.40464967489242554,
-0.28267407417297363,
0.549691379070282,
0.792486310005188,
-0.3456924557685852,
0.5829315781593323,
-0.0058286297135055065,
0.12555505335330963,
-0.25302064418792725,
0.27530527114868164,
-0.8128894567489624,
0.20919238030910492,
0.28674596548080444,
-0.2855536639690399,
-0.028161635622382164,
-0.13970957696437836,
0.09851997345685959,
-0.2007603496313095,
-0.13867852091789246,
0.5551459193229675,
0.014219989068806171,
-0.6294967532157898,
0.8236345052719116,
-0.021077174693346024,
0.6798646450042725,
-0.7778947949409485,
0.10724598914384842,
-0.1360160857439041,
0.3356470763683319,
-0.09587465226650238,
-0.7792389988899231,
0.5627407431602478,
0.08080440759658813,
-0.35092559456825256,
-0.5310152173042297,
0.2288815677165985,
-0.5750815272331238,
-1.0578227043151855,
0.3556775450706482,
0.4577852189540863,
0.32665565609931946,
0.07088106870651245,
-0.9699689149856567,
-0.004812790546566248,
0.21136263012886047,
-0.7914734482765198,
0.06664516776800156,
0.7889664769172668,
0.3649025559425354,
0.5083327889442444,
0.6745403409004211,
0.22969047725200653,
0.25719085335731506,
-0.09437461942434311,
0.8287081718444824,
-0.4607986807823181,
-0.522276759147644,
-0.8747575879096985,
0.8992317914962769,
-0.1379561871290207,
-0.7356356382369995,
0.7803151607513428,
1.1807360649108887,
1.1255484819412231,
-0.05936308205127716,
0.30346164107322693,
-0.23149685561656952,
0.823637068271637,
-0.7125558257102966,
0.6979462504386902,
-1.2015058994293213,
0.2902897596359253,
-0.07018344849348068,
-1.023381233215332,
-0.3262553811073303,
0.3699766993522644,
-0.3431382179260254,
-0.355744332075119,
0.7580334544181824,
0.7784185409545898,
-0.15391717851161957,
-0.18151919543743134,
0.2540067136287689,
0.3605213761329651,
0.2384556382894516,
0.7013471126556396,
0.47001180052757263,
-1.0605937242507935,
0.6076743602752686,
-0.4138830304145813,
-0.14117948710918427,
-0.10586069524288177,
-0.7607656121253967,
-0.9280686378479004,
-0.6544719934463501,
-0.14670276641845703,
-0.23013947904109955,
-0.37558940052986145,
1.0117460489273071,
0.5733999609947205,
-1.0683916807174683,
-0.555924654006958,
0.013517317362129688,
0.09082261472940445,
-0.21988330781459808,
-0.32098156213760376,
0.7344763875007629,
-0.22204606235027313,
-1.0420747995376587,
0.4629165232181549,
0.04287697747349739,
-0.012245056219398975,
0.013552858494222164,
-0.3789507746696472,
-0.48803389072418213,
-0.07784871011972427,
0.35229620337486267,
0.03130536153912544,
-0.6085553169250488,
0.10211961716413498,
0.15824204683303833,
-0.09176891297101974,
0.5212090015411377,
0.26854586601257324,
-0.20924112200737,
0.2319084107875824,
1.0187609195709229,
0.21167726814746857,
0.5814563632011414,
-0.10957254469394684,
0.49167290329933167,
-0.8603395223617554,
0.3551645576953888,
0.2215791493654251,
0.6885647773742676,
0.30532094836235046,
-0.02192407101392746,
0.8893905878067017,
0.29289817810058594,
-0.6823472380638123,
-1.2204526662826538,
0.004532517399638891,
-1.2815756797790527,
-0.02598671428859234,
1.0584924221038818,
-0.22145932912826538,
-0.3119197189807892,
0.41181713342666626,
-0.11705216765403748,
0.09701424092054367,
-0.406594842672348,
0.4654160439968109,
1.0567678213119507,
0.22178030014038086,
0.049602486193180084,
-0.9533697962760925,
0.4036389887332916,
0.40878763794898987,
-0.7754303216934204,
-0.21636423468589783,
0.24368292093276978,
0.20679111778736115,
0.441922128200531,
0.6245879530906677,
-0.3860929310321808,
0.00086042849579826,
-0.23880334198474884,
0.4795699119567871,
-0.09870333969593048,
-0.21945586800575256,
-0.258196622133255,
0.013306215405464172,
-0.1165199801325798,
-0.31167322397232056
] |
prompthero/openjourney-v4 | prompthero | "2023-05-15T22:41:59Z" | 88,030 | 1,170 | diffusers | [
"diffusers",
"stable-diffusion",
"text-to-image",
"license:creativeml-openrail-m",
"endpoints_compatible",
"has_space",
"diffusers:StableDiffusionPipeline",
"region:us"
] | text-to-image | "2022-12-11T17:37:55Z" | ---
license: creativeml-openrail-m
tags:
- stable-diffusion
- text-to-image
pinned: true
---
# <u>Openjourney v4</u>
## Trained on +124k Midjourney v4 images, by [PromptHero](https://prompthero.com/?utm_source=huggingface&utm_medium=referral)
Trained on Stable Diffusion v1.5 using +124000 images, 12400 steps, 4 epochs +32 training hours.
💡 [Openjourney-v4 prompts](https://prompthero.com/openjourney-prompts?version=4)
Pss... "mdjrny-v4 style" is not necessary anymore (yay!)
🎓 **Want to learn how to train Openjourney? 👉🏼 __[Join our course](https://prompthero.com/academy/dreambooth-stable-diffusion-train-fine-tune-course?utm_source=huggingface&utm_medium=referral)__ 🔥**
<img src="https://s3.us-east-1.amazonaws.com/prompthero-newsletter/Group-66.png" alt="openjourney-v4" width="50%">
# Openjourney Links
- [Lora version](https://huggingface.co/prompthero/openjourney-lora)
- [Openjourney Dreambooth](https://huggingface.co/prompthero/openjourney) | [
-0.49559932947158813,
-0.419679194688797,
0.4151521623134613,
0.2711509168148041,
-0.5801658630371094,
-0.2707674503326416,
0.04409266635775566,
-0.15658022463321686,
0.5944947600364685,
0.5166798233985901,
-0.8255345821380615,
-0.6728675961494446,
-0.4148796796798706,
-0.12208442389965057,
0.31076380610466003,
0.8842628002166748,
-0.5964325666427612,
0.3308059573173523,
-0.03452698141336441,
-0.3319185674190521,
-0.5598199963569641,
-0.026285745203495026,
-1.0004911422729492,
-0.4498215913772583,
0.5991227030754089,
0.43975991010665894,
0.3457848131656647,
0.23739150166511536,
0.22016984224319458,
0.3603496253490448,
-0.139075368642807,
-0.03695274889469147,
-0.7409294247627258,
0.22870858013629913,
-0.07075922191143036,
-0.378598690032959,
-0.7099501490592957,
0.2703854441642761,
0.9482033252716064,
0.46605584025382996,
-0.16384589672088623,
0.3660447299480438,
0.07254994660615921,
0.9576656818389893,
-0.5861458778381348,
0.20800597965717316,
-0.1896038055419922,
0.473953515291214,
-0.4645763635635376,
0.04706616327166557,
-0.18079876899719238,
-0.4714561998844147,
-0.21946878731250763,
-0.8837928175926208,
0.050033316016197205,
0.04679588973522186,
0.9430908560752869,
-0.04186369106173515,
-0.24181532859802246,
0.35931745171546936,
-0.34222212433815,
0.6262275576591492,
-0.3196817934513092,
0.3332645893096924,
0.37654179334640503,
0.6587887406349182,
-0.0976761132478714,
-0.735025942325592,
-0.3203219175338745,
0.440612256526947,
0.47741398215293884,
0.36102133989334106,
-0.15643788874149323,
-0.1967455893754959,
0.3929528594017029,
0.24185185134410858,
-0.5799054503440857,
0.05021487548947334,
-0.6088807582855225,
-0.2335161566734314,
0.33151689171791077,
0.17762373387813568,
0.09573035687208176,
0.3012232184410095,
-0.6204378008842468,
-0.1516457498073578,
-0.6289376020431519,
0.22162167727947235,
0.5288643836975098,
-0.08063974231481552,
-0.5881838202476501,
0.5479786992073059,
-0.3534815013408661,
0.5022298693656921,
0.17614541947841644,
-0.23149488866329193,
0.9131019115447998,
-0.3870663642883301,
-0.2903442978858948,
-0.18237286806106567,
0.9087660312652588,
0.550929605960846,
-0.1300802230834961,
0.00942826084792614,
0.05064469948410988,
-0.3879335820674896,
0.03452419117093086,
-1.1858817338943481,
-0.187764510512352,
-0.02593633532524109,
-0.5837462544441223,
-0.37510785460472107,
0.06562954932451248,
-0.9691457152366638,
0.08186358213424683,
0.045882340520620346,
0.3582318425178528,
-0.5369229912757874,
-0.5767916440963745,
0.23278826475143433,
-0.23271945118904114,
0.22710564732551575,
0.6899325847625732,
-0.5182897448539734,
0.11831983178853989,
0.05101815238595009,
1.05240797996521,
-0.011341046541929245,
-0.3207821249961853,
-0.28156501054763794,
-0.029196834191679955,
-0.3125044107437134,
0.5123785138130188,
-0.3038778007030487,
-0.3928978145122528,
-0.08914943039417267,
0.16480600833892822,
-0.23717865347862244,
-0.40944600105285645,
0.8682205080986023,
-0.6737620234489441,
0.4086619019508362,
-0.4385262429714203,
-0.15088699758052826,
-0.28209951519966125,
0.17269586026668549,
-0.5141557455062866,
0.72454833984375,
0.3346962630748749,
-0.9161384105682373,
0.22336037456989288,
-1.073301076889038,
0.16748055815696716,
-0.12197183817625046,
0.1568887084722519,
-0.40285512804985046,
-0.4105859696865082,
0.06630003452301025,
0.4351527988910675,
0.258944034576416,
-0.4562233090400696,
-0.5299240350723267,
-0.2146068960428238,
0.10346458107233047,
-0.39972978830337524,
1.0919939279556274,
0.38885819911956787,
-0.04192150756716728,
0.14735618233680725,
-0.8671327233314514,
-0.08650901913642883,
0.4555450677871704,
-0.3894633948802948,
-0.29428520798683167,
-0.7233088612556458,
-0.18639430403709412,
0.2891566753387451,
0.5383452773094177,
-0.7641376852989197,
0.5233407616615295,
-0.39098498225212097,
0.05557743459939957,
1.1306705474853516,
0.27863118052482605,
0.4579179883003235,
-0.3828365206718445,
0.9248459339141846,
0.6466864347457886,
0.26023975014686584,
-0.26152926683425903,
-0.8822090029716492,
-0.6478926539421082,
-0.057999543845653534,
0.047308165580034256,
0.14721925556659698,
-0.8779665231704712,
0.37424442172050476,
0.01801059953868389,
-0.7458409667015076,
-0.5213146805763245,
-0.11491206288337708,
0.3451350927352905,
0.7846934199333191,
0.49445945024490356,
-0.6010512113571167,
-0.4910661280155182,
-0.3752659857273102,
0.13474172353744507,
0.15808145701885223,
0.20430926978588104,
-0.020227011293172836,
0.49153050780296326,
-0.3381173014640808,
0.538982093334198,
-0.663663387298584,
-0.12182237952947617,
0.14781543612480164,
-0.08242505043745041,
0.5364663600921631,
0.48511311411857605,
0.9374809265136719,
-0.5162153840065002,
-0.5886778831481934,
-0.3812093734741211,
-0.8298046588897705,
0.03624025359749794,
0.2245451956987381,
-0.8323401212692261,
0.34154289960861206,
0.18942490220069885,
-0.7959228157997131,
0.4573609530925751,
0.5096573829650879,
-0.8202771544456482,
0.613247275352478,
-0.17919933795928955,
0.38478875160217285,
-1.139417290687561,
-0.1015278548002243,
0.16643895208835602,
-0.4429953992366791,
-0.15121427178382874,
0.155873641371727,
-0.14807243645191193,
-0.032015930861234665,
-0.7519926428794861,
0.8068239092826843,
-0.689832866191864,
0.2566942870616913,
-0.01685970462858677,
0.08190274983644485,
0.06598317623138428,
0.4503379464149475,
-0.27810490131378174,
0.3688177764415741,
1.1082369089126587,
-0.41500651836395264,
0.35075539350509644,
0.7304143309593201,
-0.22096870839595795,
0.6590405106544495,
-0.32980793714523315,
0.24896593391895294,
-0.09198679774999619,
0.49568063020706177,
-1.0167516469955444,
-0.2269033044576645,
0.9152005314826965,
-0.3116345703601837,
0.5616366863250732,
-0.313677579164505,
-0.371471107006073,
-0.5338857173919678,
-0.6205907464027405,
0.6171107888221741,
0.9209763407707214,
-0.6877170205116272,
0.05619174614548683,
0.26446953415870667,
0.23932771384716034,
-0.7839944958686829,
-0.3708283603191376,
-0.29392585158348083,
-0.2828429043292999,
-0.6950040459632874,
0.12529076635837555,
-0.22284182906150818,
0.07518403232097626,
-0.16800329089164734,
-0.15344814956188202,
-0.0017719569150358438,
-0.22541166841983795,
0.6397666931152344,
0.30926477909088135,
-0.40957707166671753,
-0.4313449263572693,
0.1617182195186615,
-0.2969495952129364,
0.1258988082408905,
-0.2710139751434326,
0.6890360713005066,
-0.12725426256656647,
-0.42713627219200134,
-0.7997634410858154,
-0.028519198298454285,
0.47726374864578247,
0.08385974168777466,
0.9514795541763306,
1.0505766868591309,
-0.2656625807285309,
0.20308206975460052,
-0.31299248337745667,
-0.019156979396939278,
-0.5661830306053162,
-0.11088009923696518,
-0.503512442111969,
-0.7726480960845947,
0.3751157224178314,
-0.04901311919093132,
-0.04044022411108017,
0.8066032528877258,
0.5752645134925842,
-0.21666760742664337,
0.9224839806556702,
0.26337507367134094,
-0.0546487458050251,
0.5353137850761414,
-0.792540967464447,
-0.18694494664669037,
-1.0988010168075562,
-0.5893382430076599,
-0.24596357345581055,
-0.5050063133239746,
-0.2910867929458618,
-0.6178591847419739,
0.4229414761066437,
0.37373194098472595,
-0.7842257022857666,
0.30216458439826965,
-0.39932361245155334,
0.37224334478378296,
0.3635563552379608,
0.3917173445224762,
0.16701830923557281,
-0.024890916422009468,
-0.27541661262512207,
-0.14746122062206268,
-0.7012172341346741,
-0.3234032094478607,
1.155273675918579,
0.5835956335067749,
0.8999243378639221,
0.10299783200025558,
0.9355267286300659,
-0.1952463835477829,
-0.10050740092992783,
-0.391447514295578,
0.9230592250823975,
0.46387287974357605,
-0.2940995693206787,
-0.25841379165649414,
-0.45884937047958374,
-1.3487788438796997,
0.22954030334949493,
-0.412406861782074,
-0.44348767399787903,
0.07103955745697021,
0.2204722911119461,
-0.02639641985297203,
0.537105917930603,
-0.5116748809814453,
0.9706301689147949,
0.06146883964538574,
-0.41431158781051636,
0.002636687597259879,
-0.8235266804695129,
0.3330991268157959,
0.06628511101007462,
0.07001570612192154,
-0.14757448434829712,
-0.1987048089504242,
0.8703827857971191,
-0.6395177841186523,
0.8758335709571838,
-0.7449476718902588,
0.1586926132440567,
0.3139568269252777,
-0.17774604260921478,
0.26039838790893555,
0.05563810467720032,
-0.03210465982556343,
0.37405556440353394,
-0.22998817265033722,
-0.6100426316261292,
-0.05894884839653969,
0.9579330086708069,
-1.068029522895813,
-0.11251571029424667,
-0.6813257336616516,
-0.16681170463562012,
0.0015269736759364605,
0.4202621579170227,
0.849668562412262,
0.3243963122367859,
-0.2718217372894287,
-0.10513202846050262,
0.8748185634613037,
0.12338092178106308,
0.6044200658798218,
0.24826428294181824,
-0.49247264862060547,
-0.5171809792518616,
0.7056159973144531,
0.15875205397605896,
0.1078520193696022,
0.09868580847978592,
0.29310375452041626,
-0.38564997911453247,
-0.7940914630889893,
-0.5955968499183655,
0.5767585039138794,
-0.6187288761138916,
-0.30759403109550476,
-0.6499569416046143,
-0.22091202437877655,
-0.7732731103897095,
0.025698287412524223,
-0.3800733983516693,
-0.49937233328819275,
-0.967466413974762,
-0.1488642543554306,
0.6760663390159607,
0.5305361151695251,
-0.34107768535614014,
0.2693274915218353,
-0.7895990014076233,
0.3356569707393646,
0.04877534881234169,
0.3236891031265259,
-0.11706485599279404,
-0.8928481340408325,
-0.4950891435146332,
0.13059987127780914,
-0.8073859810829163,
-0.9285558462142944,
0.2406463921070099,
0.04597988724708557,
0.7348806262016296,
0.8328558802604675,
-0.04790257290005684,
0.7425678968429565,
-0.6891123652458191,
0.9676114320755005,
0.8858503103256226,
-0.4033754765987396,
0.7321681380271912,
-0.6264764666557312,
0.2982216775417328,
0.633716881275177,
0.8348590135574341,
-0.15730710327625275,
-0.08577058464288712,
-0.9088030457496643,
-0.907197117805481,
0.6597859859466553,
0.23149381577968597,
0.11084911227226257,
0.3258074223995209,
0.5082384347915649,
0.15195448696613312,
0.15379925072193146,
-0.9409533143043518,
-0.5524525046348572,
-0.4791146218776703,
-0.02923130989074707,
0.0729057639837265,
-0.09352517127990723,
-0.38274717330932617,
-0.5041747093200684,
1.0957751274108887,
-0.12595286965370178,
0.4286266267299652,
0.024317283183336258,
0.43236204981803894,
-0.6217507719993591,
-0.1436498612165451,
0.4825051426887512,
0.6531470417976379,
-0.30014657974243164,
-0.3117328882217407,
-0.10042943060398102,
-0.7005735039710999,
0.3234277367591858,
0.006165370345115662,
-0.07770116627216339,
0.07761553674936295,
0.09408855438232422,
1.1044725179672241,
0.05816468968987465,
-0.23366035521030426,
0.7842196226119995,
-0.0926513522863388,
-0.33001968264579773,
-0.5535192489624023,
0.5114186406135559,
0.09741176664829254,
0.5277723670005798,
-0.14115388691425323,
0.534584105014801,
0.06112613528966904,
-0.4703306257724762,
-0.13143344223499298,
0.2816805839538574,
-0.4876370429992676,
-0.3752383291721344,
0.9508209824562073,
0.15061695873737335,
-0.11994047462940216,
0.3364492654800415,
-0.3816683888435364,
-0.06398842483758926,
0.3547467887401581,
0.6737616062164307,
0.9771677851676941,
-0.33036428689956665,
0.17139853537082672,
0.8074557185173035,
-0.12711235880851746,
-0.3530147969722748,
0.6468906402587891,
0.23857653141021729,
-0.6315395832061768,
-0.013963312841951847,
-0.625136137008667,
-0.480996310710907,
0.13030670583248138,
-0.7625477910041809,
0.5141768455505371,
-0.4297533929347992,
-0.09709639102220535,
-0.3007969856262207,
-0.09176799654960632,
-0.7856103181838989,
0.17089399695396423,
0.059812068939208984,
1.4700297117233276,
-0.8807803988456726,
0.9085458517074585,
0.8794378042221069,
-0.5156142115592957,
-0.611804723739624,
-0.03423541784286499,
0.03926459327340126,
-0.9169740676879883,
0.3486959636211395,
0.32985401153564453,
-0.06834243983030319,
0.035725049674510956,
-0.797025203704834,
-0.6988474130630493,
1.543079137802124,
0.1827218383550644,
-0.46397632360458374,
0.07673703134059906,
-0.48914623260498047,
0.37170255184173584,
-0.5690914988517761,
0.1330627053976059,
0.07151275873184204,
0.38950857520103455,
0.46216708421707153,
-0.6396364569664001,
-0.0734153464436531,
-0.3081570565700531,
0.037521202117204666,
0.2958478629589081,
-0.9549903273582458,
0.8501350283622742,
-0.3866495192050934,
0.07900147885084152,
0.3809325397014618,
0.8438214659690857,
0.3820258378982544,
0.6880305409431458,
0.6076042652130127,
1.1436058282852173,
0.5438886880874634,
-0.22784364223480225,
0.8558956384658813,
0.10386814922094345,
0.315629780292511,
0.9273769855499268,
-0.026540568098425865,
0.658652663230896,
0.37912994623184204,
-0.3675946891307831,
0.8068510293960571,
1.0781362056732178,
0.07880309224128723,
0.9384604096412659,
-0.10884831100702286,
-0.30371740460395813,
0.07123688608407974,
0.39565348625183105,
-0.7745569348335266,
0.002969724591821432,
0.09962284564971924,
-0.12452129274606705,
-0.2620958983898163,
0.5130022168159485,
0.2602250277996063,
-0.21303272247314453,
-0.5747780799865723,
0.4612264633178711,
0.07207752764225006,
-0.4504222273826599,
0.687459409236908,
-0.23118966817855835,
0.718673586845398,
-1.0057673454284668,
-0.09384238719940186,
-0.12793968617916107,
-0.0173190888017416,
-0.26326891779899597,
-0.9484731554985046,
-0.04517597705125809,
-0.11552397906780243,
0.05497615039348602,
-0.48311251401901245,
0.7069777250289917,
-0.23575352132320404,
-0.3734193742275238,
0.16659864783287048,
0.3790909945964813,
0.5838387608528137,
0.12016858905553818,
-0.9086542725563049,
-0.024758385494351387,
0.2277086079120636,
-0.6311509013175964,
0.4979636073112488,
0.5122933983802795,
0.2887602150440216,
0.3854958415031433,
0.5731753706932068,
0.14051975309848785,
0.16045618057250977,
-0.03824339434504509,
1.0717692375183105,
-0.4723438024520874,
-0.4703160226345062,
-0.7213326096534729,
0.6565119028091431,
-0.10377728939056396,
-0.6793428063392639,
0.8785110116004944,
0.749970555305481,
0.9231787323951721,
-0.3018029034137726,
0.5748264193534851,
0.11128094792366028,
0.6242353320121765,
-0.9298259019851685,
0.6308351159095764,
-0.65597003698349,
-0.04265109449625015,
-0.23820903897285461,
-0.9178712368011475,
0.1646178662776947,
0.7840355038642883,
0.023248402401804924,
0.20420631766319275,
0.7131434082984924,
0.4874539375305176,
-0.27240628004074097,
-0.08576369285583496,
0.1407182812690735,
0.3321693241596222,
0.04242124781012535,
0.3656262159347534,
0.7953305840492249,
-0.6078774333000183,
0.18950840830802917,
-0.37281563878059387,
-0.47453394532203674,
-0.3046996295452118,
-0.9370777010917664,
-0.9481968879699707,
-0.5875785946846008,
-0.6256251335144043,
-0.8659955859184265,
-0.09369643032550812,
0.8978821635246277,
0.6288852095603943,
-0.44297635555267334,
0.00031966561800800264,
0.06900132447481155,
0.03368818014860153,
-0.03717338293790817,
-0.21917089819908142,
0.14998175203800201,
-0.06784842163324356,
-0.8961036801338196,
0.370389461517334,
0.17426975071430206,
0.4925660789012909,
-0.2939172685146332,
-0.2764013707637787,
-0.17260922491550446,
-0.309139609336853,
0.4148080348968506,
0.40703585743904114,
-0.17194990813732147,
-0.06099935621023178,
-0.10332348942756653,
0.0016523596132174134,
0.4768421947956085,
0.21653269231319427,
-0.5920366048812866,
0.45877406001091003,
0.6967198252677917,
-0.09570344537496567,
0.827141284942627,
-0.2508730888366699,
0.05234970524907112,
-0.6281404495239258,
0.3538020849227905,
0.1274206042289734,
0.85675048828125,
0.08121243119239807,
-0.14190681278705597,
0.9183598160743713,
0.7609245181083679,
-0.8800737857818604,
-0.6162901520729065,
0.1373714655637741,
-1.5867564678192139,
-0.14321179687976837,
1.2504539489746094,
-0.23635557293891907,
-0.24871578812599182,
0.13731984794139862,
-0.5660076141357422,
0.24992690980434418,
-0.5931563973426819,
0.2449769675731659,
0.4071877598762512,
-0.37330591678619385,
-0.029262777417898178,
-0.7739348411560059,
0.15533962845802307,
-0.30147087574005127,
-0.6951631903648376,
-0.7511835694313049,
0.6594633460044861,
0.5692697167396545,
0.3272503912448883,
1.2186119556427002,
-0.1819147765636444,
0.0003647897392511368,
0.03966167941689491,
0.15763381123542786,
-0.12409815192222595,
-0.25054463744163513,
-0.35987794399261475,
0.16611531376838684,
-0.026052650064229965,
-0.9750349521636963
] |
cl-tohoku/bert-large-japanese | cl-tohoku | "2021-09-23T13:45:41Z" | 87,568 | 6 | transformers | [
"transformers",
"pytorch",
"tf",
"jax",
"bert",
"fill-mask",
"ja",
"dataset:wikipedia",
"license:cc-by-sa-4.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | fill-mask | "2022-03-02T23:29:05Z" | ---
language: ja
license: cc-by-sa-4.0
datasets:
- wikipedia
widget:
- text: 東北大学で[MASK]の研究をしています。
---
# BERT large Japanese (unidic-lite with whole word masking, jawiki-20200831)
This is a [BERT](https://github.com/google-research/bert) model pretrained on texts in the Japanese language.
This version of the model processes input texts with word-level tokenization based on the Unidic 2.1.2 dictionary (available in [unidic-lite](https://pypi.org/project/unidic-lite/) package), followed by the WordPiece subword tokenization.
Additionally, the model is trained with the whole word masking enabled for the masked language modeling (MLM) objective.
The codes for the pretraining are available at [cl-tohoku/bert-japanese](https://github.com/cl-tohoku/bert-japanese/tree/v2.0).
## Model architecture
The model architecture is the same as the original BERT large model; 24 layers, 1024 dimensions of hidden states, and 16 attention heads.
## Training Data
The models are trained on the Japanese version of Wikipedia.
The training corpus is generated from the Wikipedia Cirrussearch dump file as of August 31, 2020.
The generated corpus files are 4.0GB in total, containing approximately 30M sentences.
We used the [MeCab](https://taku910.github.io/mecab/) morphological parser with [mecab-ipadic-NEologd](https://github.com/neologd/mecab-ipadic-neologd) dictionary to split texts into sentences.
## Tokenization
The texts are first tokenized by MeCab with the Unidic 2.1.2 dictionary and then split into subwords by the WordPiece algorithm.
The vocabulary size is 32768.
We used [`fugashi`](https://github.com/polm/fugashi) and [`unidic-lite`](https://github.com/polm/unidic-lite) packages for the tokenization.
## Training
The models are trained with the same configuration as the original BERT; 512 tokens per instance, 256 instances per batch, and 1M training steps.
For training of the MLM (masked language modeling) objective, we introduced whole word masking in which all of the subword tokens corresponding to a single word (tokenized by MeCab) are masked at once.
For training of each model, we used a v3-8 instance of Cloud TPUs provided by [TensorFlow Research Cloud program](https://www.tensorflow.org/tfrc/).
The training took about 5 days to finish.
## Licenses
The pretrained models are distributed under the terms of the [Creative Commons Attribution-ShareAlike 3.0](https://creativecommons.org/licenses/by-sa/3.0/).
## Acknowledgments
This model is trained with Cloud TPUs provided by [TensorFlow Research Cloud](https://www.tensorflow.org/tfrc/) program.
| [
-0.4278724491596222,
-0.8637197017669678,
0.24366848170757294,
0.17728878557682037,
-0.7070489525794983,
0.043674878776073456,
-0.4043023884296417,
-0.4524693191051483,
0.5526105761528015,
0.5383676290512085,
-0.6816475987434387,
-0.5074706673622131,
-0.5945056080818176,
-0.012586086988449097,
-0.287032812833786,
1.099657654762268,
-0.01224735751748085,
0.23078885674476624,
0.29514583945274353,
0.1532355397939682,
-0.25861668586730957,
-0.5558008551597595,
-0.7760871648788452,
-0.4000245928764343,
0.4851527512073517,
0.11959638446569443,
0.4837140440940857,
0.34687894582748413,
0.1896565854549408,
0.24088183045387268,
-0.020886162295937538,
-0.0408543236553669,
-0.5395568013191223,
-0.2795630395412445,
-0.001478381804190576,
-0.3661688268184662,
-0.17096275091171265,
-0.003146887756884098,
0.6405515670776367,
0.7525088787078857,
0.02753552794456482,
0.09346761554479599,
-0.05999176949262619,
0.4041343331336975,
-0.5221719741821289,
0.04425191879272461,
-0.7628594040870667,
0.061157550662755966,
-0.34326404333114624,
0.22729651629924774,
-0.31804460287094116,
0.10718512535095215,
0.16728486120700836,
-0.7250570058822632,
0.24508602917194366,
0.0024589435197412968,
1.1375317573547363,
-0.009484327398240566,
-0.11608066409826279,
-0.24668879806995392,
-0.5159624814987183,
0.7560177445411682,
-1.0016840696334839,
0.41452038288116455,
0.5063326954841614,
0.00415031798183918,
-0.19129706919193268,
-0.9616815447807312,
-0.728701114654541,
-0.12151096761226654,
0.11730334907770157,
0.12152843922376633,
-0.04819159209728241,
0.1799309253692627,
0.31613075733184814,
0.2505932152271271,
-0.6600932478904724,
0.4545692801475525,
-0.44876939058303833,
-0.3204447329044342,
0.5220299959182739,
-0.11082160472869873,
0.2600679099559784,
-0.31828004121780396,
-0.47207844257354736,
-0.16651397943496704,
-0.5096629858016968,
0.07865764945745468,
0.36231735348701477,
0.15190447866916656,
-0.057792190462350845,
0.5627953410148621,
-0.003300485899671912,
0.5055718421936035,
-0.323630690574646,
-0.34517425298690796,
0.3187486231327057,
-0.2931753993034363,
-0.3541238605976105,
0.14602087438106537,
1.0276694297790527,
0.15131400525569916,
0.4210628271102905,
-0.19409683346748352,
-0.38562318682670593,
-0.09811268001794815,
0.2161799967288971,
-0.9561444520950317,
-0.19768202304840088,
0.14170484244823456,
-0.5541117191314697,
-0.2409214973449707,
0.07629181444644928,
-0.5503822565078735,
-0.07478243857622147,
-0.0896582305431366,
0.851748526096344,
-0.5732966661453247,
-0.20340800285339355,
0.24911926686763763,
-0.08107740432024002,
0.16453270614147186,
0.07643331587314606,
-0.8710094690322876,
0.11687173694372177,
0.5526542067527771,
0.8437176942825317,
0.02612793818116188,
-0.2235371470451355,
-0.025213079527020454,
0.06302399933338165,
-0.42543938755989075,
0.38000527024269104,
-0.27947086095809937,
-0.3425852358341217,
0.13228414952754974,
0.193359375,
-0.2005443125963211,
-0.2176646888256073,
0.4749320149421692,
-0.5834513902664185,
0.4229935109615326,
0.015178797766566277,
-0.8273398876190186,
-0.24322398006916046,
0.13976818323135376,
-0.4461711645126343,
1.024041771888733,
0.07278809696435928,
-0.754603385925293,
0.22065840661525726,
-0.8434202075004578,
-0.4099818468093872,
0.3322184383869171,
0.10372524708509445,
-0.49766021966934204,
0.07826638221740723,
0.20838280022144318,
0.539046049118042,
-0.016792409121990204,
0.40398794412612915,
-0.21504747867584229,
-0.42428240180015564,
0.36261850595474243,
-0.2925959825515747,
1.1541913747787476,
0.19360531866550446,
-0.5934345126152039,
0.059276826679706573,
-0.7361941933631897,
0.009790508076548576,
0.2537153661251068,
-0.28698351979255676,
-0.3221142292022705,
-0.3412036597728729,
0.27692723274230957,
0.2403125911951065,
0.48403841257095337,
-0.8455656170845032,
0.15271134674549103,
-0.5194382071495056,
0.5799158811569214,
0.7943357825279236,
-0.14864382147789001,
0.14791418612003326,
-0.0845191478729248,
0.36937612295150757,
-0.005849555600434542,
0.2856922745704651,
-0.30900415778160095,
-0.5644542574882507,
-1.0889596939086914,
-0.44365912675857544,
0.864591658115387,
0.3848973512649536,
-0.8683386445045471,
0.861524760723114,
-0.3933834731578827,
-0.4327976107597351,
-0.8455880880355835,
0.09572106599807739,
0.4181760549545288,
0.28079932928085327,
0.22415705025196075,
-0.5021167993545532,
-0.6017134785652161,
-0.9787659645080566,
0.21476136147975922,
0.02679436095058918,
-0.2738282084465027,
0.00606163265183568,
0.7952214479446411,
-0.48860684037208557,
0.6935057044029236,
-0.3980569541454315,
-0.5413509011268616,
-0.26603755354881287,
0.2571944296360016,
0.32322990894317627,
0.5225638747215271,
0.43007218837738037,
-0.5584582686424255,
-0.4655727744102478,
-0.2781074345111847,
-0.47030070424079895,
0.027205506339669228,
-0.07936260849237442,
-0.18026864528656006,
0.3662344515323639,
0.7361000180244446,
-0.5765146017074585,
0.3774053454399109,
0.5856338739395142,
-0.30175313353538513,
0.39157959818840027,
-0.27627643942832947,
-0.32431352138519287,
-1.4538426399230957,
0.40000540018081665,
-0.18572227656841278,
-0.2611457109451294,
-0.6272038221359253,
0.012620489113032818,
-0.072191022336483,
-0.2084951102733612,
-0.4028836786746979,
0.6715905070304871,
-0.5520901083946228,
-0.028696924448013306,
-0.31417497992515564,
0.09883060306310654,
-0.07108956575393677,
0.759457528591156,
0.08499599248170853,
0.7332736253738403,
0.47809991240501404,
-0.6063763499259949,
0.23406235873699188,
0.07760774344205856,
-0.8844926357269287,
-0.11161758750677109,
-0.7828024625778198,
0.07437535375356674,
-0.03158973902463913,
0.245452880859375,
-0.9743158221244812,
-0.19180351495742798,
0.28148868680000305,
-0.51911461353302,
0.5664246082305908,
0.25896888971328735,
-0.8994600176811218,
-0.47945621609687805,
-0.4678175151348114,
0.11607274413108826,
0.6502693295478821,
-0.5394651889801025,
0.43442806601524353,
0.39030298590660095,
-0.0528491772711277,
-0.6709970235824585,
-0.8196985125541687,
0.2819054126739502,
0.12499610334634781,
-0.4267849326133728,
0.5145213603973389,
-0.10774601250886917,
0.1267387866973877,
0.10394814610481262,
0.12311124801635742,
-0.029730111360549927,
0.17855757474899292,
0.08289839327335358,
0.35747092962265015,
-0.15239614248275757,
0.15698660910129547,
-0.03980839252471924,
-0.013260629959404469,
-0.07547101378440857,
-0.23665465414524078,
1.0393112897872925,
0.18581148982048035,
-0.06447251886129379,
-0.48120030760765076,
0.20175428688526154,
0.36937907338142395,
-0.11695810407400131,
1.1511417627334595,
1.0004297494888306,
-0.45935583114624023,
-0.09492935240268707,
-0.6996440887451172,
-0.2472516894340515,
-0.4474186897277832,
0.5974552631378174,
-0.351392537355423,
-1.047552466392517,
0.5580416917800903,
0.2344662994146347,
0.33661192655563354,
0.5801849365234375,
0.5364789366722107,
-0.17644400894641876,
0.9800769090652466,
0.7511808276176453,
-0.37402382493019104,
0.6603677272796631,
-0.44002625346183777,
0.3693191707134247,
-0.9500095248222351,
-0.4192107617855072,
-0.32782992720603943,
-0.38456398248672485,
-0.6262409090995789,
-0.4393467605113983,
0.23414263129234314,
0.24924665689468384,
-0.27244898676872253,
0.24288775026798248,
-0.4042035937309265,
0.4308471381664276,
0.6936116814613342,
0.15929371118545532,
0.043458420783281326,
0.30803629755973816,
-0.29952630400657654,
-0.11737239360809326,
-0.699661910533905,
-0.4251428246498108,
1.2207883596420288,
0.6176924109458923,
0.5515326261520386,
-0.05503905564546585,
0.5726334452629089,
0.045266639441251755,
0.24644045531749725,
-0.7748719453811646,
0.5928142666816711,
-0.5048272609710693,
-1.0359820127487183,
-0.357435941696167,
-0.3600333034992218,
-1.1116172075271606,
0.3043957054615021,
-0.38310012221336365,
-0.7679751515388489,
-0.10013467073440552,
-0.36421701312065125,
-0.12004552781581879,
0.5684022307395935,
-0.6204923987388611,
0.8318259119987488,
-0.30578362941741943,
0.022251522168517113,
-0.19965355098247528,
-0.8756986856460571,
0.42176610231399536,
-0.36188024282455444,
0.16899757087230682,
-0.010480369441211224,
-0.11687745898962021,
1.1866562366485596,
-0.41762790083885193,
0.9678364396095276,
-0.17038185894489288,
-0.043994590640068054,
0.057987019419670105,
-0.2693440914154053,
0.21121279895305634,
-0.13707523047924042,
0.17114314436912537,
0.5306850075721741,
-0.16790428757667542,
-0.5160290598869324,
-0.20389293134212494,
0.6411579847335815,
-1.097875952720642,
-0.36360636353492737,
-0.4840826988220215,
-0.37445956468582153,
-0.058460649102926254,
0.5261971354484558,
0.598369836807251,
0.41093218326568604,
-0.18705981969833374,
0.4971981942653656,
0.9448106288909912,
-0.40108710527420044,
0.6385137438774109,
0.6335437297821045,
-0.3941630721092224,
-0.41014987230300903,
0.8384625911712646,
0.1920546144247055,
0.12764589488506317,
0.5410253405570984,
0.07938174158334732,
-0.4004782736301422,
-0.5442079901695251,
-0.38863131403923035,
0.5716597437858582,
-0.42702925205230713,
-0.0797862559556961,
-0.8426393270492554,
-0.5633307099342346,
-0.6396305561065674,
0.02679760567843914,
-0.3634316325187683,
-0.34818288683891296,
-0.42080068588256836,
0.05173630267381668,
0.09092075377702713,
0.6423757076263428,
0.09618400037288666,
0.5738391280174255,
-0.6002951264381409,
0.256227970123291,
0.2786860167980194,
0.32058677077293396,
-0.027355849742889404,
-0.8424395322799683,
-0.3634472191333771,
0.24147681891918182,
-0.16953830420970917,
-0.583305835723877,
0.34837639331817627,
0.10530374199151993,
0.603805661201477,
0.6480312347412109,
-0.09107568860054016,
0.6116315126419067,
-0.413913756608963,
0.9691337943077087,
0.43143904209136963,
-0.971442461013794,
0.3917819857597351,
-0.3122681677341461,
0.4659995436668396,
0.5993282794952393,
0.5459787845611572,
-0.6007236838340759,
-0.3688696324825287,
-0.8266979455947876,
-0.8592021465301514,
0.7937571406364441,
0.22146393358707428,
0.3880552053451538,
0.12495402991771698,
0.4200901687145233,
-0.06524941325187683,
0.34638291597366333,
-1.1357671022415161,
-0.3262559771537781,
-0.2749820649623871,
-0.23429588973522186,
-0.47439441084861755,
-0.6111973524093628,
0.0276230089366436,
-0.31615567207336426,
1.0824118852615356,
0.048632796853780746,
0.3835611343383789,
0.08736605942249298,
-0.27136537432670593,
0.07041364163160324,
0.11625535786151886,
0.7486560344696045,
0.6049794554710388,
-0.3170408606529236,
-0.02039196528494358,
0.018129656091332436,
-0.6761528253555298,
-0.24805772304534912,
0.17427490651607513,
-0.3398986756801605,
0.47866150736808777,
0.5529931783676147,
1.2483147382736206,
0.352286159992218,
-0.7374335527420044,
0.6814084649085999,
-0.032503753900527954,
-0.4685019850730896,
-0.35882487893104553,
-0.08253657817840576,
0.15922482311725616,
-0.049081962555646896,
0.38109904527664185,
-0.45109638571739197,
-0.16631779074668884,
-0.5945079326629639,
-0.06985492259263992,
0.538141667842865,
-0.23466446995735168,
-0.23732145130634308,
0.5629558563232422,
0.16645777225494385,
-0.16465860605239868,
0.7965452671051025,
-0.20226377248764038,
-0.867621660232544,
0.44546064734458923,
0.6657329201698303,
0.848676860332489,
-0.27811676263809204,
0.25539904832839966,
0.5760036706924438,
0.588101863861084,
0.0023680892772972584,
-0.05051039159297943,
-0.019545556977391243,
-0.8124717473983765,
-0.4046245217323303,
-0.9243038296699524,
-0.14813876152038574,
0.6917024850845337,
-0.3911900818347931,
0.18953916430473328,
-0.6333568096160889,
-0.06064387410879135,
0.018560204654932022,
0.4475806951522827,
-0.43168917298316956,
0.3337465524673462,
0.20822879672050476,
0.885424017906189,
-0.813184916973114,
1.1449698209762573,
0.718583345413208,
-0.3789516091346741,
-0.8729707598686218,
-0.13232873380184174,
-0.4306107759475708,
-1.105534315109253,
0.5013984441757202,
0.37602993845939636,
0.24988070130348206,
0.010795190930366516,
-0.6354265809059143,
-0.7686010003089905,
0.9586209058761597,
0.11247328668832779,
-0.6603458523750305,
-0.09541003406047821,
0.17959173023700714,
0.714081346988678,
-0.3911123275756836,
0.10298559069633484,
0.33667057752609253,
0.2900117337703705,
0.10926417261362076,
-0.9604869484901428,
-0.18001167476177216,
-0.25365301966667175,
0.37744200229644775,
0.20261231064796448,
-0.5557156205177307,
0.9175276160240173,
0.06091368943452835,
-0.20173460245132446,
0.16778428852558136,
0.48450973629951477,
0.09802595525979996,
-0.022537903860211372,
0.6338399052619934,
0.849809467792511,
0.6303665637969971,
0.08149900287389755,
0.8067287802696228,
-0.32335352897644043,
0.3672291338443756,
0.8825456500053406,
0.13930153846740723,
0.8394785523414612,
0.42544227838516235,
-0.06813830137252808,
0.5877500176429749,
0.7770050764083862,
-0.1860768049955368,
0.6440057158470154,
0.1699545830488205,
-0.2617858648300171,
-0.1956159770488739,
-0.2675659954547882,
-0.3995872735977173,
0.43626728653907776,
0.3567766845226288,
-0.5091226696968079,
-0.09945672005414963,
0.18879301846027374,
0.31414851546287537,
-0.33840593695640564,
-0.44697999954223633,
0.8141839504241943,
0.18770882487297058,
-0.6538981199264526,
0.5838627219200134,
0.35533246397972107,
1.0415548086166382,
-1.0021145343780518,
0.39596933126449585,
-0.14974644780158997,
0.24552775919437408,
0.0728023499250412,
-0.6423402428627014,
-0.026332242414355278,
0.078523188829422,
-0.1067429780960083,
-0.24182981252670288,
0.5797964930534363,
-0.6149565577507019,
-0.6926661729812622,
0.3339322805404663,
0.09542546421289444,
0.43595829606056213,
0.02972140721976757,
-0.9274943470954895,
0.10224522650241852,
0.28695574402809143,
-0.3211827576160431,
0.4815668761730194,
0.24861298501491547,
-0.05504513531923294,
0.5388535857200623,
0.8679801821708679,
0.14968764781951904,
0.17203103005886078,
0.29647722840309143,
0.8287030458450317,
-0.5055035948753357,
-0.5128981471061707,
-0.8048076629638672,
0.27593666315078735,
-0.16689705848693848,
-0.4047199785709381,
0.6569361090660095,
0.5829611420631409,
0.9527326226234436,
-0.15282398462295532,
0.4707765579223633,
-0.08315324783325195,
0.5101333260536194,
-0.6272989511489868,
0.746479332447052,
-0.795853316783905,
0.018947996199131012,
-0.20724646747112274,
-1.1222639083862305,
-0.19561278820037842,
0.8106712102890015,
0.07541739195585251,
0.09691689908504486,
0.634016752243042,
0.7360297441482544,
0.046841222792863846,
-0.16773973405361176,
0.34696337580680847,
0.3489381968975067,
0.30472636222839355,
0.5988099575042725,
0.4706234037876129,
-0.6187084913253784,
0.39184102416038513,
-0.4481862187385559,
-0.15254728496074677,
-0.25461941957473755,
-0.7304639220237732,
-1.235863447189331,
-0.6446110606193542,
-0.20175041258335114,
-0.3373323976993561,
-0.12071073800325394,
0.8620923757553101,
0.6827384233474731,
-0.7221739292144775,
-0.23579882085323334,
-0.013207078911364079,
-0.2260293960571289,
0.2740404009819031,
-0.23831187188625336,
0.45917969942092896,
-0.3203326165676117,
-0.7296212911605835,
0.09396319091320038,
0.06712539494037628,
0.16353744268417358,
-0.4232228398323059,
0.11013501137495041,
-0.5326306223869324,
-0.024598516523838043,
0.6008314490318298,
0.08390800654888153,
-0.711043119430542,
-0.12569372355937958,
-0.045392077416181564,
-0.24634724855422974,
-0.23233023285865784,
0.6694937348365784,
-0.4154326617717743,
0.5914292335510254,
0.264407753944397,
0.6038231253623962,
0.9522059559822083,
-0.300083190202713,
0.2791484296321869,
-0.9051287174224854,
0.4088467061519623,
0.1525847315788269,
0.4269513487815857,
0.39595189690589905,
-0.13169234991073608,
0.4651099145412445,
0.32201170921325684,
-0.34138965606689453,
-0.9131125211715698,
-0.08209547400474548,
-0.9608423709869385,
-0.6887838244438171,
1.1014717817306519,
-0.14985166490077972,
-0.39498457312583923,
-0.02595500461757183,
-0.13309240341186523,
0.41394954919815063,
-0.11652468889951706,
0.730111837387085,
0.984564483165741,
0.42165857553482056,
-0.1652441918849945,
-0.45771878957748413,
0.3269196152687073,
0.511654257774353,
-0.5829742550849915,
-0.3292046785354614,
0.18009132146835327,
0.5686217546463013,
0.33807191252708435,
0.8203380703926086,
-0.03585672751069069,
-0.014968360774219036,
-0.17688512802124023,
0.3242647051811218,
-0.07977695763111115,
-0.19983704388141632,
-0.2922991216182709,
-0.08745905011892319,
-0.22338441014289856,
-0.4250105917453766
] |
facebook/wav2vec2-xls-r-300m | facebook | "2022-08-10T08:11:47Z" | 87,359 | 46 | transformers | [
"transformers",
"pytorch",
"wav2vec2",
"pretraining",
"speech",
"xls_r",
"xls_r_pretrained",
"multilingual",
"ab",
"af",
"sq",
"am",
"ar",
"hy",
"as",
"az",
"ba",
"eu",
"be",
"bn",
"bs",
"br",
"bg",
"my",
"yue",
"ca",
"ceb",
"km",
"zh",
"cv",
"hr",
"cs",
"da",
"dv",
"nl",
"en",
"eo",
"et",
"fo",
"fi",
"fr",
"gl",
"lg",
"ka",
"de",
"el",
"gn",
"gu",
"ht",
"cnh",
"ha",
"haw",
"he",
"hi",
"hu",
"is",
"id",
"ia",
"ga",
"it",
"ja",
"jv",
"kb",
"kn",
"kk",
"rw",
"ky",
"ko",
"ku",
"lo",
"la",
"lv",
"ln",
"lt",
"lm",
"mk",
"mg",
"ms",
"ml",
"mt",
"gv",
"mi",
"mr",
"mn",
"ne",
"no",
"nn",
"oc",
"or",
"ps",
"fa",
"pl",
"pt",
"pa",
"ro",
"rm",
"ru",
"sah",
"sa",
"sco",
"sr",
"sn",
"sd",
"si",
"sk",
"sl",
"so",
"hsb",
"es",
"su",
"sw",
"sv",
"tl",
"tg",
"ta",
"tt",
"te",
"th",
"bo",
"tp",
"tr",
"tk",
"uk",
"ur",
"uz",
"vi",
"vot",
"war",
"cy",
"yi",
"yo",
"zu",
"dataset:common_voice",
"dataset:multilingual_librispeech",
"arxiv:2111.09296",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"region:us"
] | null | "2022-03-02T23:29:05Z" | ---
language:
- multilingual
- ab
- af
- sq
- am
- ar
- hy
- as
- az
- ba
- eu
- be
- bn
- bs
- br
- bg
- my
- yue
- ca
- ceb
- km
- zh
- cv
- hr
- cs
- da
- dv
- nl
- en
- eo
- et
- fo
- fi
- fr
- gl
- lg
- ka
- de
- el
- gn
- gu
- ht
- cnh
- ha
- haw
- he
- hi
- hu
- is
- id
- ia
- ga
- it
- ja
- jv
- kb
- kn
- kk
- rw
- ky
- ko
- ku
- lo
- la
- lv
- ln
- lt
- lm
- mk
- mg
- ms
- ml
- mt
- gv
- mi
- mr
- mn
- ne
- no
- nn
- oc
- or
- ps
- fa
- pl
- pt
- pa
- ro
- rm
- rm
- ru
- sah
- sa
- sco
- sr
- sn
- sd
- si
- sk
- sl
- so
- hsb
- es
- su
- sw
- sv
- tl
- tg
- ta
- tt
- te
- th
- bo
- tp
- tr
- tk
- uk
- ur
- uz
- vi
- vot
- war
- cy
- yi
- yo
- zu
language_bcp47:
- zh-HK
- zh-TW
- fy-NL
datasets:
- common_voice
- multilingual_librispeech
tags:
- speech
- xls_r
- xls_r_pretrained
license: apache-2.0
---
# Wav2Vec2-XLS-R-300M
[Facebook's Wav2Vec2 XLS-R](https://ai.facebook.com/blog/wav2vec-20-learning-the-structure-of-speech-from-raw-audio/) counting **300 million** parameters.
![model image](https://raw.githubusercontent.com/patrickvonplaten/scientific_images/master/xls_r.png)
XLS-R is Facebook AI's large-scale multilingual pretrained model for speech (the "XLM-R for Speech"). It is pretrained on 436k hours of unlabeled speech, including VoxPopuli, MLS, CommonVoice, BABEL, and VoxLingua107. It uses the wav2vec 2.0 objective, in 128 languages. When using the model make sure that your speech input is sampled at 16kHz.
**Note**: This model should be fine-tuned on a downstream task, like Automatic Speech Recognition, Translation, or Classification. Check out [**this blog**](https://huggingface.co/blog/fine-tune-xlsr-wav2vec2) for more information about ASR.
[XLS-R Paper](https://arxiv.org/abs/2111.09296)
Authors: Arun Babu, Changhan Wang, Andros Tjandra, Kushal Lakhotia, Qiantong Xu, Naman Goyal, Kritika Singh, Patrick von Platen, Yatharth Saraf, Juan Pino, Alexei Baevski, Alexis Conneau, Michael Auli
**Abstract**
This paper presents XLS-R, a large-scale model for cross-lingual speech representation learning based on wav2vec 2.0. We train models with up to 2B parameters on 436K hours of publicly available speech audio in 128 languages, an order of magnitude more public data than the largest known prior work. Our evaluation covers a wide range of tasks, domains, data regimes and languages, both high and low-resource. On the CoVoST-2 speech translation benchmark, we improve the previous state of the art by an average of 7.4 BLEU over 21 translation directions into English. For speech recognition, XLS-R improves over the best known prior work on BABEL, MLS, CommonVoice as well as VoxPopuli, lowering error rates by 20%-33% relative on average. XLS-R also sets a new state of the art on VoxLingua107 language identification. Moreover, we show that with sufficient model size, cross-lingual pretraining can outperform English-only pretraining when translating English speech into other languages, a setting which favors monolingual pretraining. We hope XLS-R can help to improve speech processing tasks for many more languages of the world.
The original model can be found under https://github.com/pytorch/fairseq/tree/master/examples/wav2vec#wav2vec-20.
# Usage
See [this google colab](https://colab.research.google.com/github/patrickvonplaten/notebooks/blob/master/Fine_Tune_XLS_R_on_Common_Voice.ipynb) for more information on how to fine-tune the model.
You can find other pretrained XLS-R models with different numbers of parameters:
* [300M parameters version](https://huggingface.co/facebook/wav2vec2-xls-r-300m)
* [1B version version](https://huggingface.co/facebook/wav2vec2-xls-r-1b)
* [2B version version](https://huggingface.co/facebook/wav2vec2-xls-r-2b) | [
-0.3078276813030243,
-0.5962414145469666,
0.10943469405174255,
0.18606926500797272,
-0.24579401314258575,
-0.10440382361412048,
-0.4933449625968933,
-0.5600315928459167,
-0.1379460096359253,
0.3433787226676941,
-0.5656746029853821,
-0.4213271141052246,
-0.77180415391922,
0.14299951493740082,
-0.40796151757240295,
0.7632620930671692,
0.05928599461913109,
0.5410562753677368,
-0.040214985609054565,
-0.1881042718887329,
-0.32985302805900574,
-0.3931111693382263,
-0.860024094581604,
-0.1949254870414734,
0.6292163133621216,
0.4404332935810089,
0.33678850531578064,
0.6602989435195923,
0.19161508977413177,
0.23844373226165771,
-0.10522513091564178,
-0.024943625554442406,
-0.6812216639518738,
-0.1365487426519394,
-0.0329376719892025,
-0.32447588443756104,
-0.43151789903640747,
0.08333619683980942,
0.8741375803947449,
0.7435511946678162,
-0.3410724699497223,
0.24990198016166687,
0.12511327862739563,
0.6239219307899475,
-0.19627819955348969,
0.24305446445941925,
-0.46532583236694336,
-0.006945590954273939,
-0.2591695487499237,
0.13590247929096222,
-0.49691274762153625,
0.04801475256681442,
0.10688971728086472,
-0.5981013178825378,
-0.15132580697536469,
0.11495649814605713,
0.9175524115562439,
0.19873273372650146,
-0.3489958643913269,
-0.15458595752716064,
-0.8345668911933899,
1.097190022468567,
-0.5164377093315125,
1.0702160596847534,
0.5167359113693237,
0.304259717464447,
0.13879086077213287,
-0.9247647523880005,
-0.25030869245529175,
-0.19681160151958466,
0.2711406350135803,
0.3039206266403198,
-0.5040193200111389,
-0.16345880925655365,
0.4611007273197174,
-0.11028959602117538,
-0.8261712193489075,
0.27792230248451233,
-0.8733602166175842,
-0.418093204498291,
0.658955454826355,
-0.2667011022567749,
0.28231367468833923,
0.028369935229420662,
-0.2845543920993805,
-0.498566597700119,
-0.45965123176574707,
0.42101001739501953,
0.2529675364494324,
0.5568559765815735,
-0.44148629903793335,
0.3709840774536133,
0.08355505764484406,
0.6192209124565125,
-0.08930971473455429,
-0.1034478098154068,
0.4656544625759125,
-0.37790191173553467,
0.07417797297239304,
0.12537352740764618,
0.9118766188621521,
-0.057249683886766434,
0.3272309899330139,
-0.00986950658261776,
-0.12427057325839996,
-0.013691549189388752,
0.0661211758852005,
-0.8021252751350403,
-0.09008655697107315,
0.11494537442922592,
-0.38354361057281494,
0.36928680539131165,
0.23698386549949646,
-0.27531182765960693,
0.3392021358013153,
-0.8283118605613708,
0.4379192292690277,
-0.625504732131958,
-0.2870148718357086,
-0.07234352827072144,
0.05616433173418045,
0.2995545268058777,
0.1608233004808426,
-0.6338134407997131,
0.5040867924690247,
0.6035123467445374,
0.7042936682701111,
0.05987205356359482,
-0.27477699518203735,
-0.9773134589195251,
-0.20948341488838196,
-0.5116967558860779,
0.8200364112854004,
-0.5616623163223267,
-0.3417857885360718,
-0.18923045694828033,
0.008549652993679047,
0.024959225207567215,
-0.6602275371551514,
0.39134255051612854,
-0.24940374493598938,
0.10368833690881729,
-0.4958767294883728,
-0.5317255258560181,
-0.1641959547996521,
-0.427517831325531,
-0.5896660685539246,
1.1373027563095093,
0.09614492952823639,
-0.3615739643573761,
0.3066594898700714,
-0.41300246119499207,
-0.4687204658985138,
-0.004979013931006193,
-0.1561480015516281,
-0.4809384047985077,
-0.3191821575164795,
0.06618528813123703,
0.33235177397727966,
-0.25250378251075745,
-0.0006785978330299258,
-0.13867682218551636,
-0.21067415177822113,
0.157297283411026,
-0.058667633682489395,
0.6855981349945068,
0.5992963910102844,
-0.03517566993832588,
0.13536648452281952,
-0.8733777403831482,
0.28104183077812195,
-0.14672262966632843,
-0.463701456785202,
0.07196216285228729,
-0.14896458387374878,
0.37126898765563965,
0.26444706320762634,
0.10495349764823914,
-0.5222156047821045,
-0.38927435874938965,
-0.43957647681236267,
0.6133661866188049,
0.19154109060764313,
-0.35072216391563416,
0.3920392692089081,
-0.07667337357997894,
0.5025741457939148,
0.025863083079457283,
-0.014354743994772434,
-0.001706730225123465,
-0.4995175004005432,
-0.2881547808647156,
-0.30554884672164917,
0.5755244493484497,
0.614182710647583,
-0.19602113962173462,
0.37884506583213806,
-0.16327571868896484,
-0.6305297613143921,
-0.5406308770179749,
0.33785268664360046,
0.766864538192749,
0.39195674657821655,
0.7119153141975403,
-0.17798709869384766,
-0.7379416227340698,
-0.8576049208641052,
-0.35318127274513245,
0.11867188662290573,
-0.2901005446910858,
0.37478187680244446,
0.2132762223482132,
-0.4121965169906616,
0.7624300122261047,
-0.04652439057826996,
-0.36612194776535034,
-0.4426593482494354,
0.2794477641582489,
-0.0922127217054367,
0.4056931436061859,
0.5887986421585083,
-0.7703672647476196,
-0.7023124098777771,
0.028034929186105728,
-0.18537145853042603,
-0.08021394163370132,
0.2547013759613037,
0.047026071697473526,
0.34993916749954224,
0.8252250552177429,
-0.16663794219493866,
0.11945385485887527,
0.7073269486427307,
-0.0648953914642334,
0.27925896644592285,
-0.29385632276535034,
-0.22521467506885529,
-1.2364948987960815,
0.11530506610870361,
0.31637871265411377,
-0.31704479455947876,
-0.49379873275756836,
-0.5992262959480286,
0.25021520256996155,
-0.38517308235168457,
-0.6001472473144531,
0.4583199620246887,
-0.5821052193641663,
-0.30435293912887573,
-0.05843549221754074,
0.3246408998966217,
-0.2581256330013275,
0.3532969057559967,
0.12123741209506989,
0.7631393671035767,
0.7565979361534119,
-0.5652132034301758,
0.38818448781967163,
0.45251908898353577,
-0.3642263114452362,
0.21178312599658966,
-0.7050163149833679,
0.4534473717212677,
-0.03648032993078232,
0.5135815143585205,
-0.9605518579483032,
-0.14795640110969543,
0.054548852145671844,
-0.7451283931732178,
0.5798346400260925,
-0.10459201037883759,
-0.17806199193000793,
-0.3375886082649231,
0.06084444746375084,
0.5636339783668518,
0.7108983993530273,
-0.39144212007522583,
0.632652759552002,
0.4962034821510315,
-0.5887144207954407,
-0.6533570885658264,
-0.7190260887145996,
0.08572698384523392,
0.15496985614299774,
-0.5461371541023254,
0.3384932279586792,
0.02181079238653183,
-0.11293278634548187,
0.010223990306258202,
-0.19864822924137115,
0.02930583991110325,
-0.4615567624568939,
0.2614125609397888,
0.03768952190876007,
-0.2509143054485321,
-0.06296736001968384,
0.027593323960900307,
-0.34278371930122375,
0.04222604259848595,
-0.3571055233478546,
0.509772539138794,
-0.08587337285280228,
-0.11511702835559845,
-0.6690236926078796,
0.4913526475429535,
0.36795884370803833,
-0.46277758479118347,
0.37276721000671387,
0.9050647020339966,
-0.3943638205528259,
-0.2928088903427124,
-0.510363757610321,
-0.1388479322195053,
-0.41575220227241516,
1.011492371559143,
-0.2627744972705841,
-0.7630425691604614,
0.41427725553512573,
0.027734976261854172,
-0.1255244016647339,
0.4540104866027832,
0.4030636250972748,
0.04862188175320625,
1.073453426361084,
0.3949846029281616,
-0.2298872321844101,
0.5707076191902161,
-0.46482568979263306,
0.2350035458803177,
-0.7665309906005859,
-0.4356166422367096,
-0.7676345705986023,
-0.13014265894889832,
-0.4505954384803772,
-0.6259934306144714,
0.2283438891172409,
-0.128446564078331,
-0.0625390112400055,
0.618148922920227,
-0.22528113424777985,
0.14320509135723114,
0.5130888819694519,
0.0745893269777298,
-0.3378369212150574,
0.1734829843044281,
-0.2576751112937927,
-0.08327873051166534,
-0.6667938828468323,
-0.37418481707572937,
1.0803093910217285,
0.4922037124633789,
0.6657065153121948,
-0.15233737230300903,
0.46135881543159485,
-0.008676450699567795,
-0.1438671052455902,
-0.8991013765335083,
0.5044212937355042,
-0.5050246715545654,
-0.44167360663414,
-0.5218318104743958,
-0.6307094693183899,
-0.9813810586929321,
0.023158757016062737,
-0.2790098190307617,
-0.5896390676498413,
-0.014966292306780815,
0.170747771859169,
-0.4235542416572571,
0.118305504322052,
-0.7557809948921204,
0.8037638068199158,
-0.30888816714286804,
-0.2976875603199005,
-0.5277278423309326,
-0.7722247242927551,
-0.16560764610767365,
-0.17662663757801056,
0.48735281825065613,
0.0703498125076294,
0.18993210792541504,
1.1593542098999023,
-0.3626864552497864,
0.4434904456138611,
-0.41105014085769653,
-0.16130495071411133,
0.2948399484157562,
-0.3628753125667572,
0.5130224227905273,
-0.17701208591461182,
-0.07966011762619019,
0.4640423059463501,
0.29259398579597473,
-0.354204922914505,
-0.26476535201072693,
0.5341930985450745,
-1.0356125831604004,
-0.14603260159492493,
-0.18690554797649384,
-0.5349966287612915,
-0.32958558201789856,
0.15171262621879578,
0.536628246307373,
0.8369706869125366,
-0.19133484363555908,
0.6939533948898315,
0.6162985563278198,
-0.44396647810935974,
0.15096336603164673,
0.5464943647384644,
-0.0412038154900074,
-0.4795755445957184,
0.9040207266807556,
0.5558023452758789,
0.2544572353363037,
0.513066828250885,
0.22345350682735443,
-0.7076241970062256,
-0.6038969159126282,
-0.18758778274059296,
0.33889877796173096,
-0.5657995343208313,
0.010013303719460964,
-0.7395550012588501,
-0.32797542214393616,
-0.8284321427345276,
0.19138623774051666,
-0.7499095797538757,
-0.25326085090637207,
-0.5193910002708435,
-0.13544118404388428,
0.34461382031440735,
0.7702458500862122,
-0.4998970329761505,
0.031146878376603127,
-0.7238591313362122,
0.5475767850875854,
0.3991739749908447,
0.25243261456489563,
-0.21463458240032196,
-1.0452708005905151,
-0.4283426105976105,
0.3900083899497986,
-0.0317821241915226,
-0.43538355827331543,
0.4318106174468994,
0.29980704188346863,
0.5397031903266907,
0.4930403232574463,
-0.16282787919044495,
0.753583550453186,
-0.6932872533798218,
0.6726170182228088,
0.3914687931537628,
-0.8629674911499023,
0.42506080865859985,
-0.18177534639835358,
0.0403420552611351,
0.24354225397109985,
0.40777650475502014,
-0.5450902581214905,
-0.1317070722579956,
-0.26776906847953796,
-0.9935481548309326,
1.1214098930358887,
0.05495109409093857,
0.24115751683712006,
0.3138510584831238,
0.4845464527606964,
0.12421246618032455,
-0.34445974230766296,
-0.5763280391693115,
-0.32478874921798706,
-0.382229745388031,
-0.2041221708059311,
-0.40093836188316345,
-0.49233582615852356,
0.07076361030340195,
-0.6159936785697937,
0.8473337292671204,
0.1419251263141632,
0.21140135824680328,
0.10837981849908829,
-0.07050546258687973,
-0.389772891998291,
0.2508213520050049,
0.6576435565948486,
0.6053349375724792,
-0.2180190533399582,
-0.08721809834241867,
0.351909339427948,
-0.6245620250701904,
-0.009413374587893486,
0.5186646580696106,
0.2842048704624176,
-0.12672488391399384,
0.3442397117614746,
1.1466740369796753,
0.32544490694999695,
-0.6649178266525269,
0.4136059284210205,
-0.22853802144527435,
-0.7045435309410095,
-0.5127348899841309,
0.12400972843170166,
0.30734023451805115,
0.22219151258468628,
0.504267692565918,
0.10094832628965378,
-0.10133975744247437,
-0.6063469648361206,
0.3512999415397644,
0.44275593757629395,
-0.7141337990760803,
-0.4549490809440613,
0.8973592519760132,
0.09735769033432007,
-0.5155959725379944,
0.41435596346855164,
-0.07909227907657623,
-0.35380682349205017,
0.4677726924419403,
0.5507355332374573,
0.700787365436554,
-0.551554799079895,
-0.028788870200514793,
0.7400528192520142,
0.06710860878229141,
-0.2422325760126114,
0.418783038854599,
-0.11888231337070465,
-0.5246322154998779,
-0.47571370005607605,
-0.7544563412666321,
-0.46633994579315186,
0.30110815167427063,
-0.9346588850021362,
0.3992864489555359,
-0.168009951710701,
-0.14210662245750427,
0.3381490111351013,
0.20094117522239685,
-0.6439602971076965,
0.3272296190261841,
0.4295961856842041,
0.8181676864624023,
-0.7710700631141663,
1.0768908262252808,
0.8504221439361572,
-0.23844659328460693,
-1.3690505027770996,
-0.22475503385066986,
-0.06622546166181564,
-0.6196939945220947,
0.7791567444801331,
0.04546349495649338,
-0.3574970066547394,
0.15052613615989685,
-0.6238157153129578,
-1.1318674087524414,
0.9876217842102051,
0.4087516665458679,
-1.13779878616333,
0.2796630263328552,
0.33201929926872253,
0.42724788188934326,
-0.22402331233024597,
0.028441255912184715,
0.3058340549468994,
0.4540044963359833,
0.16254785656929016,
-1.1120716333389282,
-0.10682810097932816,
-0.2791609466075897,
0.0009146159281954169,
-0.24997644126415253,
-0.5838606357574463,
0.9589397311210632,
-0.43146461248397827,
-0.27284708619117737,
-0.007832471281290054,
0.5942093729972839,
0.17480549216270447,
0.22475114464759827,
0.6533745527267456,
0.46752676367759705,
0.7183423042297363,
-0.021467262879014015,
0.8302127718925476,
-0.2798260450363159,
0.11150314658880234,
0.9861716628074646,
-0.3443939983844757,
1.0186868906021118,
0.24180498719215393,
-0.44283327460289,
0.2851234972476959,
0.516907811164856,
0.003204961773008108,
0.3824426531791687,
0.09226004779338837,
0.1387471854686737,
-0.2777642607688904,
0.11238443851470947,
-0.5813076496124268,
0.5401498079299927,
0.3419933021068573,
-0.12410097569227219,
0.0783337876200676,
0.22961200773715973,
0.12890581786632538,
0.10452840477228165,
-0.1494799256324768,
0.7871199250221252,
0.4131714999675751,
-0.5378824472427368,
0.7173466086387634,
0.02736852690577507,
0.4056129455566406,
-0.887390673160553,
0.15737242996692657,
0.09165608882904053,
0.3141080439090729,
-0.17179754376411438,
-0.39030930399894714,
0.07150071859359741,
0.1748548299074173,
-0.06912343949079514,
-0.38473597168922424,
0.3954254984855652,
-0.7686430811882019,
-0.58615642786026,
0.8155209422111511,
0.1972580850124359,
0.18957389891147614,
-0.052726369351148605,
-0.8143383264541626,
0.21442371606826782,
0.036422137171030045,
-0.3329554796218872,
0.34127017855644226,
0.45081645250320435,
0.10139144957065582,
0.5201209783554077,
0.713945746421814,
0.3020102381706238,
-0.04113586246967316,
0.38811612129211426,
0.6514136791229248,
-0.6442936658859253,
-0.6723534464836121,
-0.3755255937576294,
0.22237420082092285,
0.2800762951374054,
-0.054150067269802094,
0.6134417057037354,
0.8142577409744263,
1.0472010374069214,
0.018685393035411835,
0.7480887174606323,
0.195329487323761,
1.0335325002670288,
-0.5583703517913818,
0.7248165011405945,
-0.7353292107582092,
0.01534699834883213,
-0.3065847158432007,
-0.8216610550880432,
-0.16087408363819122,
0.7041783332824707,
-0.3128892183303833,
0.2800522744655609,
0.6445956826210022,
0.8607295751571655,
-0.08650286495685577,
-0.10094662010669708,
0.3570598363876343,
0.500152587890625,
0.18659327924251556,
0.22814485430717468,
0.7199105620384216,
-0.4991734027862549,
0.9815294146537781,
-0.17274433374404907,
-0.2065228968858719,
-0.10642626881599426,
-0.5116985440254211,
-0.6547577381134033,
-0.8000162243843079,
-0.48940417170524597,
-0.25271177291870117,
-0.047121815383434296,
1.1361185312271118,
1.0554903745651245,
-1.0044437646865845,
-0.49281588196754456,
0.13007709383964539,
-0.45595112442970276,
-0.38245463371276855,
-0.1186027005314827,
0.3445518910884857,
-0.2563689947128296,
-0.6792284846305847,
0.5820696353912354,
0.18713024258613586,
0.06200489029288292,
0.06195572763681412,
-0.4533514082431793,
-0.08890345692634583,
0.14475739002227783,
0.5788784027099609,
0.5220445990562439,
-0.709740936756134,
-0.16302160918712616,
0.06720248609781265,
0.03455314785242081,
0.15069860219955444,
0.5170761942863464,
-0.434719443321228,
0.3037772476673126,
0.2969453036785126,
0.23507636785507202,
0.7866302132606506,
0.014574983157217503,
0.39166876673698425,
-0.5331405997276306,
0.3307056128978729,
0.22354936599731445,
0.4255110025405884,
0.3490999639034271,
-0.04525768384337425,
0.014682860113680363,
0.11792324483394623,
-0.4943233132362366,
-0.8801538944244385,
0.043953362852334976,
-1.3763545751571655,
-0.2920232117176056,
1.4483342170715332,
0.04697151109576225,
-0.2340455800294876,
-0.09134402871131897,
-0.381151407957077,
0.6260409355163574,
-0.6159042716026306,
0.3339546024799347,
0.41961362957954407,
-0.017031259834766388,
-0.15860043466091156,
-0.597212553024292,
0.6378150582313538,
0.433528870344162,
-0.44870299100875854,
0.18388967216014862,
0.44961199164390564,
0.6561571955680847,
-0.03008294478058815,
0.5827630162239075,
-0.33661627769470215,
0.22087305784225464,
-0.04706651344895363,
0.1186523288488388,
-0.13719110190868378,
-0.337385892868042,
-0.2552452087402344,
-0.14542821049690247,
-0.07283829152584076,
-0.19535322487354279
] |
colorfulscoop/sbert-base-ja | colorfulscoop | "2021-08-08T06:47:42Z" | 86,840 | 12 | sentence-transformers | [
"sentence-transformers",
"pytorch",
"bert",
"feature-extraction",
"sentence-similarity",
"ja",
"arxiv:1908.10084",
"license:cc-by-sa-4.0",
"endpoints_compatible",
"has_space",
"region:us"
] | sentence-similarity | "2022-03-02T23:29:05Z" | ---
language: ja
pipeline_tag: sentence-similarity
tags:
- sentence-transformers
- feature-extraction
- sentence-similarity
widget:
source_sentence: "走るのが趣味です"
sentences:
- 外をランニングするのが好きです
- 運動はそこそこです
- 走るのは嫌いです
license: cc-by-sa-4.0
---
# Sentence BERT base Japanese model
This repository contains a Sentence BERT base model for Japanese.
## Pretrained model
This model utilizes a Japanese BERT model [colorfulscoop/bert-base-ja](https://huggingface.co/colorfulscoop/bert-base-ja) v1.0 released under [Creative Commons Attribution-ShareAlike 3.0](https://creativecommons.org/licenses/by-sa/3.0/) as a pretrained model.
## Training data
[Japanese SNLI dataset](https://nlp.ist.i.kyoto-u.ac.jp/index.php?%E6%97%A5%E6%9C%AC%E8%AA%9ESNLI%28JSNLI%29%E3%83%87%E3%83%BC%E3%82%BF%E3%82%BB%E3%83%83%E3%83%88) released under [Creative Commons Attribution-ShareAlike 4.0](https://creativecommons.org/licenses/by-sa/4.0/) is used for training.
Original training dataset is splitted into train/valid dataset. Finally, follwoing data is prepared.
* Train data: 523,005 samples
* Valid data: 10,000 samples
* Test data: 3,916 samples
## Model description
This model utilizes `SentenceTransformer` model from the [sentence-transformers](https://github.com/UKPLab/sentence-transformers) .
The model detail is as below.
```py
>>> from sentence_transformers import SentenceTransformer
>>> SentenceTransformer("colorfulscoop/sbert-base-ja")
SentenceTransformer(
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False})
)
```
## Training
This model finetuned [colorfulscoop/bert-base-ja](https://huggingface.co/colorfulscoop/bert-base-ja) with Softmax classifier of 3 labels of SNLI. AdamW optimizer with learning rate of 2e-05 linearly warmed-up in 10% of train data was used. The model was trained in 1 epoch with batch size 8.
Note: in a original paper of [Sentence BERT](https://arxiv.org/abs/1908.10084), a batch size of the model trained on SNLI and Multi-Genle NLI was 16. In this model, the dataset is around half smaller than the origial one, therefore the batch size was set to half of the original batch size of 16.
Trainind was conducted on Ubuntu 18.04.5 LTS with one RTX 2080 Ti.
After training, test set accuracy reached to 0.8529.
Training code is available in [a GitHub repository](https://github.com/colorfulscoop/sbert-ja).
## Usage
First, install dependecies.
```sh
$ pip install sentence-transformers==2.0.0
```
Then initialize `SentenceTransformer` model and use `encode` method to convert to vectors.
```py
>>> from sentence_transformers import SentenceTransformer
>>> model = SentenceTransformer("colorfulscoop/sbert-base-ja")
>>> sentences = ["外をランニングするのが好きです", "海外旅行に行くのが趣味です"]
>>> model.encode(sentences)
```
## License
Copyright (c) 2021 Colorful Scoop
All the models included in this repository are licensed under [Creative Commons Attribution-ShareAlike 4.0](https://creativecommons.org/licenses/by-sa/4.0/).
**Disclaimer:** Use of this model is at your sole risk. Colorful Scoop makes no warranty or guarantee of any outputs from the model. Colorful Scoop is not liable for any trouble, loss, or damage arising from the model output.
---
This model utilizes the folllowing pretrained model.
* **Name:** bert-base-ja
* **Credit:** (c) 2021 Colorful Scoop
* **License:** [Creative Commons Attribution-ShareAlike 3.0](https://creativecommons.org/licenses/by-sa/3.0/)
* **Disclaimer:** The model potentially has possibility that it generates similar texts in the training data, texts not to be true, or biased texts. Use of the model is at your sole risk. Colorful Scoop makes no warranty or guarantee of any outputs from the model. Colorful Scoop is not liable for any trouble, loss, or damage arising from the model output.
* **Link:** https://huggingface.co/colorfulscoop/bert-base-ja
---
This model utilizes the following data for fine-tuning.
* **Name:** 日本語SNLI(JSNLI)データセット
* **Credit:** [https://nlp.ist.i.kyoto-u.ac.jp/index.php?日本語SNLI(JSNLI)データセット](https://nlp.ist.i.kyoto-u.ac.jp/index.php?%E6%97%A5%E6%9C%AC%E8%AA%9ESNLI%28JSNLI%29%E3%83%87%E3%83%BC%E3%82%BF%E3%82%BB%E3%83%83%E3%83%88)
* **License:** [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)
* **Link:** [https://nlp.ist.i.kyoto-u.ac.jp/index.php?日本語SNLI(JSNLI)データセット](https://nlp.ist.i.kyoto-u.ac.jp/index.php?%E6%97%A5%E6%9C%AC%E8%AA%9ESNLI%28JSNLI%29%E3%83%87%E3%83%BC%E3%82%BF%E3%82%BB%E3%83%83%E3%83%88) | [
-0.3528478145599365,
-0.6849470138549805,
0.3365349769592285,
0.3570006787776947,
-0.3751071095466614,
-0.35207298398017883,
-0.4896087348461151,
-0.4089929461479187,
0.2372402548789978,
0.3968035876750946,
-0.9648053050041199,
-0.4092659056186676,
-0.6577885150909424,
0.10423216223716736,
-0.014300709590315819,
1.2704838514328003,
0.02796538919210434,
0.17306803166866302,
0.11158820986747742,
-0.12270338833332062,
-0.48430195450782776,
-0.34183406829833984,
-0.4770343005657196,
-0.29716411232948303,
0.47364604473114014,
0.32478782534599304,
0.6636928915977478,
0.28672322630882263,
0.3036324083805084,
0.39954113960266113,
-0.15099318325519562,
-0.102290078997612,
-0.5622890591621399,
-0.1673397719860077,
0.18240751326084137,
-0.6226937174797058,
-0.21227799355983734,
-0.0002235558640677482,
0.47894683480262756,
0.6797863245010376,
-0.11483488231897354,
0.09548581391572952,
-0.06260190159082413,
0.48110491037368774,
-0.4661405384540558,
0.3024634122848511,
-0.72372967004776,
0.17215900123119354,
-0.13632947206497192,
0.12829366326332092,
-0.3847813606262207,
-0.5204935073852539,
0.06631056219339371,
-0.7112396955490112,
0.03788924589753151,
-0.04785320162773132,
1.498416543006897,
0.02996853180229664,
-0.2879861295223236,
-0.2726594805717468,
-0.39439675211906433,
1.0319063663482666,
-0.8945794105529785,
0.41061222553253174,
0.37418389320373535,
0.18077784776687622,
-0.052011292427778244,
-0.7890141606330872,
-0.8385632038116455,
-0.0023722616024315357,
-0.22594457864761353,
0.44595685601234436,
-0.13138483464717865,
-0.1683405339717865,
0.41458871960639954,
0.18088528513908386,
-0.576235294342041,
0.06667609512805939,
-0.3659062087535858,
-0.14248573780059814,
0.7633747458457947,
-0.05906560271978378,
0.5187609791755676,
-0.5460057258605957,
-0.5727174878120422,
-0.3567046821117401,
-0.33414968848228455,
0.17480528354644775,
0.4811914563179016,
0.48408496379852295,
-0.3934631645679474,
0.5514848828315735,
-0.024157200008630753,
0.398587167263031,
0.025732040405273438,
-0.26980820298194885,
0.7599047422409058,
-0.6305767893791199,
-0.2601073086261749,
-0.02982679195702076,
1.0924617052078247,
0.3808146119117737,
0.4309852421283722,
-0.007412927225232124,
-0.39094093441963196,
-0.22086365520954132,
0.11250736564397812,
-0.7865018248558044,
-0.21563488245010376,
0.036498475819826126,
-0.5796248316764832,
-0.20919911563396454,
0.025494519621133804,
-0.5959662199020386,
0.0030606824439018965,
-0.22458100318908691,
0.6635800004005432,
-0.9999346137046814,
-0.3082371652126312,
0.02364364080131054,
-0.3086986541748047,
0.4400208294391632,
0.07521291077136993,
-1.0211962461471558,
0.10082940012216568,
0.36782053112983704,
0.6338761448860168,
0.19839538633823395,
-0.3496292531490326,
0.11779430508613586,
-0.010738320648670197,
-0.025628861039876938,
0.4868617355823517,
-0.14823029935359955,
-0.35472530126571655,
0.09051907062530518,
0.18668977916240692,
-0.4530036151409149,
-0.12328390777111053,
0.6658354997634888,
-0.24555382132530212,
0.6609442830085754,
-0.1916590929031372,
-0.6130484938621521,
-0.19642165303230286,
0.1780448853969574,
-0.418268084526062,
1.2779544591903687,
0.23136432468891144,
-1.072694182395935,
0.43326690793037415,
-0.507493257522583,
-0.5050313472747803,
-0.03831639885902405,
-0.04584556445479393,
-0.7485058307647705,
-0.1219831332564354,
0.4251744747161865,
0.44225913286209106,
0.2578478157520294,
0.29462364315986633,
-0.32079777121543884,
-0.4273175299167633,
0.2516072988510132,
-0.3538908064365387,
1.484798550605774,
0.2904939353466034,
-0.35938411951065063,
0.10289865732192993,
-0.803561270236969,
0.09231660515069962,
0.43246781826019287,
-0.47976407408714294,
-0.30052417516708374,
-0.27997225522994995,
0.24554389715194702,
0.21906502544879913,
0.47723281383514404,
-0.7354494333267212,
0.18022313714027405,
-0.6152719259262085,
0.35525786876678467,
0.8629812598228455,
-0.18032719194889069,
0.33324170112609863,
-0.5294504761695862,
0.3292108178138733,
0.05981162562966347,
0.2933127284049988,
-0.1364019215106964,
-0.6512212753295898,
-1.0029637813568115,
-0.33915436267852783,
0.4227519929409027,
0.6702216267585754,
-0.9318174123764038,
1.0260734558105469,
-0.5683444142341614,
-0.6409165859222412,
-0.6591358184814453,
-0.13684412837028503,
0.2884805500507355,
0.39819207787513733,
0.388074666261673,
-0.031018920242786407,
-0.6355244517326355,
-0.9102147817611694,
-0.22392122447490692,
-0.029467586427927017,
-0.04386002942919731,
0.37042003870010376,
0.7468132376670837,
-0.34430816769599915,
0.8801986575126648,
-0.5284894108772278,
-0.3465721607208252,
-0.5305399894714355,
0.16748259961605072,
0.5073937773704529,
0.6385967135429382,
0.8382487893104553,
-0.716717541217804,
-0.6219761371612549,
-0.27649447321891785,
-0.7324373722076416,
0.03617033362388611,
-0.23889395594596863,
-0.38184887170791626,
0.3816104233264923,
0.40027666091918945,
-0.8004959225654602,
0.2975757122039795,
0.5507814288139343,
-0.4355001747608185,
0.5628015398979187,
-0.22295258939266205,
-0.08591439574956894,
-1.2329986095428467,
0.21401634812355042,
-0.053532619029283524,
-0.12139099836349487,
-0.608008861541748,
0.05039379373192787,
0.06617169827222824,
-0.09554624557495117,
-0.5795685052871704,
0.41628462076187134,
-0.39193862676620483,
0.030329832807183266,
0.16534878313541412,
0.0988113284111023,
-0.08362575620412827,
0.9160258173942566,
-0.023113097995519638,
0.7021884322166443,
0.41623392701148987,
-0.4636574685573578,
0.0771729052066803,
0.5709582567214966,
-0.5501622557640076,
0.21496513485908508,
-0.6814420223236084,
-0.14042814075946808,
-0.1396709829568863,
0.22834673523902893,
-1.1368657350540161,
-0.014014512300491333,
0.3361169099807739,
-0.5623456835746765,
0.4128630757331848,
0.11040742695331573,
-0.6093600988388062,
-0.4339873194694519,
-0.6030595898628235,
-0.027664512395858765,
0.700026273727417,
-0.4747883677482605,
0.5975675582885742,
0.091309554874897,
-0.30605965852737427,
-0.7762597799301147,
-1.1347088813781738,
-0.2951580584049225,
-0.07183464616537094,
-0.6607500314712524,
0.40076154470443726,
-0.25583794713020325,
0.2797009348869324,
0.05106015503406525,
0.018837029114365578,
-0.12718597054481506,
0.04253965988755226,
0.11320096254348755,
0.34038349986076355,
-0.3347887694835663,
0.08269482851028442,
0.030526503920555115,
0.15177816152572632,
0.04469171538949013,
0.11272399127483368,
0.7304938435554504,
-0.10875754058361053,
0.023318344727158546,
-0.5731282234191895,
0.0786462053656578,
0.42632240056991577,
0.07060888409614563,
1.0196677446365356,
0.8725166916847229,
-0.2653573453426361,
0.1266031563282013,
-0.5022145509719849,
-0.3067951500415802,
-0.539979875087738,
0.4179670810699463,
-0.4272380471229553,
-0.6263231635093689,
0.5280876755714417,
0.347663015127182,
0.20105965435504913,
0.6426495909690857,
0.35150548815727234,
-0.30328330397605896,
1.067969560623169,
0.5960094928741455,
-0.07290933281183243,
0.8459075093269348,
-0.5204236507415771,
0.1636773645877838,
-0.7883601784706116,
-0.31866684556007385,
-0.47385403513908386,
-0.3184840977191925,
-0.8915491104125977,
-0.18993434309959412,
0.18249092996120453,
-0.04763462767004967,
-0.48458388447761536,
0.3704102635383606,
-0.39320260286331177,
0.18380707502365112,
0.7386231422424316,
0.3350810408592224,
-0.13016049563884735,
0.15406383574008942,
-0.34813952445983887,
-0.26663264632225037,
-0.901572048664093,
-0.3128010332584381,
1.066388726234436,
0.6234565377235413,
0.4593537151813507,
-0.03371521830558777,
0.8068461418151855,
-0.18256120383739471,
0.15839646756649017,
-0.7183927297592163,
0.6902270317077637,
-0.3785440921783447,
-0.6792238354682922,
-0.41797763109207153,
-0.5724956393241882,
-1.1939404010772705,
0.32650309801101685,
-0.5755106210708618,
-0.6036664843559265,
0.043610427528619766,
-0.3003300130367279,
-0.17433780431747437,
0.2849292755126953,
-0.8184289932250977,
0.9943163394927979,
-0.4065341353416443,
-0.0910038948059082,
0.07765290886163712,
-0.8220500349998474,
0.33027535676956177,
0.26683300733566284,
0.27978718280792236,
-0.12041503936052322,
0.2411542385816574,
0.9778872728347778,
-0.616041362285614,
0.9404385089874268,
-0.3371596336364746,
-0.05132222920656204,
0.1611861288547516,
-0.33537760376930237,
0.45319074392318726,
-0.19654938578605652,
0.02453560009598732,
0.40702810883522034,
-0.32250910997390747,
-0.43320170044898987,
-0.36522093415260315,
0.6691338419914246,
-1.2932370901107788,
-0.31905150413513184,
-0.5356934666633606,
-0.507125973701477,
-0.0735945776104927,
0.5590137839317322,
0.5823426842689514,
0.191988006234169,
0.1824304163455963,
0.3152502775192261,
0.6715339422225952,
-0.43493470549583435,
0.6351499557495117,
0.36172816157341003,
0.014928012154996395,
-0.4434260427951813,
0.9143917560577393,
0.1575067937374115,
0.10070424526929855,
0.30865418910980225,
0.35550546646118164,
-0.4068818688392639,
-0.5196788311004639,
-0.24804268777370453,
0.5921356678009033,
-0.8267272710800171,
-0.20053032040596008,
-0.8209822773933411,
-0.37550681829452515,
-0.654159426689148,
-0.1155298575758934,
-0.18780115246772766,
-0.4892410635948181,
-0.429374635219574,
-0.05678727477788925,
0.4608553349971771,
0.4453602433204651,
0.07339857518672943,
0.5021328926086426,
-0.6355802416801453,
0.224816232919693,
0.29277482628822327,
0.3692479431629181,
-0.16217747330665588,
-0.7206386923789978,
-0.15368326008319855,
0.2326575368642807,
-0.3375263810157776,
-0.7866553068161011,
0.5632870197296143,
0.10108070820569992,
0.6632528305053711,
0.23540961742401123,
0.03159961849451065,
0.7812681198120117,
-0.5361548662185669,
1.1125826835632324,
0.5625709295272827,
-0.8666633367538452,
0.8005735874176025,
-0.3733358681201935,
0.5697802305221558,
0.6539817452430725,
0.6123473048210144,
-0.3264625668525696,
-0.7075095176696777,
-0.9353086352348328,
-1.1381862163543701,
0.9859077334403992,
0.33232563734054565,
0.29014769196510315,
0.02642258070409298,
0.2022559940814972,
0.07941760122776031,
0.19129778444766998,
-1.36231529712677,
-0.5006245374679565,
-0.515030026435852,
-0.629687488079071,
-0.054079774767160416,
-0.21053309738636017,
0.0972311720252037,
-0.2592788636684418,
1.015095829963684,
0.07250029593706131,
0.594957709312439,
0.1747041642665863,
-0.27122974395751953,
0.014025893993675709,
0.24687261879444122,
0.589426577091217,
0.3116910755634308,
-0.3456462323665619,
-0.2970481216907501,
0.34786489605903625,
-0.6255183219909668,
-0.2176765650510788,
0.2200775295495987,
-0.533837080001831,
0.1714203953742981,
0.4835018217563629,
1.193682312965393,
0.43610548973083496,
-0.5224394798278809,
0.8257030248641968,
-0.21893608570098877,
-0.3835570216178894,
-0.5342183709144592,
0.22403819859027863,
0.0483950637280941,
0.10722354799509048,
0.23700661957263947,
0.004724509548395872,
0.03546015918254852,
-0.6105841398239136,
0.033738914877176285,
0.2951732873916626,
-0.3518834114074707,
-0.10933004319667816,
0.6278478503227234,
0.19177520275115967,
0.01492222398519516,
0.9211232662200928,
-0.10755648463964462,
-0.5946254730224609,
0.7007992267608643,
0.6963144540786743,
0.7629323601722717,
0.015146479941904545,
0.07224497199058533,
0.805148184299469,
0.33584198355674744,
0.10136730968952179,
0.5388014316558838,
0.09219639003276825,
-0.8987572193145752,
-0.3107835054397583,
-0.7023143172264099,
0.07518155127763748,
0.4162954092025757,
-0.7047874927520752,
0.4387109875679016,
-0.48276960849761963,
-0.20419003069400787,
-0.03860974684357643,
0.21115028858184814,
-0.6709849834442139,
0.3984755277633667,
0.37555941939353943,
0.9399572014808655,
-1.0371793508529663,
0.8666638135910034,
0.8104302883148193,
-0.7634730935096741,
-0.9513061046600342,
0.06791649758815765,
-0.45781075954437256,
-0.9823473691940308,
0.807448148727417,
0.3805011510848999,
0.12040205299854279,
-0.10913095623254776,
-0.5896747708320618,
-0.8828973174095154,
1.1438010931015015,
0.24243760108947754,
-0.6128441095352173,
0.00588636752218008,
0.13065557181835175,
0.5002928376197815,
-0.1210976243019104,
0.5786013603210449,
0.4544731080532074,
0.5313068628311157,
-0.06766407936811447,
-0.9500147104263306,
0.10727042704820633,
-0.33389797806739807,
0.2770472764968872,
-0.07227692753076553,
-0.8143459558486938,
0.9410808682441711,
-0.13451790809631348,
-0.24335964024066925,
0.15009847283363342,
0.8157660961151123,
0.44982993602752686,
0.1387159824371338,
0.7538559436798096,
0.6471585035324097,
0.6781890392303467,
-0.2851252257823944,
1.0389326810836792,
-0.2820434868335724,
0.5140755772590637,
0.8771268129348755,
0.15329872071743011,
0.8792547583580017,
0.40840888023376465,
-0.268716961145401,
0.8382964134216309,
0.47596773505210876,
-0.22401225566864014,
0.7757294774055481,
0.029394902288913727,
0.11147325485944748,
-0.03637436777353287,
0.0877317488193512,
-0.3722289502620697,
0.4217279851436615,
0.3606511056423187,
-0.2877999544143677,
0.022179601714015007,
0.19471004605293274,
0.36528366804122925,
0.030684102326631546,
-0.2825266122817993,
0.7786558866500854,
-0.09689342230558395,
-0.6904957890510559,
0.7504289746284485,
-0.011327619664371014,
1.134498119354248,
-0.8715376257896423,
0.3189180791378021,
-0.2498014122247696,
0.08750604093074799,
-0.09600746631622314,
-1.032767415046692,
0.15239645540714264,
-0.10638368874788284,
-0.11808334290981293,
-0.5410584807395935,
0.6894569993019104,
-0.5446918606758118,
-0.6213686466217041,
0.2394217699766159,
0.15694625675678253,
0.09276160597801208,
0.42875275015830994,
-1.167135238647461,
0.03309997543692589,
0.25291353464126587,
-0.5924912691116333,
0.21900102496147156,
0.5130308270454407,
0.26988622546195984,
0.5457316637039185,
0.5809154510498047,
0.057069629430770874,
0.13117378950119019,
0.19454464316368103,
0.7917270064353943,
-0.7191210985183716,
-0.7421552538871765,
-0.5877180695533752,
0.648701548576355,
-0.28003424406051636,
-0.5109487175941467,
0.7849359512329102,
0.47044050693511963,
1.0089582204818726,
-0.3490886390209198,
0.8957502841949463,
-0.181352898478508,
0.5378006100654602,
-0.6787117719650269,
0.8036745190620422,
-0.7553087472915649,
-0.12957489490509033,
-0.21867121756076813,
-0.7262664437294006,
-0.22105932235717773,
1.0675936937332153,
-0.23025846481323242,
0.33373650908470154,
0.6966133117675781,
0.5975363254547119,
-0.010749254375696182,
0.04442715644836426,
0.0794227197766304,
0.5699284076690674,
0.09167121350765228,
0.67706298828125,
0.6846644878387451,
-0.8693403005599976,
0.7093154788017273,
-0.6673421263694763,
-0.04059295728802681,
-0.401200532913208,
-0.7787237763404846,
-1.0072154998779297,
-0.41358280181884766,
-0.4803306460380554,
-0.2123773694038391,
-0.08955027163028717,
0.7722525000572205,
0.6234768033027649,
-0.897591769695282,
-0.2025589793920517,
-0.17699700593948364,
-0.05759432911872864,
-0.20331908762454987,
-0.3166705071926117,
0.3795989155769348,
-0.5360038876533508,
-0.8706358671188354,
0.11532523483037949,
-0.24900652468204498,
0.3662232458591461,
0.03146170452237129,
0.006403659470379353,
-0.6003202199935913,
0.05002742260694504,
0.6426117420196533,
0.030945785343647003,
-0.7138730883598328,
-0.3112989068031311,
0.1200699657201767,
-0.3828279376029968,
-0.027384933084249496,
0.3349555432796478,
-0.5415341854095459,
0.25507888197898865,
0.5033233761787415,
0.2827395498752594,
0.6658115386962891,
-0.2538679838180542,
0.3139900267124176,
-1.1432183980941772,
0.4195585548877716,
0.18915729224681854,
0.6326947808265686,
0.3637418746948242,
-0.3553631007671356,
0.50714111328125,
0.30739593505859375,
-0.4988150894641876,
-0.8418603539466858,
-0.025256315246224403,
-1.1531094312667847,
-0.529481053352356,
1.267189383506775,
-0.25800779461860657,
-0.41472065448760986,
0.1782578080892563,
-0.25956806540489197,
0.46055397391319275,
-0.3498982787132263,
0.5904099941253662,
0.6975131034851074,
0.007258816622197628,
-0.16042615473270416,
-0.4580182135105133,
0.3613201379776001,
0.6446276307106018,
-0.6661597490310669,
-0.22228805720806122,
0.3187108039855957,
0.5717489719390869,
0.2568281292915344,
0.6723667979240417,
0.07636033743619919,
0.1644991785287857,
0.034538473933935165,
0.33272331953048706,
0.13524623215198517,
0.035342637449502945,
-0.1951880306005478,
-0.1126248762011528,
-0.2900773286819458,
-0.33090442419052124
] |
beomi/kcbert-base | beomi | "2023-03-30T08:52:15Z" | 86,664 | 7 | transformers | [
"transformers",
"pytorch",
"jax",
"safetensors",
"bert",
"fill-mask",
"korean",
"ko",
"arxiv:1810.04805",
"doi:10.57967/hf/0016",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | fill-mask | "2022-03-02T23:29:05Z" | ---
language: ko
license: apache-2.0
tags:
- korean
---
# KcBERT: Korean comments BERT
** Updates on 2021.04.07 **
- KcELECTRA가 릴리즈 되었습니다!🤗
- KcELECTRA는 보다 더 많은 데이터셋, 그리고 더 큰 General vocab을 통해 KcBERT 대비 **모든 태스크에서 더 높은 성능**을 보입니다.
- 아래 깃헙 링크에서 직접 사용해보세요!
- https://github.com/Beomi/KcELECTRA
** Updates on 2021.03.14 **
- KcBERT Paper 인용 표기를 추가하였습니다.(bibtex)
- KcBERT-finetune Performance score를 본문에 추가하였습니다.
** Updates on 2020.12.04 **
Huggingface Transformers가 v4.0.0으로 업데이트됨에 따라 Tutorial의 코드가 일부 변경되었습니다.
업데이트된 KcBERT-Large NSMC Finetuning Colab: <a href="https://colab.research.google.com/drive/1dFC0FL-521m7CL_PSd8RLKq67jgTJVhL?usp=sharing">
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
</a>
** Updates on 2020.09.11 **
KcBERT를 Google Colab에서 TPU를 통해 학습할 수 있는 튜토리얼을 제공합니다! 아래 버튼을 눌러보세요.
Colab에서 TPU로 KcBERT Pretrain 해보기: <a href="https://colab.research.google.com/drive/1lYBYtaXqt9S733OXdXvrvC09ysKFN30W">
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
</a>
텍스트 분량만 전체 12G 텍스트 중 일부(144MB)로 줄여 학습을 진행합니다.
한국어 데이터셋/코퍼스를 좀더 쉽게 사용할 수 있는 [Korpora](https://github.com/ko-nlp/Korpora) 패키지를 사용합니다.
** Updates on 2020.09.08 **
Github Release를 통해 학습 데이터를 업로드하였습니다.
다만 한 파일당 2GB 이내의 제약으로 인해 분할압축되어있습니다.
아래 링크를 통해 받아주세요. (가입 없이 받을 수 있어요. 분할압축)
만약 한 파일로 받고싶으시거나/Kaggle에서 데이터를 살펴보고 싶으시다면 아래의 캐글 데이터셋을 이용해주세요.
- Github릴리즈: https://github.com/Beomi/KcBERT/releases/tag/TrainData_v1
** Updates on 2020.08.22 **
Pretrain Dataset 공개
- 캐글: https://www.kaggle.com/junbumlee/kcbert-pretraining-corpus-korean-news-comments (한 파일로 받을 수 있어요. 단일파일)
Kaggle에 학습을 위해 정제한(아래 `clean`처리를 거친) Dataset을 공개하였습니다!
직접 다운받으셔서 다양한 Task에 학습을 진행해보세요 :)
---
공개된 한국어 BERT는 대부분 한국어 위키, 뉴스 기사, 책 등 잘 정제된 데이터를 기반으로 학습한 모델입니다. 한편, 실제로 NSMC와 같은 댓글형 데이터셋은 정제되지 않았고 구어체 특징에 신조어가 많으며, 오탈자 등 공식적인 글쓰기에서 나타나지 않는 표현들이 빈번하게 등장합니다.
KcBERT는 위와 같은 특성의 데이터셋에 적용하기 위해, 네이버 뉴스에서 댓글과 대댓글을 수집해, 토크나이저와 BERT모델을 처음부터 학습한 Pretrained BERT 모델입니다.
KcBERT는 Huggingface의 Transformers 라이브러리를 통해 간편히 불러와 사용할 수 있습니다. (별도의 파일 다운로드가 필요하지 않습니다.)
## KcBERT Performance
- Finetune 코드는 https://github.com/Beomi/KcBERT-finetune 에서 찾아보실 수 있습니다.
| | Size<br/>(용량) | **NSMC**<br/>(acc) | **Naver NER**<br/>(F1) | **PAWS**<br/>(acc) | **KorNLI**<br/>(acc) | **KorSTS**<br/>(spearman) | **Question Pair**<br/>(acc) | **KorQuaD (Dev)**<br/>(EM/F1) |
| :-------------------- | :---: | :----------------: | :--------------------: | :----------------: | :------------------: | :-----------------------: | :-------------------------: | :---------------------------: |
| KcBERT-Base | 417M | 89.62 | 84.34 | 66.95 | 74.85 | 75.57 | 93.93 | 60.25 / 84.39 |
| KcBERT-Large | 1.2G | **90.68** | 85.53 | 70.15 | 76.99 | 77.49 | 94.06 | 62.16 / 86.64 |
| KoBERT | 351M | 89.63 | 86.11 | 80.65 | 79.00 | 79.64 | 93.93 | 52.81 / 80.27 |
| XLM-Roberta-Base | 1.03G | 89.49 | 86.26 | 82.95 | 79.92 | 79.09 | 93.53 | 64.70 / 88.94 |
| HanBERT | 614M | 90.16 | **87.31** | 82.40 | **80.89** | 83.33 | 94.19 | 78.74 / 92.02 |
| KoELECTRA-Base | 423M | **90.21** | 86.87 | 81.90 | 80.85 | 83.21 | 94.20 | 61.10 / 89.59 |
| KoELECTRA-Base-v2 | 423M | 89.70 | 87.02 | **83.90** | 80.61 | **84.30** | **94.72** | **84.34 / 92.58** |
| DistilKoBERT | 108M | 88.41 | 84.13 | 62.55 | 70.55 | 73.21 | 92.48 | 54.12 / 77.80 |
\*HanBERT의 Size는 Bert Model과 Tokenizer DB를 합친 것입니다.
\***config의 세팅을 그대로 하여 돌린 결과이며, hyperparameter tuning을 추가적으로 할 시 더 좋은 성능이 나올 수 있습니다.**
## How to use
### Requirements
- `pytorch <= 1.8.0`
- `transformers ~= 3.0.1`
- `transformers ~= 4.0.0` 도 호환됩니다.
- `emoji ~= 0.6.0`
- `soynlp ~= 0.0.493`
```python
from transformers import AutoTokenizer, AutoModelWithLMHead
# Base Model (108M)
tokenizer = AutoTokenizer.from_pretrained("beomi/kcbert-base")
model = AutoModelWithLMHead.from_pretrained("beomi/kcbert-base")
# Large Model (334M)
tokenizer = AutoTokenizer.from_pretrained("beomi/kcbert-large")
model = AutoModelWithLMHead.from_pretrained("beomi/kcbert-large")
```
### Pretrain & Finetune Colab 링크 모음
#### Pretrain Data
- [데이터셋 다운로드(Kaggle, 단일파일, 로그인 필요)](https://www.kaggle.com/junbumlee/kcbert-pretraining-corpus-korean-news-comments)
- [데이터셋 다운로드(Github, 압축 여러파일, 로그인 불필요)](https://github.com/Beomi/KcBERT/releases/tag/TrainData_v1)
#### Pretrain Code
Colab에서 TPU로 KcBERT Pretrain 해보기: <a href="https://colab.research.google.com/drive/1lYBYtaXqt9S733OXdXvrvC09ysKFN30W">
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
</a>
#### Finetune Samples
**KcBERT-Base** NSMC Finetuning with PyTorch-Lightning (Colab) <a href="https://colab.research.google.com/drive/1fn4sVJ82BrrInjq6y5655CYPP-1UKCLb?usp=sharing">
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
</a>
**KcBERT-Large** NSMC Finetuning with PyTorch-Lightning (Colab) <a href="https://colab.research.google.com/drive/1dFC0FL-521m7CL_PSd8RLKq67jgTJVhL?usp=sharing">
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
</a>
> 위 두 코드는 Pretrain 모델(base, large)와 batch size만 다를 뿐, 나머지 코드는 완전히 동일합니다.
## Train Data & Preprocessing
### Raw Data
학습 데이터는 2019.01.01 ~ 2020.06.15 사이에 작성된 **댓글 많은 뉴스** 기사들의 **댓글과 대댓글**을 모두 수집한 데이터입니다.
데이터 사이즈는 텍스트만 추출시 **약 15.4GB이며, 1억1천만개 이상의 문장**으로 이뤄져 있습니다.
### Preprocessing
PLM 학습을 위해서 전처리를 진행한 과정은 다음과 같습니다.
1. 한글 및 영어, 특수문자, 그리고 이모지(🥳)까지!
정규표현식을 통해 한글, 영어, 특수문자를 포함해 Emoji까지 학습 대상에 포함했습니다.
한편, 한글 범위를 `ㄱ-ㅎ가-힣` 으로 지정해 `ㄱ-힣` 내의 한자를 제외했습니다.
2. 댓글 내 중복 문자열 축약
`ㅋㅋㅋㅋㅋ`와 같이 중복된 글자를 `ㅋㅋ`와 같은 것으로 합쳤습니다.
3. Cased Model
KcBERT는 영문에 대해서는 대소문자를 유지하는 Cased model입니다.
4. 글자 단위 10글자 이하 제거
10글자 미만의 텍스트는 단일 단어로 이뤄진 경우가 많아 해당 부분을 제외했습니다.
5. 중복 제거
중복적으로 쓰인 댓글을 제거하기 위해 중복 댓글을 하나로 합쳤습니다.
이를 통해 만든 최종 학습 데이터는 **12.5GB, 8.9천만개 문장**입니다.
아래 명령어로 pip로 설치한 뒤, 아래 clean함수로 클리닝을 하면 Downstream task에서 보다 성능이 좋아집니다. (`[UNK]` 감소)
```bash
pip install soynlp emoji
```
아래 `clean` 함수를 Text data에 사용해주세요.
```python
import re
import emoji
from soynlp.normalizer import repeat_normalize
emojis = list({y for x in emoji.UNICODE_EMOJI.values() for y in x.keys()})
emojis = ''.join(emojis)
pattern = re.compile(f'[^ .,?!/@$%~%·∼()\x00-\x7Fㄱ-ㅣ가-힣{emojis}]+')
url_pattern = re.compile(
r'https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)')
def clean(x):
x = pattern.sub(' ', x)
x = url_pattern.sub('', x)
x = x.strip()
x = repeat_normalize(x, num_repeats=2)
return x
```
### Cleaned Data (Released on Kaggle)
원본 데이터를 위 `clean`함수로 정제한 12GB분량의 txt 파일을 아래 Kaggle Dataset에서 다운받으실 수 있습니다 :)
https://www.kaggle.com/junbumlee/kcbert-pretraining-corpus-korean-news-comments
## Tokenizer Train
Tokenizer는 Huggingface의 [Tokenizers](https://github.com/huggingface/tokenizers) 라이브러리를 통해 학습을 진행했습니다.
그 중 `BertWordPieceTokenizer` 를 이용해 학습을 진행했고, Vocab Size는 `30000`으로 진행했습니다.
Tokenizer를 학습하는 것에는 `1/10`로 샘플링한 데이터로 학습을 진행했고, 보다 골고루 샘플링하기 위해 일자별로 stratify를 지정한 뒤 햑습을 진행했습니다.
## BERT Model Pretrain
- KcBERT Base config
```json
{
"max_position_embeddings": 300,
"hidden_dropout_prob": 0.1,
"hidden_act": "gelu",
"initializer_range": 0.02,
"num_hidden_layers": 12,
"type_vocab_size": 2,
"vocab_size": 30000,
"hidden_size": 768,
"attention_probs_dropout_prob": 0.1,
"directionality": "bidi",
"num_attention_heads": 12,
"intermediate_size": 3072,
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert"
}
```
- KcBERT Large config
```json
{
"type_vocab_size": 2,
"initializer_range": 0.02,
"max_position_embeddings": 300,
"vocab_size": 30000,
"hidden_size": 1024,
"hidden_dropout_prob": 0.1,
"model_type": "bert",
"directionality": "bidi",
"pad_token_id": 0,
"layer_norm_eps": 1e-12,
"hidden_act": "gelu",
"num_hidden_layers": 24,
"num_attention_heads": 16,
"attention_probs_dropout_prob": 0.1,
"intermediate_size": 4096,
"architectures": [
"BertForMaskedLM"
]
}
```
BERT Model Config는 Base, Large 기본 세팅값을 그대로 사용했습니다. (MLM 15% 등)
TPU `v3-8` 을 이용해 각각 3일, N일(Large는 학습 진행 중)을 진행했고, 현재 Huggingface에 공개된 모델은 1m(100만) step을 학습한 ckpt가 업로드 되어있습니다.
모델 학습 Loss는 Step에 따라 초기 200k에 가장 빠르게 Loss가 줄어들다 400k이후로는 조금씩 감소하는 것을 볼 수 있습니다.
- Base Model Loss
![KcBERT-Base Pretraining Loss](https://raw.githubusercontent.com/Beomi/KcBERT/master/img/image-20200719183852243.38b124.png)
- Large Model Loss
![KcBERT-Large Pretraining Loss](https://raw.githubusercontent.com/Beomi/KcBERT/master/img/image-20200806160746694.d56fa1.png)
학습은 GCP의 TPU v3-8을 이용해 학습을 진행했고, 학습 시간은 Base Model 기준 2.5일정도 진행했습니다. Large Model은 약 5일정도 진행한 뒤 가장 낮은 loss를 가진 체크포인트로 정했습니다.
## Example
### HuggingFace MASK LM
[HuggingFace kcbert-base 모델](https://huggingface.co/beomi/kcbert-base?text=오늘은+날씨가+[MASK]) 에서 아래와 같이 테스트 해 볼 수 있습니다.
![오늘은 날씨가 "좋네요", KcBERT-Base](https://raw.githubusercontent.com/Beomi/KcBERT/master/img/image-20200719205919389.5670d6.png)
물론 [kcbert-large 모델](https://huggingface.co/beomi/kcbert-large?text=오늘은+날씨가+[MASK]) 에서도 테스트 할 수 있습니다.
![image-20200806160624340](https://raw.githubusercontent.com/Beomi/KcBERT/master/img/image-20200806160624340.58f9be.png)
### NSMC Binary Classification
[네이버 영화평 코퍼스](https://github.com/e9t/nsmc) 데이터셋을 대상으로 Fine Tuning을 진행해 성능을 간단히 테스트해보았습니다.
Base Model을 Fine Tune하는 코드는 <a href="https://colab.research.google.com/drive/1fn4sVJ82BrrInjq6y5655CYPP-1UKCLb?usp=sharing">
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
</a> 에서 직접 실행해보실 수 있습니다.
Large Model을 Fine Tune하는 코드는 <a href="https://colab.research.google.com/drive/1dFC0FL-521m7CL_PSd8RLKq67jgTJVhL?usp=sharing">
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
</a> 에서 직접 실행해볼 수 있습니다.
- GPU는 P100 x1대 기준 1epoch에 2-3시간, TPU는 1epoch에 1시간 내로 소요됩니다.
- GPU RTX Titan x4대 기준 30분/epoch 소요됩니다.
- 예시 코드는 [pytorch-lightning](https://github.com/PyTorchLightning/pytorch-lightning)으로 개발했습니다.
#### 실험결과
- KcBERT-Base Model 실험결과: Val acc `.8905`
![KcBERT Base finetune on NSMC](https://raw.githubusercontent.com/Beomi/KcBERT/master/img/image-20200719201102895.ddbdfc.png)
- KcBERT-Large Model 실험 결과: Val acc `.9089`
![image-20200806190242834](https://raw.githubusercontent.com/Beomi/KcBERT/master/img/image-20200806190242834.56d6ee.png)
> 더 다양한 Downstream Task에 대해 테스트를 진행하고 공개할 예정입니다.
## 인용표기/Citation
KcBERT를 인용하실 때는 아래 양식을 통해 인용해주세요.
```
@inproceedings{lee2020kcbert,
title={KcBERT: Korean Comments BERT},
author={Lee, Junbum},
booktitle={Proceedings of the 32nd Annual Conference on Human and Cognitive Language Technology},
pages={437--440},
year={2020}
}
```
- 논문집 다운로드 링크: http://hclt.kr/dwn/?v=bG5iOmNvbmZlcmVuY2U7aWR4OjMy (*혹은 http://hclt.kr/symp/?lnb=conference )
## Acknowledgement
KcBERT Model을 학습하는 GCP/TPU 환경은 [TFRC](https://www.tensorflow.org/tfrc?hl=ko) 프로그램의 지원을 받았습니다.
모델 학습 과정에서 많은 조언을 주신 [Monologg](https://github.com/monologg/) 님 감사합니다 :)
## Reference
### Github Repos
- [BERT by Google](https://github.com/google-research/bert)
- [KoBERT by SKT](https://github.com/SKTBrain/KoBERT)
- [KoELECTRA by Monologg](https://github.com/monologg/KoELECTRA/)
- [Transformers by Huggingface](https://github.com/huggingface/transformers)
- [Tokenizers by Hugginface](https://github.com/huggingface/tokenizers)
### Papers
- [BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding](https://arxiv.org/abs/1810.04805)
### Blogs
- [Monologg님의 KoELECTRA 학습기](https://monologg.kr/categories/NLP/ELECTRA/)
- [Colab에서 TPU로 BERT 처음부터 학습시키기 - Tensorflow/Google ver.](https://beomi.github.io/2020/02/26/Train-BERT-from-scratch-on-colab-TPU-Tensorflow-ver/)
| [
-0.7375729084014893,
-0.6169561147689819,
0.2182781845331192,
0.4854908585548401,
-0.4615381956100464,
0.07493757456541061,
-0.2191763073205948,
-0.14792399108409882,
0.6088175177574158,
0.17569957673549652,
-0.5439528822898865,
-0.6476593613624573,
-0.6561675071716309,
0.09977226704359055,
0.02769707515835762,
0.8910853266716003,
-0.19972218573093414,
0.19671249389648438,
0.060192324221134186,
-0.032518982887268066,
-0.628925085067749,
-0.5754020810127258,
-0.5474943518638611,
-0.32840439677238464,
0.14036858081817627,
0.46266984939575195,
0.5965255498886108,
0.40985628962516785,
0.5564180016517639,
0.39875784516334534,
-0.08435050398111343,
-0.14656144380569458,
-0.2647159993648529,
-0.10952790081501007,
0.3460085093975067,
-0.4715777039527893,
-0.34261372685432434,
-0.042199742048978806,
0.40156230330467224,
0.5089173913002014,
0.15366236865520477,
0.16737167537212372,
0.14666925370693207,
0.8355945348739624,
-0.5010263323783875,
0.09956665337085724,
-0.13181999325752258,
0.1537684053182602,
-0.004709638189524412,
-0.07459349930286407,
-0.007307156920433044,
-0.6605204343795776,
0.09399495273828506,
-0.707554817199707,
0.240559920668602,
-0.01404994260519743,
1.453955054283142,
-0.024842029437422752,
-0.14687496423721313,
-0.39197537302970886,
-0.4787676930427551,
0.9437475204467773,
-0.810212254524231,
0.4395119547843933,
0.3481541574001312,
0.1749173253774643,
-0.2640392482280731,
-0.9480461478233337,
-0.6885793209075928,
-0.2016717940568924,
-0.328553169965744,
0.4463258981704712,
0.006476536393165588,
-0.32941973209381104,
0.2568851411342621,
0.34215086698532104,
-0.49132752418518066,
-0.09174856543540955,
-0.27915725111961365,
-0.25562959909439087,
0.5805167555809021,
-0.13732826709747314,
0.45780259370803833,
-0.4757550060749054,
-0.5450393557548523,
-0.45586058497428894,
-0.3898487985134125,
0.33827200531959534,
0.32126882672309875,
0.07391317188739777,
-0.35475051403045654,
0.4636070430278778,
-0.16306999325752258,
0.3896831274032593,
0.26565879583358765,
-0.044797077775001526,
0.8481883406639099,
-0.5372487306594849,
-0.4662376940250397,
0.16586077213287354,
1.0892078876495361,
0.45460957288742065,
0.2285846620798111,
0.04584594815969467,
-0.012079262174665928,
-0.08843709528446198,
-0.025363756343722343,
-0.9913495182991028,
-0.5647775530815125,
0.39839330315589905,
-0.6997541189193726,
-0.24093371629714966,
0.10038568079471588,
-1.0858159065246582,
0.17072343826293945,
-0.3518516719341278,
0.7296356558799744,
-0.7336306571960449,
-0.3393113315105438,
0.02474077045917511,
-0.18060556054115295,
0.17739896476268768,
0.3198777735233307,
-0.6962741017341614,
0.11970705538988113,
0.13528408110141754,
0.6946839690208435,
0.24785618484020233,
-0.18368370831012726,
0.1440887153148651,
-0.07202062010765076,
-0.3296913206577301,
0.564177393913269,
-0.03040439635515213,
-0.47541508078575134,
-0.09244392812252045,
0.29120394587516785,
-0.30436989665031433,
-0.30506783723831177,
0.5973659157752991,
-0.27687615156173706,
0.15011301636695862,
-0.4811234474182129,
-0.4595571756362915,
-0.05886174365878105,
0.2898465692996979,
-0.5204801559448242,
1.1462130546569824,
0.14964106678962708,
-0.8374651074409485,
0.4022078812122345,
-0.6759948134422302,
-0.41121798753738403,
-0.13687098026275635,
-0.054273463785648346,
-0.6928646564483643,
-0.25291746854782104,
0.5229699611663818,
0.5494254231452942,
-0.11803382635116577,
-0.13162896037101746,
-0.09847485274076462,
-0.3339383602142334,
0.2642561197280884,
-0.040730372071266174,
1.1644105911254883,
0.47763791680336,
-0.47011634707450867,
0.06411970406770706,
-1.0083211660385132,
0.43102991580963135,
0.48834824562072754,
-0.43709760904312134,
-0.07026621699333191,
-0.5042572021484375,
0.09028596431016922,
0.3708106577396393,
0.47250762581825256,
-0.5067463517189026,
0.06250489503145218,
-0.31050747632980347,
0.5143651366233826,
1.0853593349456787,
-0.03164511173963547,
0.3579094111919403,
-0.38354355096817017,
0.5244587659835815,
0.16464513540267944,
0.28498926758766174,
-0.08807212859392166,
-0.24493971467018127,
-0.9713950753211975,
-0.4703453779220581,
0.584209144115448,
0.5107979774475098,
-0.703212320804596,
0.9339925050735474,
-0.1897863745689392,
-0.7837079167366028,
-0.7277998924255371,
-0.07106323540210724,
0.37717851996421814,
0.4601466655731201,
0.5323757529258728,
-0.1384156495332718,
-0.7829041481018066,
-0.7474304437637329,
-0.12411973625421524,
-0.013574760407209396,
-0.026074808090925217,
0.5304071307182312,
0.8361185193061829,
-0.21082760393619537,
0.9488814473152161,
-0.7398484945297241,
-0.29934588074684143,
-0.30011826753616333,
0.1252320408821106,
0.6567416787147522,
0.9224270582199097,
0.8625147938728333,
-0.8939908146858215,
-0.9591917991638184,
-0.10080251097679138,
-0.8206649422645569,
0.045541003346443176,
0.0022201056126505136,
-0.29188355803489685,
0.16362038254737854,
0.4880228042602539,
-0.7646914124488831,
0.5045416951179504,
0.3095704913139343,
-0.44574642181396484,
0.8886871933937073,
-0.36894601583480835,
0.4096207618713379,
-1.1517369747161865,
0.3847629427909851,
-0.11150266230106354,
0.0642823800444603,
-0.6376552581787109,
-0.14896461367607117,
0.109972283244133,
0.02828921191394329,
-0.5901814699172974,
0.5539103150367737,
-0.6050399541854858,
0.2743968069553375,
0.08075474202632904,
0.07873224467039108,
0.0011743896175175905,
0.7014699578285217,
-0.1744520366191864,
0.6293357014656067,
0.614942193031311,
-0.6997223496437073,
0.26260051131248474,
0.31208381056785583,
-0.5572107434272766,
0.19545535743236542,
-0.7721768021583557,
0.019865019246935844,
-0.11125704646110535,
0.22121819853782654,
-1.2748256921768188,
-0.2645657956600189,
0.6157466173171997,
-0.8303034901618958,
0.46433329582214355,
-0.07478628307580948,
-0.47588881850242615,
-0.6617249846458435,
-0.6159012913703918,
0.16817663609981537,
0.6128342747688293,
-0.5645895600318909,
0.5018107891082764,
0.12299548834562302,
-0.09154310077428818,
-0.6586769819259644,
-0.6609477996826172,
-0.2797033190727234,
-0.12417114526033401,
-0.6912238597869873,
0.6208329200744629,
-0.24926847219467163,
0.10522029548883438,
-0.04552005976438522,
-0.19021885097026825,
-0.1696537733078003,
-0.07347115874290466,
0.225723996758461,
0.4553166925907135,
-0.12776528298854828,
-0.09556060284376144,
-0.16018082201480865,
-0.04978764057159424,
0.015384713187813759,
0.01977735385298729,
0.9725067615509033,
-0.20390987396240234,
-0.19170965254306793,
-0.6632097959518433,
0.039130158722400665,
0.6819313764572144,
-0.06507439911365509,
0.8784446716308594,
0.9563829302787781,
-0.08127826452255249,
0.2665645182132721,
-0.4876161813735962,
-0.12813490629196167,
-0.5558922290802002,
0.2715870141983032,
-0.365233838558197,
-0.6072991490364075,
0.6613655090332031,
-0.13613559305667877,
-0.23898173868656158,
0.7282361388206482,
0.5262312293052673,
-0.3446851670742035,
1.1054178476333618,
0.3962089717388153,
-0.2243531346321106,
0.5895549058914185,
-0.7854832410812378,
0.3627067506313324,
-0.8592703938484192,
-0.5460343956947327,
-0.6261259913444519,
-0.3884122669696808,
-0.7405513525009155,
-0.14902473986148834,
0.3128734230995178,
0.4230104088783264,
-0.4164377450942993,
0.4522798955440521,
-0.8441255688667297,
0.043798066675662994,
0.6315959692001343,
0.3991769552230835,
-0.2680647373199463,
-0.04695357754826546,
-0.41475385427474976,
-0.01923363097012043,
-0.7111104726791382,
-0.30250629782676697,
1.2307243347167969,
0.30945920944213867,
0.6383875012397766,
-0.052878640592098236,
0.7294250726699829,
0.11491553485393524,
-0.011683382093906403,
-0.5846172571182251,
0.6069523692131042,
0.039678629487752914,
-0.6516593098640442,
-0.43506309390068054,
-0.27065616846084595,
-1.0796033143997192,
0.3994463086128235,
-0.386705607175827,
-0.8855994343757629,
0.3285185396671295,
0.2327006757259369,
-0.2820623815059662,
0.2252499759197235,
-0.940798282623291,
1.0413885116577148,
-0.38790109753608704,
-0.4223882257938385,
0.11614030599594116,
-0.8085798621177673,
0.08085425943136215,
0.044435225427150726,
0.1736561506986618,
-0.14755141735076904,
0.3602178394794464,
1.047043800354004,
-0.9478791356086731,
0.5251171588897705,
-0.3689168691635132,
0.13851149380207062,
0.5389969944953918,
-0.3315095603466034,
0.7446289658546448,
0.0046875919215381145,
0.04665055125951767,
0.1806536465883255,
-0.03199158236384392,
-0.49277061223983765,
-0.3256717622280121,
0.8466975092887878,
-1.0595077276229858,
-0.5153727531433105,
-0.561189591884613,
-0.2502266764640808,
0.11602668464183807,
0.46003755927085876,
0.6586204767227173,
0.07168696820735931,
0.068523108959198,
0.4001183807849884,
0.4328171908855438,
-0.43831056356430054,
0.6444650292396545,
0.20082426071166992,
-0.12081264704465866,
-0.5254912972450256,
0.9315106272697449,
0.31942543387413025,
0.08804218471050262,
0.221917986869812,
0.2590389847755432,
-0.47000446915626526,
-0.4014342725276947,
-0.2718687355518341,
0.24559351801872253,
-0.7002235054969788,
-0.13834697008132935,
-0.6961959600448608,
-0.20555417239665985,
-0.9066781997680664,
-0.3742843568325043,
-0.35062944889068604,
-0.4436167776584625,
-0.3771143853664398,
-0.052688125520944595,
0.46627792716026306,
0.19988906383514404,
-0.22283782064914703,
0.4386345148086548,
-0.5993376970291138,
0.2799566984176636,
0.11146107316017151,
0.22544918954372406,
0.186077281832695,
-0.43299680948257446,
-0.27787789702415466,
0.10225293040275574,
-0.4909925162792206,
-0.8033657073974609,
0.6616932153701782,
-0.40161293745040894,
0.5480157732963562,
0.34929051995277405,
-0.015876417979598045,
0.9078345894813538,
-0.3716262876987457,
0.9224584102630615,
0.6142886877059937,
-0.947730302810669,
0.7848063111305237,
-0.2470061182975769,
0.31236764788627625,
0.6221399903297424,
0.6904290318489075,
-0.44654014706611633,
-0.10890229791402817,
-0.7354239821434021,
-1.1098259687423706,
0.939250111579895,
0.5048501491546631,
-0.17767234146595,
0.13222679495811462,
0.009844988584518433,
-0.2784910202026367,
0.2986770272254944,
-0.8096381425857544,
-0.757533073425293,
-0.6427949666976929,
-0.1307096630334854,
0.00581977516412735,
-0.06469980627298355,
0.040309615433216095,
-0.6901464462280273,
0.9263386130332947,
0.32025855779647827,
0.7258626818656921,
0.5419110059738159,
-0.16521596908569336,
0.05789130926132202,
0.21202071011066437,
0.4477459788322449,
0.6891953945159912,
-0.5454227924346924,
-0.18737328052520752,
0.27539366483688354,
-0.8354668617248535,
0.19965332746505737,
0.029289741069078445,
-0.30737608671188354,
0.23689797520637512,
0.194508895277977,
0.7773669362068176,
0.10273091495037079,
-0.42039912939071655,
0.5500754714012146,
-0.022906901314854622,
-0.3498104512691498,
-0.5779060125350952,
-0.020131444558501244,
0.008362251333892345,
0.08025379478931427,
0.3998374342918396,
0.06778405606746674,
-0.25715741515159607,
-0.5838469862937927,
0.07400055229663849,
0.2926180958747864,
-0.33167585730552673,
-0.08002840727567673,
0.6394328474998474,
-0.046645186841487885,
-0.16316887736320496,
0.586607813835144,
-0.039726622402668,
-0.8609165549278259,
1.0667566061019897,
0.6333881616592407,
0.6970469355583191,
-0.37139999866485596,
0.06832572817802429,
0.8840070962905884,
0.13841810822486877,
0.051059506833553314,
0.4578426480293274,
0.1136820837855339,
-0.6660345792770386,
-0.0021144805941730738,
-0.7114769816398621,
0.08799387514591217,
0.5402074456214905,
-0.5953453183174133,
0.33365169167518616,
-0.6492269039154053,
-0.3669881224632263,
0.1649758219718933,
0.2174435704946518,
-0.8470290899276733,
0.5472018122673035,
-0.19864356517791748,
0.7852482795715332,
-0.8862197995185852,
0.8171455264091492,
0.6844353079795837,
-0.6795947551727295,
-0.9362302422523499,
0.03400881588459015,
-0.3175559937953949,
-0.8535236716270447,
0.895725667476654,
0.1600673496723175,
0.2252800315618515,
0.02251703478395939,
-0.6005637049674988,
-1.1290009021759033,
1.3323460817337036,
0.005941940471529961,
-0.4296073913574219,
0.27872440218925476,
0.19912414252758026,
0.5216686129570007,
-0.04245046526193619,
0.3800230920314789,
0.46840840578079224,
0.703863799571991,
0.15030856430530548,
-0.7938571572303772,
0.3317405879497528,
-0.3726547956466675,
-0.12229304015636444,
0.2417478859424591,
-1.0537413358688354,
1.1749223470687866,
-0.05501924827694893,
0.0494387187063694,
-0.02271878905594349,
0.5708655714988708,
0.3425087630748749,
0.20406398177146912,
0.5199471116065979,
0.607046902179718,
0.6191549301147461,
-0.2494487762451172,
0.9109553694725037,
-0.4351142346858978,
0.6298084855079651,
0.6923487186431885,
0.17793656885623932,
0.4012838304042816,
0.46960970759391785,
-0.6090633273124695,
0.4632313847541809,
0.6939067840576172,
-0.5590572953224182,
0.7696112990379333,
0.13853834569454193,
-0.274990975856781,
-0.0383562408387661,
0.13336960971355438,
-0.6532696485519409,
0.26964303851127625,
0.17778009176254272,
-0.54224693775177,
0.09031369537115097,
0.1293543130159378,
0.27899467945098877,
-0.26334911584854126,
-0.46331682801246643,
0.3368375897407532,
0.00417522294446826,
-0.7610592842102051,
0.8662580847740173,
-0.045361511409282684,
0.6995300650596619,
-0.6587103009223938,
0.10580449551343918,
-0.006065589375793934,
0.2623465657234192,
-0.3660886287689209,
-0.7778830528259277,
-0.16470114886760712,
-0.046605661511421204,
-0.18897701799869537,
-0.06919614225625992,
0.824843168258667,
-0.12017005681991577,
-0.6463415622711182,
0.40690934658050537,
0.17566978931427002,
0.3283658027648926,
0.21181997656822205,
-0.9717835783958435,
0.09584228694438934,
0.26589351892471313,
-0.43642714619636536,
0.42076748609542847,
0.32195866107940674,
0.206399068236351,
0.5967984199523926,
0.9038832783699036,
0.03315553441643715,
0.33304816484451294,
-0.026053138077259064,
1.0761910676956177,
-0.6988468766212463,
-0.5636098980903625,
-0.9111891388893127,
0.6832778453826904,
-0.2173696756362915,
-0.3620934784412384,
0.9673712253570557,
0.7541599869728088,
0.946847677230835,
-0.371663898229599,
0.9857327938079834,
-0.5171486735343933,
0.40578123927116394,
-0.5200676321983337,
0.9887424111366272,
-0.6196647882461548,
-0.1651812493801117,
-0.5397611856460571,
-0.6283697485923767,
-0.09664855152368546,
0.9089466333389282,
-0.30914536118507385,
0.33452486991882324,
0.6829617619514465,
0.715801477432251,
0.06862501055002213,
-0.1059865653514862,
0.020035233348608017,
0.46673765778541565,
0.21725039184093475,
0.6036303043365479,
0.46423375606536865,
-0.8224593997001648,
0.7686368227005005,
-0.6837398409843445,
0.010865926742553711,
-0.5236499309539795,
-0.610023558139801,
-0.9608588218688965,
-0.38623863458633423,
-0.3222978711128235,
-0.40356820821762085,
-0.14522506296634674,
0.9970666766166687,
0.6402885317802429,
-0.9594327211380005,
-0.1878008246421814,
-0.19276286661624908,
0.11020644754171371,
-0.32791757583618164,
-0.31003570556640625,
0.9790866374969482,
-0.3656647205352783,
-0.8990421891212463,
0.05322432890534401,
-0.26603594422340393,
0.3659805357456207,
0.27402734756469727,
-0.20095744729042053,
-0.6165453791618347,
-0.16546738147735596,
0.5970114469528198,
0.3220599889755249,
-0.5209051966667175,
-0.23016399145126343,
-0.014159304089844227,
-0.11317365616559982,
0.3332056701183319,
0.37433820962905884,
-0.6076119542121887,
0.3597843647003174,
0.6129226088523865,
0.1543358564376831,
0.8097801804542542,
0.002164473058655858,
0.16497883200645447,
-0.5955422520637512,
0.2437731921672821,
0.033322595059871674,
0.46004518866539,
-0.08165241777896881,
-0.32434776425361633,
0.6463044285774231,
0.36427825689315796,
-0.688821017742157,
-0.8221311569213867,
-0.29981157183647156,
-1.1095774173736572,
-0.5698496699333191,
0.9037386775016785,
-0.2995249927043915,
-0.3972485065460205,
0.04847407713532448,
-0.3472425043582916,
0.6340938210487366,
-0.4438428580760956,
0.7629187703132629,
0.8119820356369019,
-0.22092770040035248,
0.09875910729169846,
-0.622988224029541,
0.5682676434516907,
0.5716429352760315,
-0.6868067979812622,
-0.4309634864330292,
0.10850469022989273,
0.41461291909217834,
0.44737136363983154,
0.794892430305481,
-0.06168125569820404,
0.25546741485595703,
-0.04076974466443062,
0.3289511799812317,
-0.018092356622219086,
-0.04967029392719269,
-0.032084010541439056,
0.048927899450063705,
-0.4011187255382538,
-0.7702431678771973
] |
dangvantuan/sentence-camembert-large | dangvantuan | "2023-09-12T11:38:28Z" | 86,434 | 40 | transformers | [
"transformers",
"pytorch",
"tf",
"safetensors",
"camembert",
"feature-extraction",
"Text",
"Sentence Similarity",
"Sentence-Embedding",
"camembert-large",
"sentence-similarity",
"fr",
"dataset:stsb_multi_mt",
"arxiv:1908.10084",
"license:apache-2.0",
"model-index",
"endpoints_compatible",
"has_space",
"region:us"
] | sentence-similarity | "2022-03-02T23:29:05Z" | ---
pipeline_tag: sentence-similarity
language: fr
datasets:
- stsb_multi_mt
tags:
- Text
- Sentence Similarity
- Sentence-Embedding
- camembert-large
license: apache-2.0
model-index:
- name: sentence-camembert-large by Van Tuan DANG
results:
- task:
name: Sentence-Embedding
type: Text Similarity
dataset:
name: Text Similarity fr
type: stsb_multi_mt
args: fr
metrics:
- name: Test Pearson correlation coefficient
type: Pearson_correlation_coefficient
value: xx.xx
---
## Description:
[**Sentence-CamemBERT-Large**](https://huggingface.co/dangvantuan/sentence-camembert-large) is the Embedding Model for French developed by [La Javaness](https://www.lajavaness.com/). The purpose of this embedding model is to represent the content and semantics of a French sentence in a mathematical vector which allows it to understand the meaning of the text-beyond individual words in queries and documents, offering a powerful semantic search.
## Pre-trained sentence embedding models are state-of-the-art of Sentence Embeddings for French.
The model is Fine-tuned using pre-trained [facebook/camembert-large](https://huggingface.co/camembert/camembert-large) and
[Siamese BERT-Networks with 'sentences-transformers'](https://www.sbert.net/) on dataset [stsb](https://huggingface.co/datasets/stsb_multi_mt/viewer/fr/train)
## Usage
The model can be used directly (without a language model) as follows:
```python
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("dangvantuan/sentence-camembert-large")
sentences = ["Un avion est en train de décoller.",
"Un homme joue d'une grande flûte.",
"Un homme étale du fromage râpé sur une pizza.",
"Une personne jette un chat au plafond.",
"Une personne est en train de plier un morceau de papier.",
]
embeddings = model.encode(sentences)
```
## Evaluation
The model can be evaluated as follows on the French test data of stsb.
```python
from sentence_transformers import SentenceTransformer
from sentence_transformers.readers import InputExample
from datasets import load_dataset
def convert_dataset(dataset):
dataset_samples=[]
for df in dataset:
score = float(df['similarity_score'])/5.0 # Normalize score to range 0 ... 1
inp_example = InputExample(texts=[df['sentence1'],
df['sentence2']], label=score)
dataset_samples.append(inp_example)
return dataset_samples
# Loading the dataset for evaluation
df_dev = load_dataset("stsb_multi_mt", name="fr", split="dev")
df_test = load_dataset("stsb_multi_mt", name="fr", split="test")
# Convert the dataset for evaluation
# For Dev set:
dev_samples = convert_dataset(df_dev)
val_evaluator = EmbeddingSimilarityEvaluator.from_input_examples(dev_samples, name='sts-dev')
val_evaluator(model, output_path="./")
# For Test set:
test_samples = convert_dataset(df_test)
test_evaluator = EmbeddingSimilarityEvaluator.from_input_examples(test_samples, name='sts-test')
test_evaluator(model, output_path="./")
```
**Test Result**:
The performance is measured using Pearson and Spearman correlation:
- On dev
| Model | Pearson correlation | Spearman correlation | #params |
| ------------- | ------------- | ------------- |------------- |
| [dangvantuan/sentence-camembert-large](https://huggingface.co/dangvantuan/sentence-camembert-large)| 88.2 |88.02 | 336M|
| [dangvantuan/sentence-camembert-base](https://huggingface.co/dangvantuan/sentence-camembert-base) | 86.73|86.54 | 110M |
| [distiluse-base-multilingual-cased](https://huggingface.co/sentence-transformers/distiluse-base-multilingual-cased) | 79.22 | 79.16|135M |
| [GPT-3 (text-davinci-003)](https://platform.openai.com/docs/models) | 85 | NaN|175B |
| [GPT-(text-embedding-ada-002)](https://platform.openai.com/docs/models) | 79.75 | 80.44|NaN |
- On test
| Model | Pearson correlation | Spearman correlation |
| ------------- | ------------- | ------------- |
| [dangvantuan/sentence-camembert-large](https://huggingface.co/dangvantuan/sentence-camembert-large)| 85.9 | 85.8|
| [dangvantuan/sentence-camembert-base](https://huggingface.co/dangvantuan/sentence-camembert-base)| 82.36 | 81.64|
| [distiluse-base-multilingual-cased](https://huggingface.co/sentence-transformers/distiluse-base-multilingual-cased) | 78.62 | 77.48|
| [GPT-3 (text-davinci-003)](https://platform.openai.com/docs/models) | 82 | NaN|175B |
| [GPT-(text-embedding-ada-002)](https://platform.openai.com/docs/models) | 79.05 | 77.56|NaN |
## Citation
@article{reimers2019sentence,
title={Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks},
author={Nils Reimers, Iryna Gurevych},
journal={https://arxiv.org/abs/1908.10084},
year={2019}
}
@article{martin2020camembert,
title={CamemBERT: a Tasty French Language Mode},
author={Martin, Louis and Muller, Benjamin and Su{\'a}rez, Pedro Javier Ortiz and Dupont, Yoann and Romary, Laurent and de la Clergerie, {\'E}ric Villemonte and Seddah, Djam{\'e} and Sagot, Beno{\^\i}t},
journal={Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics},
year={2020}
} | [
-0.1675361692905426,
-1.1409471035003662,
0.4832150936126709,
0.5009465217590332,
-0.2273646891117096,
-0.1776789277791977,
-0.4589962959289551,
-0.07803964614868164,
0.44232845306396484,
0.21310341358184814,
-0.3435465097427368,
-0.6099080443382263,
-0.7133021354675293,
0.08651190251111984,
-0.19654187560081482,
0.8781688213348389,
-0.3637568950653076,
0.17945829033851624,
-0.2514805197715759,
-0.23933884501457214,
-0.23322580754756927,
-0.7195969820022583,
-0.473218709230423,
0.06780445575714111,
0.27162957191467285,
0.12190436571836472,
0.5831156969070435,
0.31328511238098145,
0.49278688430786133,
0.34823837876319885,
-0.12035583704710007,
0.08765501528978348,
-0.33548858761787415,
0.0034294358920305967,
0.12536422908306122,
-0.48648250102996826,
-0.3666224181652069,
0.013651467859745026,
0.6413689851760864,
0.5190258622169495,
0.020501764491200447,
-0.06764176487922668,
0.0957663431763649,
0.6467486619949341,
-0.3997463583946228,
0.5427232384681702,
-0.3242815136909485,
0.0233868770301342,
-0.08189720660448074,
-0.06117439642548561,
-0.5066792368888855,
-0.5191261768341064,
0.07471846789121628,
-0.4388628304004669,
0.023110050708055496,
0.06967844814062119,
1.2555071115493774,
0.13792574405670166,
-0.3905024826526642,
-0.2682238817214966,
-0.34318041801452637,
0.9558441638946533,
-0.7474303841590881,
0.5236790776252747,
0.3764469027519226,
0.0031718674581497908,
-0.11019781976938248,
-0.7257710099220276,
-0.6866321563720703,
-0.3822004497051239,
-0.37198469042778015,
0.4284017086029053,
-0.3786197006702423,
-0.22827374935150146,
0.10954543203115463,
0.35755789279937744,
-0.8007162809371948,
-0.0724533200263977,
-0.2294740527868271,
-0.06791619956493378,
0.714805006980896,
-0.11475392431020737,
0.21687836945056915,
-0.5792186260223389,
-0.42580321431159973,
-0.5393428206443787,
-0.44852176308631897,
0.21637824177742004,
0.2513962388038635,
0.3943411409854889,
-0.5255821943283081,
0.8779193758964539,
-0.02297530323266983,
0.6594509482383728,
-0.14632071554660797,
0.034486476331949234,
0.8095536231994629,
-0.5748798251152039,
-0.24066612124443054,
-0.120680071413517,
1.2287497520446777,
0.26144397258758545,
0.38310834765434265,
0.1435222625732422,
-0.12235292047262192,
0.1243482232093811,
-0.1658005565404892,
-0.806186318397522,
-0.2971050441265106,
0.12931877374649048,
-0.40127405524253845,
-0.20391665399074554,
0.1670607328414917,
-0.7548776865005493,
0.13783518970012665,
-0.06070229411125183,
0.5631994605064392,
-0.8264128565788269,
-0.10101282596588135,
0.25167837738990784,
-0.13288834691047668,
0.203504741191864,
-0.0715872198343277,
-0.4993398189544678,
0.11450354009866714,
0.4989875555038452,
0.9625537395477295,
0.08029182255268097,
-0.28329673409461975,
-0.5269699096679688,
-0.21489091217517853,
-0.18409349024295807,
0.576757550239563,
-0.5451284646987915,
-0.20526005327701569,
0.055657170712947845,
0.22541101276874542,
-0.4460218548774719,
-0.11867011338472366,
0.9226745367050171,
-0.21364255249500275,
0.5439069271087646,
-0.18517452478408813,
-0.7781044244766235,
-0.2913115322589874,
0.2101208120584488,
-0.6401190757751465,
1.0841307640075684,
0.21476656198501587,
-0.8221419453620911,
0.28826984763145447,
-0.6826792359352112,
-0.4425174295902252,
-0.2135845422744751,
-0.2669133245944977,
-0.7448002099990845,
-0.002139532472938299,
0.6654570698738098,
0.8288053274154663,
-0.24515973031520844,
0.20869962871074677,
-0.25346189737319946,
-0.23018097877502441,
0.4515840411186218,
-0.5165919661521912,
1.1044938564300537,
0.0692092552781105,
-0.19868142902851105,
0.0010127928107976913,
-0.7382179498672485,
-0.0053280494175851345,
0.3696977496147156,
-0.3388659358024597,
-0.36024850606918335,
-0.11673130840063095,
0.2925359308719635,
0.00786600448191166,
0.14138558506965637,
-0.5740400552749634,
0.15087324380874634,
-0.4864766299724579,
0.7047284245491028,
0.7076505422592163,
0.1272316873073578,
0.12697239220142365,
-0.41136249899864197,
0.4544335901737213,
0.23881801962852478,
-0.03501662239432335,
-0.22875764966011047,
-0.5825187563896179,
-0.8225907683372498,
-0.5324414968490601,
0.6204996109008789,
0.8197706341743469,
-0.6218751072883606,
1.0049813985824585,
-0.6376729011535645,
-0.4670996367931366,
-0.6272631287574768,
0.0338747501373291,
0.3147702217102051,
0.09273556619882584,
0.5530887842178345,
-0.13885889947414398,
-0.44704753160476685,
-1.1336851119995117,
-0.09824319928884506,
-0.016526702791452408,
0.18390852212905884,
0.22750502824783325,
0.8309189081192017,
-0.20886610448360443,
0.8444567322731018,
-0.7899346351623535,
-0.36549630761146545,
-0.3004695177078247,
-0.09046415239572525,
0.41339200735092163,
0.6599257588386536,
0.8345975875854492,
-0.8491009473800659,
-0.7394744157791138,
-0.19036506116390228,
-0.7499617338180542,
0.3188877999782562,
-0.06485981494188309,
-0.08073107153177261,
0.3311213254928589,
0.5429930686950684,
-0.706307590007782,
0.4545285701751709,
0.5449908375740051,
-0.41644611954689026,
0.43421393632888794,
-0.28264737129211426,
0.20504626631736755,
-1.5706781148910522,
-0.12526211142539978,
0.3316105306148529,
-0.13223472237586975,
-0.3585077226161957,
-0.038072146475315094,
0.04699670150876045,
0.009117797017097473,
-0.33724966645240784,
0.40040823817253113,
-0.48589420318603516,
0.35462892055511475,
0.5288070440292358,
0.4570944309234619,
0.06284205615520477,
0.8133164644241333,
-0.023677613586187363,
0.7451656460762024,
0.5257940292358398,
-0.35258427262306213,
0.390929639339447,
0.5914787650108337,
-0.6219712495803833,
0.6149963736534119,
-0.7929168939590454,
-0.14755696058273315,
0.048355717211961746,
0.4388560354709625,
-1.1876429319381714,
-0.05316485837101936,
0.2688080668449402,
-0.5439655780792236,
0.26855653524398804,
0.06624618172645569,
-0.7802454233169556,
-0.4776347875595093,
-0.5369793176651001,
0.233645960688591,
0.5231142640113831,
-0.4307500123977661,
0.4765472114086151,
0.05463387817144394,
-0.12160700559616089,
-0.5788020491600037,
-1.1086889505386353,
-0.12973420321941376,
-0.2661930322647095,
-0.8466346263885498,
0.2335195541381836,
-0.14491267502307892,
-0.04376424103975296,
0.1915920376777649,
0.19396457076072693,
0.025484152138233185,
-0.13899469375610352,
0.15153253078460693,
0.19260533154010773,
-0.3393312990665436,
0.26339346170425415,
0.09070542454719543,
0.04342246055603027,
-0.14839443564414978,
-0.005920800846070051,
0.7303975820541382,
-0.4002365171909332,
-0.2553251385688782,
-0.5245878100395203,
0.320215106010437,
0.3447490632534027,
-0.31900742650032043,
1.0344046354293823,
0.9067900776863098,
-0.17960889637470245,
0.16773028671741486,
-0.4913392961025238,
-0.0688328891992569,
-0.4690999984741211,
0.6205586791038513,
-0.7088106870651245,
-0.9724349975585938,
0.4089692533016205,
0.2674572765827179,
-0.08013220876455307,
0.8203215599060059,
0.5638704895973206,
0.07815512269735336,
0.8728779554367065,
0.3917293846607208,
-0.13303562998771667,
0.3970188498497009,
-0.5507360696792603,
0.44660302996635437,
-0.8236900568008423,
-0.14614877104759216,
-0.44772833585739136,
-0.16741004586219788,
-0.9239179491996765,
-0.5409831404685974,
0.3137063980102539,
0.11564713716506958,
-0.2720528542995453,
0.554032564163208,
-0.4564021825790405,
0.058726273477077484,
0.5075510144233704,
0.30195510387420654,
0.021666070446372032,
0.2121426910161972,
-0.4618481695652008,
-0.22131794691085815,
-0.741729736328125,
-0.4524911344051361,
1.0956660509109497,
0.5246674418449402,
0.609411895275116,
0.19658102095127106,
0.5278757214546204,
0.043325211852788925,
-0.13891614973545074,
-0.7442427277565002,
0.5965580344200134,
-0.35586804151535034,
-0.3290567994117737,
-0.138725146651268,
-0.6082677841186523,
-1.0000090599060059,
0.2665591239929199,
-0.24152043461799622,
-0.7841453552246094,
0.14814993739128113,
-0.20657719671726227,
-0.3551919758319855,
0.2810569703578949,
-0.9736989736557007,
0.9165219068527222,
-0.22815895080566406,
-0.2766435146331787,
-0.07972444593906403,
-0.46355316042900085,
0.2238711267709732,
0.02771637961268425,
0.17315717041492462,
0.14051145315170288,
0.12730596959590912,
0.9361438751220703,
-0.3798668682575226,
0.8101933598518372,
0.05377070605754852,
-0.05938735976815224,
0.29605382680892944,
-0.013187246397137642,
0.43192562460899353,
0.17862330377101898,
-0.09323617070913315,
0.18213532865047455,
0.11120552569627762,
-0.4845106899738312,
-0.5945658087730408,
0.8637725710868835,
-0.8834090232849121,
-0.5169787406921387,
-0.6762473583221436,
-0.5549829006195068,
-0.08202292025089264,
-0.024457469582557678,
0.26164042949676514,
0.5496538281440735,
-0.3634260296821594,
0.6705204248428345,
0.4753458797931671,
-0.5121447443962097,
0.46286332607269287,
0.11142541468143463,
-0.08595385402441025,
-0.433560311794281,
0.8156659603118896,
0.0485728420317173,
0.12984900176525116,
0.7648808360099792,
0.21588535606861115,
-0.32734185457229614,
-0.20485377311706543,
-0.23344968259334564,
0.454706609249115,
-0.5959509611129761,
-0.08101296424865723,
-0.9863564968109131,
-0.4368666410446167,
-0.7621028423309326,
-0.18126195669174194,
-0.2752469480037689,
-0.7533101439476013,
-0.3504508137702942,
-0.27648109197616577,
0.6529462933540344,
0.47486090660095215,
-0.11578597128391266,
0.3328607380390167,
-0.546623945236206,
0.03635512664914131,
0.03372930735349655,
0.241511270403862,
-0.1564805954694748,
-0.6480035781860352,
-0.2642477750778198,
0.17115609347820282,
-0.3727504014968872,
-0.7738733291625977,
0.5167512893676758,
0.1896529346704483,
0.5755643844604492,
0.40215179324150085,
-0.11952332407236099,
0.5376343727111816,
-0.45247405767440796,
1.1241285800933838,
0.24231059849262238,
-0.904768705368042,
0.5665665864944458,
-0.06620007753372192,
0.25881582498550415,
0.4820241630077362,
0.579058825969696,
-0.4654749929904938,
-0.25918707251548767,
-0.6750618815422058,
-1.0195926427841187,
0.5326290726661682,
0.5023120641708374,
0.22796481847763062,
-0.22036874294281006,
0.18854641914367676,
-0.1017739549279213,
0.07098203897476196,
-0.9907002449035645,
-0.40363797545433044,
-0.3138139545917511,
-0.402378648519516,
-0.5228034257888794,
-0.35442760586738586,
-0.11693175137042999,
-0.4750799238681793,
0.7806774973869324,
0.12365295737981796,
0.641093909740448,
0.31887197494506836,
-0.24133972823619843,
0.23001985251903534,
0.35380470752716064,
0.615119218826294,
0.4252289831638336,
-0.36500880122184753,
-0.006976753007620573,
0.19402019679546356,
-0.43658512830734253,
0.006258855108171701,
0.33566662669181824,
0.009218262508511543,
0.07067465782165527,
0.7177658081054688,
1.0196151733398438,
0.10630273818969727,
-0.539046049118042,
0.7986013293266296,
-0.17621281743049622,
-0.4320111572742462,
-0.5723009705543518,
-0.13360747694969177,
0.12817375361919403,
0.29166296124458313,
0.14499756693840027,
-0.046078551560640335,
-0.20959743857383728,
-0.5643500685691833,
0.3614555597305298,
0.3108396828174591,
-0.5058590173721313,
-0.23634305596351624,
0.5562703609466553,
-0.08926817774772644,
-0.08771388232707977,
0.6821125745773315,
-0.2888151705265045,
-0.7878028750419617,
0.46256107091903687,
0.47676607966423035,
0.7980803847312927,
-0.07887067645788193,
0.35951900482177734,
0.6947481632232666,
0.4259994924068451,
-0.048577357083559036,
0.24037443101406097,
0.237474262714386,
-0.7854034900665283,
-0.24551384150981903,
-0.6350389122962952,
0.25927913188934326,
0.16933219134807587,
-0.5772883892059326,
0.23269179463386536,
-0.2421686053276062,
-0.10813349485397339,
-0.055525537580251694,
0.12449710071086884,
-0.7964482307434082,
0.06084051728248596,
-0.28485941886901855,
0.8137421607971191,
-1.0647318363189697,
0.6325916647911072,
0.701537013053894,
-0.8399193286895752,
-0.7826064229011536,
0.04058806598186493,
-0.2929554581642151,
-0.7820588946342468,
0.7135598659515381,
0.13595259189605713,
0.39725959300994873,
-0.19005613029003143,
-0.4374191164970398,
-0.8195047974586487,
1.01924467086792,
0.11026673763990402,
-0.6064972877502441,
0.0929645225405693,
0.06497558951377869,
0.6363276839256287,
-0.4178907871246338,
0.5070931911468506,
0.5519875884056091,
0.6182460784912109,
-0.04174533858895302,
-0.8255288600921631,
0.3025224506855011,
-0.3619857430458069,
0.0822674036026001,
0.0016541233053430915,
-0.9707095623016357,
1.053826928138733,
-0.026975832879543304,
0.047090914100408554,
0.05454185977578163,
0.7832263112068176,
0.2919071316719055,
-0.05862708017230034,
0.4297977685928345,
0.9183477759361267,
0.6193749308586121,
-0.2937581241130829,
1.3040693998336792,
-0.15550322830677032,
0.5226902365684509,
0.9528144001960754,
0.05234774574637413,
1.045940637588501,
0.35312139987945557,
-0.362437903881073,
0.7992234230041504,
0.6560943722724915,
-0.22479191422462463,
0.6029897332191467,
0.26521044969558716,
0.08616200089454651,
-0.09255169332027435,
0.22726906836032867,
-0.46661755442619324,
0.5431150794029236,
0.3184413015842438,
-0.5032451748847961,
0.02661834843456745,
0.13105233013629913,
0.4401259422302246,
0.211367666721344,
0.23231759667396545,
0.3991889953613281,
0.2537996172904968,
-0.511587917804718,
0.7900583148002625,
0.10183420777320862,
0.7798334956169128,
-0.5547000169754028,
0.15697404742240906,
-0.12787139415740967,
0.34107962250709534,
-0.07539387792348862,
-0.8395052552223206,
0.13068073987960815,
-0.1884947419166565,
-0.001518042292445898,
-0.07316005229949951,
0.19246385991573334,
-0.5491555333137512,
-0.8505552411079407,
0.49684852361679077,
0.6467828750610352,
0.11358135938644409,
0.07072148472070694,
-1.1093288660049438,
0.11032814532518387,
0.2158200442790985,
-0.567672073841095,
0.05018787831068039,
0.5271424055099487,
0.06545368582010269,
0.47671419382095337,
0.5162995457649231,
-0.017335832118988037,
-0.05912625417113304,
0.16951295733451843,
0.7838783264160156,
-0.6191666126251221,
-0.5748310089111328,
-0.9907749891281128,
0.43034055829048157,
-0.20135922729969025,
-0.37311291694641113,
0.9189050197601318,
0.9126859307289124,
0.7671516537666321,
-0.060422517359256744,
0.8343188762664795,
-0.24450887739658356,
0.5052855014801025,
-0.6904027462005615,
0.67676842212677,
-0.7856804132461548,
0.07778491824865341,
-0.4442707896232605,
-1.139016032218933,
-0.40223151445388794,
0.9194375276565552,
-0.5181481242179871,
0.29883137345314026,
1.104663372039795,
0.901593029499054,
-0.253877729177475,
-0.16507874429225922,
0.10368188470602036,
0.6340299248695374,
0.46971428394317627,
0.8156010508537292,
0.4268839359283447,
-0.8601034879684448,
0.5040002465248108,
-0.3382212519645691,
-0.23776519298553467,
-0.2818525731563568,
-0.7524966597557068,
-1.2152769565582275,
-1.066807746887207,
-0.4763379395008087,
-0.5721023082733154,
0.01279692817479372,
1.053735613822937,
0.4687215983867645,
-0.896060585975647,
-0.20105881989002228,
-0.0031353854574263096,
-0.07352935522794724,
-0.3514653146266937,
-0.32509705424308777,
0.9464077949523926,
-0.12645912170410156,
-0.7525516748428345,
0.3455716669559479,
-0.06769774854183197,
0.04072107374668121,
-0.12291526049375534,
-0.019521553069353104,
-0.8171444535255432,
0.15802188217639923,
0.7667486071586609,
-0.16100558638572693,
-0.6253724694252014,
-0.3286193907260895,
-0.015668237581849098,
-0.2274981141090393,
0.14899842441082,
0.36172354221343994,
-0.4513842463493347,
0.26600658893585205,
0.6211754083633423,
0.544805109500885,
0.7574107050895691,
-0.026836367323994637,
0.47286468744277954,
-0.8982644081115723,
0.37082749605178833,
0.09116614609956741,
0.5673749446868896,
0.40793299674987793,
-0.32657504081726074,
0.7340221405029297,
0.24948498606681824,
-0.4949095845222473,
-0.7617505788803101,
-0.06184585019946098,
-1.3241307735443115,
-0.37194520235061646,
1.2940376996994019,
-0.28197669982910156,
-0.3551173508167267,
0.3313389718532562,
-0.17861415445804596,
0.33189937472343445,
-0.6125873923301697,
0.46190547943115234,
0.8896644711494446,
0.09488526731729507,
-0.20940110087394714,
-0.6375015377998352,
0.33433401584625244,
0.5663832426071167,
-0.627531886100769,
-0.28439801931381226,
0.26425522565841675,
0.33090558648109436,
0.33620572090148926,
0.41890108585357666,
-0.16366270184516907,
-0.08656080067157745,
-0.01707092672586441,
-0.040256135165691376,
0.06561104208230972,
0.0813770741224289,
-0.2211775928735733,
0.15066348016262054,
-0.44335317611694336,
-0.27683568000793457
] |
vinai/phobert-base | vinai | "2022-10-22T08:56:25Z" | 86,434 | 19 | transformers | [
"transformers",
"pytorch",
"tf",
"jax",
"roberta",
"fill-mask",
"arxiv:2003.00744",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | fill-mask | "2022-03-02T23:29:05Z" | # <a name="introduction"></a> PhoBERT: Pre-trained language models for Vietnamese
Pre-trained PhoBERT models are the state-of-the-art language models for Vietnamese ([Pho](https://en.wikipedia.org/wiki/Pho), i.e. "Phở", is a popular food in Vietnam):
- Two PhoBERT versions of "base" and "large" are the first public large-scale monolingual language models pre-trained for Vietnamese. PhoBERT pre-training approach is based on [RoBERTa](https://github.com/pytorch/fairseq/blob/master/examples/roberta/README.md) which optimizes the [BERT](https://github.com/google-research/bert) pre-training procedure for more robust performance.
- PhoBERT outperforms previous monolingual and multilingual approaches, obtaining new state-of-the-art performances on four downstream Vietnamese NLP tasks of Part-of-speech tagging, Dependency parsing, Named-entity recognition and Natural language inference.
The general architecture and experimental results of PhoBERT can be found in our EMNLP-2020 Findings [paper](https://arxiv.org/abs/2003.00744):
@article{phobert,
title = {{PhoBERT: Pre-trained language models for Vietnamese}},
author = {Dat Quoc Nguyen and Anh Tuan Nguyen},
journal = {Findings of EMNLP},
year = {2020}
}
**Please CITE** our paper when PhoBERT is used to help produce published results or is incorporated into other software.
For further information or requests, please go to [PhoBERT's homepage](https://github.com/VinAIResearch/PhoBERT)!
| [
-0.1738683581352234,
-0.9879848957061768,
0.38571950793266296,
0.17037919163703918,
-0.44355472922325134,
-0.13833166658878326,
-0.24252015352249146,
-0.30897068977355957,
0.04264399781823158,
0.6361375451087952,
-0.09951791167259216,
-0.6793753504753113,
-0.3691106140613556,
0.10537451505661011,
-0.11520804464817047,
0.7712743878364563,
0.08741425722837448,
0.07850631326436996,
0.5368517637252808,
-0.049480143934488297,
-0.15880300104618073,
-1.0738017559051514,
-0.48741966485977173,
-0.17195165157318115,
0.4268696904182434,
0.2608863413333893,
0.48806893825531006,
0.5979306101799011,
0.5527556538581848,
0.3223470151424408,
-0.011386379599571228,
0.15602825582027435,
-0.45909354090690613,
-0.15208986401557922,
0.036797307431697845,
-0.012380301021039486,
-0.7159504890441895,
-0.11759872734546661,
0.4654651880264282,
0.4083031713962555,
-0.18405497074127197,
0.12322229892015457,
-0.004964237101376057,
0.4888349771499634,
-0.7872622609138489,
0.03630991652607918,
-0.48859867453575134,
-0.012990270741283894,
-0.2547173500061035,
-0.288594126701355,
-0.6087220907211304,
-0.4703088700771332,
0.6609938740730286,
-0.5669991374015808,
-0.2922298312187195,
-0.0922660306096077,
1.1475571393966675,
0.1757747083902359,
-0.6577338576316833,
0.012758866883814335,
-0.820993185043335,
0.7441565990447998,
-0.8504835963249207,
0.6379987001419067,
0.45437490940093994,
0.15488174557685852,
-0.012380030937492847,
-0.6026629209518433,
-0.41534051299095154,
-0.5986770391464233,
-0.1471150517463684,
0.259724885225296,
-0.09424063563346863,
0.2622401714324951,
-0.04895864427089691,
0.3726697862148285,
-0.9572166800498962,
0.026375066488981247,
-0.2945706248283386,
-0.14467179775238037,
0.44660696387290955,
-0.48421674966812134,
-0.03218187391757965,
-0.28201809525489807,
-0.6793604493141174,
-0.10849930346012115,
-0.3848491907119751,
-0.13172116875648499,
-0.07883235812187195,
0.3074534833431244,
-0.2505507171154022,
0.6247497797012329,
0.03547080233693123,
1.0211139917373657,
-0.04233025014400482,
-0.32915523648262024,
0.5812807679176331,
-0.3420889377593994,
-0.43913671374320984,
0.11661962419748306,
0.8882007002830505,
0.02516046352684498,
0.6687973141670227,
0.1691260188817978,
-0.12972955405712128,
-0.23848073184490204,
0.00026101002003997564,
-0.5571442246437073,
-0.3272833526134491,
0.31758883595466614,
-0.351411908864975,
0.08146083354949951,
0.23728398978710175,
-0.5800598859786987,
-0.10174448043107986,
-0.35896146297454834,
0.6466712355613708,
-0.7274390459060669,
-0.8587200045585632,
0.3720209002494812,
0.06760305166244507,
0.3906291425228119,
0.12902340292930603,
-0.4174751043319702,
0.0024299349170178175,
0.7267475128173828,
0.8192612528800964,
-0.1973034292459488,
-0.6619827151298523,
-0.42363137006759644,
0.10124827176332474,
-0.07246460765600204,
0.7350620627403259,
-0.2456476241350174,
-0.30243098735809326,
0.22732989490032196,
-0.01666318066418171,
-0.0997973382472992,
-0.7235628366470337,
0.5696264505386353,
-0.27424487471580505,
0.15893101692199707,
0.2695237994194031,
-0.7168182134628296,
-0.29174885153770447,
0.13160280883312225,
-0.5982584357261658,
1.2157273292541504,
0.4040963649749756,
-0.9265154600143433,
0.2998632788658142,
-0.5162417888641357,
-0.4789314568042755,
-0.015168892219662666,
0.14528881013393402,
-0.4505903720855713,
0.014230391010642052,
0.170070081949234,
0.5083507299423218,
-0.1343030482530594,
0.12289842218160629,
-0.20555967092514038,
-0.13104873895645142,
0.22963179647922516,
-0.10836326330900192,
1.0922836065292358,
0.19061805307865143,
-0.3163778483867645,
0.42412176728248596,
-1.183091640472412,
0.025200320407748222,
0.19996313750743866,
-0.44009214639663696,
-0.5252417325973511,
-0.4345124363899231,
0.204642191529274,
0.3023401200771332,
0.3242635428905487,
-0.29414328932762146,
-0.06319379806518555,
-0.43674230575561523,
0.44241198897361755,
0.7516384720802307,
-0.04385633394122124,
0.4163009524345398,
-0.18569840490818024,
0.5016993880271912,
0.035692766308784485,
0.26256683468818665,
-0.47499173879623413,
-0.5110938549041748,
-0.8799062967300415,
-0.5759907364845276,
0.21735535562038422,
1.055942416191101,
-0.5948473215103149,
0.9507640600204468,
-0.09296716004610062,
-0.8955442309379578,
-0.6745401620864868,
-0.008241732604801655,
0.37604039907455444,
0.6357959508895874,
0.4421914219856262,
-0.25757357478141785,
-0.792306661605835,
-0.7325245141983032,
-0.2405206859111786,
-0.5702786445617676,
-0.08156133443117142,
-0.12988342344760895,
0.3841174244880676,
-0.17497994005680084,
1.0122283697128296,
-0.28755709528923035,
-0.18231798708438873,
-0.29786694049835205,
0.15903499722480774,
0.10752154886722565,
0.6061428785324097,
0.6488970518112183,
-0.9525320529937744,
-0.5848268866539001,
0.1418146938085556,
-0.555125892162323,
-0.01718328706920147,
0.3241124749183655,
-0.19805505871772766,
0.26444104313850403,
0.520633339881897,
-0.5390581488609314,
0.2846403121948242,
0.7371737957000732,
-0.1836349070072174,
0.8153882026672363,
-0.122225821018219,
-0.06906698644161224,
-1.0345300436019897,
-0.022440262138843536,
0.016171341761946678,
-0.2985697090625763,
-0.5133798122406006,
-0.17265693843364716,
-0.12092438340187073,
-0.18228283524513245,
-0.8549671173095703,
0.678297758102417,
-0.3463932275772095,
0.28629162907600403,
-0.15347996354103088,
-0.1375175267457962,
-0.0840182900428772,
0.5405982136726379,
0.4655952453613281,
0.5480847358703613,
0.57961106300354,
-0.7478024363517761,
0.45804542303085327,
-0.13285978138446808,
-0.21955937147140503,
0.3609469532966614,
-0.7929109334945679,
0.1845300793647766,
0.20052385330200195,
0.054276254028081894,
-0.8001692891120911,
0.05608104541897774,
0.3974299430847168,
-0.36022281646728516,
0.04231417551636696,
-0.2713584005832672,
-0.5362318754196167,
-0.3197087347507477,
-0.07779066264629364,
0.25106382369995117,
0.4810636639595032,
-0.2886441648006439,
0.6793817281723022,
0.4784713685512543,
-0.024819592013955116,
-0.46488094329833984,
-0.6145226359367371,
-0.3276824951171875,
-0.5693568587303162,
-0.37504783272743225,
-0.008798126131296158,
0.004307066090404987,
-0.11322370916604996,
-0.08446498215198517,
0.21415050327777863,
-0.5785130858421326,
0.029091516509652138,
-0.007670244667679071,
-0.006262000650167465,
-0.6797469258308411,
0.27074527740478516,
-0.5798419713973999,
-0.4113803505897522,
-0.24388517439365387,
-0.7624866366386414,
0.725457489490509,
-0.4118826389312744,
-0.08275705575942993,
-0.6353647112846375,
0.23881784081459045,
0.37174373865127563,
-0.7775187492370605,
0.738054633140564,
0.7753480076789856,
-0.331638365983963,
0.056275591254234314,
-0.6226173043251038,
-0.27288439869880676,
-0.47021210193634033,
0.4992014765739441,
-0.4847891926765442,
-0.9478802680969238,
-0.022017063573002815,
-0.1277005821466446,
0.02556154876947403,
0.15638059377670288,
0.642093300819397,
0.1647813618183136,
0.6677011251449585,
0.9931027889251709,
-0.06470636278390884,
0.8444992303848267,
0.07444819062948227,
0.10113082081079483,
-0.10483939200639725,
0.15240001678466797,
-0.46412622928619385,
0.39525192975997925,
-0.8980037569999695,
-0.5084256529808044,
0.02489442750811577,
0.03236193582415581,
-0.5772299766540527,
0.5478975772857666,
-0.5552445650100708,
0.07582742720842361,
0.9044672250747681,
-0.1787012219429016,
0.47757983207702637,
0.21135349571704865,
-0.10646221786737442,
-0.1277063488960266,
-0.7851279973983765,
-0.7076988816261292,
1.0011305809020996,
0.2944382429122925,
0.7057777643203735,
-0.25199955701828003,
0.7172138094902039,
-0.1342872679233551,
0.1835678666830063,
-0.7035581469535828,
0.5238383412361145,
-0.10797838866710663,
-0.6692397594451904,
-0.29811564087867737,
-0.49613094329833984,
-1.0142039060592651,
0.3543410897254944,
-0.14339536428451538,
-0.7365471124649048,
0.055715881288051605,
0.3467622995376587,
-0.23085205256938934,
0.21872110664844513,
-1.0073411464691162,
1.1782573461532593,
-0.6879692077636719,
-0.023352181538939476,
0.16821911931037903,
-0.5359463095664978,
0.17635436356067657,
-0.10892096906900406,
-0.022374862805008888,
-0.1260642260313034,
0.03211914747953415,
0.590173065662384,
-0.37104207277297974,
0.48256438970565796,
-0.059783685952425,
-0.22350850701332092,
0.42622122168540955,
-0.11894103139638901,
0.13671143352985382,
0.15189464390277863,
-0.25195279717445374,
0.35217928886413574,
-0.1791561394929886,
-0.43844789266586304,
-0.4221843481063843,
0.15794499218463898,
-0.789993405342102,
-0.32809731364250183,
-0.6033293008804321,
-0.12223043292760849,
0.0637703388929367,
0.5210909247398376,
0.47113949060440063,
-0.020491788163781166,
-0.3878510594367981,
0.07551158219575882,
0.4604146182537079,
-0.46779707074165344,
-0.08789235353469849,
0.898819088935852,
-0.5144555568695068,
-0.5029834508895874,
0.9703745245933533,
0.2526147663593292,
0.13846012949943542,
0.9244279861450195,
0.2778018116950989,
0.0014306292869150639,
-0.24967169761657715,
-0.0382477305829525,
0.5738781094551086,
-0.36625581979751587,
0.2231735736131668,
-0.7437446713447571,
-0.38745683431625366,
-0.5434296131134033,
0.039122823625802994,
-0.8083857297897339,
-0.3928709924221039,
-0.046292006969451904,
-0.2899981439113617,
0.4487495422363281,
0.43527039885520935,
-0.2647014558315277,
0.6793134808540344,
-0.6860116720199585,
0.2884364128112793,
0.2816718816757202,
-0.03358292207121849,
-0.2092892974615097,
-0.30468839406967163,
-0.3891098201274872,
-0.08601401001214981,
-0.2067403495311737,
-0.8964581489562988,
0.3728673458099365,
0.17054498195648193,
0.20970498025417328,
0.5977829098701477,
0.08252181112766266,
0.5121600031852722,
-0.5914936661720276,
0.49117887020111084,
0.014779451303184032,
-0.8447864651679993,
0.8684380650520325,
-0.22833950817584991,
0.3229238986968994,
0.43615275621414185,
0.5669457912445068,
-0.4482792317867279,
-0.3756818175315857,
-0.6092990040779114,
-1.0980076789855957,
0.4327090084552765,
0.2722296714782715,
-0.31104224920272827,
0.22090928256511688,
0.08614259958267212,
0.10199686884880066,
0.4005327820777893,
-0.9772871136665344,
-0.3918842077255249,
-0.41147422790527344,
-0.028889920562505722,
-0.3495549261569977,
-0.31041547656059265,
0.19977502524852753,
-0.40616941452026367,
0.6902242302894592,
0.318394273519516,
0.21857251226902008,
0.14631864428520203,
-0.2841103672981262,
0.2120780646800995,
0.3318456709384918,
0.45605793595314026,
0.9201402068138123,
-0.6518588662147522,
0.1583528369665146,
-0.12913523614406586,
-0.5621732473373413,
0.26050296425819397,
0.4984011650085449,
-0.17538702487945557,
0.4011109471321106,
0.39591729640960693,
0.7209504842758179,
0.14190338551998138,
-0.7700318098068237,
0.36861327290534973,
-0.10677403211593628,
0.1807466447353363,
-0.6657238006591797,
-0.15973778069019318,
-0.051385484635829926,
-0.05203124135732651,
0.39356091618537903,
-0.3536756932735443,
-0.19499021768569946,
-0.3411714732646942,
0.3569343686103821,
-0.1359979808330536,
-0.4140152335166931,
-0.47317638993263245,
0.3866881728172302,
0.34490466117858887,
-0.38747715950012207,
0.6073923707008362,
-0.206242173910141,
-0.6491798758506775,
0.41699647903442383,
0.36511746048927307,
0.8097772598266602,
-0.7218098640441895,
0.40681931376457214,
0.460462749004364,
0.6947792172431946,
0.14575977623462677,
0.388387531042099,
0.13271938264369965,
-0.7316616177558899,
-0.3562980890274048,
-0.5411080718040466,
-0.24129512906074524,
0.5502572059631348,
-0.4737267792224884,
0.38241046667099,
-0.33210691809654236,
-0.3703393340110779,
-0.17006097733974457,
0.027619952335953712,
-0.6613209247589111,
0.2093174159526825,
0.07298663258552551,
0.8457534313201904,
-0.6416133046150208,
0.9916173219680786,
1.054076075553894,
-0.5211232304573059,
-0.8109135031700134,
-0.04569080471992493,
0.043183811008930206,
-0.5927938222885132,
0.46163490414619446,
0.23523689806461334,
0.0358540304005146,
0.1676819920539856,
-0.23761315643787384,
-0.7947027683258057,
0.4691482484340668,
0.8296985626220703,
-0.30509090423583984,
-0.10619869828224182,
0.33365780115127563,
0.3678411543369293,
-0.24511653184890747,
0.18798582255840302,
0.5642821788787842,
0.5988505482673645,
-0.4411071240901947,
-1.1963813304901123,
-0.35626155138015747,
-0.2941737473011017,
-0.13979344069957733,
-0.10395622998476028,
-0.7436925172805786,
1.1538655757904053,
0.02007032372057438,
-0.11961711198091507,
0.13276520371437073,
0.8776264190673828,
0.5568295121192932,
0.280267596244812,
0.518276035785675,
0.453263521194458,
0.7763062715530396,
-0.05801646038889885,
0.8679549098014832,
-0.3685462176799774,
0.34985682368278503,
1.402223825454712,
-0.3069676160812378,
0.9662867188453674,
0.3214806616306305,
-0.09423045068979263,
0.37644025683403015,
0.9106627702713013,
0.07434119284152985,
0.3777678906917572,
0.13428500294685364,
0.16550962626934052,
-0.2143951952457428,
-0.16849754750728607,
-0.7975112199783325,
0.691954493522644,
0.12841194868087769,
-0.0454942062497139,
-0.03712138161063194,
0.35144078731536865,
0.2924976050853729,
-0.015480613335967064,
0.08858086168766022,
0.5862715840339661,
0.3096628785133362,
-0.5019808411598206,
0.8464542031288147,
-0.09847709536552429,
0.8085414171218872,
-0.971247136592865,
-0.013811216689646244,
0.009458133950829506,
0.5321293473243713,
0.01174749806523323,
-0.33805617690086365,
-0.25984111428260803,
-0.07842234522104263,
0.04060569033026695,
-0.20609205961227417,
0.6085233092308044,
-0.5994157791137695,
-0.5442336201667786,
0.7230082750320435,
0.8041743636131287,
0.2159595638513565,
-0.2746257185935974,
-0.8702470064163208,
-0.09633634984493256,
-0.3075920343399048,
-0.5140103101730347,
-0.05628153681755066,
0.7896003723144531,
0.25395241379737854,
0.5087774991989136,
0.36304712295532227,
0.24338726699352264,
0.3626910448074341,
-0.041686005890369415,
0.5737496614456177,
-0.5831094980239868,
-0.8241145014762878,
-0.7835911512374878,
0.5305408835411072,
0.1267225593328476,
-0.6799367070198059,
1.1261788606643677,
0.7596680521965027,
1.3983410596847534,
-0.23583930730819702,
0.8438106179237366,
0.2424541860818863,
0.8283582925796509,
-0.43987151980400085,
0.6279822587966919,
-0.6880213618278503,
-0.27060461044311523,
-0.5980300307273865,
-1.0691401958465576,
-0.2698483169078827,
0.9930015206336975,
-0.26890167593955994,
0.2552192211151123,
0.7487632036209106,
0.6997364163398743,
-0.0857856348156929,
-0.2266976237297058,
0.29730647802352905,
0.6134790778160095,
0.24685926735401154,
0.4637928009033203,
0.9616155624389648,
-0.20875412225723267,
0.5798279643058777,
-0.5055385231971741,
-0.3188600540161133,
-0.5165649056434631,
-0.716930091381073,
-0.8310999274253845,
-0.7135158181190491,
-0.3619326055049896,
-0.1553247570991516,
0.3948652148246765,
0.9678159952163696,
1.0601023435592651,
-0.8938426375389099,
-0.7282326221466064,
0.06493569165468216,
0.14495575428009033,
-0.42038312554359436,
-0.199013352394104,
0.5498742461204529,
-0.024594632908701897,
-0.7424430251121521,
0.23383688926696777,
0.30372950434684753,
0.22326266765594482,
-0.13508115708827972,
-0.13296760618686676,
-0.6705902814865112,
-0.15019722282886505,
0.7937936782836914,
0.48257938027381897,
-0.5928440690040588,
0.10677865147590637,
0.001957864034920931,
-0.10945237427949905,
0.3182963728904724,
0.918454110622406,
-0.7679024338722229,
0.4326593279838562,
0.38024529814720154,
0.4565226137638092,
0.28276410698890686,
-0.07623519003391266,
0.7769256234169006,
-0.5150099992752075,
0.8824081420898438,
0.3667429983615875,
0.24934397637844086,
0.4752625524997711,
0.009092176333069801,
0.6467897891998291,
0.12177737057209015,
-0.43102389574050903,
-0.9235687851905823,
0.29399171471595764,
-0.962612509727478,
-0.24836789071559906,
1.128493070602417,
-0.3755509853363037,
-0.298799067735672,
-0.24618755280971527,
-0.38025975227355957,
0.5582630038261414,
-0.48103412985801697,
0.4167725443840027,
0.5414324402809143,
0.22347378730773926,
-0.3015139698982239,
-0.6855301260948181,
0.540959358215332,
0.46374306082725525,
-0.7754931449890137,
-0.04302868992090225,
0.17722247540950775,
-0.08617892116308212,
0.15795151889324188,
0.8373479843139648,
0.12179210782051086,
0.23510564863681793,
-0.3132767081260681,
0.0031415345147252083,
0.15952643752098083,
-0.3666953444480896,
-0.1455725133419037,
0.06679081916809082,
0.12176334112882614,
-0.15483364462852478
] |
cointegrated/rubert-tiny-toxicity | cointegrated | "2023-03-17T10:23:09Z" | 86,415 | 24 | transformers | [
"transformers",
"pytorch",
"safetensors",
"bert",
"text-classification",
"russian",
"classification",
"toxicity",
"multilabel",
"ru",
"arxiv:2103.05345",
"endpoints_compatible",
"has_space",
"region:us"
] | text-classification | "2022-03-02T23:29:05Z" | ---
language: ["ru"]
tags:
- russian
- classification
- toxicity
- multilabel
widget:
- text: "Иди ты нафиг!"
---
This is the [cointegrated/rubert-tiny](https://huggingface.co/cointegrated/rubert-tiny) model fine-tuned for classification of toxicity and inappropriateness for short informal Russian texts, such as comments in social networks.
The problem is formulated as multilabel classification with the following classes:
- `non-toxic`: the text does NOT contain insults, obscenities, and threats, in the sense of the [OK ML Cup](https://cups.mail.ru/ru/tasks/1048) competition.
- `insult`
- `obscenity`
- `threat`
- `dangerous`: the text is inappropriate, in the sense of [Babakov et.al.](https://arxiv.org/abs/2103.05345), i.e. it can harm the reputation of the speaker.
A text can be considered safe if it is BOTH `non-toxic` and NOT `dangerous`.
## Usage
The function below estimates the probability that the text is either toxic OR dangerous:
```python
# !pip install transformers sentencepiece --quiet
import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification
model_checkpoint = 'cointegrated/rubert-tiny-toxicity'
tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)
model = AutoModelForSequenceClassification.from_pretrained(model_checkpoint)
if torch.cuda.is_available():
model.cuda()
def text2toxicity(text, aggregate=True):
""" Calculate toxicity of a text (if aggregate=True) or a vector of toxicity aspects (if aggregate=False)"""
with torch.no_grad():
inputs = tokenizer(text, return_tensors='pt', truncation=True, padding=True).to(model.device)
proba = torch.sigmoid(model(**inputs).logits).cpu().numpy()
if isinstance(text, str):
proba = proba[0]
if aggregate:
return 1 - proba.T[0] * (1 - proba.T[-1])
return proba
print(text2toxicity('я люблю нигеров', True))
# 0.9350118728093193
print(text2toxicity('я люблю нигеров', False))
# [0.9715758 0.0180863 0.0045551 0.00189755 0.9331106 ]
print(text2toxicity(['я люблю нигеров', 'я люблю африканцев'], True))
# [0.93501186 0.04156357]
print(text2toxicity(['я люблю нигеров', 'я люблю африканцев'], False))
# [[9.7157580e-01 1.8086294e-02 4.5550885e-03 1.8975559e-03 9.3311059e-01]
# [9.9979788e-01 1.9048342e-04 1.5297388e-04 1.7452303e-04 4.1369814e-02]]
```
## Training
The model has been trained on the joint dataset of [OK ML Cup](https://cups.mail.ru/ru/tasks/1048) and [Babakov et.al.](https://arxiv.org/abs/2103.05345) with `Adam` optimizer, the learning rate of `1e-5`, and batch size of `64` for `15` epochs. A text was considered inappropriate if its inappropriateness score was higher than 0.8, and appropriate - if it was lower than 0.2. The per-label ROC AUC on the dev set is:
```
non-toxic : 0.9937
insult : 0.9912
obscenity : 0.9881
threat : 0.9910
dangerous : 0.8295
``` | [
0.16264677047729492,
-0.872073233127594,
0.4053068459033966,
-0.049627505242824554,
-0.1485092043876648,
-0.37619471549987793,
-0.20519956946372986,
-0.5281136631965637,
-0.021701328456401825,
0.2825661301612854,
-0.13160482048988342,
-0.6677838563919067,
-0.8151347637176514,
0.07057550549507141,
-0.23737411201000214,
1.4092708826065063,
0.12513338029384613,
0.08179207146167755,
-0.08991100639104843,
-0.24645407497882843,
-0.25298872590065,
-0.4436303973197937,
-0.5914166569709778,
-0.3739050328731537,
0.7356773018836975,
0.5963985323905945,
0.5283864140510559,
0.5753845572471619,
0.4944201409816742,
0.3877919912338257,
-0.3398875296115875,
-0.09595644474029541,
-0.36056795716285706,
-0.030212700366973877,
-0.1404302716255188,
-0.45901304483413696,
-0.2847767472267151,
0.20862910151481628,
0.22309276461601257,
0.23584221303462982,
0.041350048035383224,
0.26012474298477173,
0.22307226061820984,
0.4195637106895447,
-0.5970500707626343,
0.05028681829571724,
-0.5178556442260742,
0.019774816930294037,
-0.13166317343711853,
0.007744397036731243,
-0.7039862275123596,
-0.0617390014231205,
0.044171713292598724,
-0.5505738258361816,
-0.25032752752304077,
0.1164645105600357,
1.0482664108276367,
0.13221605122089386,
-0.40324097871780396,
-0.4956556558609009,
-0.44644081592559814,
0.9788452386856079,
-0.7292020916938782,
-0.10373933613300323,
0.4507755935192108,
-0.08047552406787872,
-0.03846573829650879,
-0.7860588431358337,
-0.5197917222976685,
-0.18573367595672607,
-0.2955568730831146,
0.07354390621185303,
-0.14773982763290405,
-0.13834384083747864,
0.2107553631067276,
0.06233377754688263,
-0.7320506572723389,
0.06806614249944687,
-0.42035239934921265,
-0.36791515350341797,
0.7050217986106873,
0.1935035139322281,
0.3915129601955414,
-0.4586620032787323,
-0.5325537919998169,
-0.05783269181847572,
-0.09249488264322281,
0.14098705351352692,
0.3026929795742035,
0.4354378283023834,
-0.3932628035545349,
0.6841616034507751,
-0.06577419489622116,
0.37075546383857727,
-0.08009567111730576,
-0.29842960834503174,
0.5565780997276306,
-0.44079384207725525,
-0.13079531490802765,
0.07541345059871674,
1.3110580444335938,
0.4327596127986908,
0.26698511838912964,
-0.002969905734062195,
-0.03612923622131348,
0.20394454896450043,
-0.015851672738790512,
-1.1870672702789307,
-0.6196839809417725,
0.22173620760440826,
-0.505774199962616,
-0.694060206413269,
-0.21575933694839478,
-0.9685767292976379,
-0.23552186787128448,
0.13975149393081665,
0.8371273279190063,
-0.4650628864765167,
-0.12513495981693268,
-0.1496068686246872,
-0.00511749554425478,
-0.20037643611431122,
-0.020218539983034134,
-0.8244875073432922,
0.1703886091709137,
0.3344413638114929,
1.0728744268417358,
0.008110898546874523,
-0.1319052278995514,
-0.3461032509803772,
-0.05116374045610428,
-0.223541259765625,
0.8615527749061584,
-0.47993654012680054,
-0.29911476373672485,
-0.3309357166290283,
0.1297721266746521,
-0.10867609083652496,
-0.416848361492157,
0.5525661706924438,
-0.19144293665885925,
0.536675214767456,
0.1058005839586258,
-0.28282880783081055,
-0.1784185767173767,
0.2680351734161377,
-0.5138174891471863,
1.2652465105056763,
0.1427394449710846,
-1.3223823308944702,
0.32596999406814575,
-0.5364300012588501,
-0.4452950060367584,
-0.14018912613391876,
0.16790927946567535,
-1.0026605129241943,
-0.6347700357437134,
-0.15439927577972412,
0.44891583919525146,
-0.07117748260498047,
0.16925720870494843,
-0.6540915369987488,
-0.27715760469436646,
0.4827151894569397,
-0.29770705103874207,
1.1645106077194214,
0.45562562346458435,
-0.32129406929016113,
0.30534887313842773,
-0.8159570097923279,
0.14861388504505157,
0.059625353664159775,
-0.5637058615684509,
-0.49663713574409485,
-0.298091858625412,
0.32037273049354553,
0.525927722454071,
0.06264377385377884,
-0.5251362323760986,
-0.07072217017412186,
-0.42633044719696045,
0.6887798309326172,
0.6023046374320984,
0.3052365779876709,
0.519681990146637,
-0.44504284858703613,
0.1004810705780983,
0.17267318069934845,
0.19457405805587769,
0.16117271780967712,
-0.7184478044509888,
-0.783043622970581,
-0.22221769392490387,
0.3096536695957184,
0.8623694181442261,
-0.7934948205947876,
0.6211822628974915,
-0.1421765238046646,
-0.7461450099945068,
-0.2214096486568451,
0.016864653676748276,
0.5893371105194092,
0.5678914785385132,
0.40295469760894775,
-0.09886312484741211,
-0.36471253633499146,
-0.7128663659095764,
-0.36061516404151917,
-0.3408234119415283,
0.1766195446252823,
0.4494969844818115,
0.8341668248176575,
-0.3250046670436859,
0.6825851202011108,
-0.4316011667251587,
-0.5697315335273743,
0.04177180305123329,
0.2611275315284729,
0.2790765166282654,
0.7075805068016052,
0.6218030452728271,
-0.6141356229782104,
-0.8878322839736938,
-0.04537366330623627,
-0.7194120287895203,
-0.09789746254682541,
-0.0035565567668527365,
-0.2859608232975006,
0.23702524602413177,
0.3595629930496216,
-0.35233041644096375,
0.38320574164390564,
0.3874650001525879,
-0.4786311984062195,
0.503483235836029,
-0.40618377923965454,
0.14506417512893677,
-1.2523239850997925,
0.38740792870521545,
0.3344956636428833,
-0.08781900256872177,
-0.97145676612854,
-0.17657899856567383,
0.16277678310871124,
0.1186416894197464,
-0.719536304473877,
0.6911949515342712,
-0.28915804624557495,
0.4602857530117035,
-0.08703945577144623,
0.10236691683530807,
0.14050686359405518,
0.36188122630119324,
-0.08115383237600327,
0.7614990472793579,
0.4690663814544678,
-0.6834049820899963,
0.2774835526943207,
0.27012839913368225,
-0.2077295482158661,
0.4462054371833801,
-0.4474315047264099,
0.06332346051931381,
-0.08020493388175964,
0.08938071131706238,
-1.1125093698501587,
-0.23782512545585632,
0.6460072994232178,
-0.8605230450630188,
0.3771214783191681,
-0.08446795493364334,
-0.5613963603973389,
-0.37927231192588806,
-0.37488457560539246,
0.5034297108650208,
0.44106271862983704,
-0.2857470214366913,
0.2972557544708252,
0.5451347827911377,
-0.2686558663845062,
-0.6988319158554077,
-1.0974403619766235,
-0.04090668633580208,
-0.44952625036239624,
-0.6283180713653564,
0.06803322583436966,
-0.21769803762435913,
-0.15258264541625977,
0.0190734900534153,
0.18591922521591187,
-0.36716118454933167,
0.03226277232170105,
0.09748364984989166,
0.30971214175224304,
0.20306122303009033,
0.22360020875930786,
0.006484257988631725,
-0.19812265038490295,
0.23671585321426392,
0.23192518949508667,
0.43571048974990845,
-0.058590374886989594,
0.4289604127407074,
-0.576593816280365,
0.1492754966020584,
0.1905631273984909,
0.07022000104188919,
0.8843566179275513,
0.8465040922164917,
-0.45849883556365967,
-0.023317091166973114,
-0.0051805078983306885,
-0.18575747311115265,
-0.4897818863391876,
0.6607310771942139,
-0.2150878757238388,
-0.6110551953315735,
0.5579880475997925,
0.2755035161972046,
-0.202509343624115,
0.8800174593925476,
0.7056916356086731,
0.009908335283398628,
1.0577784776687622,
0.35956230759620667,
-0.04370351880788803,
0.49013158679008484,
-0.428171306848526,
0.14188015460968018,
-0.7485204935073853,
-0.6455451250076294,
-0.6612853407859802,
-0.05699265003204346,
-0.6052010655403137,
-0.4470506012439728,
0.49917516112327576,
-0.11397555470466614,
-0.5383644104003906,
0.2594369351863861,
-0.8252976536750793,
0.41573789715766907,
0.33374738693237305,
0.36553943157196045,
-0.056334976106882095,
-0.06601603329181671,
-0.18454717099666595,
-0.0966833308339119,
-0.7555528283119202,
-0.5593993067741394,
1.0502657890319824,
0.5396810173988342,
0.8189513683319092,
0.14158380031585693,
0.5677725672721863,
0.3319369852542877,
0.6804337501525879,
-0.8225785493850708,
0.4986456036567688,
-0.2999419569969177,
-1.206442952156067,
-0.226913720369339,
-0.7873064279556274,
-0.9359626770019531,
0.1609978824853897,
-0.5832650065422058,
-1.1211788654327393,
0.12135306000709534,
0.13698233664035797,
-0.43442562222480774,
0.4151369035243988,
-0.9417308568954468,
0.9988273978233337,
-0.15805111825466156,
-0.6506807804107666,
0.009027218446135521,
-0.8796301484107971,
0.5179396867752075,
-0.10051488131284714,
0.6370961666107178,
-0.2029447853565216,
0.03072129376232624,
1.1117020845413208,
-0.24528303742408752,
0.8763170838356018,
-0.0345948301255703,
0.06269672513008118,
0.4620732069015503,
-0.019441328942775726,
0.4300376772880554,
0.0844869315624237,
-0.2221876084804535,
0.20763447880744934,
0.05685818940401077,
-0.3125515282154083,
0.053113631904125214,
0.8090232014656067,
-0.9114259481430054,
-0.0528298057615757,
-0.9591332674026489,
-0.41012972593307495,
0.24453549087047577,
0.48288199305534363,
0.6983412504196167,
0.39237895607948303,
0.031200479716062546,
0.051483817398548126,
0.7483842372894287,
-0.5714095234870911,
0.44351789355278015,
0.18254679441452026,
0.023240743204951286,
-0.7017156481742859,
1.0667747259140015,
0.052762940526008606,
0.4238470196723938,
0.305968314409256,
0.5616655349731445,
-0.35592037439346313,
-0.2984577715396881,
-0.3128117322921753,
0.2948813736438751,
-0.8569440841674805,
-0.47549983859062195,
-0.9140957593917847,
-0.4415646195411682,
-0.6309563517570496,
0.1533394753932953,
-0.17630794644355774,
-0.2722530663013458,
-0.814643144607544,
0.08822001516819,
0.41793644428253174,
0.6943218111991882,
-0.32175615429878235,
0.31377315521240234,
-0.792202889919281,
0.17501316964626312,
0.19268886744976044,
0.3493229150772095,
-0.13470512628555298,
-0.9147248268127441,
-0.29337140917778015,
0.09081722050905228,
-0.45264294743537903,
-1.1190533638000488,
0.5118919014930725,
0.15634268522262573,
0.38879069685935974,
0.5078307390213013,
0.315690279006958,
0.31646856665611267,
-0.3293173015117645,
0.7438656091690063,
0.2922419309616089,
-0.7506784200668335,
0.45200666785240173,
-0.27382487058639526,
-0.02315836027264595,
0.5081488490104675,
0.42238670587539673,
-0.7202615737915039,
-0.3418808877468109,
-0.673261284828186,
-0.9354172348976135,
1.144715428352356,
0.502734899520874,
0.014030146412551403,
-0.11612900346517563,
0.25043627619743347,
-0.05759647861123085,
-0.1060878336429596,
-1.117148756980896,
-0.6837016344070435,
-0.03945217281579971,
-0.4715232849121094,
-0.09349918365478516,
-0.5424404740333557,
-0.08683600276708603,
-0.47092920541763306,
1.0928219556808472,
0.19250158965587616,
0.5388200879096985,
0.15159405767917633,
-0.22062283754348755,
-0.14348430931568146,
0.42030438780784607,
0.595190703868866,
0.1018521711230278,
-0.4262121617794037,
0.4096442461013794,
0.3520083725452423,
-0.6978190541267395,
0.3169260323047638,
0.21911339461803436,
-0.25518113374710083,
-0.07402250170707703,
0.2994565963745117,
0.6208407282829285,
-0.06805136054754257,
-0.2841607332229614,
0.6377278566360474,
-0.15055131912231445,
-0.397363543510437,
-0.18849673867225647,
0.19724294543266296,
-0.09926252067089081,
-0.0694352462887764,
0.04241059347987175,
0.3253331482410431,
0.3909488320350647,
-0.6212718486785889,
0.3401724696159363,
0.2987302541732788,
-0.5066776871681213,
-0.16469620168209076,
0.9118342995643616,
0.2823190689086914,
-0.40495234727859497,
0.2924983501434326,
-0.5276989936828613,
-0.6714051961898804,
0.5831534266471863,
0.462028443813324,
0.7283431887626648,
-0.3106752932071686,
0.31999874114990234,
0.9106767177581787,
0.39803025126457214,
0.17300637066364288,
0.2312559336423874,
0.34480997920036316,
-0.5707590579986572,
-0.05975337326526642,
-0.5739636421203613,
-0.0008866080897860229,
0.26864326000213623,
-0.5249573588371277,
0.1893521547317505,
-0.4601968824863434,
-0.39077991247177124,
0.371454119682312,
0.16979116201400757,
-0.28104066848754883,
0.4025349020957947,
0.027963003143668175,
0.6440877914428711,
-1.3244194984436035,
0.9019289016723633,
0.784965991973877,
-0.32364919781684875,
-0.6735640168190002,
-0.1427219957113266,
0.06031874939799309,
-0.6321681141853333,
0.4276410937309265,
0.4361899197101593,
0.17636612057685852,
-0.11728830635547638,
-0.54029381275177,
-0.8475969433784485,
0.8840590119361877,
-0.11805332452058792,
-0.3608167767524719,
0.10187821835279465,
0.13946689665317535,
0.6703100800514221,
0.06629084050655365,
0.4906802177429199,
0.5276528596878052,
0.4585447609424591,
-0.021954040974378586,
-0.7618772387504578,
0.19546468555927277,
-0.4431011974811554,
-0.0857386440038681,
0.21712063252925873,
-0.8862152099609375,
0.8998551368713379,
-0.43389174342155457,
-0.14384636282920837,
0.2928198575973511,
0.39226624369621277,
0.0388590432703495,
0.5960837602615356,
0.4715079963207245,
0.614880383014679,
0.6435086727142334,
-0.14702603220939636,
0.7729790210723877,
-0.12044692039489746,
0.7717382907867432,
0.8859137296676636,
0.2826744318008423,
0.7572727203369141,
0.31512394547462463,
-0.20949536561965942,
0.4976336359977722,
0.8265764713287354,
0.06599459797143936,
0.7685525417327881,
0.03612440079450607,
-0.2902854084968567,
-0.068207748234272,
0.034352101385593414,
-0.24919724464416504,
0.22334040701389313,
0.5169217586517334,
-0.4222475588321686,
-0.06392774730920792,
0.10881470143795013,
0.4749262034893036,
0.0064122239127755165,
-0.13579067587852478,
0.8759469985961914,
0.14936643838882446,
-0.43055465817451477,
0.4330049157142639,
0.25381913781166077,
0.8527554273605347,
-0.22881247103214264,
0.18844161927700043,
0.1547033190727234,
0.4739663898944855,
-0.3244189918041229,
-1.021295428276062,
0.2374173402786255,
0.006956728175282478,
-0.06287778168916702,
0.16970834136009216,
0.8584756255149841,
-0.736264169216156,
-0.5302697420120239,
0.25950056314468384,
-0.04883944243192673,
0.30617064237594604,
0.2061803638935089,
-1.0375659465789795,
-0.0975753590464592,
0.035287678241729736,
-0.2522333562374115,
0.25130683183670044,
0.4795607030391693,
0.1367914378643036,
0.4786592125892639,
0.4802792966365814,
-0.06905681639909744,
-0.10294327884912491,
-0.3264566659927368,
0.8478509187698364,
-0.547810971736908,
-0.5497298240661621,
-0.9027895927429199,
0.6114542484283447,
-0.12390445917844772,
-0.5377771854400635,
0.583333432674408,
0.8105340003967285,
0.5481684803962708,
0.16531985998153687,
0.6352413892745972,
-0.23318709433078766,
0.41970914602279663,
-0.4435860216617584,
1.1035512685775757,
-0.506891667842865,
-0.030770540237426758,
-0.3707751929759979,
-0.6195967197418213,
-0.4117133617401123,
0.9265516996383667,
-0.34443432092666626,
0.24591884016990662,
0.8271045088768005,
0.8495731353759766,
0.022376947104930878,
-0.35496559739112854,
0.06020869314670563,
0.4729391634464264,
0.42864519357681274,
0.7196935415267944,
0.4308224022388458,
-0.6897101998329163,
0.8800707459449768,
-0.7312812805175781,
-0.4635293483734131,
-0.31307274103164673,
-0.7972728610038757,
-1.1157492399215698,
-0.5834548473358154,
-0.4594986140727997,
-0.9767085909843445,
-0.006341433152556419,
0.8137307167053223,
0.5669476389884949,
-0.7816462516784668,
0.08033663779497147,
0.14391997456550598,
0.06927800923585892,
0.08039198815822601,
-0.30165988206863403,
0.27247264981269836,
-0.1444266438484192,
-0.5663939118385315,
-0.3652245104312897,
0.050872307270765305,
0.2795414924621582,
0.09282542765140533,
-0.18534255027770996,
-0.3325345814228058,
0.03328535705804825,
0.5276208519935608,
0.06609965115785599,
-0.4002997875213623,
-0.4522215723991394,
-0.20696085691452026,
-0.6356398463249207,
0.12192466855049133,
0.12192527204751968,
-0.3273375928401947,
0.6242206692695618,
0.49446597695350647,
0.12696290016174316,
0.5776411890983582,
-0.173369899392128,
-0.14457227289676666,
-0.769652247428894,
0.2688902020454407,
0.31000852584838867,
0.1670239120721817,
0.3580509424209595,
-0.6276782751083374,
0.33775219321250916,
0.3537420630455017,
-0.8704916834831238,
-0.8071263432502747,
-0.1079430803656578,
-1.0976486206054688,
-0.3671077489852905,
1.594506859779358,
-0.1559826135635376,
-0.532056987285614,
-0.17216920852661133,
-0.3779926896095276,
0.6265688538551331,
-0.5504714250564575,
0.9418984651565552,
0.5975393056869507,
0.04700591042637825,
-0.036677442491054535,
-0.41534075140953064,
0.5583871603012085,
0.15753230452537537,
-0.9426535367965698,
0.02127312868833542,
0.2533739507198334,
0.654486894607544,
0.2656044661998749,
0.6171536445617676,
0.010746114887297153,
0.2295357882976532,
0.2091631442308426,
0.06703018397092819,
0.10798701643943787,
-0.28711313009262085,
-0.1953563392162323,
-0.22254256904125214,
-0.020278995856642723,
-0.27264612913131714
] |
microsoft/BiomedNLP-BiomedBERT-base-uncased-abstract | microsoft | "2023-11-06T18:04:15Z" | 86,298 | 44 | transformers | [
"transformers",
"pytorch",
"jax",
"bert",
"fill-mask",
"exbert",
"en",
"arxiv:2007.15779",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | fill-mask | "2022-03-02T23:29:05Z" | ---
language: en
tags:
- exbert
license: mit
widget:
- text: "[MASK] is a tyrosine kinase inhibitor."
---
## MSR BiomedBERT (abstracts only)
<div style="border: 2px solid orange; border-radius:10px; padding:0px 10px; width: fit-content;">
* This model was previously named **"PubMedBERT (abstracts)"**.
* You can either adopt the new model name "microsoft/BiomedNLP-BiomedBERT-base-uncased-abstract" or update your `transformers` library to version 4.22+ if you need to refer to the old name.
</div>
Pretraining large neural language models, such as BERT, has led to impressive gains on many natural language processing (NLP) tasks. However, most pretraining efforts focus on general domain corpora, such as newswire and Web. A prevailing assumption is that even domain-specific pretraining can benefit by starting from general-domain language models. [Recent work](https://arxiv.org/abs/2007.15779) shows that for domains with abundant unlabeled text, such as biomedicine, pretraining language models from scratch results in substantial gains over continual pretraining of general-domain language models.
This BiomedBERT is pretrained from scratch using _abstracts_ from [PubMed](https://pubmed.ncbi.nlm.nih.gov/). This model achieves state-of-the-art performance on several biomedical NLP tasks, as shown on the [Biomedical Language Understanding and Reasoning Benchmark](https://aka.ms/BLURB).
## Citation
If you find BiomedBERT useful in your research, please cite the following paper:
```latex
@misc{pubmedbert,
author = {Yu Gu and Robert Tinn and Hao Cheng and Michael Lucas and Naoto Usuyama and Xiaodong Liu and Tristan Naumann and Jianfeng Gao and Hoifung Poon},
title = {Domain-Specific Language Model Pretraining for Biomedical Natural Language Processing},
year = {2020},
eprint = {arXiv:2007.15779},
}
```
<a href="https://huggingface.co/exbert/?model=microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract&modelKind=bidirectional&sentence=Gefitinib%20is%20an%20EGFR%20tyrosine%20kinase%20inhibitor,%20which%20is%20often%20used%20for%20breast%20cancer%20and%20NSCLC%20treatment.&layer=10&heads=..0,1,2,3,4,5,6,7,8,9,10,11&threshold=0.7&tokenInd=17&tokenSide=right&maskInds=..&hideClsSep=true">
<img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png">
</a>
| [
-0.18302302062511444,
-0.546723484992981,
0.5366092324256897,
0.07251229137182236,
-0.38625097274780273,
0.09055985510349274,
-0.23012439906597137,
-0.5217468738555908,
0.28230205178260803,
0.28889763355255127,
-0.42204728722572327,
-0.6179518103599548,
-0.7370986342430115,
0.296869158744812,
-0.08535593003034592,
1.2813363075256348,
0.0011746519012376666,
0.23910324275493622,
-0.3367021083831787,
-0.2375461608171463,
0.09051764011383057,
-0.8099903464317322,
-0.49841195344924927,
-0.4965614080429077,
0.594843864440918,
-0.20975610613822937,
0.5231450796127319,
0.3389350473880768,
0.4656865894794464,
0.3110590875148773,
-0.20582427084445953,
-0.04246574640274048,
-0.2879374623298645,
-0.09089668840169907,
-0.12244465947151184,
-0.1084907129406929,
-0.7885939478874207,
0.14343301951885223,
0.5254062414169312,
0.9920645356178284,
0.0011310498230159283,
-0.06118756905198097,
0.18141376972198486,
0.7641079425811768,
-0.37721148133277893,
0.01321478746831417,
-0.4355826675891876,
0.013088330626487732,
-0.15798361599445343,
-0.17799393832683563,
-0.46756407618522644,
-0.27137619256973267,
0.514498770236969,
-0.47645917534828186,
0.2788374722003937,
-0.027968216687440872,
1.2729374170303345,
0.028931347653269768,
-0.21312616765499115,
0.15778234601020813,
-0.4318602383136749,
0.9337967038154602,
-0.9838840961456299,
0.4560346305370331,
0.4042208790779114,
-0.0130545012652874,
0.000927356188185513,
-1.0991579294204712,
-0.31084170937538147,
-0.33640435338020325,
-0.20484431087970734,
0.12326424568891525,
-0.5677590370178223,
0.14116130769252777,
0.07403995096683502,
0.004923928529024124,
-0.9681753516197205,
-0.1884974241256714,
-0.716032087802887,
-0.2677285671234131,
0.4020465910434723,
-0.20169812440872192,
0.3436639606952667,
0.08319073170423508,
-0.4051196575164795,
-0.042377810925245285,
-0.7552621960639954,
-0.08684413135051727,
-0.06379921734333038,
0.16632460057735443,
-0.19147621095180511,
0.28611958026885986,
0.11128602176904678,
0.8887078166007996,
-0.0046197352930903435,
0.05431995913386345,
0.9295603036880493,
-0.37798547744750977,
-0.22414140403270721,
0.03607780113816261,
0.9827368259429932,
0.1084221601486206,
0.46820032596588135,
-0.2019169181585312,
-0.019771331921219826,
-0.13347186148166656,
0.49055731296539307,
-0.8688613176345825,
-0.43052247166633606,
0.4600584805011749,
-0.5469973087310791,
-0.09747213125228882,
-0.15429849922657013,
-0.4066949188709259,
0.03918858990073204,
-0.36465176939964294,
0.5624260306358337,
-0.661552369594574,
-0.04894508421421051,
0.347432404756546,
0.09572985768318176,
0.027019865810871124,
0.13007257878780365,
-0.5955387353897095,
0.13339300453662872,
0.12273179739713669,
0.8295270204544067,
-0.3922259509563446,
-0.2628609538078308,
-0.2592313587665558,
0.0891290158033371,
0.034540873020887375,
0.8106675148010254,
-0.502517819404602,
-0.11658579111099243,
-0.036654721945524216,
0.3373883366584778,
-0.2569217383861542,
-0.41848552227020264,
0.22051085531711578,
-0.5227156281471252,
0.23139908909797668,
0.061872079968452454,
-0.47815272212028503,
-0.1167951375246048,
-0.12384732067584991,
-0.3946210443973541,
0.5955029726028442,
0.04716029018163681,
-0.8888328075408936,
0.08301892876625061,
-0.6668838262557983,
-0.5589279532432556,
-0.14530853927135468,
-0.21310178935527802,
-0.5102677941322327,
0.06863021850585938,
0.056870706379413605,
0.4576317369937897,
-0.052271075546741486,
0.217920184135437,
-0.19472526013851166,
0.014636004343628883,
0.149552121758461,
0.032653022557497025,
0.9183140397071838,
0.08535550534725189,
-0.3479416072368622,
0.2812786102294922,
-0.8974873423576355,
0.3393566906452179,
0.131789892911911,
-0.3550352454185486,
-0.3131820857524872,
-0.07202529162168503,
-0.02940225787460804,
0.3764183223247528,
0.226934552192688,
-0.5863617658615112,
0.014622058719396591,
-0.6517010927200317,
0.5380784869194031,
0.5490122437477112,
0.007597542833536863,
0.43050915002822876,
-0.28708383440971375,
0.5601611137390137,
0.11079423129558563,
-0.003315648762509227,
0.09639585763216019,
-0.5039860606193542,
-0.5079097151756287,
-0.4324936270713806,
0.6024063229560852,
0.49993884563446045,
-0.7577242255210876,
0.6351083517074585,
-0.17027150094509125,
-0.29119643568992615,
-0.7063980102539062,
-0.022830704227089882,
0.5504087209701538,
0.5197627544403076,
0.8715555667877197,
-0.5498600602149963,
-0.635219931602478,
-1.0111600160598755,
-0.28596124053001404,
0.11034136265516281,
-0.1630510836839676,
0.09730549901723862,
0.4988807737827301,
-0.5225904583930969,
0.8192362189292908,
-0.38348737359046936,
-0.23127852380275726,
-0.43967509269714355,
0.35129958391189575,
0.34111830592155457,
0.68684321641922,
0.5137585997581482,
-0.564329206943512,
-0.4999715983867645,
-0.27873310446739197,
-0.6442268490791321,
-0.31298020482063293,
0.10033731907606125,
-0.25738218426704407,
0.1228293627500534,
0.5609376430511475,
-0.6804048418998718,
0.45523643493652344,
0.6197664141654968,
-0.22515222430229187,
0.6635574102401733,
-0.4436846077442169,
-0.16390615701675415,
-0.9611992239952087,
0.33277252316474915,
0.04569299519062042,
-0.29978930950164795,
-0.9460399150848389,
-0.22300271689891815,
0.023330114781856537,
0.036319632083177567,
-0.5123052597045898,
0.4964389503002167,
-0.5968939065933228,
0.3234063982963562,
-0.27949967980384827,
0.14238928258419037,
0.17407386004924774,
0.5678234100341797,
0.3525317311286926,
0.6652710437774658,
0.6169629096984863,
-0.6549978852272034,
-0.27674224972724915,
0.4892820119857788,
-0.28491801023483276,
-0.0194277111440897,
-1.178037405014038,
0.09598062187433243,
-0.3275032341480255,
0.28464317321777344,
-0.894504189491272,
0.07233425974845886,
0.16011089086532593,
-0.6307793855667114,
0.571475088596344,
0.15275715291500092,
-0.20730911195278168,
-0.0924898311495781,
-0.30798402428627014,
0.32965511083602905,
0.647213876247406,
-0.1433214545249939,
0.5321045517921448,
0.4264853000640869,
-0.5302706360816956,
-0.6254470348358154,
-0.8157890439033508,
-0.2114415168762207,
0.29063674807548523,
-0.5112847089767456,
0.6209341287612915,
-0.21687248349189758,
0.09510038048028946,
-0.06434137374162674,
-0.06926827132701874,
-0.2056252807378769,
-0.2345857471227646,
0.1647731512784958,
0.4014255106449127,
-0.25108033418655396,
0.22989428043365479,
0.1454329639673233,
-0.21621325612068176,
-0.01408266369253397,
-0.1505690962076187,
0.5936223268508911,
-0.1859409362077713,
-0.16318266093730927,
-0.23565739393234253,
0.410010427236557,
0.35974565148353577,
-0.5470616817474365,
0.9483273029327393,
0.5300905108451843,
-0.21814197301864624,
0.07577473670244217,
-0.2664112150669098,
-0.3059907853603363,
-0.455595999956131,
0.587238073348999,
0.07979467511177063,
-0.9686537981033325,
0.15636219084262848,
-0.12460731714963913,
0.048207707703113556,
0.5527398586273193,
0.6768760085105896,
-0.01676681451499462,
1.017643928527832,
0.6579415798187256,
0.14108331501483917,
0.2001931071281433,
-0.18835721909999847,
0.34491226077079773,
-0.8767213225364685,
-0.06902673095464706,
-0.5136550068855286,
-0.15558528900146484,
-0.18228992819786072,
-0.41202130913734436,
0.3069283068180084,
-0.034200284630060196,
-0.33861055970191956,
0.4640755355358124,
-0.733630895614624,
0.2085285484790802,
0.44890671968460083,
0.2554469406604767,
0.15438753366470337,
0.1898956298828125,
-0.5689072012901306,
-0.12307380139827728,
-0.7009356021881104,
-0.6180657148361206,
1.1274003982543945,
0.39343971014022827,
0.601805567741394,
0.07042262703180313,
0.6637420654296875,
0.07129921764135361,
0.4560026228427887,
-0.3574162423610687,
0.4619778096675873,
-0.1489906758069992,
-0.7771837711334229,
-0.10279916226863861,
-0.4328959882259369,
-1.2808393239974976,
0.18033617734909058,
-0.3326722979545593,
-0.8954265713691711,
0.38632893562316895,
0.18069902062416077,
-0.6433030962944031,
0.11997557431459427,
-0.6585928797721863,
0.8997275829315186,
-0.28632545471191406,
-0.279677152633667,
0.10564536601305008,
-0.9963771104812622,
0.05666479840874672,
-0.24295808374881744,
0.25501930713653564,
-0.04348759353160858,
0.02713889442384243,
0.8823454976081848,
-0.43177372217178345,
0.8510714769363403,
-0.16518627107143402,
0.13039129972457886,
0.07979810982942581,
-0.29001709818840027,
0.2894314229488373,
-0.29252561926841736,
0.10503970831632614,
0.3936615288257599,
0.19155587255954742,
-0.39060893654823303,
-0.10473364591598511,
0.3232435882091522,
-0.9335522651672363,
-0.40517035126686096,
-0.6978328227996826,
-0.24032746255397797,
-0.4088399410247803,
0.2625822126865387,
0.7535644173622131,
0.45311954617500305,
-0.16001689434051514,
0.3833622634410858,
0.8745154142379761,
-0.7438648343086243,
0.15021416544914246,
0.6807763576507568,
-0.21200060844421387,
-0.323556125164032,
0.5942814350128174,
-0.022506745532155037,
0.3158939778804779,
0.4304659962654114,
-0.04772424325346947,
-0.2728003263473511,
-0.6817030310630798,
-0.0368628054857254,
0.48721787333488464,
-0.48401331901550293,
-0.2289360612630844,
-1.0910789966583252,
-0.5493525266647339,
-0.5086310505867004,
-0.08571680635213852,
-0.2834046483039856,
-0.38615724444389343,
-0.3463636040687561,
-0.010081164538860321,
0.22191384434700012,
0.44657620787620544,
-0.23249086737632751,
0.1878635734319687,
-0.9748570919036865,
0.28278473019599915,
0.08242028206586838,
0.25421833992004395,
0.054671209305524826,
-0.777376651763916,
-0.30523231625556946,
0.0962894856929779,
-0.20972295105457306,
-0.8990364074707031,
0.5991843938827515,
0.45895570516586304,
0.7403761744499207,
0.2263258993625641,
-0.03420605510473251,
0.26542600989341736,
-0.9812048673629761,
0.6363606452941895,
0.45865145325660706,
-0.6733024716377258,
0.5327871441841125,
-0.23627331852912903,
0.5207173824310303,
0.7809340357780457,
0.9142202734947205,
-0.2113630473613739,
-0.39742183685302734,
-0.6580650210380554,
-1.2186371088027954,
0.5465511679649353,
0.3494549095630646,
0.032335393130779266,
-0.22464178502559662,
0.1462596356868744,
0.05149231106042862,
0.29529425501823425,
-0.8958634734153748,
-0.5434115529060364,
-0.11253902316093445,
-0.2900800406932831,
-0.20766015350818634,
-0.2845706045627594,
-0.245324969291687,
-0.7869707942008972,
0.8417613506317139,
0.06654742360115051,
0.8641607165336609,
0.498884916305542,
-0.3641206920146942,
0.12085053324699402,
0.34984147548675537,
0.6649399995803833,
0.8847269415855408,
-0.46276697516441345,
0.0853877142071724,
0.056640997529029846,
-0.7057514190673828,
0.03987862914800644,
0.44960448145866394,
0.12867265939712524,
0.3557802438735962,
0.41301992535591125,
0.6396112442016602,
0.18123242259025574,
-0.6540107131004333,
0.6943616271018982,
-0.013626881875097752,
-0.48828867077827454,
-0.154701367020607,
-0.12182936072349548,
0.20455622673034668,
0.1059599369764328,
0.425605446100235,
0.1645880937576294,
0.007639806717634201,
-0.3785288631916046,
0.3940989375114441,
0.2515072822570801,
-0.5556098818778992,
-0.41053125262260437,
0.8173891305923462,
0.0810476616024971,
0.010497326962649822,
0.35467618703842163,
-0.10908607393503189,
-0.5702092051506042,
0.2879972457885742,
0.6422857642173767,
0.8692681193351746,
-0.2575768530368805,
0.15449747443199158,
0.5008608102798462,
0.22615741193294525,
0.08848712593317032,
0.27050715684890747,
0.3065653443336487,
-0.7957058548927307,
-0.6561151742935181,
-0.9239352345466614,
-0.06350479274988174,
0.3292941749095917,
-0.5175402164459229,
-0.23994098603725433,
-0.5104602575302124,
-0.466320276260376,
0.37070369720458984,
-0.16990052163600922,
-0.6492547988891602,
0.3110872507095337,
-0.026096226647496223,
0.8129881024360657,
-0.6964036822319031,
1.049509048461914,
1.0063143968582153,
-0.541747510433197,
-0.670077919960022,
-0.23624078929424286,
-0.07357705384492874,
-0.7340564131736755,
0.7789380550384521,
-0.004517724737524986,
-0.008635765872895718,
-0.03881775215268135,
-0.8751912713050842,
-0.8282433152198792,
0.7834620475769043,
0.20020177960395813,
-0.652835488319397,
-0.16680066287517548,
-0.0684206634759903,
0.7553765177726746,
-0.3575083315372467,
0.18136383593082428,
0.3787459135055542,
0.22886055707931519,
-0.153544619679451,
-0.8231907486915588,
0.23791812360286713,
-0.6474109888076782,
-0.10873972624540329,
-0.010438052006065845,
-0.2971113622188568,
1.140661358833313,
-0.09292314201593399,
0.06771235167980194,
0.1204196885228157,
0.5686699748039246,
0.3673137426376343,
0.04330598935484886,
0.239271879196167,
0.3888590633869171,
0.6798418760299683,
-0.035073328763246536,
1.0621341466903687,
-0.47296783328056335,
0.3376352787017822,
1.0130529403686523,
-0.18490363657474518,
0.8085669279098511,
0.41867655515670776,
-0.41629183292388916,
0.868318498134613,
0.4394851326942444,
0.11602739244699478,
0.7408180832862854,
0.2382279485464096,
-0.25957879424095154,
-0.1983189880847931,
0.15146610140800476,
-0.7876522541046143,
0.14299488067626953,
0.17589740455150604,
-0.715300440788269,
-0.17044931650161743,
0.09175627678632736,
0.2268201857805252,
-0.13486944139003754,
-0.012698352336883545,
0.5010858178138733,
0.3672572374343872,
-0.2746032476425171,
0.7693039774894714,
-0.14109782874584198,
0.6709747314453125,
-1.1083735227584839,
0.051980968564748764,
-0.00901365652680397,
0.2189284861087799,
-0.14756165444850922,
-0.3745706081390381,
0.18114152550697327,
0.027506764978170395,
-0.23885229229927063,
-0.16477370262145996,
0.8241605162620544,
-0.4777475893497467,
-0.2865121364593506,
0.34387505054473877,
0.6331081986427307,
0.3296859562397003,
-0.09564967453479767,
-0.9484900236129761,
-0.05427950993180275,
0.15020881593227386,
-0.42130351066589355,
0.5992779731750488,
0.2110549509525299,
0.3549515902996063,
0.4393562078475952,
0.6043078303337097,
0.2394740730524063,
-0.2242838591337204,
0.05663379654288292,
0.9489870071411133,
-0.5663228034973145,
-0.27545446157455444,
-0.7315650582313538,
0.62050861120224,
-0.14311228692531586,
-0.22376635670661926,
0.6735564470291138,
0.4425307512283325,
0.6594655513763428,
-0.41664373874664307,
0.760573148727417,
-0.011967428028583527,
0.7550896406173706,
-0.3613060712814331,
1.0786076784133911,
-0.6879538297653198,
0.01237939391285181,
-0.4453747570514679,
-0.8111180663108826,
-0.45828837156295776,
1.0280320644378662,
-0.38670259714126587,
0.4773963987827301,
1.017981767654419,
0.6516934633255005,
0.09647446125745773,
-0.24525950849056244,
0.22628916800022125,
0.46011993288993835,
0.009484633803367615,
0.5960045456886292,
0.477363258600235,
-0.23395247757434845,
0.3152419626712799,
0.016070039942860603,
-0.38680484890937805,
-0.13911640644073486,
-0.8865951895713806,
-1.010807752609253,
-0.536278486251831,
-0.502236008644104,
-0.5948207378387451,
0.30835241079330444,
1.1594719886779785,
0.743818998336792,
-1.0842028856277466,
0.10601971298456192,
0.13791906833648682,
-0.40199586749076843,
-0.09302252531051636,
-0.13442014157772064,
0.5599719882011414,
-0.3190676271915436,
-0.2599359154701233,
0.2761445641517639,
0.25793468952178955,
0.20358258485794067,
0.10388609766960144,
0.00016154679178725928,
-0.7972184419631958,
0.15328748524188995,
0.6898564696311951,
0.5704659819602966,
-0.41395002603530884,
-0.1935732662677765,
-0.1062784194946289,
-0.33033064007759094,
0.22538982331752777,
0.4867567718029022,
-0.800504744052887,
0.3065231442451477,
0.3205804228782654,
0.7134485244750977,
0.47214797139167786,
-0.09462659806013107,
0.6852766871452332,
-0.8886175155639648,
0.06843787431716919,
0.3825637996196747,
0.3683233857154846,
0.26727294921875,
0.0022248702589422464,
0.4550459682941437,
0.1792261153459549,
-0.713064432144165,
-0.5688539743423462,
-0.08219357579946518,
-0.9685236215591431,
-0.6238456964492798,
1.084977626800537,
-0.2078550010919571,
-0.24520882964134216,
-0.2865449786186218,
-0.11836858093738556,
0.32362836599349976,
-0.21670910716056824,
0.5111515522003174,
0.5085922479629517,
-0.11232669651508331,
-0.03455013036727905,
-0.7043514847755432,
0.783848226070404,
0.5943335890769958,
-0.7326590418815613,
-0.29856398701667786,
0.21612641215324402,
0.21586602926254272,
0.35521015524864197,
0.8776086568832397,
-0.28683608770370483,
0.20009128749370575,
-0.3420640528202057,
0.4922889769077301,
0.07588323205709457,
-0.24164170026779175,
-0.39166611433029175,
-0.109504833817482,
-0.09246518462896347,
-0.018801923841238022
] |
succinctly/text2image-prompt-generator | succinctly | "2022-08-20T06:01:10Z" | 86,110 | 234 | transformers | [
"transformers",
"pytorch",
"gpt2",
"text-generation",
"text2image",
"prompting",
"en",
"dataset:succinctly/midjourney-prompts",
"license:cc-by-2.0",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | text-generation | "2022-07-21T22:17:43Z" | ---
language:
- "en"
thumbnail: "https://drive.google.com/uc?export=view&id=1JWwrxQbr1s5vYpIhPna_p2IG1pE5rNiV"
tags:
- text2image
- prompting
license: "cc-by-2.0"
datasets:
- "succinctly/midjourney-prompts"
---
This is a GPT-2 model fine-tuned on the [succinctly/midjourney-prompts](https://huggingface.co/datasets/succinctly/midjourney-prompts) dataset, which contains 250k text prompts that users issued to the [Midjourney](https://www.midjourney.com/) text-to-image service over a month period. For more details on how this dataset was scraped, see [Midjourney User Prompts & Generated Images (250k)](https://www.kaggle.com/datasets/succinctlyai/midjourney-texttoimage).
This prompt generator can be used to auto-complete prompts for any text-to-image model (including the DALL·E family):
![prompt autocomplete model](https://drive.google.com/uc?export=view&id=1JqZ-CaWNpQ4iO0Qcd3b8u_QnBp-Q0PKu)
Note that, while this model can be used together with any text-to-image model, it occasionally produces Midjourney-specific tags. Users can specify certain requirements via [double-dashed parameters](https://midjourney.gitbook.io/docs/imagine-parameters) (e.g. `--ar 16:9` sets the aspect ratio to 16:9, and `--no snake` asks the model to exclude snakes from the generated image) or set the importance of various entities in the image via [explicit weights](https://midjourney.gitbook.io/docs/user-manual#advanced-text-weights) (e.g. `hot dog::1.5 food::-1` is likely to produce the image of an animal instead of a frankfurter).
When using this model, please attribute credit to [Succinctly AI](https://succinctly.ai). | [
-0.5044665336608887,
-0.710976779460907,
0.7587096095085144,
-0.053335659205913544,
-0.4136718213558197,
-0.2997800409793854,
0.10621414333581924,
-0.3826388120651245,
-0.04323004558682442,
0.3453752398490906,
-0.8844900131225586,
-0.3916345536708832,
-0.7308672070503235,
0.24640558660030365,
-0.2799762487411499,
1.3229776620864868,
-0.08332909643650055,
-0.27516183257102966,
-0.11742284148931503,
0.12095803767442703,
-0.5965350866317749,
-0.2109735757112503,
-0.7265786528587341,
-0.1257186383008957,
0.759880542755127,
0.5631954073905945,
0.92015540599823,
0.5763599276542664,
0.3421773910522461,
0.19860345125198364,
0.10814086347818375,
0.09808233380317688,
-0.26828956604003906,
0.03558354824781418,
-0.2388794720172882,
-0.06511571258306503,
-0.46734899282455444,
0.3417687714099884,
0.4103943407535553,
0.13240063190460205,
0.10670662671327591,
0.26591581106185913,
0.17903870344161987,
0.6493854522705078,
-0.27630743384361267,
0.23848189413547516,
-0.39824196696281433,
-0.13743481040000916,
-0.1588522046804428,
-0.07764492183923721,
-0.2369106262922287,
-0.21752159297466278,
0.2671092450618744,
-0.8922550678253174,
0.3686907887458801,
0.15900298953056335,
1.4596506357192993,
0.19211910665035248,
-0.566834568977356,
-0.6520564556121826,
-0.3477063477039337,
0.36486876010894775,
-0.44520965218544006,
-0.055531177669763565,
0.5892304182052612,
0.40216121077537537,
-0.04440531134605408,
-1.0196356773376465,
-0.7436569333076477,
-0.12417866289615631,
-0.46411871910095215,
0.3005189001560211,
-0.45261111855506897,
0.0026950957253575325,
0.5624222159385681,
0.14678582549095154,
-1.0977907180786133,
-0.15428820252418518,
-0.2952859699726105,
-0.07117221504449844,
0.4905155599117279,
0.14477771520614624,
0.635276734828949,
-0.6374862790107727,
-0.40442919731140137,
-0.16745971143245697,
-0.6365081071853638,
0.18716809153556824,
0.4898930490016937,
-0.06626968830823898,
-0.31278112530708313,
0.7918203473091125,
-0.10967550426721573,
0.7510174512863159,
0.30370065569877625,
0.20561814308166504,
0.14348173141479492,
-0.5610597729682922,
-0.082002654671669,
-0.3403850793838501,
0.8680468201637268,
0.8863118290901184,
0.48117294907569885,
-0.0936262309551239,
-0.43633878231048584,
-0.031829457730054855,
0.03751133009791374,
-1.1396723985671997,
-0.7467169165611267,
0.14466501772403717,
-0.4240732789039612,
-0.06103331595659256,
-0.16610479354858398,
-0.6803424954414368,
-0.15040044486522675,
-0.383075088262558,
0.561821699142456,
-0.47261855006217957,
0.019497593864798546,
-0.2658880650997162,
-0.24905993044376373,
0.15575234591960907,
0.4736248254776001,
-0.7733480334281921,
-0.11625663191080093,
0.1721375584602356,
1.137434482574463,
0.15641920268535614,
-0.22311215102672577,
-0.34220996499061584,
0.07511334121227264,
-0.1831417977809906,
1.1368322372436523,
-0.5443937182426453,
-0.7911903858184814,
-0.3031342625617981,
0.48467493057250977,
-0.035221315920352936,
-0.17748314142227173,
0.6380038261413574,
-0.6253782510757446,
0.5935351848602295,
-0.6002058982849121,
-0.525041937828064,
-0.22643208503723145,
0.2445801943540573,
-0.6120774745941162,
1.0568093061447144,
0.3931077718734741,
-0.7298214435577393,
0.5539647340774536,
-0.6820806264877319,
-0.2006089836359024,
0.14230935275554657,
-0.1943381279706955,
-0.6036574840545654,
-0.33604565262794495,
0.42697247862815857,
0.4780457317829132,
-0.4391634166240692,
0.2715288996696472,
-0.2079806923866272,
-0.19572818279266357,
-0.10427016019821167,
-0.26890045404434204,
0.46897342801094055,
0.3639845848083496,
-0.019036784768104553,
-0.10423421114683151,
-0.6616219282150269,
0.14352098107337952,
0.39981234073638916,
-0.13783764839172363,
-0.31817626953125,
-0.37640810012817383,
0.27447080612182617,
0.4008508026599884,
0.4460321366786957,
-0.4523319900035858,
0.7379753589630127,
-0.04767204076051712,
0.5686429142951965,
0.6080446243286133,
0.36494895815849304,
0.5627562999725342,
-0.45605015754699707,
0.6781489849090576,
0.09314906597137451,
0.23280861973762512,
-0.5612267255783081,
-0.7437921166419983,
-0.23344539105892181,
-0.35311371088027954,
0.29094940423965454,
0.49337121844291687,
-0.879006564617157,
0.47766029834747314,
-0.3089011013507843,
-0.5770830512046814,
-0.2298016995191574,
-0.2613801956176758,
0.44007766246795654,
0.8492375612258911,
0.3609771132469177,
-0.41975998878479004,
-0.226847305893898,
-0.9011664986610413,
-0.03010345995426178,
-0.10194844752550125,
-0.11241637170314789,
0.4531747102737427,
0.6282843947410583,
-0.16365806758403778,
1.0645520687103271,
-0.6633464097976685,
-0.03275016322731972,
0.09632085263729095,
0.3676665723323822,
0.38757699728012085,
0.47127118706703186,
0.9053381681442261,
-0.8550892472267151,
-0.7804728150367737,
-0.39205512404441833,
-0.5722087621688843,
-0.24207369983196259,
-0.4377347528934479,
-0.37171903252601624,
0.10721340775489807,
0.14328251779079437,
-0.9582323431968689,
0.6219652891159058,
0.40059027075767517,
-0.903354287147522,
0.7423348426818848,
-0.4136984646320343,
0.33331727981567383,
-1.2986232042312622,
0.08318274468183517,
0.2844898998737335,
-0.35087060928344727,
-0.26788678765296936,
-0.24757610261440277,
0.2811189293861389,
-0.07766972482204437,
0.07733261585235596,
0.843711793422699,
-0.7114145159721375,
-0.057898182421922684,
-0.2937200367450714,
-0.09649534523487091,
0.289541095495224,
0.36350199580192566,
-0.07777543365955353,
1.210147500038147,
0.7100620269775391,
-0.35565850138664246,
0.29391586780548096,
0.38258659839630127,
-0.14363937079906464,
0.6636353731155396,
-0.8891873955726624,
0.2910749912261963,
-0.11174856871366501,
0.3523155450820923,
-1.31267249584198,
-0.5553293228149414,
0.5162137746810913,
-0.5908882021903992,
0.45563212037086487,
-0.5704101920127869,
-0.8284695744514465,
-0.47130459547042847,
-0.10014312714338303,
0.41926589608192444,
0.6652585864067078,
-0.5064653754234314,
0.5039224624633789,
0.18588879704475403,
-0.4626615643501282,
-0.19086898863315582,
-0.4749837815761566,
0.32414641976356506,
-0.21340535581111908,
-0.5810132622718811,
0.35723400115966797,
-0.14072547852993011,
0.48241549730300903,
0.20024406909942627,
0.2591484487056732,
0.08211292326450348,
-0.385579913854599,
0.4439852833747864,
0.6816890835762024,
0.15926826000213623,
0.07317957282066345,
0.16131103038787842,
-0.2675015926361084,
0.01269199326634407,
-0.46063506603240967,
0.5568024516105652,
0.011314628645777702,
-0.24296915531158447,
-0.46154525876045227,
0.3587515950202942,
0.4181581437587738,
-0.020446646958589554,
0.46022358536720276,
0.6947405934333801,
-0.3995475471019745,
0.18002396821975708,
-0.3995247185230255,
-0.13661138713359833,
-0.506230354309082,
0.3268764615058899,
-0.46899521350860596,
-0.33071401715278625,
0.5869480967521667,
0.015501333400607109,
0.041717588901519775,
0.6865434646606445,
0.5845451951026917,
-0.3964039385318756,
1.0247775316238403,
0.3069245219230652,
0.05081669241189957,
0.5606324672698975,
-0.3695888817310333,
0.006973222363740206,
-0.8560358285903931,
-0.26490646600723267,
-0.4105249047279358,
-0.251682847738266,
-0.6453502774238586,
-0.26761242747306824,
0.5864616632461548,
0.10092253983020782,
-0.5379974246025085,
0.42365899682044983,
-0.878413200378418,
0.6050595045089722,
0.7166441679000854,
0.24695426225662231,
0.10526769608259201,
0.20021386444568634,
-0.1262400597333908,
-0.130308136343956,
-0.6608486175537109,
-0.8519514799118042,
1.160788655281067,
-0.08272747695446014,
0.6647911071777344,
-0.06401695311069489,
0.4708000421524048,
0.4694249927997589,
0.25615644454956055,
-0.6045089364051819,
0.5647178292274475,
-0.22187668085098267,
-0.5570659041404724,
-0.28515639901161194,
-0.31484970450401306,
-1.0485658645629883,
-0.262289434671402,
-0.06413046270608902,
-0.661721408367157,
0.13926446437835693,
0.31317347288131714,
-0.5108662843704224,
0.11036109924316406,
-1.071302890777588,
0.8401722311973572,
-0.1585838347673416,
-0.27460989356040955,
0.15497031807899475,
-0.7577995657920837,
0.026487739756703377,
-0.04880079999566078,
-0.014997282065451145,
-0.13165967166423798,
-0.049006685614585876,
0.6702672243118286,
-0.5622110962867737,
0.8192412853240967,
-0.40672382712364197,
0.13295289874076843,
0.4401198923587799,
0.0013272147625684738,
0.866320788860321,
0.1454387903213501,
0.08741305768489838,
-0.06884666532278061,
0.2147715538740158,
-0.4480404257774353,
-0.5311932563781738,
0.6428626179695129,
-1.0752605199813843,
-0.3004007935523987,
-0.5733284950256348,
-0.593556821346283,
0.08523625135421753,
0.18084853887557983,
0.7648195624351501,
0.5451450943946838,
0.16907598078250885,
-0.3212740421295166,
0.47363194823265076,
-0.256130576133728,
0.5758470892906189,
0.4172529876232147,
-0.1184132918715477,
-0.4570426642894745,
0.7504829168319702,
0.43917927145957947,
0.15139585733413696,
-0.08246123045682907,
0.0028899949975311756,
-0.6364703178405762,
-0.3635431230068207,
-0.9652806520462036,
0.3278748095035553,
-0.8490674495697021,
-0.3569406270980835,
-0.6563351154327393,
-0.2608131468296051,
-0.3869744539260864,
-0.2685522437095642,
-0.03735245391726494,
-0.44154834747314453,
-0.6311241388320923,
-0.05162256956100464,
0.6591659784317017,
0.6769511103630066,
-0.04354865103960037,
0.5281534194946289,
-0.8904221057891846,
0.39586225152015686,
0.3029705286026001,
0.14015930891036987,
-0.11966142058372498,
-0.8923357129096985,
-0.08165847510099411,
-0.05839639902114868,
-0.5853451490402222,
-1.028433084487915,
0.49737605452537537,
0.18667452037334442,
0.2970798909664154,
0.14955390989780426,
-0.10698723793029785,
0.6540060639381409,
-0.6507804989814758,
1.1327216625213623,
0.42344343662261963,
-0.5533376932144165,
0.7078225016593933,
-0.7083484530448914,
0.5145732164382935,
0.26136514544487,
0.4560888409614563,
-0.5497491359710693,
-0.110552117228508,
-0.7035371661186218,
-1.06990385055542,
0.666755199432373,
0.4096585512161255,
0.2216069996356964,
0.22154279053211212,
0.763999879360199,
0.13338413834571838,
0.011459534987807274,
-0.8219742774963379,
-0.20778115093708038,
-0.31590452790260315,
-0.2734900414943695,
-0.028125545009970665,
-0.4606877863407135,
-0.110964834690094,
-0.293757826089859,
0.8309048414230347,
-0.11529963463544846,
0.21600931882858276,
0.39653390645980835,
0.05338030308485031,
-0.27452972531318665,
0.05178777128458023,
0.25621944665908813,
0.5006365180015564,
-0.04597141593694687,
-0.19500716030597687,
-0.21084384620189667,
-0.6218199729919434,
0.13459403812885284,
0.4252059757709503,
-0.4881625771522522,
0.14585533738136292,
0.24144071340560913,
0.8162733316421509,
-0.2254161536693573,
-0.2192467451095581,
0.4963589310646057,
-0.18173660337924957,
-0.16576939821243286,
-0.27730730175971985,
0.08722759038209915,
-0.10073021054267883,
0.24330677092075348,
0.3693084120750427,
0.15472596883773804,
0.37354061007499695,
-0.3891065716743469,
0.22522063553333282,
0.31165391206741333,
-0.12210395932197571,
-0.5261409878730774,
0.7696976661682129,
0.11443975567817688,
0.007050341460853815,
0.8513174057006836,
-0.7496228814125061,
-0.3635886311531067,
0.7473162412643433,
0.29984644055366516,
0.8629153370857239,
0.088003009557724,
0.3333035707473755,
0.6894738078117371,
0.3029034435749054,
-0.02320263534784317,
0.540688693523407,
0.09341973811388016,
-0.442146360874176,
-0.014283557422459126,
-0.5288751125335693,
-0.29011011123657227,
0.05360378324985504,
-0.7121860384941101,
0.47385263442993164,
-0.1409648060798645,
-0.635948657989502,
0.09600883722305298,
0.03584656864404678,
-1.0383633375167847,
0.4576374292373657,
0.2078111320734024,
0.7352536916732788,
-0.792156457901001,
0.8126319050788879,
0.9639761447906494,
-0.6576546430587769,
-1.0935672521591187,
0.10546856373548508,
0.08540384471416473,
-0.813988983631134,
0.3843711018562317,
0.15870366990566254,
0.21842630207538605,
0.2425517588853836,
-0.8164231181144714,
-0.7963323593139648,
1.387487769126892,
0.020396392792463303,
-0.8216650485992432,
-0.4525337517261505,
0.11187528818845749,
0.4433233439922333,
-0.38163599371910095,
0.5971319675445557,
0.4713113605976105,
0.4760187566280365,
0.37787067890167236,
-0.9023696780204773,
0.2694260776042938,
-0.4146864712238312,
0.18483999371528625,
-0.005772106349468231,
-0.7221137881278992,
0.899988055229187,
-0.5096607804298401,
-0.2469727098941803,
0.2881733179092407,
0.38332051038742065,
0.3282323181629181,
0.5573738217353821,
0.582990288734436,
0.5833876132965088,
0.662945568561554,
-0.3428981304168701,
1.3087143898010254,
-0.5056716799736023,
0.6757563948631287,
1.2183597087860107,
-0.01484101265668869,
0.22055943310260773,
0.39777156710624695,
-0.17074702680110931,
0.3050110638141632,
1.3330529928207397,
-0.41227859258651733,
0.8984604477882385,
-0.2391526699066162,
0.03379245847463608,
-0.13877125084400177,
0.0798957571387291,
-0.4777735471725464,
-0.06386449933052063,
0.4250970482826233,
-0.479261189699173,
-0.3679620623588562,
0.03559016436338425,
0.12577325105667114,
-0.4260198175907135,
-0.2214120477437973,
0.7236297130584717,
0.014706787653267384,
-0.7374125123023987,
0.4609290361404419,
-0.18623828887939453,
0.5065745115280151,
-0.5873497724533081,
-0.03380594402551651,
-0.19137166440486908,
-0.3489338755607605,
-0.03933071717619896,
-1.2866812944412231,
0.1777058094739914,
0.2723740041255951,
-0.4142431318759918,
-0.21596528589725494,
0.8304407000541687,
-0.4507937729358673,
-0.6137357950210571,
-0.03663082420825958,
0.49577251076698303,
0.23182937502861023,
-0.11494866758584976,
-1.028654932975769,
-0.3822077214717865,
-0.044344495981931686,
-0.6626646518707275,
0.12426469475030899,
0.8172896504402161,
0.03712097927927971,
0.5175049901008606,
0.5987860560417175,
0.10210739821195602,
-0.08082374185323715,
0.07660888135433197,
1.1311067342758179,
-0.5213804244995117,
-0.7002288103103638,
-0.8148259520530701,
0.6745132207870483,
-0.13172870874404907,
-0.4772290885448456,
0.5843260884284973,
0.74721360206604,
0.7024584412574768,
-0.2532104253768921,
1.0828489065170288,
-0.2714919447898865,
0.28365612030029297,
-0.7085981369018555,
0.7884984612464905,
-0.8710657358169556,
0.10253120958805084,
-0.24110159277915955,
-0.671894907951355,
0.14532309770584106,
0.3588685691356659,
-0.5995108485221863,
0.2629210352897644,
0.5749754905700684,
1.0724467039108276,
-0.09309296309947968,
-0.007496747653931379,
0.14275118708610535,
0.03055162914097309,
0.3039605915546417,
0.41147422790527344,
0.8078901171684265,
-0.4864756762981415,
0.5977786779403687,
-0.11506948620080948,
-0.19509772956371307,
0.032940324395895004,
-0.8681339621543884,
-0.7390176653862,
-0.9101441502571106,
-0.47870707511901855,
-0.591083824634552,
0.18352189660072327,
0.8850733637809753,
0.8660239577293396,
-0.6329849362373352,
0.2627139091491699,
-0.08334525674581528,
-0.34594064950942993,
0.33391043543815613,
-0.2047848105430603,
0.5489965081214905,
-0.18966849148273468,
-0.7844981551170349,
-0.30258461833000183,
0.13360810279846191,
0.643500804901123,
0.22107329964637756,
0.015913957729935646,
0.07496676594018936,
0.007471015676856041,
0.3946622908115387,
0.10960971564054489,
-0.5053869485855103,
-0.2552059292793274,
-0.03022080473601818,
-0.3372575342655182,
0.19367477297782898,
0.5781806707382202,
-0.5486420392990112,
0.5371666550636292,
0.3029566705226898,
0.12490537762641907,
0.46729058027267456,
0.12072665989398956,
0.30134719610214233,
-0.7956694960594177,
0.09585753828287125,
0.02798658050596714,
0.5502117872238159,
0.41100627183914185,
-0.7874691486358643,
0.5402388572692871,
0.35500407218933105,
-0.8664963245391846,
-0.5283116698265076,
-0.0013800832675769925,
-1.0797832012176514,
-0.1854432076215744,
1.3539481163024902,
-0.2484591007232666,
0.036558687686920166,
0.14079251885414124,
-0.502756655216217,
0.4167177975177765,
-0.7301129102706909,
0.8447328805923462,
1.016915202140808,
-0.1395532339811325,
-0.26282641291618347,
-0.5922504663467407,
0.5770894289016724,
0.08310402184724808,
-0.8506827354431152,
-0.17366747558116913,
0.7207774519920349,
0.5739114880561829,
-0.05590005964040756,
0.6742848753929138,
0.006396169774234295,
0.36300233006477356,
-0.22811368107795715,
0.04413541778922081,
-0.11258064955472946,
-0.3235437273979187,
-0.12541957199573517,
-0.23221296072006226,
-0.07511021196842194,
-0.3475660979747772
] |
timpal0l/mdeberta-v3-base-squad2 | timpal0l | "2023-11-13T19:49:18Z" | 85,921 | 92 | transformers | [
"transformers",
"pytorch",
"safetensors",
"deberta-v2",
"question-answering",
"deberta",
"deberta-v3",
"mdeberta",
"qa",
"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",
"dataset:squad_v2",
"arxiv:2006.03654",
"arxiv:2111.09543",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | question-answering | "2022-11-30T11:34:54Z" | ---
datasets:
- squad_v2
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
tags:
- deberta
- deberta-v3
- mdeberta
- question-answering
- qa
- multilingual
thumbnail: https://huggingface.co/front/thumbnails/microsoft.png
license: mit
---
## This model can be used for Extractive QA
It has been finetuned for 3 epochs on [SQuAD2.0](https://rajpurkar.github.io/SQuAD-explorer/).
## Usage
```python
from transformers import pipeline
qa_model = pipeline("question-answering", "timpal0l/mdeberta-v3-base-squad2")
question = "Where do I live?"
context = "My name is Tim and I live in Sweden."
qa_model(question = question, context = context)
# {'score': 0.975547730922699, 'start': 28, 'end': 36, 'answer': ' Sweden.'}
```
## Evaluation on SQuAD2.0 dev set
```bash
{
"epoch": 3.0,
"eval_HasAns_exact": 79.65587044534414,
"eval_HasAns_f1": 85.91387795001529,
"eval_HasAns_total": 5928,
"eval_NoAns_exact": 82.10260723296888,
"eval_NoAns_f1": 82.10260723296888,
"eval_NoAns_total": 5945,
"eval_best_exact": 80.8809904826076,
"eval_best_exact_thresh": 0.0,
"eval_best_f1": 84.00551406448994,
"eval_best_f1_thresh": 0.0,
"eval_exact": 80.8809904826076,
"eval_f1": 84.00551406449004,
"eval_samples": 12508,
"eval_total": 11873,
"train_loss": 0.7729689576483615,
"train_runtime": 9118.953,
"train_samples": 134891,
"train_samples_per_second": 44.377,
"train_steps_per_second": 0.925
}
```
## DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharing
[DeBERTa](https://arxiv.org/abs/2006.03654) improves the BERT and RoBERTa models using disentangled attention and enhanced mask decoder. With those two improvements, DeBERTa out perform RoBERTa on a majority of NLU tasks with 80GB training data.
In [DeBERTa V3](https://arxiv.org/abs/2111.09543), we further improved the efficiency of DeBERTa using ELECTRA-Style pre-training with Gradient Disentangled Embedding Sharing. Compared to DeBERTa, our V3 version significantly improves the model performance on downstream tasks. You can find more technique details about the new model from our [paper](https://arxiv.org/abs/2111.09543).
Please check the [official repository](https://github.com/microsoft/DeBERTa) for more implementation details and updates.
mDeBERTa is multilingual version of DeBERTa which use the same structure as DeBERTa and was trained with CC100 multilingual data.
The mDeBERTa V3 base model comes with 12 layers and a hidden size of 768. It has 86M backbone parameters with a vocabulary containing 250K tokens which introduces 190M parameters in the Embedding layer. This model was trained using the 2.5T CC100 data as XLM-R. | [
-0.23319056630134583,
-0.9093114733695984,
0.3352779150009155,
0.38668543100357056,
-0.2739439308643341,
0.15246333181858063,
0.12143383175134659,
-0.4470806419849396,
0.26540467143058777,
0.19690966606140137,
-0.6044076681137085,
-0.5611110925674438,
-0.7572912573814392,
0.09061487764120102,
-0.3746525049209595,
0.7330378293991089,
0.002420583041384816,
0.1690092235803604,
0.194316104054451,
-0.19619013369083405,
-0.604741632938385,
-0.5389514565467834,
-0.7332266569137573,
-0.08001741021871567,
0.46328529715538025,
0.1262224167585373,
0.5112171769142151,
0.2702236771583557,
0.45749786496162415,
0.35682785511016846,
-0.2846735417842865,
0.19335304200649261,
-0.40795546770095825,
0.13177506625652313,
0.03788556531071663,
-0.63577800989151,
-0.6415058374404907,
0.06460212171077728,
0.5251981019973755,
0.1362997591495514,
-0.1538940668106079,
0.4221467673778534,
-0.011740818619728088,
0.8052991032600403,
-0.6343317627906799,
0.41340306401252747,
-0.6889317631721497,
-0.03920365869998932,
0.16955825686454773,
0.03043285198509693,
-0.2618617117404938,
-0.2002861499786377,
0.29451295733451843,
-0.33121684193611145,
0.11772646009922028,
-0.19272717833518982,
1.341400146484375,
0.4256216883659363,
-0.34151697158813477,
-0.07061593234539032,
-0.5863143801689148,
1.0072534084320068,
-0.8698373436927795,
0.3471013605594635,
0.3066065311431885,
0.43950942158699036,
0.1514468640089035,
-0.8899550437927246,
-0.7079169750213623,
0.2673715651035309,
-0.04450642690062523,
0.27645349502563477,
-0.5245283842086792,
-0.29921770095825195,
0.2951563596725464,
0.28361058235168457,
-0.5261739492416382,
0.15272702276706696,
-0.6943839192390442,
-0.08586075901985168,
0.7745377421379089,
0.20472151041030884,
0.09483559429645538,
-0.3066612184047699,
-0.3747326135635376,
-0.3209472894668579,
-0.6249639987945557,
0.26518723368644714,
0.5426834225654602,
0.13762764632701874,
-0.03271428123116493,
0.4628802239894867,
-0.42117586731910706,
0.4835757911205292,
0.08707024902105331,
0.20902246236801147,
0.6037610769271851,
-0.15231242775917053,
-0.29788967967033386,
-0.12466074526309967,
0.807256281375885,
0.31038981676101685,
-0.08574088662862778,
0.047060806304216385,
-0.1074586808681488,
-0.08921322971582413,
0.162882998585701,
-0.982950747013092,
-0.4432840943336487,
0.6845651268959045,
-0.4748935401439667,
-0.34751105308532715,
0.05315930023789406,
-0.9191246628761292,
-0.02442651055753231,
-0.23891612887382507,
0.4746003746986389,
-0.5119671821594238,
-0.4747733473777771,
0.29752621054649353,
-0.11892372369766235,
0.4914037585258484,
0.32808247208595276,
-0.9926936030387878,
0.06716648489236832,
0.5049608945846558,
0.960852861404419,
-0.08166786283254623,
-0.330425500869751,
-0.4446258246898651,
-0.29877564311027527,
0.02415923960506916,
0.5758005976676941,
-0.058967284858226776,
0.06644396483898163,
-0.1556815356016159,
0.36190924048423767,
-0.28875020146369934,
-0.5088512301445007,
0.29236093163490295,
-0.8991779088973999,
0.2628763020038605,
0.00481518916785717,
-0.3195562958717346,
-0.47745341062545776,
0.28157955408096313,
-0.7788657546043396,
1.0836601257324219,
0.48984047770500183,
-0.5938907861709595,
0.3393796384334564,
-0.7558489441871643,
0.03592524304986,
-0.03190280869603157,
0.2426624447107315,
-0.6431562304496765,
-0.3404172956943512,
0.5267264246940613,
0.4749287962913513,
-0.08714078366756439,
0.3234368860721588,
-0.2579285204410553,
-0.3643862307071686,
0.3503563702106476,
-0.47769203782081604,
1.3946483135223389,
0.3678993284702301,
-0.5011357069015503,
-0.11038707196712494,
-0.6669914722442627,
0.2862538993358612,
0.22490563988685608,
-0.324762225151062,
0.05234687402844429,
-0.11822289228439331,
0.04075167700648308,
0.41384902596473694,
0.35052070021629333,
-0.5829262137413025,
0.25952205061912537,
-0.43683603405952454,
0.8345226049423218,
0.6062086820602417,
0.016130583360791206,
0.35581785440444946,
-0.244757279753685,
0.6998974680900574,
0.29027804732322693,
0.3543749153614044,
0.1355467140674591,
-0.6639765501022339,
-0.7403771877288818,
-0.6614164113998413,
0.6684213280677795,
0.6550570130348206,
-0.6206375956535339,
0.6290781497955322,
-0.18470314145088196,
-0.7424332499504089,
-0.9578403830528259,
0.09516717493534088,
0.18288083374500275,
0.24114547669887543,
0.6413981318473816,
-0.0009737127111293375,
-0.9091596007347107,
-0.9984065890312195,
0.14892147481441498,
-0.14689716696739197,
-0.15567034482955933,
0.0787787139415741,
0.7747505903244019,
-0.4135955274105072,
1.0000251531600952,
-0.6715424656867981,
-0.36564362049102783,
-0.4162498414516449,
0.018350088968873024,
0.5361294746398926,
0.6682069897651672,
0.7834190726280212,
-0.848714292049408,
-0.5301849246025085,
-0.44219741225242615,
-0.8300362825393677,
0.29474973678588867,
0.12590038776397705,
-0.2084399312734604,
0.3231355845928192,
0.06497261673212051,
-0.7291079163551331,
0.2870597839355469,
0.8008530735969543,
-0.2226196825504303,
0.24330520629882812,
-0.012488496489822865,
0.16916656494140625,
-1.384044885635376,
0.14848202466964722,
-0.1714233160018921,
-0.19213436543941498,
-0.5156279802322388,
0.30897608399391174,
0.19713257253170013,
0.06717275828123093,
-0.8292956948280334,
0.3445916771888733,
-0.3862982988357544,
0.27592191100120544,
0.051489632576704025,
0.21307985484600067,
0.19030502438545227,
0.7735764980316162,
0.04735419526696205,
0.7867388725280762,
0.6854514479637146,
-0.4221559166908264,
0.2964709401130676,
0.5584049820899963,
-0.47564321756362915,
0.17540524899959564,
-0.9199156761169434,
0.2595418393611908,
-0.12137963622808456,
0.2647460103034973,
-0.9734606742858887,
-0.007748187519609928,
0.3864089548587799,
-0.6514185070991516,
0.225968599319458,
-0.3392167091369629,
-0.6180239915847778,
-0.45099377632141113,
-0.43892374634742737,
0.2560374140739441,
0.8154169321060181,
-0.605558454990387,
0.513057291507721,
0.45877930521965027,
0.0026788937393575907,
-0.7716317772865295,
-0.7583193778991699,
-0.1406625211238861,
-0.5252601504325867,
-0.6423007845878601,
0.31117162108421326,
-0.15204967558383942,
-0.06787048280239105,
-0.16327208280563354,
0.10105817019939423,
-0.31376710534095764,
0.218904048204422,
0.18868125975131989,
0.5137076377868652,
-0.0971924439072609,
0.055647313594818115,
0.15002816915512085,
0.06481097638607025,
0.06889522820711136,
-0.030456606298685074,
0.7565975785255432,
-0.3850388526916504,
0.03786631301045418,
-0.5186684131622314,
0.3745615482330322,
0.4307515025138855,
-0.4866674542427063,
0.9890007376670837,
0.8506813645362854,
-0.29265376925468445,
-0.04498271644115448,
-0.42191365361213684,
-0.2663910388946533,
-0.5166091918945312,
0.513586699962616,
-0.35778629779815674,
-0.7448452711105347,
0.7425095438957214,
0.3294738829135895,
0.03352794051170349,
0.8239781856536865,
0.5287652015686035,
-0.16994793713092804,
1.293267011642456,
0.2921319603919983,
-0.07484187930822372,
0.38380447030067444,
-1.0711190700531006,
0.24012158811092377,
-1.2033543586730957,
-0.4610569179058075,
-0.4724847674369812,
-0.4074555039405823,
-0.599040687084198,
-0.3057769238948822,
0.2791594862937927,
0.45307761430740356,
-0.20151476562023163,
0.6246477365493774,
-0.6436269283294678,
0.23812338709831238,
0.4872986674308777,
0.5236493945121765,
0.07960782200098038,
-0.062480270862579346,
0.3374187648296356,
0.005606001242995262,
-0.7029688358306885,
-0.5509342551231384,
1.2418878078460693,
0.6032590866088867,
0.5677592158317566,
0.47586798667907715,
0.7520155906677246,
0.163711279630661,
0.07267937809228897,
-0.8338136672973633,
0.4001041650772095,
0.14152680337429047,
-0.9238877892494202,
-0.2497907280921936,
-0.3352977931499481,
-1.1142911911010742,
0.4290170967578888,
-0.19589918851852417,
-1.067525029182434,
0.2884328067302704,
0.02320210635662079,
-0.3861203193664551,
0.23885269463062286,
-0.7692252397537231,
0.7908182740211487,
0.015320264734327793,
-0.4264509379863739,
-0.07268752157688141,
-0.6584870219230652,
0.35186007618904114,
-0.02396748587489128,
-0.23379340767860413,
-0.1379624903202057,
0.17515428364276886,
0.8921716213226318,
-0.2400778830051422,
0.7157790660858154,
-0.33566808700561523,
-0.10147175937891006,
0.5827621817588806,
-0.07351759821176529,
0.5130687952041626,
0.3975284993648529,
-0.13902345299720764,
0.4906367063522339,
0.4327964782714844,
-0.5078890919685364,
-0.6396339535713196,
0.7974880933761597,
-0.966177761554718,
-0.587744414806366,
-0.49362435936927795,
-0.6408753395080566,
0.007767383009195328,
0.177286759018898,
0.21741309762001038,
0.5077977776527405,
0.2414548248052597,
0.49644607305526733,
0.6481680274009705,
0.04228426516056061,
0.46903568506240845,
0.6941895484924316,
-0.10220447927713394,
-0.30174604058265686,
0.7180497050285339,
0.13773858547210693,
0.12686577439308167,
0.4216656982898712,
-0.08257520198822021,
-0.6943963766098022,
-0.6356090903282166,
-0.5113810300827026,
0.16540606319904327,
-0.7499046325683594,
-0.510638415813446,
-1.2105488777160645,
-0.3486785888671875,
-0.499141126871109,
0.36080652475357056,
-0.3980604112148285,
-0.6515412926673889,
-0.5788013339042664,
-0.19563300907611847,
0.5843409299850464,
0.39915311336517334,
0.09245377033948898,
0.22854042053222656,
-1.0023267269134521,
0.10278928279876709,
0.3405968248844147,
0.04914223030209541,
-0.026292098686099052,
-0.6416168212890625,
-0.2950054109096527,
0.3404158055782318,
-0.594792902469635,
-1.077316403388977,
0.6611809134483337,
-0.050554122775793076,
0.5438255667686462,
0.06994862109422684,
0.07872838526964188,
0.6322770714759827,
-0.1492939591407776,
1.0641065835952759,
-0.1314050853252411,
-0.9759711027145386,
0.5539426803588867,
-0.2769545018672943,
0.16313378512859344,
0.5752160549163818,
0.4732927680015564,
0.04857833310961723,
-0.29882413148880005,
-0.8392024636268616,
-1.0822938680648804,
0.7608072757720947,
0.44476181268692017,
0.05198816955089569,
-0.028993714600801468,
0.14257465302944183,
-0.03776884824037552,
0.2566085159778595,
-0.6823696494102478,
-0.3816882073879242,
-0.2799985110759735,
-0.21309132874011993,
-0.0588199682533741,
-0.15175709128379822,
-0.12952741980552673,
-0.5289520621299744,
0.8248752355575562,
-0.18023371696472168,
0.504952073097229,
0.4021283686161041,
-0.2763513922691345,
0.2684020400047302,
0.22121386229991913,
0.5255381464958191,
0.7446083426475525,
-0.6926318407058716,
-0.1266607642173767,
0.38566091656684875,
-0.367984414100647,
0.18886274099349976,
0.33936575055122375,
-0.12485574185848236,
0.033688023686409,
0.2483220398426056,
0.7796121835708618,
-0.150718092918396,
-0.6478167772293091,
0.5624025464057922,
-0.1559005230665207,
-0.3646872937679291,
-0.48291778564453125,
0.03474562242627144,
-0.005127487704157829,
0.6292519569396973,
0.39251264929771423,
0.08291588723659515,
0.23178158700466156,
-0.5271611213684082,
0.0947321206331253,
0.3454180955886841,
-0.4143320620059967,
-0.3184220790863037,
0.7828896045684814,
-0.03640422224998474,
-0.18450908362865448,
0.7873062491416931,
-0.20430748164653778,
-0.6226606369018555,
0.8516840934753418,
0.5047176480293274,
0.9412972927093506,
-0.10613100230693817,
0.384687602519989,
0.6481285095214844,
0.21784090995788574,
-0.03236064314842224,
0.5627739429473877,
0.0828651562333107,
-0.6442524790763855,
-0.276708722114563,
-0.6289080381393433,
-0.15498578548431396,
0.22665733098983765,
-0.9634752869606018,
0.16608746349811554,
-0.04044969007372856,
-0.15783724188804626,
-0.06007368117570877,
0.184102863073349,
-1.0128763914108276,
0.09801045060157776,
-0.3223680555820465,
0.9408288598060608,
-0.7752687931060791,
0.9604601860046387,
0.5796817541122437,
-0.6300246119499207,
-1.0603680610656738,
-0.312815397977829,
-0.3286287188529968,
-0.8162556290626526,
0.7815184593200684,
0.2218923717737198,
0.09133397042751312,
0.22714045643806458,
-0.5472438931465149,
-0.9446108341217041,
1.6570817232131958,
0.1644357293844223,
-0.5946775674819946,
-0.062178898602724075,
-0.03323439508676529,
0.7292134761810303,
-0.4163878858089447,
0.4518683850765228,
0.7004567980766296,
0.2467917650938034,
-0.10899266600608826,
-0.6201074123382568,
0.0901317298412323,
-0.3526928722858429,
-0.06841859966516495,
0.06914549320936203,
-0.774937629699707,
1.1508187055587769,
-0.21034111082553864,
-0.1505388617515564,
0.2734522819519043,
0.5215691328048706,
0.38317275047302246,
0.12130346894264221,
0.43348419666290283,
0.5425901412963867,
0.6345118284225464,
-0.26686617732048035,
0.9550068974494934,
-0.26330968737602234,
0.8431291580200195,
0.9979737401008606,
-0.14108261466026306,
1.0266780853271484,
0.5862119197845459,
-0.39761027693748474,
0.6921983957290649,
0.6455158591270447,
-0.20158419013023376,
0.7598378658294678,
0.08872221410274506,
-0.0320465974509716,
0.026939518749713898,
0.17004375159740448,
-0.4616595506668091,
0.5940629243850708,
0.11274819821119308,
-0.4125621020793915,
-0.06353352963924408,
-0.06369885802268982,
0.037716273218393326,
-0.26972562074661255,
0.08798875659704208,
0.6292926073074341,
-0.18133534491062164,
-0.6041003465652466,
0.9327392578125,
-0.09576719999313354,
0.5845169425010681,
-0.639958918094635,
-0.17124783992767334,
-0.21693269908428192,
0.31702932715415955,
-0.16203545033931732,
-0.7971928715705872,
0.1684349775314331,
-0.06764968484640121,
-0.14764830470085144,
-0.07720912992954254,
0.366304874420166,
-0.4413899779319763,
-0.48191580176353455,
0.29723936319351196,
0.5501454472541809,
0.13531510531902313,
-0.23378857970237732,
-0.8932024240493774,
0.08007387816905975,
0.06662294268608093,
-0.3908504247665405,
0.22517141699790955,
0.13167445361614227,
0.25929880142211914,
0.6827520728111267,
0.546218752861023,
-0.09936899691820145,
0.12705658376216888,
-0.23118427395820618,
1.050408959388733,
-0.5126880407333374,
-0.2769054174423218,
-0.7250731587409973,
0.7561032772064209,
-0.11805349588394165,
-0.38088369369506836,
0.8022661209106445,
0.6599946022033691,
0.7407996654510498,
-0.2970077395439148,
0.5825498104095459,
-0.3410089313983917,
0.37450993061065674,
-0.732769250869751,
0.6588538289070129,
-0.6046375632286072,
0.2227071076631546,
-0.13906382024288177,
-1.1212297677993774,
-0.05743176490068436,
0.5026777982711792,
-0.04721697047352791,
-0.032223865389823914,
0.789040207862854,
0.9820546507835388,
-0.035401295870542526,
-0.023763827979564667,
0.06494680792093277,
0.083636574447155,
0.5671313405036926,
0.773249089717865,
0.8603261113166809,
-1.0696666240692139,
0.5540357232093811,
-0.5141029953956604,
-0.11675768345594406,
-0.03622514009475708,
-0.6302907466888428,
-0.9693160057067871,
-0.7425758242607117,
-0.3218614459037781,
-0.5126226544380188,
-0.04448545724153519,
0.9287251234054565,
0.8014532327651978,
-0.8158673048019409,
0.1649724543094635,
-0.0138320317491889,
-0.014844737015664577,
-0.5518397688865662,
-0.33217909932136536,
0.6413472890853882,
-0.10081200301647186,
-1.2840033769607544,
0.38753610849380493,
-0.23373311758041382,
0.13971881568431854,
-0.4030205011367798,
-0.08767934888601303,
-0.5663972496986389,
-0.13773971796035767,
0.6322473287582397,
0.027454104274511337,
-0.5594722628593445,
-0.33928969502449036,
0.1904289722442627,
-0.004220155067741871,
0.1456771343946457,
0.27456286549568176,
-0.8155766725540161,
0.30282795429229736,
0.6033109426498413,
0.35767292976379395,
0.718371570110321,
-0.04322853684425354,
0.32808366417884827,
-0.5637245178222656,
0.2998795807361603,
0.31657272577285767,
0.48227477073669434,
0.18280281126499176,
-0.4943651854991913,
0.6979842185974121,
-0.10358605533838272,
-0.6530901789665222,
-0.7974875569343567,
0.019282475113868713,
-1.2452689409255981,
-0.12718887627124786,
1.1500916481018066,
-0.47896385192871094,
-0.28239476680755615,
0.020276641473174095,
-0.3917503356933594,
0.26538920402526855,
-0.5823057889938354,
1.0021839141845703,
0.565312922000885,
0.14014355838298798,
-0.20379526913166046,
-0.6365755200386047,
0.37470561265945435,
0.5003369450569153,
-0.7706892490386963,
-0.32589468359947205,
0.24106915295124054,
0.39289307594299316,
0.17103032767772675,
0.4686394929885864,
-0.2782689332962036,
0.20875681936740875,
-0.10323525965213776,
-0.1234906017780304,
-0.303246408700943,
-0.37146881222724915,
-0.43071237206459045,
0.07593534886837006,
-0.15036094188690186,
-0.5664476156234741
] |
databricks/dolly-v2-3b | databricks | "2023-06-30T18:33:24Z" | 85,920 | 246 | transformers | [
"transformers",
"pytorch",
"gpt_neox",
"text-generation",
"en",
"dataset:databricks/databricks-dolly-15k",
"license:mit",
"has_space",
"text-generation-inference",
"region:us"
] | text-generation | "2023-04-13T05:20:15Z" | ---
license: mit
language:
- en
library_name: transformers
inference: false
datasets:
- databricks/databricks-dolly-15k
---
# dolly-v2-3b Model Card
## Summary
Databricks' `dolly-v2-3b`, an instruction-following large language model trained on the Databricks machine learning platform
that is licensed for commercial use. Based on `pythia-2.8b`, Dolly is trained on ~15k instruction/response fine tuning records
[`databricks-dolly-15k`](https://github.com/databrickslabs/dolly/tree/master/data) generated
by Databricks employees in capability domains from the InstructGPT paper, including brainstorming, classification, closed QA, generation,
information extraction, open QA and summarization. `dolly-v2-3b` is not a state-of-the-art model, but does exhibit surprisingly
high quality instruction following behavior not characteristic of the foundation model on which it is based.
Dolly v2 is also available in these larger models sizes:
* [dolly-v2-12b](https://huggingface.co/databricks/dolly-v2-12b), a 12 billion parameter based on `pythia-12b`
* [dolly-v2-7b](https://huggingface.co/databricks/dolly-v2-7b), a 6.9 billion parameter based on `pythia-6.9b`
Please refer to the [dolly GitHub repo](https://github.com/databrickslabs/dolly#getting-started-with-response-generation) for tips on
running inference for various GPU configurations.
**Owner**: Databricks, Inc.
## Model Overview
`dolly-v2-3b` is a 2.8 billion parameter causal language model created by [Databricks](https://databricks.com/) that is derived from
[EleutherAI's](https://www.eleuther.ai/) [Pythia-2.8b](https://huggingface.co/EleutherAI/pythia-2.8b) and fine-tuned
on a [~15K record instruction corpus](https://github.com/databrickslabs/dolly/tree/master/data) generated by Databricks employees and released under a permissive license (CC-BY-SA)
## Usage
To use the model with the `transformers` library on a machine with GPUs, first make sure you have the `transformers` and `accelerate` libraries installed.
In a Databricks notebook you could run:
```python
%pip install "accelerate>=0.16.0,<1" "transformers[torch]>=4.28.1,<5" "torch>=1.13.1,<2"
```
The instruction following pipeline can be loaded using the `pipeline` function as shown below. This loads a custom `InstructionTextGenerationPipeline`
found in the model repo [here](https://huggingface.co/databricks/dolly-v2-3b/blob/main/instruct_pipeline.py), which is why `trust_remote_code=True` is required.
Including `torch_dtype=torch.bfloat16` is generally recommended if this type is supported in order to reduce memory usage. It does not appear to impact output quality.
It is also fine to remove it if there is sufficient memory.
```python
import torch
from transformers import pipeline
generate_text = pipeline(model="databricks/dolly-v2-3b", torch_dtype=torch.bfloat16, trust_remote_code=True, device_map="auto")
```
You can then use the pipeline to answer instructions:
```python
res = generate_text("Explain to me the difference between nuclear fission and fusion.")
print(res[0]["generated_text"])
```
Alternatively, if you prefer to not use `trust_remote_code=True` you can download [instruct_pipeline.py](https://huggingface.co/databricks/dolly-v2-3b/blob/main/instruct_pipeline.py),
store it alongside your notebook, and construct the pipeline yourself from the loaded model and tokenizer:
```python
import torch
from instruct_pipeline import InstructionTextGenerationPipeline
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("databricks/dolly-v2-3b", padding_side="left")
model = AutoModelForCausalLM.from_pretrained("databricks/dolly-v2-3b", device_map="auto", torch_dtype=torch.bfloat16)
generate_text = InstructionTextGenerationPipeline(model=model, tokenizer=tokenizer)
```
### LangChain Usage
To use the pipeline with LangChain, you must set `return_full_text=True`, as LangChain expects the full text to be returned
and the default for the pipeline is to only return the new text.
```python
import torch
from transformers import pipeline
generate_text = pipeline(model="databricks/dolly-v2-3b", torch_dtype=torch.bfloat16,
trust_remote_code=True, device_map="auto", return_full_text=True)
```
You can create a prompt that either has only an instruction or has an instruction with context:
```python
from langchain import PromptTemplate, LLMChain
from langchain.llms import HuggingFacePipeline
# template for an instrution with no input
prompt = PromptTemplate(
input_variables=["instruction"],
template="{instruction}")
# template for an instruction with input
prompt_with_context = PromptTemplate(
input_variables=["instruction", "context"],
template="{instruction}\n\nInput:\n{context}")
hf_pipeline = HuggingFacePipeline(pipeline=generate_text)
llm_chain = LLMChain(llm=hf_pipeline, prompt=prompt)
llm_context_chain = LLMChain(llm=hf_pipeline, prompt=prompt_with_context)
```
Example predicting using a simple instruction:
```python
print(llm_chain.predict(instruction="Explain to me the difference between nuclear fission and fusion.").lstrip())
```
Example predicting using an instruction with context:
```python
context = """George Washington (February 22, 1732[b] - December 14, 1799) was an American military officer, statesman,
and Founding Father who served as the first president of the United States from 1789 to 1797."""
print(llm_context_chain.predict(instruction="When was George Washington president?", context=context).lstrip())
```
## Known Limitations
### Performance Limitations
**`dolly-v2-3b` is not a state-of-the-art generative language model** and, though quantitative benchmarking is ongoing, is not designed to perform
competitively with more modern model architectures or models subject to larger pretraining corpuses.
The Dolly model family is under active development, and so any list of shortcomings is unlikely to be exhaustive, but we include known limitations and misfires here as a means to document and share our preliminary findings with the community.
In particular, `dolly-v2-3b` struggles with: syntactically complex prompts, programming problems, mathematical operations, factual errors,
dates and times, open-ended question answering, hallucination, enumerating lists of specific length, stylistic mimicry, having a sense of humor, etc.
Moreover, we find that `dolly-v2-3b` does not have some capabilities, such as well-formatted letter writing, present in the original model.
### Dataset Limitations
Like all language models, `dolly-v2-3b` reflects the content and limitations of its training corpuses.
- **The Pile**: GPT-J's pre-training corpus contains content mostly collected from the public internet, and like most web-scale datasets,
it contains content many users would find objectionable. As such, the model is likely to reflect these shortcomings, potentially overtly
in the case it is explicitly asked to produce objectionable content, and sometimes subtly, as in the case of biased or harmful implicit
associations.
- **`databricks-dolly-15k`**: The training data on which `dolly-v2-3b` is instruction tuned represents natural language instructions generated
by Databricks employees during a period spanning March and April 2023 and includes passages from Wikipedia as references passages
for instruction categories like closed QA and summarization. To our knowledge it does not contain obscenity, intellectual property or
personally identifying information about non-public figures, but it may contain typos and factual errors.
The dataset may also reflect biases found in Wikipedia. Finally, the dataset likely reflects
the interests and semantic choices of Databricks employees, a demographic which is not representative of the global population at large.
Databricks is committed to ongoing research and development efforts to develop helpful, honest and harmless AI technologies that
maximize the potential of all individuals and organizations.
### Benchmark Metrics
Below you'll find various models benchmark performance on the [EleutherAI LLM Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness);
model results are sorted by geometric mean to produce an intelligible ordering. As outlined above, these results demonstrate that `dolly-v2-3b` is not state of the art.
It underperforms `dolly-v1-6b` in the evaluation benchmarks, which is not surprising considering it has half the number of parameters.
| model | openbookqa | arc_easy | winogrande | hellaswag | arc_challenge | piqa | boolq | gmean |
| --------------------------------- | ------------ | ---------- | ------------ | ----------- | --------------- | -------- | -------- | ---------|
| EleutherAI/pythia-2.8b | 0.348 | 0.585859 | 0.589582 | 0.591217 | 0.323379 | 0.73395 | 0.638226 | 0.523431 |
| EleutherAI/pythia-6.9b | 0.368 | 0.604798 | 0.608524 | 0.631548 | 0.343857 | 0.761153 | 0.6263 | 0.543567 |
| databricks/dolly-v2-3b | 0.384 | 0.611532 | 0.589582 | 0.650767 | 0.370307 | 0.742655 | 0.575535 | 0.544886 |
| EleutherAI/pythia-12b | 0.364 | 0.627104 | 0.636148 | 0.668094 | 0.346416 | 0.760065 | 0.673394 | 0.559676 |
| EleutherAI/gpt-j-6B | 0.382 | 0.621633 | 0.651144 | 0.662617 | 0.363481 | 0.761153 | 0.655963 | 0.565936 |
| databricks/dolly-v2-12b | 0.408 | 0.63931 | 0.616417 | 0.707927 | 0.388225 | 0.757889 | 0.568196 | 0.56781 |
| databricks/dolly-v2-7b | 0.392 | 0.633838 | 0.607735 | 0.686517 | 0.406997 | 0.750816 | 0.644037 | 0.573487 |
| databricks/dolly-v1-6b | 0.41 | 0.62963 | 0.643252 | 0.676758 | 0.384812 | 0.773667 | 0.687768 | 0.583431 |
| EleutherAI/gpt-neox-20b | 0.402 | 0.683923 | 0.656669 | 0.7142 | 0.408703 | 0.784004 | 0.695413 | 0.602236 |
# Citation
```
@online{DatabricksBlog2023DollyV2,
author = {Mike Conover and Matt Hayes and Ankit Mathur and Jianwei Xie and Jun Wan and Sam Shah and Ali Ghodsi and Patrick Wendell and Matei Zaharia and Reynold Xin},
title = {Free Dolly: Introducing the World's First Truly Open Instruction-Tuned LLM},
year = {2023},
url = {https://www.databricks.com/blog/2023/04/12/dolly-first-open-commercially-viable-instruction-tuned-llm},
urldate = {2023-06-30}
}
```
# Happy Hacking! | [
-0.011771520599722862,
-1.0159281492233276,
0.1794610619544983,
0.35128629207611084,
-0.13243135809898376,
-0.08229687809944153,
0.008287587203085423,
-0.07281148433685303,
0.042848143726587296,
0.4682930111885071,
-0.49132803082466125,
-0.493202805519104,
-0.6593182682991028,
0.0773598924279213,
-0.5968601703643799,
1.138456106185913,
-0.10357815772294998,
-0.13371224701404572,
-0.4997897446155548,
0.23834209144115448,
-0.3570306897163391,
-0.32518187165260315,
-0.3025696277618408,
-0.16089458763599396,
0.28777050971984863,
0.30414819717407227,
0.7112072110176086,
0.7980539798736572,
0.35727787017822266,
0.33602407574653625,
-0.09889828413724899,
-0.06473804265260696,
-0.48558300733566284,
0.03539097681641579,
0.07269365340471268,
-0.4226100742816925,
-0.4814501106739044,
0.06711364537477493,
0.5991312861442566,
0.4528012275695801,
0.03891834244132042,
0.3095901906490326,
-0.024745948612689972,
0.7186623215675354,
-0.5526120662689209,
0.5001649856567383,
-0.44485852122306824,
-0.07818280160427094,
-0.16426855325698853,
0.009868867695331573,
-0.5774327516555786,
-0.47538259625434875,
-0.03291340544819832,
-0.5890317559242249,
0.305528849363327,
0.051022157073020935,
1.0432742834091187,
0.187344491481781,
-0.3486732244491577,
-0.18363629281520844,
-0.6101975440979004,
0.9859763383865356,
-0.528405487537384,
0.01772404834628105,
0.4678272008895874,
0.22693686187267303,
-0.3499317467212677,
-0.853757917881012,
-0.6967779994010925,
-0.18694663047790527,
-0.4783250391483307,
0.06141892448067665,
-0.27490052580833435,
-0.022723272442817688,
0.49870213866233826,
0.4960344731807709,
-0.7930454015731812,
-0.09270165860652924,
-0.8666612505912781,
-0.3292815089225769,
0.7139156460762024,
0.3505192995071411,
0.08040310442447662,
-0.6611607074737549,
-0.27903249859809875,
-0.3765287697315216,
-0.5522251725196838,
0.03347102180123329,
0.48617154359817505,
0.3069979250431061,
-0.5295785069465637,
0.7574821710586548,
-0.37273290753364563,
0.8332161903381348,
-0.13666190207004547,
-0.16676969826221466,
0.36724403500556946,
-0.09965038299560547,
-0.42943811416625977,
-0.15919806063175201,
0.9247647523880005,
0.2534204125404358,
0.10388493537902832,
0.0369059257209301,
-0.02212226204574108,
0.19016727805137634,
0.1943504363298416,
-0.85390704870224,
-0.4828869104385376,
0.5667849779129028,
-0.4741007089614868,
-0.5023254752159119,
-0.1598954051733017,
-0.9366746544837952,
-0.540040910243988,
-0.20034807920455933,
0.507063627243042,
-0.29910188913345337,
-0.28549325466156006,
-0.14609424769878387,
-0.08070016652345657,
0.30400997400283813,
0.16099810600280762,
-1.1462606191635132,
0.21269774436950684,
0.5471593737602234,
0.755305826663971,
-0.04159524664282799,
-0.19682501256465912,
-0.722969114780426,
-0.21208034455776215,
-0.15854302048683167,
0.46316713094711304,
-0.5034612417221069,
-0.3446194529533386,
0.12136217951774597,
0.19367638230323792,
-0.12810690701007843,
-0.538764476776123,
0.30561763048171997,
-0.3740520775318146,
0.5286091566085815,
-0.01072288490831852,
-0.5323692560195923,
-0.23513291776180267,
0.05931982025504112,
-0.5618736743927002,
1.1259567737579346,
0.5534336566925049,
-0.7402322888374329,
0.15714846551418304,
-0.16793763637542725,
-0.5201712250709534,
-0.16393955051898956,
-0.10279247164726257,
-0.622613251209259,
-0.07473514974117279,
0.2967936396598816,
0.7252618670463562,
-0.4878997206687927,
0.3018387258052826,
-0.0038808875251561403,
-0.23669598996639252,
0.08114244043827057,
-0.39839431643486023,
1.0801798105239868,
0.13679352402687073,
-0.39501869678497314,
0.16874338686466217,
-0.9940983057022095,
-0.04061053320765495,
0.13254402577877045,
-0.3938944637775421,
0.3468652069568634,
-0.3153415620326996,
0.23198148608207703,
0.027628902345895767,
0.26108625531196594,
-0.40214720368385315,
0.2977418601512909,
-0.2882935702800751,
0.12167039513587952,
0.7065871953964233,
-0.41612356901168823,
0.3678348660469055,
-0.48793908953666687,
0.5659943222999573,
-0.004202301613986492,
0.08965030312538147,
-0.3350018560886383,
-0.7981415390968323,
-1.019120693206787,
-0.19256195425987244,
0.2598338723182678,
0.6538776159286499,
-0.6487047076225281,
0.34017521142959595,
-0.176828995347023,
-0.5380685925483704,
-0.5735322833061218,
0.07848744839429855,
0.49959760904312134,
0.6301084756851196,
0.7398746609687805,
-0.1321049928665161,
-0.6582291722297668,
-0.8460743427276611,
0.016475317999720573,
-0.40909770131111145,
-0.26133993268013,
0.1856299638748169,
0.5477451682090759,
-0.05814998969435692,
0.8500967025756836,
-0.5312355756759644,
-0.11073797196149826,
-0.5387814044952393,
0.17025873064994812,
0.5126798748970032,
0.6494501829147339,
0.2140437215566635,
-0.5589348673820496,
-0.5165961980819702,
0.07472662627696991,
-0.8579778075218201,
0.08825094997882843,
-0.18975597620010376,
-0.08528302609920502,
0.5705846548080444,
0.24823004007339478,
-0.8785825967788696,
0.6758812069892883,
0.6583064794540405,
-0.3803804814815521,
0.711223840713501,
-0.14126215875148773,
-0.012575688771903515,
-1.1903531551361084,
0.18015167117118835,
-0.1553829163312912,
0.007128599099814892,
-0.5440281629562378,
-0.13108903169631958,
0.048057179898023605,
0.046388838440179825,
-0.3601294159889221,
0.8305060863494873,
-0.19316846132278442,
0.01491327304393053,
-0.058178696781396866,
0.1171213835477829,
0.1494404673576355,
0.5176010727882385,
0.027809496968984604,
0.3804005980491638,
0.7714337706565857,
-0.6977474093437195,
0.8563670516014099,
0.40824398398399353,
-0.46255120635032654,
0.36894941329956055,
-0.600681483745575,
0.12191081047058105,
-0.1754833161830902,
0.30733543634414673,
-0.9057522416114807,
-0.4051070213317871,
0.3681631088256836,
-0.41774091124534607,
0.5533225536346436,
-0.2515803873538971,
-0.3597607910633087,
-0.5309908986091614,
-0.11630132049322128,
0.13292653858661652,
0.9021816849708557,
-0.5491054654121399,
0.7215481996536255,
0.12024414539337158,
-0.09474331885576248,
-0.7416220307350159,
-0.6155818700790405,
-0.22549298405647278,
-0.25849050283432007,
-0.8790392875671387,
0.3780335783958435,
0.17924335598945618,
-0.19653083384037018,
-0.1776406168937683,
0.02094384841620922,
0.06380744278430939,
-0.2647590637207031,
0.1179940328001976,
0.4777781069278717,
-0.12090145796537399,
0.08374063670635223,
0.01634383387863636,
-0.3975277841091156,
0.10540727525949478,
-0.21356861293315887,
0.5898527503013611,
-0.054485585540533066,
0.09952890127897263,
-0.6027578115463257,
0.023416083306074142,
0.5139973759651184,
0.05605986714363098,
0.8956341743469238,
0.9468183517456055,
-0.1871543973684311,
0.08433230966329575,
-0.5881693363189697,
-0.32636937499046326,
-0.5019969940185547,
0.5283131003379822,
-0.18923373520374298,
-0.38846883177757263,
0.3734862208366394,
0.14199797809123993,
0.09932903945446014,
0.5183017253875732,
0.6079295873641968,
-0.035302355885505676,
0.6329179406166077,
0.37322482466697693,
-0.01108577847480774,
0.1855008453130722,
-0.7097070813179016,
0.09996408969163895,
-0.8609549403190613,
-0.5029599666595459,
-0.5239131450653076,
-0.3397853970527649,
-0.8256585597991943,
-0.6245079636573792,
0.11507188528776169,
0.09455901384353638,
-0.36674708127975464,
0.553985595703125,
-0.4531500041484833,
0.1802208423614502,
0.6488397717475891,
-0.006017749663442373,
0.014927132986485958,
0.05102863535284996,
-0.03001641295850277,
0.1589415818452835,
-0.716924786567688,
-0.6134997010231018,
1.2104905843734741,
0.250334769487381,
0.8642335534095764,
-0.03162750229239464,
0.42311856150627136,
-0.0585150420665741,
0.21625708043575287,
-0.5630104541778564,
0.5667144060134888,
-0.07925239205360413,
-0.7992300391197205,
-0.17886698246002197,
-0.5800480842590332,
-1.0157866477966309,
0.048739124089479446,
-0.1848694235086441,
-1.097785472869873,
-0.006540258415043354,
0.23881134390830994,
-0.25761258602142334,
0.3195643126964569,
-0.7866652011871338,
1.1147600412368774,
0.03417481482028961,
-0.634515106678009,
-0.11409707367420197,
-0.7488810420036316,
0.28842270374298096,
0.28326866030693054,
0.09135203808546066,
-0.014503171667456627,
0.365919828414917,
0.7797961235046387,
-0.42015203833580017,
0.7058442831039429,
-0.1549147367477417,
0.1534501016139984,
0.4007166624069214,
0.07191644608974457,
0.7141056656837463,
0.16851912438869476,
-0.24389691650867462,
0.02115049958229065,
-0.1046174019575119,
-0.6171517372131348,
-0.570522129535675,
0.7253507971763611,
-0.8131179809570312,
-0.6974613070487976,
-0.40948373079299927,
-0.6446305513381958,
0.08175060898065567,
-0.052929289638996124,
0.3844410181045532,
0.6821396946907043,
0.00032416690373793244,
0.30717989802360535,
0.48752403259277344,
-0.6120142340660095,
0.5328242182731628,
0.12075497210025787,
-0.45413172245025635,
-0.22400154173374176,
1.0200172662734985,
-0.16642501950263977,
0.31988412141799927,
0.5907278656959534,
0.3762645721435547,
-0.35642358660697937,
-0.24039381742477417,
-0.7652435898780823,
0.14675790071487427,
-0.7191197276115417,
-0.25267553329467773,
-0.8892801403999329,
-0.24020463228225708,
-0.36682212352752686,
-0.1968923658132553,
-0.43537819385528564,
-0.763905942440033,
-0.5093806982040405,
-0.07698751986026764,
0.7359086275100708,
0.7665501832962036,
0.0303330160677433,
0.34054678678512573,
-0.5888173580169678,
0.4082678258419037,
0.5139104127883911,
0.12035345286130905,
-0.09878984093666077,
-0.7109507322311401,
-0.26004287600517273,
-0.0012671049917116761,
-0.6396082043647766,
-0.6249729990959167,
0.3824664354324341,
-0.09683674573898315,
0.25669798254966736,
0.18441584706306458,
0.04780522361397743,
0.47012341022491455,
-0.17556023597717285,
0.9623450636863708,
0.074461929500103,
-0.8172968029975891,
0.5396775603294373,
-0.3375347852706909,
0.3964803218841553,
0.1389418989419937,
0.3749310076236725,
-0.31870603561401367,
-0.3467031717300415,
-0.6009970903396606,
-0.9201681613922119,
0.94834303855896,
0.6324805617332458,
0.318899542093277,
0.02958599478006363,
0.11304271966218948,
0.11902140825986862,
0.18205901980400085,
-0.8145052194595337,
-0.5584606528282166,
-0.2856777608394623,
-0.19466711580753326,
0.17531922459602356,
-0.12716960906982422,
-0.0725688561797142,
-0.42862075567245483,
0.9185439348220825,
0.12531940639019012,
0.4718884527683258,
-0.1312565952539444,
-0.11620251089334488,
-0.06566369533538818,
0.07886772602796555,
0.4361613988876343,
0.617315411567688,
-0.3058583736419678,
-0.08847243338823318,
0.21312397718429565,
-0.7132874727249146,
0.1376800835132599,
0.4180173873901367,
-0.13494108617305756,
-0.02068287506699562,
0.44375109672546387,
0.980505108833313,
-0.16919465363025665,
-0.29131633043289185,
0.36119821667671204,
-0.1691855639219284,
0.06871376931667328,
-0.19733095169067383,
0.12230029702186584,
0.10578372329473495,
0.15876169502735138,
0.2971839904785156,
0.021504156291484833,
-0.2319331020116806,
-0.5107654929161072,
0.07981665432453156,
0.2920233905315399,
-0.2657485604286194,
-0.1834353357553482,
0.7070522904396057,
0.19982822239398956,
-0.2928125262260437,
1.0552513599395752,
-0.2928285598754883,
-0.285030722618103,
0.8007493615150452,
0.5520628690719604,
0.8248279690742493,
-0.2268432229757309,
0.5111707448959351,
0.7630311846733093,
0.3267587125301361,
0.14129038155078888,
0.1869278848171234,
0.2590576112270355,
-0.38912564516067505,
-0.3072071373462677,
-0.9274483323097229,
-0.17521211504936218,
0.30431026220321655,
-0.5265819430351257,
0.7569983005523682,
-0.47609052062034607,
0.08891157060861588,
-0.18467694520950317,
0.07701892405748367,
-0.8640048503875732,
0.40976324677467346,
-0.043123509734869,
0.5552106499671936,
-0.6598236560821533,
0.7409297823905945,
0.40193483233451843,
-0.30135080218315125,
-0.7370049953460693,
-0.12293951958417892,
0.10988759994506836,
-0.6650635004043579,
0.592124342918396,
0.4508078992366791,
0.2952660620212555,
-0.06909449398517609,
-0.2219386100769043,
-0.9110479354858398,
1.1870019435882568,
0.2780657112598419,
-0.3508157730102539,
0.17807717621326447,
0.09869658946990967,
0.3469769060611725,
-0.3560207486152649,
0.69563227891922,
0.762283980846405,
0.46206632256507874,
0.1906069666147232,
-0.8846163749694824,
0.22841429710388184,
-0.2787293791770935,
-0.08134451508522034,
0.06984449177980423,
-0.5975453853607178,
1.0646073818206787,
-0.4289647936820984,
-0.20720751583576202,
0.3447161316871643,
0.7735465168952942,
0.2678922712802887,
0.2280646711587906,
0.1090378537774086,
0.5192432999610901,
0.8003060221672058,
-0.25463351607322693,
1.4138444662094116,
-0.23742333054542542,
0.48488837480545044,
0.8188396692276001,
0.19178271293640137,
0.6057324409484863,
0.28717702627182007,
-0.49939513206481934,
0.7951493859291077,
0.48400741815567017,
-0.011078204028308392,
0.4097398519515991,
0.40053629875183105,
-0.22086673974990845,
0.09476430714130402,
0.11148972064256668,
-0.6166605353355408,
0.46257084608078003,
0.41276660561561584,
-0.5035816431045532,
0.08991511166095734,
-0.2686925232410431,
0.25743407011032104,
-0.21804341673851013,
0.04058408737182617,
0.40191900730133057,
-0.022350959479808807,
-0.5997294783592224,
0.9505205154418945,
-0.02207142859697342,
0.4094245731830597,
-0.5569749474525452,
-0.09028034657239914,
-0.3593004047870636,
0.15126477181911469,
-0.3743545711040497,
-0.5800904631614685,
0.2822514474391937,
-0.01700448989868164,
-0.12753327190876007,
-0.10127434134483337,
0.355806440114975,
-0.37066712975502014,
-0.8380585312843323,
0.08907327800989151,
0.18481992185115814,
0.28327056765556335,
0.22535911202430725,
-0.4927057921886444,
0.3733347952365875,
0.04422498494386673,
-0.5449966192245483,
0.30675601959228516,
0.14757531881332397,
0.265739381313324,
0.6247280836105347,
0.42533978819847107,
-0.22551026940345764,
-0.02330262027680874,
-0.19564688205718994,
0.9357149004936218,
-0.5208892226219177,
-0.12116141617298126,
-0.7958042025566101,
1.0115324258804321,
-0.14239484071731567,
-0.4936170279979706,
0.6587085723876953,
0.6440642476081848,
0.8622325658798218,
-0.25080108642578125,
0.8362084031105042,
-0.49821707606315613,
0.23692186176776886,
-0.7002325654029846,
0.5239367485046387,
-0.4259466826915741,
0.35421666502952576,
-0.4737672209739685,
-1.2252023220062256,
-0.2821497917175293,
0.9253656268119812,
-0.3752085864543915,
0.3058851659297943,
0.9641752243041992,
1.1510448455810547,
-0.079909548163414,
0.15874728560447693,
0.21037927269935608,
0.46197691559791565,
0.2569514513015747,
0.3812626302242279,
0.63853520154953,
-0.7297033071517944,
0.7096892595291138,
-0.6180974245071411,
-0.3799924850463867,
-0.14922600984573364,
-0.8475330471992493,
-1.0620832443237305,
-0.6533440947532654,
-0.4480089843273163,
-0.6916407346725464,
-0.06910791248083115,
0.8502215147018433,
0.5933489203453064,
-0.8635004162788391,
-0.3877071440219879,
-0.23564854264259338,
0.3979840874671936,
-0.14813704788684845,
-0.2924514412879944,
0.6330963969230652,
-0.2224770337343216,
-0.8853510618209839,
0.28767356276512146,
0.14311526715755463,
0.02296731248497963,
-0.3687867224216461,
-0.11913061141967773,
-0.17307531833648682,
-0.13430985808372498,
0.47330495715141296,
0.12521183490753174,
-0.6332951188087463,
-0.0774109959602356,
0.029601937159895897,
0.04455630108714104,
-0.016954520717263222,
0.5513721704483032,
-1.018099308013916,
0.7069246768951416,
0.6145081520080566,
0.3371487259864807,
0.7999362945556641,
-0.1532517820596695,
0.6615003943443298,
-0.778963029384613,
0.32276105880737305,
0.16798563301563263,
0.2374836802482605,
0.6401616930961609,
-0.44004958868026733,
0.3791106939315796,
0.23708705604076385,
-0.6313750147819519,
-0.6249293088912964,
0.2991655766963959,
-0.7391206622123718,
-0.0787450447678566,
1.354137897491455,
-0.15272045135498047,
-0.29188114404678345,
-0.20528243482112885,
-0.19170118868350983,
0.27762988209724426,
-0.3329505920410156,
1.0186177492141724,
0.4666244685649872,
-0.10912851989269257,
-0.05377427116036415,
-0.6455362439155579,
0.6026657819747925,
0.3664700984954834,
-0.7199718356132507,
0.19072917103767395,
0.2548834979534149,
-0.06601348519325256,
0.27712252736091614,
0.4699063301086426,
-0.04404689371585846,
0.2878970205783844,
0.28227248787879944,
-0.07815135270357132,
0.07798942178487778,
-0.41336721181869507,
-0.07597608119249344,
-0.08074289560317993,
-0.39432278275489807,
-0.11585276573896408
] |
NousResearch/Llama-2-7b-hf | NousResearch | "2023-08-26T20:16:26Z" | 85,780 | 91 | transformers | [
"transformers",
"pytorch",
"safetensors",
"llama",
"text-generation",
"facebook",
"meta",
"llama-2",
"en",
"has_space",
"text-generation-inference",
"region:us"
] | text-generation | "2023-07-18T18:30:59Z" | ---
extra_gated_heading: Access Llama 2 on Hugging Face
extra_gated_description: >-
This is a form to enable access to Llama 2 on Hugging Face after you have been
granted access from Meta. Please visit the [Meta website](https://ai.meta.com/resources/models-and-libraries/llama-downloads) and accept our
license terms and acceptable use policy before submitting this form. Requests
will be processed in 1-2 days.
extra_gated_button_content: Submit
extra_gated_fields:
I agree to share my name, email address and username with Meta and confirm that I have already been granted download access on the Meta website: checkbox
language:
- en
pipeline_tag: text-generation
inference: false
tags:
- facebook
- meta
- pytorch
- llama
- llama-2
---
# **Llama 2**
Llama 2 is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 70 billion parameters. This is the repository for the 7B pretrained model, converted for the Hugging Face Transformers format. Links to other models can be found in the index at the bottom.
## Model Details
*Note: Use of this model is governed by the Meta license. In order to download the model weights and tokenizer, please visit the [website](https://ai.meta.com/resources/models-and-libraries/llama-downloads/) and accept our License before requesting access here.*
Meta developed and publicly released the Llama 2 family of large language models (LLMs), a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 70 billion parameters. Our fine-tuned LLMs, called Llama-2-Chat, are optimized for dialogue use cases. Llama-2-Chat models outperform open-source chat models on most benchmarks we tested, and in our human evaluations for helpfulness and safety, are on par with some popular closed-source models like ChatGPT and PaLM.
**Model Developers** Meta
**Variations** Llama 2 comes in a range of parameter sizes — 7B, 13B, and 70B — as well as pretrained and fine-tuned variations.
**Input** Models input text only.
**Output** Models generate text only.
**Model Architecture** Llama 2 is an auto-regressive language model that uses an optimized transformer architecture. The tuned versions use supervised fine-tuning (SFT) and reinforcement learning with human feedback (RLHF) to align to human preferences for helpfulness and safety.
||Training Data|Params|Content Length|GQA|Tokens|LR|
|---|---|---|---|---|---|---|
|Llama 2|*A new mix of publicly available online data*|7B|4k|✗|2.0T|3.0 x 10<sup>-4</sup>|
|Llama 2|*A new mix of publicly available online data*|13B|4k|✗|2.0T|3.0 x 10<sup>-4</sup>|
|Llama 2|*A new mix of publicly available online data*|70B|4k|✔|2.0T|1.5 x 10<sup>-4</sup>|
*Llama 2 family of models.* Token counts refer to pretraining data only. All models are trained with a global batch-size of 4M tokens. Bigger models - 70B -- use Grouped-Query Attention (GQA) for improved inference scalability.
**Model Dates** Llama 2 was trained between January 2023 and July 2023.
**Status** This is a static model trained on an offline dataset. Future versions of the tuned models will be released as we improve model safety with community feedback.
**License** A custom commercial license is available at: [https://ai.meta.com/resources/models-and-libraries/llama-downloads/](https://ai.meta.com/resources/models-and-libraries/llama-downloads/)
## 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.2247832715511322,
-0.7174652218818665,
0.3778895437717438,
0.20472846925258636,
-0.3863432705402374,
0.2233731597661972,
-0.04494568705558777,
-0.7703648209571838,
0.06417825073003769,
0.32308411598205566,
-0.7128002047538757,
-0.5796033143997192,
-0.6881774663925171,
0.07986540347337723,
-0.2316972017288208,
1.1014000177383423,
-0.016394132748246193,
-0.29040083289146423,
-0.13962428271770477,
0.08763744682073593,
-0.5036013126373291,
-0.41311419010162354,
-0.5417141914367676,
-0.4403661787509918,
0.4155871570110321,
0.4908732771873474,
0.6229364275932312,
0.669840395450592,
0.5605686902999878,
0.24782909452915192,
-0.26403120160102844,
0.21319083869457245,
-0.713082492351532,
-0.2856517434120178,
0.11872587352991104,
-0.5084489583969116,
-0.7043741345405579,
0.17890924215316772,
0.355303019285202,
0.1818935126066208,
-0.3005734980106354,
0.5477966070175171,
0.06140729784965515,
0.47870901226997375,
-0.5783377289772034,
0.16870033740997314,
-0.7399247884750366,
0.036051180213689804,
-0.2291262447834015,
-0.08285307884216309,
-0.1920529156923294,
-0.2995085120201111,
-0.19659730792045593,
-0.8524847030639648,
-0.11481829732656479,
0.08440244942903519,
1.0622984170913696,
0.6703996062278748,
-0.4693954288959503,
-0.12186363339424133,
-0.2894403636455536,
0.9704551696777344,
-0.8712401986122131,
0.05199276655912399,
0.6027843952178955,
0.2878831624984741,
-0.2247767448425293,
-0.7816832661628723,
-0.6661603450775146,
-0.1455615758895874,
0.06052771955728531,
0.3614458739757538,
-0.4137205481529236,
0.004535703454166651,
0.1845555603504181,
0.38489803671836853,
-0.5896680951118469,
0.5824394226074219,
-0.5336337089538574,
-0.16928677260875702,
1.0880461931228638,
0.23375141620635986,
0.003226857166737318,
-0.05342363193631172,
-0.5129058361053467,
-0.2985783815383911,
-0.8328774571418762,
0.1826893836259842,
0.49846404790878296,
-0.04558698832988739,
-0.4775715172290802,
0.6347090005874634,
-0.40410396456718445,
0.2978927791118622,
0.014484582468867302,
-0.5135654807090759,
0.504654049873352,
-0.4831794202327728,
-0.28916704654693604,
-0.11457891762256622,
0.9091852307319641,
0.7501600384712219,
0.16480425000190735,
0.11150191724300385,
-0.06559198349714279,
0.11457736790180206,
-0.002287660026922822,
-0.8281427025794983,
-0.04371875151991844,
0.24436844885349274,
-0.38292524218559265,
-0.5932620167732239,
-0.3039016127586365,
-0.759250819683075,
-0.16767993569374084,
-0.09506597369909286,
0.25558197498321533,
-0.02638053707778454,
-0.4020766019821167,
0.1249881386756897,
0.05101543664932251,
0.5693640112876892,
0.2087528258562088,
-0.9632641673088074,
0.22241441905498505,
0.5627697706222534,
0.8018579483032227,
-0.24636618793010712,
-0.3752676844596863,
0.015593360178172588,
-0.01654999330639839,
-0.3365735709667206,
0.9196596145629883,
-0.3413566052913666,
-0.5647215843200684,
-0.22914005815982819,
-0.01791958138346672,
0.17242181301116943,
-0.5396819114685059,
0.44088464975357056,
-0.3960834741592407,
0.1668493002653122,
-0.34028390049934387,
-0.36466318368911743,
-0.357121080160141,
0.19823680818080902,
-0.4156441390514374,
1.4912035465240479,
0.11639241129159927,
-0.49649959802627563,
0.3256832957267761,
-0.6995698809623718,
-0.19246844947338104,
-0.2158939093351364,
0.10917337238788605,
-0.5459079146385193,
-0.27921804785728455,
0.12890014052391052,
0.38345956802368164,
-0.6472228169441223,
0.49963057041168213,
-0.20688429474830627,
-0.44877344369888306,
0.03634526580572128,
-0.4190400540828705,
0.874973714351654,
0.2978964149951935,
-0.47305771708488464,
0.07405572384595871,
-0.8561553955078125,
0.044878456741571426,
0.4695684313774109,
-0.4912048578262329,
0.26417219638824463,
0.07808142900466919,
-0.1206764280796051,
0.19849088788032532,
0.49821698665618896,
-0.3671610951423645,
0.16903522610664368,
-0.31512129306793213,
0.5149251222610474,
0.7729547023773193,
0.04804444685578346,
0.17101050913333893,
-0.533958911895752,
0.5338106751441956,
-0.03652539104223251,
0.4031484127044678,
0.012454474344849586,
-0.7357802987098694,
-1.049620509147644,
-0.18172694742679596,
-0.04999332129955292,
0.8642888069152832,
-0.25805795192718506,
0.7071031332015991,
-0.008144587278366089,
-0.7577204704284668,
-0.4273742139339447,
0.3775334358215332,
0.680936872959137,
0.5113818049430847,
0.4475289583206177,
-0.28588634729385376,
-0.6227297782897949,
-1.034417986869812,
0.05499653145670891,
-0.4556862413883209,
-0.010312777943909168,
0.3655655086040497,
0.6742486953735352,
-0.3484761416912079,
0.7474064230918884,
-0.5465536713600159,
-0.18145820498466492,
-0.2715676724910736,
-0.13096483051776886,
0.0708337277173996,
0.3623884320259094,
0.6709721088409424,
-0.40976518392562866,
-0.21079331636428833,
-0.12836122512817383,
-0.9345601797103882,
-0.10118253529071808,
0.1026301309466362,
-0.21270406246185303,
0.24159906804561615,
0.3250347077846527,
-0.6327871680259705,
0.4683801829814911,
0.7276141047477722,
-0.18570655584335327,
0.526606559753418,
-0.0066091930493712425,
-0.18189002573490143,
-1.1031357049942017,
0.04670798033475876,
-0.21079866588115692,
0.02989047020673752,
-0.44396689534187317,
-0.029740512371063232,
-0.21570511162281036,
0.07565933465957642,
-0.6432065963745117,
0.6090224981307983,
-0.32292577624320984,
-0.1754925400018692,
-0.1266864538192749,
0.05222579464316368,
0.06274989992380142,
0.6228288412094116,
-0.1335909068584442,
1.1040276288986206,
0.413650244474411,
-0.6092421412467957,
0.2684653103351593,
0.40603601932525635,
-0.5069717764854431,
0.149399995803833,
-0.8974587917327881,
0.3772052824497223,
0.10452974587678909,
0.5370959043502808,
-0.9762222170829773,
-0.38069668412208557,
0.3307833671569824,
-0.4477542042732239,
0.0920187458395958,
0.25142747163772583,
-0.5646719336509705,
-0.4177844226360321,
-0.4361427128314972,
0.3185734748840332,
0.828417956829071,
-0.4693186581134796,
0.1897992342710495,
0.38797709345817566,
0.027083802968263626,
-0.7103642225265503,
-0.872409999370575,
0.06246989592909813,
-0.38295242190361023,
-0.5462387800216675,
0.3122243285179138,
-0.19579638540744781,
-0.24553517997264862,
-0.2581446170806885,
0.07098480314016342,
-0.012549054808914661,
0.4049244225025177,
0.37805014848709106,
0.38522306084632874,
-0.11223753541707993,
-0.02358740195631981,
0.14673660695552826,
-0.21081557869911194,
0.053924061357975006,
0.22822189331054688,
0.5972360372543335,
-0.16997894644737244,
-0.22407925128936768,
-0.747724711894989,
0.05430527403950691,
0.3010166883468628,
-0.2704584300518036,
0.6240242123603821,
0.43898236751556396,
-0.23608025908470154,
0.238822802901268,
-0.7825425267219543,
-0.10647181421518326,
-0.5454625487327576,
0.5524575114250183,
-0.2143884152173996,
-0.8447311520576477,
0.546405017375946,
-0.003486327361315489,
0.4459097981452942,
0.7716009616851807,
0.6322798728942871,
-0.08551625907421112,
0.820433497428894,
0.5987363457679749,
-0.0793096199631691,
0.3428349494934082,
-0.515253484249115,
-0.09570414572954178,
-0.9728610515594482,
-0.6400078535079956,
-0.3232131898403168,
-0.43927839398384094,
-0.6812324523925781,
-0.4276762008666992,
0.27126482129096985,
0.2007703334093094,
-0.6990642547607422,
0.3291454017162323,
-0.5935287475585938,
0.580684244632721,
0.5519753098487854,
0.13555921614170074,
0.3123369514942169,
0.09691452234983444,
0.15606217086315155,
0.06865770369768143,
-0.5364503860473633,
-0.7572882175445557,
1.514554738998413,
0.43410375714302063,
0.4617731273174286,
0.10066262632608414,
0.7055721879005432,
0.1511443853378296,
0.3454742431640625,
-0.7299854159355164,
0.6729487776756287,
0.05232951045036316,
-0.7447242736816406,
-0.14890064299106598,
-0.11639494448900223,
-0.921167254447937,
0.1411171406507492,
-0.21398988366127014,
-0.7950571775436401,
0.03135360777378082,
-0.02574162930250168,
-0.3851846158504486,
0.2936946451663971,
-0.6847829818725586,
0.6180247068405151,
-0.5840561985969543,
-0.3184365928173065,
-0.3672753870487213,
-0.8161526322364807,
0.693006694316864,
-0.20511490106582642,
0.10463705658912659,
-0.5026188492774963,
-0.26020997762680054,
0.9187661409378052,
-0.33846861124038696,
1.0277310609817505,
-0.049615874886512756,
-0.1006304994225502,
0.598402202129364,
-0.19838428497314453,
0.4566420614719391,
0.034530479460954666,
-0.2839621305465698,
0.6945130825042725,
-0.13662569224834442,
-0.3241720199584961,
-0.15252143144607544,
0.5490585565567017,
-1.2385567426681519,
-0.8185364007949829,
-0.5274825096130371,
-0.5233973860740662,
-0.021045394241809845,
0.0953889712691307,
0.521816611289978,
-0.10112916678190231,
-0.032979048788547516,
0.12384947389364243,
0.4670369625091553,
-0.5348578095436096,
0.4910668134689331,
0.5552805066108704,
-0.1103057712316513,
-0.46895506978034973,
0.6753272414207458,
0.057668644934892654,
0.3709341585636139,
0.21807128190994263,
0.04972118139266968,
-0.4230855703353882,
-0.4311444163322449,
-0.5261809229850769,
0.28247886896133423,
-0.477721244096756,
-0.49789702892303467,
-0.5437982082366943,
-0.3600677251815796,
-0.3365858495235443,
-0.08051200956106186,
-0.44309449195861816,
-0.43106797337532043,
-0.7690913081169128,
-0.4108707904815674,
0.5293785333633423,
0.8401432037353516,
-0.008615941740572453,
0.6483168005943298,
-0.3343770503997803,
0.18772807717323303,
0.3798946440219879,
0.17952997982501984,
-0.03725484386086464,
-0.7605696320533752,
0.05490892753005028,
0.12263022363185883,
-0.7808360457420349,
-0.6338624954223633,
0.2509324848651886,
0.2758721709251404,
0.4936044216156006,
0.48310256004333496,
-0.08396274596452713,
0.7874943614006042,
-0.3564055263996124,
1.1303277015686035,
0.3741934299468994,
-0.6791811585426331,
0.7185418009757996,
-0.22060662508010864,
0.047640904784202576,
0.6461725234985352,
0.28743311762809753,
-0.08542290329933167,
-0.15767361223697662,
-0.6497491002082825,
-0.7005255818367004,
0.812511682510376,
0.23036684095859528,
0.18597404658794403,
0.051596470177173615,
0.47657325863838196,
0.05414546653628349,
0.11393756419420242,
-0.8646241426467896,
-0.32149219512939453,
-0.2776522934436798,
-0.0981634184718132,
-0.21039709448814392,
-0.5197563171386719,
-0.06883528083562851,
-0.3194369673728943,
0.6535230278968811,
0.05422724038362503,
0.35837435722351074,
-0.12979954481124878,
0.014987434260547161,
-0.10048426687717438,
0.04766235500574112,
0.7402883172035217,
0.5185415148735046,
-0.2631237804889679,
-0.14547613263130188,
0.6614985466003418,
-0.6499524116516113,
0.3511507213115692,
0.00950499065220356,
-0.13739030063152313,
-0.38700252771377563,
0.4143766760826111,
0.8960192799568176,
0.26680973172187805,
-0.7246920466423035,
0.338920921087265,
0.14644388854503632,
-0.37654316425323486,
-0.43524855375289917,
0.3705119490623474,
0.09348157793283463,
0.3285823464393616,
0.27222007513046265,
-0.13946111500263214,
0.09185917675495148,
-0.5323433876037598,
-0.12704378366470337,
0.38726744055747986,
0.12732143700122833,
-0.4271676242351532,
1.018517017364502,
0.32811394333839417,
-0.29647740721702576,
0.5437086224555969,
-0.16967444121837616,
-0.3692856729030609,
0.9319199323654175,
0.6585238575935364,
0.6604094505310059,
-0.2924858629703522,
0.1228882446885109,
0.7282902598381042,
0.47001540660858154,
-0.23866534233093262,
0.24345147609710693,
-0.0036659156903624535,
-0.5073632001876831,
-0.21673600375652313,
-0.7048588395118713,
-0.4767487645149231,
0.3651808202266693,
-0.5898714661598206,
0.3150007426738739,
-0.6503801941871643,
-0.2796346843242645,
-0.3337961435317993,
0.46125441789627075,
-0.6892693638801575,
0.2250521183013916,
0.11246153712272644,
0.9413655400276184,
-0.7432090640068054,
0.7796372175216675,
0.5209277272224426,
-0.5260725021362305,
-0.9133766293525696,
-0.30549463629722595,
0.202664315700531,
-1.2527796030044556,
0.5413237810134888,
0.3986324071884155,
-0.07027748972177505,
0.12634383141994476,
-0.7745373249053955,
-1.2399921417236328,
1.742699146270752,
0.4705753028392792,
-0.7633337378501892,
-0.01918591558933258,
0.35053518414497375,
0.490617036819458,
-0.10369454324245453,
0.44998428225517273,
0.8375913500785828,
0.5077768564224243,
0.11119973659515381,
-1.0790903568267822,
0.09822870790958405,
-0.3597230613231659,
-0.038349300622940063,
-0.20121312141418457,
-1.3376624584197998,
0.8428090810775757,
-0.4105706810951233,
-0.24614672362804413,
0.21453523635864258,
0.6594800353050232,
0.701223611831665,
0.5779215693473816,
0.36312323808670044,
0.8167283535003662,
0.937838077545166,
-0.017857210710644722,
1.142829179763794,
-0.3631182014942169,
0.1831636130809784,
0.9041210412979126,
-0.2997865676879883,
0.9916189312934875,
0.25158798694610596,
-0.6042178273200989,
0.6246140003204346,
1.0359503030776978,
-0.019545458257198334,
0.5987512469291687,
0.06844116747379303,
-0.17820149660110474,
-0.18575501441955566,
-0.18119797110557556,
-0.6688867807388306,
0.5240088701248169,
0.24260231852531433,
-0.14882579445838928,
-0.028241366147994995,
-0.3397970497608185,
0.23715287446975708,
-0.33896681666374207,
-0.016406724229454994,
0.8106855750083923,
0.18231411278247833,
-0.6266031265258789,
0.8990842700004578,
0.0457359254360199,
0.8648616075515747,
-0.6630491018295288,
0.0826793909072876,
-0.5291351675987244,
0.003651827573776245,
-0.3810100853443146,
-0.7253890633583069,
0.08722278475761414,
0.3759460151195526,
-0.015208972617983818,
-0.11577018350362778,
0.5634823441505432,
0.05043793469667435,
-0.5840969085693359,
0.3753468096256256,
0.2817235291004181,
0.35984525084495544,
0.21519245207309723,
-0.6931291222572327,
0.17442536354064941,
0.08664489537477493,
-0.5555953979492188,
0.3893665671348572,
0.024962736293673515,
-0.07182025909423828,
0.8306657075881958,
0.7678952217102051,
-0.20785491168498993,
0.15122662484645844,
-0.21387897431850433,
1.026099681854248,
-0.5172669887542725,
-0.19814114272594452,
-0.7738107442855835,
0.5457290410995483,
0.05353881046175957,
-0.7292706966400146,
0.5571330189704895,
0.6619983911514282,
0.726536750793457,
0.2810194492340088,
0.6659577488899231,
0.07956460863351822,
0.3133804500102997,
-0.5501963496208191,
0.6371622681617737,
-0.8012226819992065,
0.38249605894088745,
0.08723150193691254,
-0.9992609620094299,
-0.06901729851961136,
0.7024762034416199,
-0.24707871675491333,
0.049990251660346985,
0.38500675559043884,
0.8728457689285278,
0.18260830640792847,
-0.16993284225463867,
0.13100816309452057,
0.1734052449464798,
0.36080580949783325,
0.902224600315094,
0.8617683053016663,
-0.640613853931427,
0.7138497233390808,
-0.394033819437027,
-0.24506720900535583,
-0.2672448456287384,
-0.7628195881843567,
-0.9891993403434753,
-0.2689724862575531,
-0.24602872133255005,
-0.14935891330242157,
0.06866415590047836,
0.7634708881378174,
0.5170712471008301,
-0.589507520198822,
-0.306138277053833,
-0.0806201696395874,
-0.08230167627334595,
0.03087247535586357,
-0.16289019584655762,
0.3369326591491699,
-0.10634718090295792,
-0.5984026789665222,
0.4988727867603302,
0.0024433995131403208,
0.20072321593761444,
-0.34204035997390747,
-0.2694185674190521,
-0.2118060141801834,
0.14393030107021332,
0.624160647392273,
0.2860430181026459,
-0.9406581521034241,
-0.24007192254066467,
0.045986294746398926,
-0.14117884635925293,
0.1262781322002411,
0.01723623089492321,
-0.7863461971282959,
0.0988408699631691,
0.14327052235603333,
0.3904285132884979,
0.6786439418792725,
0.05670561641454697,
0.06510740518569946,
-0.5069323182106018,
0.45880013704299927,
0.017139414325356483,
0.15690650045871735,
0.3148707449436188,
-0.44211408495903015,
0.812017560005188,
0.15457355976104736,
-0.7177016139030457,
-0.9604887962341309,
0.11642292886972427,
-1.0770442485809326,
0.0038491254672408104,
1.4099304676055908,
-0.005127588752657175,
-0.13285614550113678,
0.2001931071281433,
-0.20861512422561646,
0.3956628739833832,
-0.3866211473941803,
0.8231272101402283,
0.5763401985168457,
-0.08425241708755493,
-0.1065729632973671,
-0.8232967257499695,
0.3451668620109558,
0.3986349105834961,
-1.1228861808776855,
-0.25823599100112915,
0.4609035551548004,
0.5041577816009521,
-0.09250389039516449,
0.7069474458694458,
0.017778871580958366,
0.24060672521591187,
0.0684778168797493,
0.11824817210435867,
-0.2557530999183655,
-0.16601645946502686,
-0.10113014280796051,
-0.2812649607658386,
-0.056317299604415894,
-0.2271832972764969
] |
latent-consistency/lcm-lora-sdxl | latent-consistency | "2023-11-24T13:31:08Z" | 85,721 | 430 | diffusers | [
"diffusers",
"lora",
"text-to-image",
"arxiv:2311.05556",
"base_model:stabilityai/stable-diffusion-xl-base-1.0",
"license:openrail++",
"has_space",
"region:us"
] | text-to-image | "2023-11-09T00:34:02Z" | ---
library_name: diffusers
base_model: stabilityai/stable-diffusion-xl-base-1.0
tags:
- lora
- text-to-image
license: openrail++
inference: false
---
# Latent Consistency Model (LCM) LoRA: SDXL
Latent Consistency Model (LCM) LoRA was proposed in [LCM-LoRA: A universal Stable-Diffusion Acceleration Module](https://arxiv.org/abs/2311.05556)
by *Simian Luo, Yiqin Tan, Suraj Patil, Daniel Gu et al.*
It is a distilled consistency adapter for [`stable-diffusion-xl-base-1.0`](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0) that allows
to reduce the number of inference steps to only between **2 - 8 steps**.
| Model | Params / M |
|----------------------------------------------------------------------------|------------|
| [lcm-lora-sdv1-5](https://huggingface.co/latent-consistency/lcm-lora-sdv1-5) | 67.5 |
| [lcm-lora-ssd-1b](https://huggingface.co/latent-consistency/lcm-lora-ssd-1b) | 105 |
| [**lcm-lora-sdxl**](https://huggingface.co/latent-consistency/lcm-lora-sdxl) | **197M** |
## Usage
LCM-LoRA is supported in 🤗 Hugging Face Diffusers library from version v0.23.0 onwards. To run the model, first
install the latest version of the Diffusers library as well as `peft`, `accelerate` and `transformers`.
audio dataset from the Hugging Face Hub:
```bash
pip install --upgrade pip
pip install --upgrade diffusers transformers accelerate peft
```
***Note: For detailed usage examples we recommend you to check out our official [LCM-LoRA docs](https://huggingface.co/docs/diffusers/main/en/using-diffusers/inference_with_lcm_lora)***
### Text-to-Image
The adapter can be loaded with it's base model `stabilityai/stable-diffusion-xl-base-1.0`. Next, the scheduler needs to be changed to [`LCMScheduler`](https://huggingface.co/docs/diffusers/v0.22.3/en/api/schedulers/lcm#diffusers.LCMScheduler) and we can reduce the number of inference steps to just 2 to 8 steps.
Please make sure to either disable `guidance_scale` or use values between 1.0 and 2.0.
```python
import torch
from diffusers import LCMScheduler, AutoPipelineForText2Image
model_id = "stabilityai/stable-diffusion-xl-base-1.0"
adapter_id = "latent-consistency/lcm-lora-sdxl"
pipe = AutoPipelineForText2Image.from_pretrained(model_id, torch_dtype=torch.float16, variant="fp16")
pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
pipe.to("cuda")
# load and fuse lcm lora
pipe.load_lora_weights(adapter_id)
pipe.fuse_lora()
prompt = "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k"
# disable guidance_scale by passing 0
image = pipe(prompt=prompt, num_inference_steps=4, guidance_scale=0).images[0]
```
![](./image.png)
### Inpainting
LCM-LoRA can be used for inpainting as well.
```python
import torch
from diffusers import AutoPipelineForInpainting, LCMScheduler
from diffusers.utils import load_image, make_image_grid
pipe = AutoPipelineForInpainting.from_pretrained(
"diffusers/stable-diffusion-xl-1.0-inpainting-0.1",
torch_dtype=torch.float16,
variant="fp16",
).to("cuda")
# set scheduler
pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
# load LCM-LoRA
pipe.load_lora_weights("latent-consistency/lcm-lora-sdxl")
pipe.fuse_lora()
# load base and mask image
init_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/inpaint.png").resize((1024, 1024))
mask_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/inpaint_mask.png").resize((1024, 1024))
prompt = "a castle on top of a mountain, highly detailed, 8k"
generator = torch.manual_seed(42)
image = pipe(
prompt=prompt,
image=init_image,
mask_image=mask_image,
generator=generator,
num_inference_steps=5,
guidance_scale=4,
).images[0]
make_image_grid([init_image, mask_image, image], rows=1, cols=3)
```
![](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/lcm/lcm_sdxl_inpainting.png)
## Combine with styled LoRAs
LCM-LoRA can be combined with other LoRAs to generate styled-images in very few steps (4-8). In the following example, we'll use the LCM-LoRA with the [papercut LoRA](TheLastBen/Papercut_SDXL).
To learn more about how to combine LoRAs, refer to [this guide](https://huggingface.co/docs/diffusers/tutorials/using_peft_for_inference#combine-multiple-adapters).
```python
import torch
from diffusers import DiffusionPipeline, LCMScheduler
pipe = DiffusionPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
variant="fp16",
torch_dtype=torch.float16
).to("cuda")
# set scheduler
pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
# load LoRAs
pipe.load_lora_weights("latent-consistency/lcm-lora-sdxl", adapter_name="lcm")
pipe.load_lora_weights("TheLastBen/Papercut_SDXL", weight_name="papercut.safetensors", adapter_name="papercut")
# Combine LoRAs
pipe.set_adapters(["lcm", "papercut"], adapter_weights=[1.0, 0.8])
prompt = "papercut, a cute fox"
generator = torch.manual_seed(0)
image = pipe(prompt, num_inference_steps=4, guidance_scale=1, generator=generator).images[0]
image
```
![](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/lcm/lcm_sdx_lora_mix.png)
### ControlNet
```python
import torch
import cv2
import numpy as np
from PIL import Image
from diffusers import StableDiffusionXLControlNetPipeline, ControlNetModel, LCMScheduler
from diffusers.utils import load_image
image = load_image(
"https://hf.co/datasets/huggingface/documentation-images/resolve/main/diffusers/input_image_vermeer.png"
).resize((1024, 1024))
image = np.array(image)
low_threshold = 100
high_threshold = 200
image = cv2.Canny(image, low_threshold, high_threshold)
image = image[:, :, None]
image = np.concatenate([image, image, image], axis=2)
canny_image = Image.fromarray(image)
controlnet = ControlNetModel.from_pretrained("diffusers/controlnet-canny-sdxl-1.0-small", torch_dtype=torch.float16, variant="fp16")
pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
controlnet=controlnet,
torch_dtype=torch.float16,
safety_checker=None,
variant="fp16"
).to("cuda")
# set scheduler
pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
# load LCM-LoRA
pipe.load_lora_weights("latent-consistency/lcm-lora-sdxl")
pipe.fuse_lora()
generator = torch.manual_seed(0)
image = pipe(
"picture of the mona lisa",
image=canny_image,
num_inference_steps=5,
guidance_scale=1.5,
controlnet_conditioning_scale=0.5,
cross_attention_kwargs={"scale": 1},
generator=generator,
).images[0]
make_image_grid([canny_image, image], rows=1, cols=2)
```
![](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/lcm/lcm_sdxl_controlnet.png)
<Tip>
The inference parameters in this example might not work for all examples, so we recommend you to try different values for `num_inference_steps`, `guidance_scale`, `controlnet_conditioning_scale` and `cross_attention_kwargs` parameters and choose the best one.
</Tip>
### T2I Adapter
This example shows how to use the LCM-LoRA with the [Canny T2I-Adapter](TencentARC/t2i-adapter-canny-sdxl-1.0) and SDXL.
```python
import torch
import cv2
import numpy as np
from PIL import Image
from diffusers import StableDiffusionXLAdapterPipeline, T2IAdapter, LCMScheduler
from diffusers.utils import load_image, make_image_grid
# Prepare image
# Detect the canny map in low resolution to avoid high-frequency details
image = load_image(
"https://huggingface.co/Adapter/t2iadapter/resolve/main/figs_SDXLV1.0/org_canny.jpg"
).resize((384, 384))
image = np.array(image)
low_threshold = 100
high_threshold = 200
image = cv2.Canny(image, low_threshold, high_threshold)
image = image[:, :, None]
image = np.concatenate([image, image, image], axis=2)
canny_image = Image.fromarray(image).resize((1024, 1024))
# load adapter
adapter = T2IAdapter.from_pretrained("TencentARC/t2i-adapter-canny-sdxl-1.0", torch_dtype=torch.float16, varient="fp16").to("cuda")
pipe = StableDiffusionXLAdapterPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
adapter=adapter,
torch_dtype=torch.float16,
variant="fp16",
).to("cuda")
# set scheduler
pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
# load LCM-LoRA
pipe.load_lora_weights("latent-consistency/lcm-lora-sdxl")
prompt = "Mystical fairy in real, magic, 4k picture, high quality"
negative_prompt = "extra digit, fewer digits, cropped, worst quality, low quality, glitch, deformed, mutated, ugly, disfigured"
generator = torch.manual_seed(0)
image = pipe(
prompt=prompt,
negative_prompt=negative_prompt,
image=canny_image,
num_inference_steps=4,
guidance_scale=1.5,
adapter_conditioning_scale=0.8,
adapter_conditioning_factor=1,
generator=generator,
).images[0]
make_image_grid([canny_image, image], rows=1, cols=2)
```
![](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/lcm/lcm_sdxl_t2iadapter.png)
## Speed Benchmark
TODO
## Training
TODO
| [
-0.38677510619163513,
-0.5508586168289185,
0.3581259548664093,
0.3671279549598694,
-0.23207353055477142,
-0.24557465314865112,
0.0063438862562179565,
-0.3230387568473816,
0.3639124035835266,
0.6512224078178406,
-0.5141993761062622,
-0.5392054915428162,
-0.584327757358551,
-0.27950993180274963,
-0.17362570762634277,
1.0473240613937378,
-0.24754822254180908,
-0.24090228974819183,
0.2509996294975281,
-0.33880940079689026,
-0.03345463424921036,
-0.045843545347452164,
-0.8765166401863098,
-0.3583909869194031,
0.5724005103111267,
0.09856988489627838,
0.5482224822044373,
0.3472757935523987,
0.2804589569568634,
0.42989581823349,
-0.39192435145378113,
0.26037362217903137,
-0.4973486065864563,
-0.2315531075000763,
0.21357755362987518,
-0.45683205127716064,
-0.6701554656028748,
0.1518736332654953,
0.7280418276786804,
0.4448465406894684,
-0.13658659160137177,
0.05529654398560524,
0.23950466513633728,
0.8189213871955872,
-0.4357868432998657,
-0.07012955099344254,
-0.3729226291179657,
0.05358735844492912,
0.05134447291493416,
-0.0634031668305397,
-0.16880285739898682,
-0.3786279857158661,
0.19978685677051544,
-0.7488071322441101,
0.13015517592430115,
-0.22365833818912506,
1.258040428161621,
0.5029727220535278,
-0.3670983612537384,
-0.30248263478279114,
-0.43606066703796387,
0.8828673362731934,
-0.814566433429718,
0.05394592136144638,
0.17128458619117737,
0.0710965022444725,
-0.08428342640399933,
-0.8373472690582275,
-0.4580835700035095,
-0.016804030165076256,
-0.2533683478832245,
0.46235671639442444,
-0.1990930289030075,
-0.09913529455661774,
0.45572519302368164,
0.21143190562725067,
-0.4507705867290497,
-0.19664748013019562,
-0.49429455399513245,
-0.11683520674705505,
0.7340937256813049,
0.03387288376688957,
0.24230244755744934,
-0.03734634816646576,
-0.5529512763023376,
-0.056625742465257645,
-0.3246793746948242,
0.1543370634317398,
0.278618723154068,
-0.040586456656455994,
-0.7143971920013428,
0.5522130727767944,
0.17221607267856598,
0.5347262620925903,
0.48954063653945923,
-0.487242192029953,
0.41538670659065247,
-0.27121812105178833,
-0.4612625241279602,
-0.08740606158971786,
0.983099639415741,
0.425088495016098,
-0.06246368587017059,
0.18475691974163055,
-0.09326279163360596,
-0.010269737802445889,
-0.3431406021118164,
-1.0734727382659912,
-0.2857498824596405,
0.4395918846130371,
-0.44032466411590576,
-0.452146053314209,
-0.05322326347231865,
-0.6971940994262695,
-0.16696907579898834,
-0.030635694041848183,
0.4298400282859802,
-0.2990107238292694,
-0.33311888575553894,
0.021765371784567833,
-0.1849978119134903,
0.42294567823410034,
0.35057708621025085,
-0.4894678294658661,
0.30543240904808044,
0.17412899434566498,
1.0114805698394775,
-0.1166096180677414,
-0.09060904383659363,
-0.5861627459526062,
0.02612627111375332,
-0.31002527475357056,
0.6793511509895325,
0.03257979825139046,
-0.4065219461917877,
-0.3192766308784485,
0.4882267415523529,
-0.14838410913944244,
-0.6914154887199402,
0.6250895261764526,
-0.3879520893096924,
0.3105028569698334,
-0.22073650360107422,
-0.4820910692214966,
-0.07005737721920013,
-0.028052879497408867,
-0.5584986805915833,
1.1125895977020264,
0.4677252769470215,
-1.196199655532837,
0.08952238410711288,
-0.6407976746559143,
-0.0981735810637474,
-0.3167482912540436,
-0.08241914957761765,
-0.9773370027542114,
-0.19040066003799438,
-0.012876770459115505,
0.39945629239082336,
-0.004714749753475189,
-0.013090132735669613,
-0.38153642416000366,
-0.23491984605789185,
0.16433188319206238,
-0.10472788661718369,
1.4540225267410278,
0.2523462474346161,
-0.40711721777915955,
0.27652642130851746,
-0.6695846915245056,
0.0826965942978859,
0.23168598115444183,
-0.39868155121803284,
0.10445673018693924,
-0.3154469132423401,
0.41460901498794556,
0.3064180016517639,
0.22231949865818024,
-0.622708261013031,
0.23844760656356812,
-0.526117205619812,
0.5828748345375061,
0.7609062194824219,
0.08853419870138168,
0.500678300857544,
-0.46685701608657837,
0.2098693996667862,
0.35805973410606384,
-0.061995550990104675,
0.33324912190437317,
-0.450858473777771,
-1.098848581314087,
-0.330785870552063,
-0.04777159169316292,
0.6257761716842651,
-0.8838304281234741,
0.5478209257125854,
0.11595819145441055,
-0.7343949675559998,
-0.21523718535900116,
0.26137587428092957,
0.2273663580417633,
0.5900632739067078,
0.25763770937919617,
-0.2589103877544403,
-0.5797919034957886,
-0.6116276979446411,
0.2600092589855194,
0.15784907341003418,
-0.08025522530078888,
0.20885974168777466,
0.6256351470947266,
-0.22274355590343475,
0.8198143243789673,
-0.6284962892532349,
-0.5455169677734375,
-0.02839287929236889,
-0.050787679851055145,
0.8483473658561707,
0.6630805730819702,
0.9068856835365295,
-0.5903646349906921,
-0.8951346278190613,
-0.11413689702749252,
-0.8476476669311523,
-0.15032805502414703,
-0.05447204038500786,
-0.36568501591682434,
0.46005576848983765,
0.3961547017097473,
-0.5044521689414978,
0.676578164100647,
0.7330570220947266,
-0.6919144988059998,
0.7236059308052063,
-0.4311021864414215,
-0.0843757763504982,
-1.1373308897018433,
0.18186166882514954,
0.016017263755202293,
-0.38807961344718933,
-0.5528528094291687,
-0.13164111971855164,
-0.1385381519794464,
0.02981787733733654,
-0.6920818090438843,
0.9062778949737549,
-0.5041074752807617,
0.049992937594652176,
-0.339737206697464,
0.08601952344179153,
0.1716243177652359,
0.655131995677948,
0.14909137785434723,
0.4478437602519989,
0.8110433220863342,
-0.5288462042808533,
0.4846698045730591,
0.20883236825466156,
-0.21832390129566193,
0.6623648405075073,
-0.9750563502311707,
0.25724002718925476,
0.1343548595905304,
0.3343329429626465,
-1.007177710533142,
-0.0813058614730835,
0.6001099348068237,
-0.25512370467185974,
0.2555786073207855,
-0.2492750585079193,
-0.30357757210731506,
-0.3317265808582306,
-0.3875918984413147,
0.2746139466762543,
0.6731588840484619,
-0.509911835193634,
0.7158180475234985,
0.06250498443841934,
0.3167306184768677,
-0.6084047555923462,
-0.7286263704299927,
-0.45064735412597656,
-0.5105559229850769,
-0.8286380767822266,
0.41611096262931824,
-0.4361841380596161,
-0.2473078966140747,
-0.0247211717069149,
-0.07686112076044083,
-0.15377289056777954,
-0.09053432941436768,
0.3626420795917511,
0.46085432171821594,
-0.12412644922733307,
-0.4818548560142517,
-0.028150036931037903,
-0.32866623997688293,
0.11156611889600754,
-0.06758268922567368,
0.5077423453330994,
-0.13630327582359314,
-0.25857049226760864,
-0.7511928677558899,
0.1212729886174202,
0.32692864537239075,
0.3364490866661072,
0.8634912967681885,
1.1701630353927612,
-0.29818645119667053,
0.010184754617512226,
-0.4520253539085388,
-0.08999478816986084,
-0.5221904516220093,
0.11581828445196152,
-0.2675377130508423,
-0.42531105875968933,
0.7564569115638733,
0.19372069835662842,
0.2741284668445587,
0.552571177482605,
0.5660039782524109,
-0.40416136384010315,
0.8064572215080261,
0.4647286832332611,
0.1199910119175911,
0.6195213794708252,
-1.005156397819519,
-0.18991002440452576,
-1.08480966091156,
-0.06452414393424988,
-0.26420870423316956,
-0.4402468502521515,
-0.5104551315307617,
-0.6030732989311218,
0.6266720294952393,
0.43986639380455017,
-0.5304868817329407,
0.2853437662124634,
-0.662876546382904,
0.23569226264953613,
0.3061690628528595,
0.4170776307582855,
0.20027364790439606,
0.029881266877055168,
-0.16329142451286316,
0.049558233469724655,
-0.3774782717227936,
-0.3750423192977905,
0.8634088635444641,
0.30859822034835815,
0.8457801342010498,
0.016781745478510857,
0.8505579233169556,
-0.07650711387395859,
0.29623863101005554,
-0.5691746473312378,
0.46605184674263,
-0.2195425182580948,
-0.43325844407081604,
-0.11290302127599716,
-0.22757107019424438,
-0.9853127002716064,
0.13931038975715637,
-0.09291113168001175,
-0.7622356414794922,
0.4253813624382019,
0.22176164388656616,
-0.25315606594085693,
0.5287447571754456,
-0.6684927344322205,
0.5784692764282227,
-0.18149322271347046,
-0.6780868768692017,
0.20193319022655487,
-0.6320219039916992,
0.27380916476249695,
0.12016840279102325,
0.0004091238952241838,
-0.202987939119339,
-0.1779811680316925,
1.0061910152435303,
-0.6773452162742615,
0.7892507314682007,
-0.5179130434989929,
-0.35204610228538513,
0.6198296546936035,
-0.18204085528850555,
0.5508912801742554,
0.06066226214170456,
-0.24117381870746613,
0.19870513677597046,
0.28787118196487427,
-0.6504676938056946,
-0.5312541127204895,
0.7392240762710571,
-1.0035556554794312,
-0.2586611211299896,
-0.46255382895469666,
-0.5126289129257202,
0.29688191413879395,
0.11241482943296432,
0.6935256123542786,
0.25613996386528015,
0.07956817746162415,
-0.04916416481137276,
0.7121888399124146,
-0.22884602844715118,
0.6294114589691162,
0.053832780569791794,
-0.5197424292564392,
-0.44644758105278015,
0.8462021946907043,
0.21562640368938446,
0.561758816242218,
0.04087471589446068,
0.29225975275039673,
-0.0957004502415657,
-0.26336929202079773,
-0.2769468128681183,
0.5437198877334595,
-0.6909003853797913,
-0.2700048089027405,
-0.5580676794052124,
-0.6097370386123657,
-0.3125513792037964,
-0.3983638882637024,
-0.4007911682128906,
-0.1272171288728714,
-0.7082434296607971,
0.5136926174163818,
0.6085313558578491,
0.5347039699554443,
-0.34040600061416626,
0.47035306692123413,
-0.30290427803993225,
0.4673101007938385,
0.2909965515136719,
0.20009002089500427,
-0.11894159018993378,
-0.7832022309303284,
-0.06042003631591797,
0.07824672013521194,
-0.5564224720001221,
-0.6238648891448975,
0.6181355714797974,
0.14239326119422913,
0.30668777227401733,
0.6184269189834595,
-0.08067955821752548,
0.7191573977470398,
-0.1960028111934662,
0.5263126492500305,
0.3569071292877197,
-0.9131037592887878,
0.5316992402076721,
-0.3337573707103729,
0.1352269947528839,
-0.08491963148117065,
0.2121722549200058,
-0.4101780652999878,
-0.12122383713722229,
-0.7810525298118591,
-0.6304386854171753,
0.6869863271713257,
0.40454328060150146,
-0.23908936977386475,
0.37769922614097595,
0.39296755194664,
-0.16698360443115234,
-0.2122250348329544,
-0.9047236442565918,
-0.6066146492958069,
-0.27124473452568054,
0.02750302478671074,
-0.008831454440951347,
0.03777636960148811,
-0.2647678554058075,
-0.42237579822540283,
0.7835398316383362,
-0.2411755621433258,
0.6613132357597351,
0.5683340430259705,
0.12588967382907867,
-0.24943000078201294,
-0.07659359276294708,
0.5295317769050598,
0.4918540120124817,
-0.4156370759010315,
-0.12765339016914368,
0.3790890872478485,
-0.40224435925483704,
0.18444785475730896,
0.03006478026509285,
-0.08577775955200195,
0.0842507854104042,
0.3577352464199066,
0.6838228702545166,
-0.04290483519434929,
-0.2924538254737854,
0.40884631872177124,
-0.022993620485067368,
-0.45418670773506165,
-0.5587955713272095,
0.22293463349342346,
0.5581360459327698,
0.4521486163139343,
0.18353679776191711,
0.2586193084716797,
-0.16882763803005219,
-0.4272620975971222,
0.026301195845007896,
0.6361449360847473,
-0.319042444229126,
-0.16815446317195892,
0.7203169465065002,
-0.1664886623620987,
-0.09611331671476364,
0.41915756464004517,
-0.17954468727111816,
-0.35208404064178467,
0.9612215161323547,
0.49835482239723206,
0.6579731702804565,
-0.09370902180671692,
0.021457739174365997,
0.6461536884307861,
-0.012140508741140366,
0.10240735858678818,
0.4583107531070709,
0.19598916172981262,
-0.8219203948974609,
-0.14148986339569092,
-0.6101201176643372,
-0.1289580911397934,
0.13343191146850586,
-0.5622043013572693,
0.5934607982635498,
-0.4425954818725586,
-0.09380047768354416,
-0.03197528049349785,
0.4532684087753296,
-0.8441633582115173,
0.0339505597949028,
0.09340361505746841,
0.8903364539146423,
-0.8953264951705933,
1.0061708688735962,
0.29783323407173157,
-0.3965791165828705,
-0.8940616846084595,
-0.2768688201904297,
-0.00750502897426486,
-0.9915295839309692,
0.5993478894233704,
-0.00891011394560337,
-0.18710662424564362,
-0.050728633999824524,
-0.8327470421791077,
-0.8310032486915588,
1.4537609815597534,
0.38772016763687134,
-0.3806104063987732,
-0.12399603426456451,
-0.19460202753543854,
0.48484519124031067,
-0.5482402443885803,
0.4301874339580536,
0.4974001944065094,
0.5255064964294434,
0.5167816281318665,
-0.8177741765975952,
0.15754340589046478,
-0.1226053535938263,
0.02432750165462494,
-0.03469298034906387,
-0.871453583240509,
1.0783333778381348,
-0.5840147733688354,
-0.24430280923843384,
0.49082303047180176,
0.7333129048347473,
0.6010779738426208,
0.25279736518859863,
0.6932326555252075,
0.8202491998672485,
0.5237880945205688,
-0.17237529158592224,
0.7915012836456299,
0.0950249582529068,
0.778717577457428,
1.0344648361206055,
-0.15442371368408203,
0.6465446352958679,
0.4323848783969879,
-0.3737776577472687,
0.6693336963653564,
0.829411506652832,
-0.06513772159814835,
0.40169557929039,
0.23349599540233612,
-0.25427767634391785,
0.1387602686882019,
0.0016225690487772226,
-0.6592785120010376,
0.2705100178718567,
0.4082789123058319,
-0.46135276556015015,
-0.24229136109352112,
0.07968390733003616,
0.21142753958702087,
-0.3729809820652008,
-0.19434940814971924,
0.6339547038078308,
0.1350705623626709,
-0.3595689535140991,
1.0676696300506592,
-0.2948659360408783,
1.0346736907958984,
-0.4973626434803009,
-0.051255397498607635,
-0.07564136385917664,
0.2217329889535904,
-0.5273640155792236,
-0.9247208833694458,
0.44337114691734314,
-0.2887125313282013,
0.019507478922605515,
-0.09074445813894272,
0.6045341491699219,
-0.6043965816497803,
-0.6984729766845703,
0.5969048142433167,
0.3280688226222992,
0.5544345378875732,
0.20729412138462067,
-1.0679813623428345,
0.4583883285522461,
0.15496163070201874,
-0.5585524439811707,
0.21086019277572632,
0.32412251830101013,
0.4456574618816376,
0.5573093891143799,
0.509236216545105,
0.11716911941766739,
-0.018568184226751328,
-0.20774511992931366,
1.0364837646484375,
-0.48337501287460327,
-0.10343194007873535,
-0.653949499130249,
0.6597980856895447,
-0.14064419269561768,
-0.26078954339027405,
0.5228485465049744,
0.4718516170978546,
0.5658004879951477,
0.0287594273686409,
0.5711613893508911,
-0.34964656829833984,
0.3970049023628235,
-0.6423730254173279,
0.9192514419555664,
-0.737457811832428,
0.06813371181488037,
-0.4627305269241333,
-0.9831674098968506,
0.026810213923454285,
0.8267465233802795,
-0.17690607905387878,
0.23426920175552368,
0.6758289933204651,
0.9776159524917603,
-0.18909074366092682,
-0.521637499332428,
0.23654571175575256,
0.420064240694046,
0.23564459383487701,
0.7205908298492432,
0.38750389218330383,
-0.8000962138175964,
0.40898892283439636,
-0.7252185344696045,
-0.1929675191640854,
0.0011656254064291716,
-0.9778427481651306,
-0.8634613156318665,
-0.6905725598335266,
-0.5483556389808655,
-0.9468960762023926,
-0.42088741064071655,
0.8073561787605286,
0.9795548319816589,
-0.7514857053756714,
-0.36330941319465637,
-0.008842337876558304,
0.2547919452190399,
-0.07819681614637375,
-0.3169892132282257,
0.6890859007835388,
-0.04072882980108261,
-1.0295172929763794,
-0.12170058488845825,
0.024295596405863762,
0.34205374121665955,
-0.22688642144203186,
-0.3329552412033081,
-0.39377960562705994,
-0.1074092835187912,
0.43316587805747986,
0.40334078669548035,
-0.881662130355835,
-0.13859237730503082,
-0.2852185368537903,
-0.062469732016325,
0.3802708089351654,
0.29533204436302185,
-0.641186535358429,
0.20998534560203552,
0.38126420974731445,
-0.0711934044957161,
0.7019805312156677,
-0.3109280467033386,
-0.069734588265419,
-0.49543747305870056,
0.3969006836414337,
-0.07401549071073532,
0.5969530940055847,
0.12517666816711426,
-0.3988095819950104,
0.7131413221359253,
0.35175901651382446,
-0.814231812953949,
-0.6320456862449646,
-0.023059407249093056,
-1.5866143703460693,
-0.09577636420726776,
0.9910825490951538,
-0.3836210072040558,
-0.4254401922225952,
-0.005539454985409975,
-0.512484073638916,
0.40541592240333557,
-0.3630821704864502,
0.42332762479782104,
0.3567548990249634,
-0.4083382189273834,
-0.4319697618484497,
-0.38840991258621216,
0.45533573627471924,
0.14291171729564667,
-0.8733595609664917,
-0.22908525168895721,
0.12517093122005463,
0.8443566560745239,
0.4954465925693512,
0.8303805589675903,
0.04574735835194588,
0.036527737975120544,
-0.028222862631082535,
-0.06399282813072205,
0.28945520520210266,
0.21887367963790894,
-0.18066847324371338,
-0.12401452660560608,
-0.25363171100616455,
-0.06632570177316666
] |
thenlper/gte-large | thenlper | "2023-09-25T12:54:54Z" | 85,642 | 155 | sentence-transformers | [
"sentence-transformers",
"pytorch",
"onnx",
"safetensors",
"bert",
"mteb",
"sentence-similarity",
"Sentence Transformers",
"en",
"arxiv:2308.03281",
"license:mit",
"model-index",
"endpoints_compatible",
"has_space",
"region:us"
] | sentence-similarity | "2023-07-27T09:55:39Z" | ---
tags:
- mteb
- sentence-similarity
- sentence-transformers
- Sentence Transformers
model-index:
- name: gte-large
results:
- task:
type: Classification
dataset:
type: mteb/amazon_counterfactual
name: MTEB AmazonCounterfactualClassification (en)
config: en
split: test
revision: e8379541af4e31359cca9fbcf4b00f2671dba205
metrics:
- type: accuracy
value: 72.62686567164178
- type: ap
value: 34.46944126809772
- type: f1
value: 66.23684353950857
- task:
type: Classification
dataset:
type: mteb/amazon_polarity
name: MTEB AmazonPolarityClassification
config: default
split: test
revision: e2d317d38cd51312af73b3d32a06d1a08b442046
metrics:
- type: accuracy
value: 92.51805
- type: ap
value: 89.49842783330848
- type: f1
value: 92.51112169431808
- task:
type: Classification
dataset:
type: mteb/amazon_reviews_multi
name: MTEB AmazonReviewsClassification (en)
config: en
split: test
revision: 1399c76144fd37290681b995c656ef9b2e06e26d
metrics:
- type: accuracy
value: 49.074
- type: f1
value: 48.44785682572955
- task:
type: Retrieval
dataset:
type: arguana
name: MTEB ArguAna
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 32.077
- type: map_at_10
value: 48.153
- type: map_at_100
value: 48.963
- type: map_at_1000
value: 48.966
- type: map_at_3
value: 43.184
- type: map_at_5
value: 46.072
- type: mrr_at_1
value: 33.073
- type: mrr_at_10
value: 48.54
- type: mrr_at_100
value: 49.335
- type: mrr_at_1000
value: 49.338
- type: mrr_at_3
value: 43.563
- type: mrr_at_5
value: 46.383
- type: ndcg_at_1
value: 32.077
- type: ndcg_at_10
value: 57.158
- type: ndcg_at_100
value: 60.324999999999996
- type: ndcg_at_1000
value: 60.402
- type: ndcg_at_3
value: 46.934
- type: ndcg_at_5
value: 52.158
- type: precision_at_1
value: 32.077
- type: precision_at_10
value: 8.591999999999999
- type: precision_at_100
value: 0.991
- type: precision_at_1000
value: 0.1
- type: precision_at_3
value: 19.275000000000002
- type: precision_at_5
value: 14.111
- type: recall_at_1
value: 32.077
- type: recall_at_10
value: 85.917
- type: recall_at_100
value: 99.075
- type: recall_at_1000
value: 99.644
- type: recall_at_3
value: 57.824
- type: recall_at_5
value: 70.555
- task:
type: Clustering
dataset:
type: mteb/arxiv-clustering-p2p
name: MTEB ArxivClusteringP2P
config: default
split: test
revision: a122ad7f3f0291bf49cc6f4d32aa80929df69d5d
metrics:
- type: v_measure
value: 48.619246083417295
- task:
type: Clustering
dataset:
type: mteb/arxiv-clustering-s2s
name: MTEB ArxivClusteringS2S
config: default
split: test
revision: f910caf1a6075f7329cdf8c1a6135696f37dbd53
metrics:
- type: v_measure
value: 43.3574067664688
- task:
type: Reranking
dataset:
type: mteb/askubuntudupquestions-reranking
name: MTEB AskUbuntuDupQuestions
config: default
split: test
revision: 2000358ca161889fa9c082cb41daa8dcfb161a54
metrics:
- type: map
value: 63.06359661829253
- type: mrr
value: 76.15596007562766
- task:
type: STS
dataset:
type: mteb/biosses-sts
name: MTEB BIOSSES
config: default
split: test
revision: d3fb88f8f02e40887cd149695127462bbcf29b4a
metrics:
- type: cos_sim_pearson
value: 90.25407547368691
- type: cos_sim_spearman
value: 88.65081514968477
- type: euclidean_pearson
value: 88.14857116664494
- type: euclidean_spearman
value: 88.50683596540692
- type: manhattan_pearson
value: 87.9654797992225
- type: manhattan_spearman
value: 88.21164851646908
- task:
type: Classification
dataset:
type: mteb/banking77
name: MTEB Banking77Classification
config: default
split: test
revision: 0fd18e25b25c072e09e0d92ab615fda904d66300
metrics:
- type: accuracy
value: 86.05844155844157
- type: f1
value: 86.01555597681825
- task:
type: Clustering
dataset:
type: mteb/biorxiv-clustering-p2p
name: MTEB BiorxivClusteringP2P
config: default
split: test
revision: 65b79d1d13f80053f67aca9498d9402c2d9f1f40
metrics:
- type: v_measure
value: 39.10510519739522
- task:
type: Clustering
dataset:
type: mteb/biorxiv-clustering-s2s
name: MTEB BiorxivClusteringS2S
config: default
split: test
revision: 258694dd0231531bc1fd9de6ceb52a0853c6d908
metrics:
- type: v_measure
value: 36.84689960264385
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackAndroidRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 32.800000000000004
- type: map_at_10
value: 44.857
- type: map_at_100
value: 46.512
- type: map_at_1000
value: 46.635
- type: map_at_3
value: 41.062
- type: map_at_5
value: 43.126
- type: mrr_at_1
value: 39.628
- type: mrr_at_10
value: 50.879
- type: mrr_at_100
value: 51.605000000000004
- type: mrr_at_1000
value: 51.641000000000005
- type: mrr_at_3
value: 48.14
- type: mrr_at_5
value: 49.835
- type: ndcg_at_1
value: 39.628
- type: ndcg_at_10
value: 51.819
- type: ndcg_at_100
value: 57.318999999999996
- type: ndcg_at_1000
value: 58.955999999999996
- type: ndcg_at_3
value: 46.409
- type: ndcg_at_5
value: 48.825
- type: precision_at_1
value: 39.628
- type: precision_at_10
value: 10.072000000000001
- type: precision_at_100
value: 1.625
- type: precision_at_1000
value: 0.21
- type: precision_at_3
value: 22.556
- type: precision_at_5
value: 16.309
- type: recall_at_1
value: 32.800000000000004
- type: recall_at_10
value: 65.078
- type: recall_at_100
value: 87.491
- type: recall_at_1000
value: 97.514
- type: recall_at_3
value: 49.561
- type: recall_at_5
value: 56.135999999999996
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackEnglishRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 32.614
- type: map_at_10
value: 43.578
- type: map_at_100
value: 44.897
- type: map_at_1000
value: 45.023
- type: map_at_3
value: 40.282000000000004
- type: map_at_5
value: 42.117
- type: mrr_at_1
value: 40.510000000000005
- type: mrr_at_10
value: 49.428
- type: mrr_at_100
value: 50.068999999999996
- type: mrr_at_1000
value: 50.111000000000004
- type: mrr_at_3
value: 47.176
- type: mrr_at_5
value: 48.583999999999996
- type: ndcg_at_1
value: 40.510000000000005
- type: ndcg_at_10
value: 49.478
- type: ndcg_at_100
value: 53.852
- type: ndcg_at_1000
value: 55.782
- type: ndcg_at_3
value: 45.091
- type: ndcg_at_5
value: 47.19
- type: precision_at_1
value: 40.510000000000005
- type: precision_at_10
value: 9.363000000000001
- type: precision_at_100
value: 1.51
- type: precision_at_1000
value: 0.196
- type: precision_at_3
value: 21.741
- type: precision_at_5
value: 15.465000000000002
- type: recall_at_1
value: 32.614
- type: recall_at_10
value: 59.782000000000004
- type: recall_at_100
value: 78.012
- type: recall_at_1000
value: 90.319
- type: recall_at_3
value: 46.825
- type: recall_at_5
value: 52.688
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackGamingRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 40.266000000000005
- type: map_at_10
value: 53.756
- type: map_at_100
value: 54.809
- type: map_at_1000
value: 54.855
- type: map_at_3
value: 50.073
- type: map_at_5
value: 52.293
- type: mrr_at_1
value: 46.332
- type: mrr_at_10
value: 57.116
- type: mrr_at_100
value: 57.767
- type: mrr_at_1000
value: 57.791000000000004
- type: mrr_at_3
value: 54.461999999999996
- type: mrr_at_5
value: 56.092
- type: ndcg_at_1
value: 46.332
- type: ndcg_at_10
value: 60.092
- type: ndcg_at_100
value: 64.034
- type: ndcg_at_1000
value: 64.937
- type: ndcg_at_3
value: 54.071000000000005
- type: ndcg_at_5
value: 57.254000000000005
- type: precision_at_1
value: 46.332
- type: precision_at_10
value: 9.799
- type: precision_at_100
value: 1.278
- type: precision_at_1000
value: 0.13899999999999998
- type: precision_at_3
value: 24.368000000000002
- type: precision_at_5
value: 16.89
- type: recall_at_1
value: 40.266000000000005
- type: recall_at_10
value: 75.41499999999999
- type: recall_at_100
value: 92.01700000000001
- type: recall_at_1000
value: 98.379
- type: recall_at_3
value: 59.476
- type: recall_at_5
value: 67.297
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackGisRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 28.589
- type: map_at_10
value: 37.755
- type: map_at_100
value: 38.881
- type: map_at_1000
value: 38.954
- type: map_at_3
value: 34.759
- type: map_at_5
value: 36.544
- type: mrr_at_1
value: 30.734
- type: mrr_at_10
value: 39.742
- type: mrr_at_100
value: 40.774
- type: mrr_at_1000
value: 40.824
- type: mrr_at_3
value: 37.137
- type: mrr_at_5
value: 38.719
- type: ndcg_at_1
value: 30.734
- type: ndcg_at_10
value: 42.978
- type: ndcg_at_100
value: 48.309000000000005
- type: ndcg_at_1000
value: 50.068
- type: ndcg_at_3
value: 37.361
- type: ndcg_at_5
value: 40.268
- type: precision_at_1
value: 30.734
- type: precision_at_10
value: 6.565
- type: precision_at_100
value: 0.964
- type: precision_at_1000
value: 0.11499999999999999
- type: precision_at_3
value: 15.744
- type: precision_at_5
value: 11.096
- type: recall_at_1
value: 28.589
- type: recall_at_10
value: 57.126999999999995
- type: recall_at_100
value: 81.051
- type: recall_at_1000
value: 94.027
- type: recall_at_3
value: 42.045
- type: recall_at_5
value: 49.019
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackMathematicaRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 18.5
- type: map_at_10
value: 27.950999999999997
- type: map_at_100
value: 29.186
- type: map_at_1000
value: 29.298000000000002
- type: map_at_3
value: 25.141000000000002
- type: map_at_5
value: 26.848
- type: mrr_at_1
value: 22.637
- type: mrr_at_10
value: 32.572
- type: mrr_at_100
value: 33.472
- type: mrr_at_1000
value: 33.533
- type: mrr_at_3
value: 29.747
- type: mrr_at_5
value: 31.482
- type: ndcg_at_1
value: 22.637
- type: ndcg_at_10
value: 33.73
- type: ndcg_at_100
value: 39.568
- type: ndcg_at_1000
value: 42.201
- type: ndcg_at_3
value: 28.505999999999997
- type: ndcg_at_5
value: 31.255
- type: precision_at_1
value: 22.637
- type: precision_at_10
value: 6.281000000000001
- type: precision_at_100
value: 1.073
- type: precision_at_1000
value: 0.14300000000000002
- type: precision_at_3
value: 13.847000000000001
- type: precision_at_5
value: 10.224
- type: recall_at_1
value: 18.5
- type: recall_at_10
value: 46.744
- type: recall_at_100
value: 72.072
- type: recall_at_1000
value: 91.03999999999999
- type: recall_at_3
value: 32.551
- type: recall_at_5
value: 39.533
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackPhysicsRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 30.602
- type: map_at_10
value: 42.18
- type: map_at_100
value: 43.6
- type: map_at_1000
value: 43.704
- type: map_at_3
value: 38.413000000000004
- type: map_at_5
value: 40.626
- type: mrr_at_1
value: 37.344
- type: mrr_at_10
value: 47.638000000000005
- type: mrr_at_100
value: 48.485
- type: mrr_at_1000
value: 48.52
- type: mrr_at_3
value: 44.867000000000004
- type: mrr_at_5
value: 46.566
- type: ndcg_at_1
value: 37.344
- type: ndcg_at_10
value: 48.632
- type: ndcg_at_100
value: 54.215
- type: ndcg_at_1000
value: 55.981
- type: ndcg_at_3
value: 42.681999999999995
- type: ndcg_at_5
value: 45.732
- type: precision_at_1
value: 37.344
- type: precision_at_10
value: 8.932
- type: precision_at_100
value: 1.376
- type: precision_at_1000
value: 0.17099999999999999
- type: precision_at_3
value: 20.276
- type: precision_at_5
value: 14.726
- type: recall_at_1
value: 30.602
- type: recall_at_10
value: 62.273
- type: recall_at_100
value: 85.12100000000001
- type: recall_at_1000
value: 96.439
- type: recall_at_3
value: 45.848
- type: recall_at_5
value: 53.615
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackProgrammersRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 23.952
- type: map_at_10
value: 35.177
- type: map_at_100
value: 36.59
- type: map_at_1000
value: 36.703
- type: map_at_3
value: 31.261
- type: map_at_5
value: 33.222
- type: mrr_at_1
value: 29.337999999999997
- type: mrr_at_10
value: 40.152
- type: mrr_at_100
value: 40.963
- type: mrr_at_1000
value: 41.016999999999996
- type: mrr_at_3
value: 36.91
- type: mrr_at_5
value: 38.685
- type: ndcg_at_1
value: 29.337999999999997
- type: ndcg_at_10
value: 41.994
- type: ndcg_at_100
value: 47.587
- type: ndcg_at_1000
value: 49.791000000000004
- type: ndcg_at_3
value: 35.27
- type: ndcg_at_5
value: 38.042
- type: precision_at_1
value: 29.337999999999997
- type: precision_at_10
value: 8.276
- type: precision_at_100
value: 1.276
- type: precision_at_1000
value: 0.164
- type: precision_at_3
value: 17.161
- type: precision_at_5
value: 12.671
- type: recall_at_1
value: 23.952
- type: recall_at_10
value: 57.267
- type: recall_at_100
value: 80.886
- type: recall_at_1000
value: 95.611
- type: recall_at_3
value: 38.622
- type: recall_at_5
value: 45.811
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 27.092083333333335
- type: map_at_10
value: 37.2925
- type: map_at_100
value: 38.57041666666666
- type: map_at_1000
value: 38.68141666666667
- type: map_at_3
value: 34.080000000000005
- type: map_at_5
value: 35.89958333333333
- type: mrr_at_1
value: 31.94758333333333
- type: mrr_at_10
value: 41.51049999999999
- type: mrr_at_100
value: 42.36099999999999
- type: mrr_at_1000
value: 42.4125
- type: mrr_at_3
value: 38.849583333333335
- type: mrr_at_5
value: 40.448249999999994
- type: ndcg_at_1
value: 31.94758333333333
- type: ndcg_at_10
value: 43.17633333333333
- type: ndcg_at_100
value: 48.45241666666668
- type: ndcg_at_1000
value: 50.513999999999996
- type: ndcg_at_3
value: 37.75216666666667
- type: ndcg_at_5
value: 40.393833333333326
- type: precision_at_1
value: 31.94758333333333
- type: precision_at_10
value: 7.688916666666666
- type: precision_at_100
value: 1.2250833333333333
- type: precision_at_1000
value: 0.1595
- type: precision_at_3
value: 17.465999999999998
- type: precision_at_5
value: 12.548083333333333
- type: recall_at_1
value: 27.092083333333335
- type: recall_at_10
value: 56.286583333333326
- type: recall_at_100
value: 79.09033333333333
- type: recall_at_1000
value: 93.27483333333335
- type: recall_at_3
value: 41.35325
- type: recall_at_5
value: 48.072750000000006
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackStatsRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 25.825
- type: map_at_10
value: 33.723
- type: map_at_100
value: 34.74
- type: map_at_1000
value: 34.824
- type: map_at_3
value: 31.369000000000003
- type: map_at_5
value: 32.533
- type: mrr_at_1
value: 29.293999999999997
- type: mrr_at_10
value: 36.84
- type: mrr_at_100
value: 37.681
- type: mrr_at_1000
value: 37.742
- type: mrr_at_3
value: 34.79
- type: mrr_at_5
value: 35.872
- type: ndcg_at_1
value: 29.293999999999997
- type: ndcg_at_10
value: 38.385999999999996
- type: ndcg_at_100
value: 43.327
- type: ndcg_at_1000
value: 45.53
- type: ndcg_at_3
value: 33.985
- type: ndcg_at_5
value: 35.817
- type: precision_at_1
value: 29.293999999999997
- type: precision_at_10
value: 6.12
- type: precision_at_100
value: 0.9329999999999999
- type: precision_at_1000
value: 0.11900000000000001
- type: precision_at_3
value: 14.621999999999998
- type: precision_at_5
value: 10.030999999999999
- type: recall_at_1
value: 25.825
- type: recall_at_10
value: 49.647000000000006
- type: recall_at_100
value: 72.32300000000001
- type: recall_at_1000
value: 88.62400000000001
- type: recall_at_3
value: 37.366
- type: recall_at_5
value: 41.957
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackTexRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 18.139
- type: map_at_10
value: 26.107000000000003
- type: map_at_100
value: 27.406999999999996
- type: map_at_1000
value: 27.535999999999998
- type: map_at_3
value: 23.445
- type: map_at_5
value: 24.916
- type: mrr_at_1
value: 21.817
- type: mrr_at_10
value: 29.99
- type: mrr_at_100
value: 31.052000000000003
- type: mrr_at_1000
value: 31.128
- type: mrr_at_3
value: 27.627000000000002
- type: mrr_at_5
value: 29.005
- type: ndcg_at_1
value: 21.817
- type: ndcg_at_10
value: 31.135
- type: ndcg_at_100
value: 37.108000000000004
- type: ndcg_at_1000
value: 39.965
- type: ndcg_at_3
value: 26.439
- type: ndcg_at_5
value: 28.655
- type: precision_at_1
value: 21.817
- type: precision_at_10
value: 5.757000000000001
- type: precision_at_100
value: 1.036
- type: precision_at_1000
value: 0.147
- type: precision_at_3
value: 12.537
- type: precision_at_5
value: 9.229
- type: recall_at_1
value: 18.139
- type: recall_at_10
value: 42.272999999999996
- type: recall_at_100
value: 68.657
- type: recall_at_1000
value: 88.93799999999999
- type: recall_at_3
value: 29.266
- type: recall_at_5
value: 34.892
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackUnixRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 27.755000000000003
- type: map_at_10
value: 37.384
- type: map_at_100
value: 38.56
- type: map_at_1000
value: 38.655
- type: map_at_3
value: 34.214
- type: map_at_5
value: 35.96
- type: mrr_at_1
value: 32.369
- type: mrr_at_10
value: 41.625
- type: mrr_at_100
value: 42.449
- type: mrr_at_1000
value: 42.502
- type: mrr_at_3
value: 38.899
- type: mrr_at_5
value: 40.489999999999995
- type: ndcg_at_1
value: 32.369
- type: ndcg_at_10
value: 43.287
- type: ndcg_at_100
value: 48.504999999999995
- type: ndcg_at_1000
value: 50.552
- type: ndcg_at_3
value: 37.549
- type: ndcg_at_5
value: 40.204
- type: precision_at_1
value: 32.369
- type: precision_at_10
value: 7.425
- type: precision_at_100
value: 1.134
- type: precision_at_1000
value: 0.14200000000000002
- type: precision_at_3
value: 17.102
- type: precision_at_5
value: 12.107999999999999
- type: recall_at_1
value: 27.755000000000003
- type: recall_at_10
value: 57.071000000000005
- type: recall_at_100
value: 79.456
- type: recall_at_1000
value: 93.54299999999999
- type: recall_at_3
value: 41.298
- type: recall_at_5
value: 48.037
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackWebmastersRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 24.855
- type: map_at_10
value: 34.53
- type: map_at_100
value: 36.167
- type: map_at_1000
value: 36.394999999999996
- type: map_at_3
value: 31.037
- type: map_at_5
value: 33.119
- type: mrr_at_1
value: 30.631999999999998
- type: mrr_at_10
value: 39.763999999999996
- type: mrr_at_100
value: 40.77
- type: mrr_at_1000
value: 40.826
- type: mrr_at_3
value: 36.495
- type: mrr_at_5
value: 38.561
- type: ndcg_at_1
value: 30.631999999999998
- type: ndcg_at_10
value: 40.942
- type: ndcg_at_100
value: 47.07
- type: ndcg_at_1000
value: 49.363
- type: ndcg_at_3
value: 35.038000000000004
- type: ndcg_at_5
value: 38.161
- type: precision_at_1
value: 30.631999999999998
- type: precision_at_10
value: 7.983999999999999
- type: precision_at_100
value: 1.6070000000000002
- type: precision_at_1000
value: 0.246
- type: precision_at_3
value: 16.206
- type: precision_at_5
value: 12.253
- type: recall_at_1
value: 24.855
- type: recall_at_10
value: 53.291999999999994
- type: recall_at_100
value: 80.283
- type: recall_at_1000
value: 94.309
- type: recall_at_3
value: 37.257
- type: recall_at_5
value: 45.282
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackWordpressRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 21.208
- type: map_at_10
value: 30.512
- type: map_at_100
value: 31.496000000000002
- type: map_at_1000
value: 31.595000000000002
- type: map_at_3
value: 27.904
- type: map_at_5
value: 29.491
- type: mrr_at_1
value: 22.736
- type: mrr_at_10
value: 32.379999999999995
- type: mrr_at_100
value: 33.245000000000005
- type: mrr_at_1000
value: 33.315
- type: mrr_at_3
value: 29.945
- type: mrr_at_5
value: 31.488
- type: ndcg_at_1
value: 22.736
- type: ndcg_at_10
value: 35.643
- type: ndcg_at_100
value: 40.535
- type: ndcg_at_1000
value: 43.042
- type: ndcg_at_3
value: 30.625000000000004
- type: ndcg_at_5
value: 33.323
- type: precision_at_1
value: 22.736
- type: precision_at_10
value: 5.6930000000000005
- type: precision_at_100
value: 0.889
- type: precision_at_1000
value: 0.122
- type: precision_at_3
value: 13.431999999999999
- type: precision_at_5
value: 9.575
- type: recall_at_1
value: 21.208
- type: recall_at_10
value: 49.47
- type: recall_at_100
value: 71.71499999999999
- type: recall_at_1000
value: 90.55499999999999
- type: recall_at_3
value: 36.124
- type: recall_at_5
value: 42.606
- task:
type: Retrieval
dataset:
type: climate-fever
name: MTEB ClimateFEVER
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 11.363
- type: map_at_10
value: 20.312
- type: map_at_100
value: 22.225
- type: map_at_1000
value: 22.411
- type: map_at_3
value: 16.68
- type: map_at_5
value: 18.608
- type: mrr_at_1
value: 25.537
- type: mrr_at_10
value: 37.933
- type: mrr_at_100
value: 38.875
- type: mrr_at_1000
value: 38.911
- type: mrr_at_3
value: 34.387
- type: mrr_at_5
value: 36.51
- type: ndcg_at_1
value: 25.537
- type: ndcg_at_10
value: 28.82
- type: ndcg_at_100
value: 36.341
- type: ndcg_at_1000
value: 39.615
- type: ndcg_at_3
value: 23.01
- type: ndcg_at_5
value: 25.269000000000002
- type: precision_at_1
value: 25.537
- type: precision_at_10
value: 9.153
- type: precision_at_100
value: 1.7319999999999998
- type: precision_at_1000
value: 0.234
- type: precision_at_3
value: 17.22
- type: precision_at_5
value: 13.629
- type: recall_at_1
value: 11.363
- type: recall_at_10
value: 35.382999999999996
- type: recall_at_100
value: 61.367000000000004
- type: recall_at_1000
value: 79.699
- type: recall_at_3
value: 21.495
- type: recall_at_5
value: 27.42
- task:
type: Retrieval
dataset:
type: dbpedia-entity
name: MTEB DBPedia
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 9.65
- type: map_at_10
value: 20.742
- type: map_at_100
value: 29.614
- type: map_at_1000
value: 31.373
- type: map_at_3
value: 14.667
- type: map_at_5
value: 17.186
- type: mrr_at_1
value: 69.75
- type: mrr_at_10
value: 76.762
- type: mrr_at_100
value: 77.171
- type: mrr_at_1000
value: 77.179
- type: mrr_at_3
value: 75.125
- type: mrr_at_5
value: 76.287
- type: ndcg_at_1
value: 57.62500000000001
- type: ndcg_at_10
value: 42.370999999999995
- type: ndcg_at_100
value: 47.897
- type: ndcg_at_1000
value: 55.393
- type: ndcg_at_3
value: 46.317
- type: ndcg_at_5
value: 43.906
- type: precision_at_1
value: 69.75
- type: precision_at_10
value: 33.95
- type: precision_at_100
value: 10.885
- type: precision_at_1000
value: 2.2239999999999998
- type: precision_at_3
value: 49.75
- type: precision_at_5
value: 42.3
- type: recall_at_1
value: 9.65
- type: recall_at_10
value: 26.117
- type: recall_at_100
value: 55.084
- type: recall_at_1000
value: 78.62400000000001
- type: recall_at_3
value: 15.823
- type: recall_at_5
value: 19.652
- task:
type: Classification
dataset:
type: mteb/emotion
name: MTEB EmotionClassification
config: default
split: test
revision: 4f58c6b202a23cf9a4da393831edf4f9183cad37
metrics:
- type: accuracy
value: 47.885
- type: f1
value: 42.99567641346983
- task:
type: Retrieval
dataset:
type: fever
name: MTEB FEVER
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 70.97
- type: map_at_10
value: 80.34599999999999
- type: map_at_100
value: 80.571
- type: map_at_1000
value: 80.584
- type: map_at_3
value: 79.279
- type: map_at_5
value: 79.94
- type: mrr_at_1
value: 76.613
- type: mrr_at_10
value: 85.15700000000001
- type: mrr_at_100
value: 85.249
- type: mrr_at_1000
value: 85.252
- type: mrr_at_3
value: 84.33800000000001
- type: mrr_at_5
value: 84.89
- type: ndcg_at_1
value: 76.613
- type: ndcg_at_10
value: 84.53399999999999
- type: ndcg_at_100
value: 85.359
- type: ndcg_at_1000
value: 85.607
- type: ndcg_at_3
value: 82.76599999999999
- type: ndcg_at_5
value: 83.736
- type: precision_at_1
value: 76.613
- type: precision_at_10
value: 10.206
- type: precision_at_100
value: 1.083
- type: precision_at_1000
value: 0.11199999999999999
- type: precision_at_3
value: 31.913000000000004
- type: precision_at_5
value: 19.769000000000002
- type: recall_at_1
value: 70.97
- type: recall_at_10
value: 92.674
- type: recall_at_100
value: 95.985
- type: recall_at_1000
value: 97.57000000000001
- type: recall_at_3
value: 87.742
- type: recall_at_5
value: 90.28
- task:
type: Retrieval
dataset:
type: fiqa
name: MTEB FiQA2018
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 22.494
- type: map_at_10
value: 36.491
- type: map_at_100
value: 38.550000000000004
- type: map_at_1000
value: 38.726
- type: map_at_3
value: 31.807000000000002
- type: map_at_5
value: 34.299
- type: mrr_at_1
value: 44.907000000000004
- type: mrr_at_10
value: 53.146
- type: mrr_at_100
value: 54.013999999999996
- type: mrr_at_1000
value: 54.044000000000004
- type: mrr_at_3
value: 50.952
- type: mrr_at_5
value: 52.124
- type: ndcg_at_1
value: 44.907000000000004
- type: ndcg_at_10
value: 44.499
- type: ndcg_at_100
value: 51.629000000000005
- type: ndcg_at_1000
value: 54.367
- type: ndcg_at_3
value: 40.900999999999996
- type: ndcg_at_5
value: 41.737
- type: precision_at_1
value: 44.907000000000004
- type: precision_at_10
value: 12.346
- type: precision_at_100
value: 1.974
- type: precision_at_1000
value: 0.246
- type: precision_at_3
value: 27.366
- type: precision_at_5
value: 19.846
- type: recall_at_1
value: 22.494
- type: recall_at_10
value: 51.156
- type: recall_at_100
value: 77.11200000000001
- type: recall_at_1000
value: 93.44
- type: recall_at_3
value: 36.574
- type: recall_at_5
value: 42.361
- task:
type: Retrieval
dataset:
type: hotpotqa
name: MTEB HotpotQA
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 38.568999999999996
- type: map_at_10
value: 58.485
- type: map_at_100
value: 59.358999999999995
- type: map_at_1000
value: 59.429
- type: map_at_3
value: 55.217000000000006
- type: map_at_5
value: 57.236
- type: mrr_at_1
value: 77.137
- type: mrr_at_10
value: 82.829
- type: mrr_at_100
value: 83.04599999999999
- type: mrr_at_1000
value: 83.05399999999999
- type: mrr_at_3
value: 81.904
- type: mrr_at_5
value: 82.50800000000001
- type: ndcg_at_1
value: 77.137
- type: ndcg_at_10
value: 67.156
- type: ndcg_at_100
value: 70.298
- type: ndcg_at_1000
value: 71.65700000000001
- type: ndcg_at_3
value: 62.535
- type: ndcg_at_5
value: 65.095
- type: precision_at_1
value: 77.137
- type: precision_at_10
value: 13.911999999999999
- type: precision_at_100
value: 1.6389999999999998
- type: precision_at_1000
value: 0.182
- type: precision_at_3
value: 39.572
- type: precision_at_5
value: 25.766
- type: recall_at_1
value: 38.568999999999996
- type: recall_at_10
value: 69.56099999999999
- type: recall_at_100
value: 81.931
- type: recall_at_1000
value: 90.91799999999999
- type: recall_at_3
value: 59.358999999999995
- type: recall_at_5
value: 64.416
- task:
type: Classification
dataset:
type: mteb/imdb
name: MTEB ImdbClassification
config: default
split: test
revision: 3d86128a09e091d6018b6d26cad27f2739fc2db7
metrics:
- type: accuracy
value: 88.45600000000002
- type: ap
value: 84.09725115338568
- type: f1
value: 88.41874909080512
- task:
type: Retrieval
dataset:
type: msmarco
name: MTEB MSMARCO
config: default
split: dev
revision: None
metrics:
- type: map_at_1
value: 21.404999999999998
- type: map_at_10
value: 33.921
- type: map_at_100
value: 35.116
- type: map_at_1000
value: 35.164
- type: map_at_3
value: 30.043999999999997
- type: map_at_5
value: 32.327
- type: mrr_at_1
value: 21.977
- type: mrr_at_10
value: 34.505
- type: mrr_at_100
value: 35.638999999999996
- type: mrr_at_1000
value: 35.68
- type: mrr_at_3
value: 30.703999999999997
- type: mrr_at_5
value: 32.96
- type: ndcg_at_1
value: 21.963
- type: ndcg_at_10
value: 40.859
- type: ndcg_at_100
value: 46.614
- type: ndcg_at_1000
value: 47.789
- type: ndcg_at_3
value: 33.007999999999996
- type: ndcg_at_5
value: 37.084
- type: precision_at_1
value: 21.963
- type: precision_at_10
value: 6.493
- type: precision_at_100
value: 0.938
- type: precision_at_1000
value: 0.104
- type: precision_at_3
value: 14.155000000000001
- type: precision_at_5
value: 10.544
- type: recall_at_1
value: 21.404999999999998
- type: recall_at_10
value: 62.175000000000004
- type: recall_at_100
value: 88.786
- type: recall_at_1000
value: 97.738
- type: recall_at_3
value: 40.925
- type: recall_at_5
value: 50.722
- task:
type: Classification
dataset:
type: mteb/mtop_domain
name: MTEB MTOPDomainClassification (en)
config: en
split: test
revision: d80d48c1eb48d3562165c59d59d0034df9fff0bf
metrics:
- type: accuracy
value: 93.50661194710442
- type: f1
value: 93.30311193153668
- task:
type: Classification
dataset:
type: mteb/mtop_intent
name: MTEB MTOPIntentClassification (en)
config: en
split: test
revision: ae001d0e6b1228650b7bd1c2c65fb50ad11a8aba
metrics:
- type: accuracy
value: 73.24669402644778
- type: f1
value: 54.23122108002977
- task:
type: Classification
dataset:
type: mteb/amazon_massive_intent
name: MTEB MassiveIntentClassification (en)
config: en
split: test
revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7
metrics:
- type: accuracy
value: 72.61936785474109
- type: f1
value: 70.52644941025565
- task:
type: Classification
dataset:
type: mteb/amazon_massive_scenario
name: MTEB MassiveScenarioClassification (en)
config: en
split: test
revision: 7d571f92784cd94a019292a1f45445077d0ef634
metrics:
- type: accuracy
value: 76.76529926025555
- type: f1
value: 77.26872729322514
- task:
type: Clustering
dataset:
type: mteb/medrxiv-clustering-p2p
name: MTEB MedrxivClusteringP2P
config: default
split: test
revision: e7a26af6f3ae46b30dde8737f02c07b1505bcc73
metrics:
- type: v_measure
value: 33.39450293021839
- task:
type: Clustering
dataset:
type: mteb/medrxiv-clustering-s2s
name: MTEB MedrxivClusteringS2S
config: default
split: test
revision: 35191c8c0dca72d8ff3efcd72aa802307d469663
metrics:
- type: v_measure
value: 31.757796879839294
- task:
type: Reranking
dataset:
type: mteb/mind_small
name: MTEB MindSmallReranking
config: default
split: test
revision: 3bdac13927fdc888b903db93b2ffdbd90b295a69
metrics:
- type: map
value: 32.62512146657428
- type: mrr
value: 33.84624322066173
- task:
type: Retrieval
dataset:
type: nfcorpus
name: MTEB NFCorpus
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 6.462
- type: map_at_10
value: 14.947
- type: map_at_100
value: 19.344
- type: map_at_1000
value: 20.933
- type: map_at_3
value: 10.761999999999999
- type: map_at_5
value: 12.744
- type: mrr_at_1
value: 47.988
- type: mrr_at_10
value: 57.365
- type: mrr_at_100
value: 57.931
- type: mrr_at_1000
value: 57.96
- type: mrr_at_3
value: 54.85
- type: mrr_at_5
value: 56.569
- type: ndcg_at_1
value: 46.129999999999995
- type: ndcg_at_10
value: 38.173
- type: ndcg_at_100
value: 35.983
- type: ndcg_at_1000
value: 44.507000000000005
- type: ndcg_at_3
value: 42.495
- type: ndcg_at_5
value: 41.019
- type: precision_at_1
value: 47.678
- type: precision_at_10
value: 28.731
- type: precision_at_100
value: 9.232
- type: precision_at_1000
value: 2.202
- type: precision_at_3
value: 39.628
- type: precision_at_5
value: 35.851
- type: recall_at_1
value: 6.462
- type: recall_at_10
value: 18.968
- type: recall_at_100
value: 37.131
- type: recall_at_1000
value: 67.956
- type: recall_at_3
value: 11.905000000000001
- type: recall_at_5
value: 15.097
- task:
type: Retrieval
dataset:
type: nq
name: MTEB NQ
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 30.335
- type: map_at_10
value: 46.611999999999995
- type: map_at_100
value: 47.632000000000005
- type: map_at_1000
value: 47.661
- type: map_at_3
value: 41.876999999999995
- type: map_at_5
value: 44.799
- type: mrr_at_1
value: 34.125
- type: mrr_at_10
value: 49.01
- type: mrr_at_100
value: 49.75
- type: mrr_at_1000
value: 49.768
- type: mrr_at_3
value: 45.153
- type: mrr_at_5
value: 47.589999999999996
- type: ndcg_at_1
value: 34.125
- type: ndcg_at_10
value: 54.777
- type: ndcg_at_100
value: 58.914
- type: ndcg_at_1000
value: 59.521
- type: ndcg_at_3
value: 46.015
- type: ndcg_at_5
value: 50.861000000000004
- type: precision_at_1
value: 34.125
- type: precision_at_10
value: 9.166
- type: precision_at_100
value: 1.149
- type: precision_at_1000
value: 0.121
- type: precision_at_3
value: 21.147
- type: precision_at_5
value: 15.469
- type: recall_at_1
value: 30.335
- type: recall_at_10
value: 77.194
- type: recall_at_100
value: 94.812
- type: recall_at_1000
value: 99.247
- type: recall_at_3
value: 54.681000000000004
- type: recall_at_5
value: 65.86800000000001
- task:
type: Retrieval
dataset:
type: quora
name: MTEB QuoraRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 70.62
- type: map_at_10
value: 84.536
- type: map_at_100
value: 85.167
- type: map_at_1000
value: 85.184
- type: map_at_3
value: 81.607
- type: map_at_5
value: 83.423
- type: mrr_at_1
value: 81.36
- type: mrr_at_10
value: 87.506
- type: mrr_at_100
value: 87.601
- type: mrr_at_1000
value: 87.601
- type: mrr_at_3
value: 86.503
- type: mrr_at_5
value: 87.179
- type: ndcg_at_1
value: 81.36
- type: ndcg_at_10
value: 88.319
- type: ndcg_at_100
value: 89.517
- type: ndcg_at_1000
value: 89.60900000000001
- type: ndcg_at_3
value: 85.423
- type: ndcg_at_5
value: 86.976
- type: precision_at_1
value: 81.36
- type: precision_at_10
value: 13.415
- type: precision_at_100
value: 1.529
- type: precision_at_1000
value: 0.157
- type: precision_at_3
value: 37.342999999999996
- type: precision_at_5
value: 24.534
- type: recall_at_1
value: 70.62
- type: recall_at_10
value: 95.57600000000001
- type: recall_at_100
value: 99.624
- type: recall_at_1000
value: 99.991
- type: recall_at_3
value: 87.22
- type: recall_at_5
value: 91.654
- task:
type: Clustering
dataset:
type: mteb/reddit-clustering
name: MTEB RedditClustering
config: default
split: test
revision: 24640382cdbf8abc73003fb0fa6d111a705499eb
metrics:
- type: v_measure
value: 60.826438478212744
- task:
type: Clustering
dataset:
type: mteb/reddit-clustering-p2p
name: MTEB RedditClusteringP2P
config: default
split: test
revision: 282350215ef01743dc01b456c7f5241fa8937f16
metrics:
- type: v_measure
value: 64.24027467551447
- task:
type: Retrieval
dataset:
type: scidocs
name: MTEB SCIDOCS
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 4.997999999999999
- type: map_at_10
value: 14.267
- type: map_at_100
value: 16.843
- type: map_at_1000
value: 17.229
- type: map_at_3
value: 9.834
- type: map_at_5
value: 11.92
- type: mrr_at_1
value: 24.7
- type: mrr_at_10
value: 37.685
- type: mrr_at_100
value: 38.704
- type: mrr_at_1000
value: 38.747
- type: mrr_at_3
value: 34.150000000000006
- type: mrr_at_5
value: 36.075
- type: ndcg_at_1
value: 24.7
- type: ndcg_at_10
value: 23.44
- type: ndcg_at_100
value: 32.617000000000004
- type: ndcg_at_1000
value: 38.628
- type: ndcg_at_3
value: 21.747
- type: ndcg_at_5
value: 19.076
- type: precision_at_1
value: 24.7
- type: precision_at_10
value: 12.47
- type: precision_at_100
value: 2.564
- type: precision_at_1000
value: 0.4
- type: precision_at_3
value: 20.767
- type: precision_at_5
value: 17.06
- type: recall_at_1
value: 4.997999999999999
- type: recall_at_10
value: 25.3
- type: recall_at_100
value: 52.048
- type: recall_at_1000
value: 81.093
- type: recall_at_3
value: 12.642999999999999
- type: recall_at_5
value: 17.312
- task:
type: STS
dataset:
type: mteb/sickr-sts
name: MTEB SICK-R
config: default
split: test
revision: a6ea5a8cab320b040a23452cc28066d9beae2cee
metrics:
- type: cos_sim_pearson
value: 85.44942006292234
- type: cos_sim_spearman
value: 79.80930790660699
- type: euclidean_pearson
value: 82.93400777494863
- type: euclidean_spearman
value: 80.04664991110705
- type: manhattan_pearson
value: 82.93551681854949
- type: manhattan_spearman
value: 80.03156736837379
- task:
type: STS
dataset:
type: mteb/sts12-sts
name: MTEB STS12
config: default
split: test
revision: a0d554a64d88156834ff5ae9920b964011b16384
metrics:
- type: cos_sim_pearson
value: 85.63574059135726
- type: cos_sim_spearman
value: 76.80552915288186
- type: euclidean_pearson
value: 82.46368529820518
- type: euclidean_spearman
value: 76.60338474719275
- type: manhattan_pearson
value: 82.4558617035968
- type: manhattan_spearman
value: 76.57936082895705
- task:
type: STS
dataset:
type: mteb/sts13-sts
name: MTEB STS13
config: default
split: test
revision: 7e90230a92c190f1bf69ae9002b8cea547a64cca
metrics:
- type: cos_sim_pearson
value: 86.24116811084211
- type: cos_sim_spearman
value: 88.10998662068769
- type: euclidean_pearson
value: 87.04961732352689
- type: euclidean_spearman
value: 88.12543945864087
- type: manhattan_pearson
value: 86.9905224528854
- type: manhattan_spearman
value: 88.07827944705546
- task:
type: STS
dataset:
type: mteb/sts14-sts
name: MTEB STS14
config: default
split: test
revision: 6031580fec1f6af667f0bd2da0a551cf4f0b2375
metrics:
- type: cos_sim_pearson
value: 84.74847296555048
- type: cos_sim_spearman
value: 82.66200957916445
- type: euclidean_pearson
value: 84.48132256004965
- type: euclidean_spearman
value: 82.67915286000596
- type: manhattan_pearson
value: 84.44950477268334
- type: manhattan_spearman
value: 82.63327639173352
- task:
type: STS
dataset:
type: mteb/sts15-sts
name: MTEB STS15
config: default
split: test
revision: ae752c7c21bf194d8b67fd573edf7ae58183cbe3
metrics:
- type: cos_sim_pearson
value: 87.23056258027053
- type: cos_sim_spearman
value: 88.92791680286955
- type: euclidean_pearson
value: 88.13819235461933
- type: euclidean_spearman
value: 88.87294661361716
- type: manhattan_pearson
value: 88.14212133687899
- type: manhattan_spearman
value: 88.88551854529777
- task:
type: STS
dataset:
type: mteb/sts16-sts
name: MTEB STS16
config: default
split: test
revision: 4d8694f8f0e0100860b497b999b3dbed754a0513
metrics:
- type: cos_sim_pearson
value: 82.64179522732887
- type: cos_sim_spearman
value: 84.25028809903114
- type: euclidean_pearson
value: 83.40175015236979
- type: euclidean_spearman
value: 84.23369296429406
- type: manhattan_pearson
value: 83.43768174261321
- type: manhattan_spearman
value: 84.27855229214734
- task:
type: STS
dataset:
type: mteb/sts17-crosslingual-sts
name: MTEB STS17 (en-en)
config: en-en
split: test
revision: af5e6fb845001ecf41f4c1e033ce921939a2a68d
metrics:
- type: cos_sim_pearson
value: 88.20378955494732
- type: cos_sim_spearman
value: 88.46863559173111
- type: euclidean_pearson
value: 88.8249295811663
- type: euclidean_spearman
value: 88.6312737724905
- type: manhattan_pearson
value: 88.87744466378827
- type: manhattan_spearman
value: 88.82908423767314
- task:
type: STS
dataset:
type: mteb/sts22-crosslingual-sts
name: MTEB STS22 (en)
config: en
split: test
revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80
metrics:
- type: cos_sim_pearson
value: 69.91342028796086
- type: cos_sim_spearman
value: 69.71495021867864
- type: euclidean_pearson
value: 70.65334330405646
- type: euclidean_spearman
value: 69.4321253472211
- type: manhattan_pearson
value: 70.59743494727465
- type: manhattan_spearman
value: 69.11695509297482
- task:
type: STS
dataset:
type: mteb/stsbenchmark-sts
name: MTEB STSBenchmark
config: default
split: test
revision: b0fddb56ed78048fa8b90373c8a3cfc37b684831
metrics:
- type: cos_sim_pearson
value: 85.42451709766952
- type: cos_sim_spearman
value: 86.07166710670508
- type: euclidean_pearson
value: 86.12711421258899
- type: euclidean_spearman
value: 86.05232086925126
- type: manhattan_pearson
value: 86.15591089932126
- type: manhattan_spearman
value: 86.0890128623439
- task:
type: Reranking
dataset:
type: mteb/scidocs-reranking
name: MTEB SciDocsRR
config: default
split: test
revision: d3c5e1fc0b855ab6097bf1cda04dd73947d7caab
metrics:
- type: map
value: 87.1976344717285
- type: mrr
value: 96.3703145075694
- task:
type: Retrieval
dataset:
type: scifact
name: MTEB SciFact
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 59.511
- type: map_at_10
value: 69.724
- type: map_at_100
value: 70.208
- type: map_at_1000
value: 70.22800000000001
- type: map_at_3
value: 66.986
- type: map_at_5
value: 68.529
- type: mrr_at_1
value: 62.333000000000006
- type: mrr_at_10
value: 70.55
- type: mrr_at_100
value: 70.985
- type: mrr_at_1000
value: 71.004
- type: mrr_at_3
value: 68.611
- type: mrr_at_5
value: 69.728
- type: ndcg_at_1
value: 62.333000000000006
- type: ndcg_at_10
value: 74.265
- type: ndcg_at_100
value: 76.361
- type: ndcg_at_1000
value: 76.82900000000001
- type: ndcg_at_3
value: 69.772
- type: ndcg_at_5
value: 71.94800000000001
- type: precision_at_1
value: 62.333000000000006
- type: precision_at_10
value: 9.9
- type: precision_at_100
value: 1.093
- type: precision_at_1000
value: 0.11299999999999999
- type: precision_at_3
value: 27.444000000000003
- type: precision_at_5
value: 18
- type: recall_at_1
value: 59.511
- type: recall_at_10
value: 87.156
- type: recall_at_100
value: 96.5
- type: recall_at_1000
value: 100
- type: recall_at_3
value: 75.2
- type: recall_at_5
value: 80.661
- task:
type: PairClassification
dataset:
type: mteb/sprintduplicatequestions-pairclassification
name: MTEB SprintDuplicateQuestions
config: default
split: test
revision: d66bd1f72af766a5cc4b0ca5e00c162f89e8cc46
metrics:
- type: cos_sim_accuracy
value: 99.81683168316832
- type: cos_sim_ap
value: 95.74716566563774
- type: cos_sim_f1
value: 90.64238745574103
- type: cos_sim_precision
value: 91.7093142272262
- type: cos_sim_recall
value: 89.60000000000001
- type: dot_accuracy
value: 99.69405940594059
- type: dot_ap
value: 91.09013507754594
- type: dot_f1
value: 84.54227113556779
- type: dot_precision
value: 84.58458458458459
- type: dot_recall
value: 84.5
- type: euclidean_accuracy
value: 99.81782178217821
- type: euclidean_ap
value: 95.6324301072609
- type: euclidean_f1
value: 90.58341862845445
- type: euclidean_precision
value: 92.76729559748428
- type: euclidean_recall
value: 88.5
- type: manhattan_accuracy
value: 99.81980198019802
- type: manhattan_ap
value: 95.68510494437183
- type: manhattan_f1
value: 90.58945191313342
- type: manhattan_precision
value: 93.79014989293361
- type: manhattan_recall
value: 87.6
- type: max_accuracy
value: 99.81980198019802
- type: max_ap
value: 95.74716566563774
- type: max_f1
value: 90.64238745574103
- task:
type: Clustering
dataset:
type: mteb/stackexchange-clustering
name: MTEB StackExchangeClustering
config: default
split: test
revision: 6cbc1f7b2bc0622f2e39d2c77fa502909748c259
metrics:
- type: v_measure
value: 67.63761899427078
- task:
type: Clustering
dataset:
type: mteb/stackexchange-clustering-p2p
name: MTEB StackExchangeClusteringP2P
config: default
split: test
revision: 815ca46b2622cec33ccafc3735d572c266efdb44
metrics:
- type: v_measure
value: 36.572473369697235
- task:
type: Reranking
dataset:
type: mteb/stackoverflowdupquestions-reranking
name: MTEB StackOverflowDupQuestions
config: default
split: test
revision: e185fbe320c72810689fc5848eb6114e1ef5ec69
metrics:
- type: map
value: 53.63000245208579
- type: mrr
value: 54.504193722943725
- task:
type: Summarization
dataset:
type: mteb/summeval
name: MTEB SummEval
config: default
split: test
revision: cda12ad7615edc362dbf25a00fdd61d3b1eaf93c
metrics:
- type: cos_sim_pearson
value: 30.300791939416545
- type: cos_sim_spearman
value: 31.662904057924123
- type: dot_pearson
value: 26.21198530758316
- type: dot_spearman
value: 27.006921548904263
- task:
type: Retrieval
dataset:
type: trec-covid
name: MTEB TRECCOVID
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 0.197
- type: map_at_10
value: 1.752
- type: map_at_100
value: 10.795
- type: map_at_1000
value: 27.18
- type: map_at_3
value: 0.5890000000000001
- type: map_at_5
value: 0.938
- type: mrr_at_1
value: 74
- type: mrr_at_10
value: 85.833
- type: mrr_at_100
value: 85.833
- type: mrr_at_1000
value: 85.833
- type: mrr_at_3
value: 85.333
- type: mrr_at_5
value: 85.833
- type: ndcg_at_1
value: 69
- type: ndcg_at_10
value: 70.22
- type: ndcg_at_100
value: 55.785
- type: ndcg_at_1000
value: 52.93600000000001
- type: ndcg_at_3
value: 72.084
- type: ndcg_at_5
value: 71.184
- type: precision_at_1
value: 74
- type: precision_at_10
value: 75.2
- type: precision_at_100
value: 57.3
- type: precision_at_1000
value: 23.302
- type: precision_at_3
value: 77.333
- type: precision_at_5
value: 75.6
- type: recall_at_1
value: 0.197
- type: recall_at_10
value: 2.019
- type: recall_at_100
value: 14.257
- type: recall_at_1000
value: 50.922
- type: recall_at_3
value: 0.642
- type: recall_at_5
value: 1.043
- task:
type: Retrieval
dataset:
type: webis-touche2020
name: MTEB Touche2020
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 2.803
- type: map_at_10
value: 10.407
- type: map_at_100
value: 16.948
- type: map_at_1000
value: 18.424
- type: map_at_3
value: 5.405
- type: map_at_5
value: 6.908
- type: mrr_at_1
value: 36.735
- type: mrr_at_10
value: 50.221000000000004
- type: mrr_at_100
value: 51.388
- type: mrr_at_1000
value: 51.402
- type: mrr_at_3
value: 47.278999999999996
- type: mrr_at_5
value: 49.626
- type: ndcg_at_1
value: 34.694
- type: ndcg_at_10
value: 25.507
- type: ndcg_at_100
value: 38.296
- type: ndcg_at_1000
value: 49.492000000000004
- type: ndcg_at_3
value: 29.006999999999998
- type: ndcg_at_5
value: 25.979000000000003
- type: precision_at_1
value: 36.735
- type: precision_at_10
value: 22.041
- type: precision_at_100
value: 8.02
- type: precision_at_1000
value: 1.567
- type: precision_at_3
value: 28.571
- type: precision_at_5
value: 24.490000000000002
- type: recall_at_1
value: 2.803
- type: recall_at_10
value: 16.378
- type: recall_at_100
value: 50.489
- type: recall_at_1000
value: 85.013
- type: recall_at_3
value: 6.505
- type: recall_at_5
value: 9.243
- task:
type: Classification
dataset:
type: mteb/toxic_conversations_50k
name: MTEB ToxicConversationsClassification
config: default
split: test
revision: d7c0de2777da35d6aae2200a62c6e0e5af397c4c
metrics:
- type: accuracy
value: 70.55579999999999
- type: ap
value: 14.206982753316227
- type: f1
value: 54.372142814964285
- task:
type: Classification
dataset:
type: mteb/tweet_sentiment_extraction
name: MTEB TweetSentimentExtractionClassification
config: default
split: test
revision: d604517c81ca91fe16a244d1248fc021f9ecee7a
metrics:
- type: accuracy
value: 56.57611771363893
- type: f1
value: 56.924172639063144
- task:
type: Clustering
dataset:
type: mteb/twentynewsgroups-clustering
name: MTEB TwentyNewsgroupsClustering
config: default
split: test
revision: 6125ec4e24fa026cec8a478383ee943acfbd5449
metrics:
- type: v_measure
value: 52.82304915719759
- task:
type: PairClassification
dataset:
type: mteb/twittersemeval2015-pairclassification
name: MTEB TwitterSemEval2015
config: default
split: test
revision: 70970daeab8776df92f5ea462b6173c0b46fd2d1
metrics:
- type: cos_sim_accuracy
value: 85.92716218632653
- type: cos_sim_ap
value: 73.73359122546046
- type: cos_sim_f1
value: 68.42559487116262
- type: cos_sim_precision
value: 64.22124508215691
- type: cos_sim_recall
value: 73.21899736147758
- type: dot_accuracy
value: 80.38981939560112
- type: dot_ap
value: 54.61060862444974
- type: dot_f1
value: 53.45710627400769
- type: dot_precision
value: 44.87638839125761
- type: dot_recall
value: 66.09498680738787
- type: euclidean_accuracy
value: 86.02849138701794
- type: euclidean_ap
value: 73.95673761922404
- type: euclidean_f1
value: 68.6783042394015
- type: euclidean_precision
value: 65.1063829787234
- type: euclidean_recall
value: 72.66490765171504
- type: manhattan_accuracy
value: 85.9808070572808
- type: manhattan_ap
value: 73.9050720058029
- type: manhattan_f1
value: 68.57560618983794
- type: manhattan_precision
value: 63.70839936608558
- type: manhattan_recall
value: 74.24802110817942
- type: max_accuracy
value: 86.02849138701794
- type: max_ap
value: 73.95673761922404
- type: max_f1
value: 68.6783042394015
- task:
type: PairClassification
dataset:
type: mteb/twitterurlcorpus-pairclassification
name: MTEB TwitterURLCorpus
config: default
split: test
revision: 8b6510b0b1fa4e4c4f879467980e9be563ec1cdf
metrics:
- type: cos_sim_accuracy
value: 88.72783017037295
- type: cos_sim_ap
value: 85.52705223340233
- type: cos_sim_f1
value: 77.91659078492079
- type: cos_sim_precision
value: 73.93378032764221
- type: cos_sim_recall
value: 82.35294117647058
- type: dot_accuracy
value: 85.41739434159972
- type: dot_ap
value: 77.17734818118443
- type: dot_f1
value: 71.63473589973144
- type: dot_precision
value: 66.96123719622415
- type: dot_recall
value: 77.00954727440714
- type: euclidean_accuracy
value: 88.68125897465751
- type: euclidean_ap
value: 85.47712213906692
- type: euclidean_f1
value: 77.81419950830664
- type: euclidean_precision
value: 75.37162649733006
- type: euclidean_recall
value: 80.42038805050817
- type: manhattan_accuracy
value: 88.67349710870494
- type: manhattan_ap
value: 85.46506475241955
- type: manhattan_f1
value: 77.87259084890393
- type: manhattan_precision
value: 74.54929577464789
- type: manhattan_recall
value: 81.50600554357868
- type: max_accuracy
value: 88.72783017037295
- type: max_ap
value: 85.52705223340233
- type: max_f1
value: 77.91659078492079
language:
- en
license: mit
---
# gte-large
General Text Embeddings (GTE) model. [Towards General Text Embeddings with Multi-stage Contrastive Learning](https://arxiv.org/abs/2308.03281)
The GTE models are trained by Alibaba DAMO Academy. They are mainly based on the BERT framework and currently offer three different sizes of models, including [GTE-large](https://huggingface.co/thenlper/gte-large), [GTE-base](https://huggingface.co/thenlper/gte-base), and [GTE-small](https://huggingface.co/thenlper/gte-small). The GTE models are trained on a large-scale corpus of relevance text pairs, covering a wide range of domains and scenarios. This enables the GTE models to be applied to various downstream tasks of text embeddings, including **information retrieval**, **semantic textual similarity**, **text reranking**, etc.
## Metrics
We compared the performance of the GTE models with other popular text embedding models on the MTEB benchmark. For more detailed comparison results, please refer to the [MTEB leaderboard](https://huggingface.co/spaces/mteb/leaderboard).
| Model Name | Model Size (GB) | Dimension | Sequence Length | Average (56) | Clustering (11) | Pair Classification (3) | Reranking (4) | Retrieval (15) | STS (10) | Summarization (1) | Classification (12) |
|:----:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| [**gte-large**](https://huggingface.co/thenlper/gte-large) | 0.67 | 1024 | 512 | **63.13** | 46.84 | 85.00 | 59.13 | 52.22 | 83.35 | 31.66 | 73.33 |
| [**gte-base**](https://huggingface.co/thenlper/gte-base) | 0.22 | 768 | 512 | **62.39** | 46.2 | 84.57 | 58.61 | 51.14 | 82.3 | 31.17 | 73.01 |
| [e5-large-v2](https://huggingface.co/intfloat/e5-large-v2) | 1.34 | 1024| 512 | 62.25 | 44.49 | 86.03 | 56.61 | 50.56 | 82.05 | 30.19 | 75.24 |
| [e5-base-v2](https://huggingface.co/intfloat/e5-base-v2) | 0.44 | 768 | 512 | 61.5 | 43.80 | 85.73 | 55.91 | 50.29 | 81.05 | 30.28 | 73.84 |
| [**gte-small**](https://huggingface.co/thenlper/gte-small) | 0.07 | 384 | 512 | **61.36** | 44.89 | 83.54 | 57.7 | 49.46 | 82.07 | 30.42 | 72.31 |
| [text-embedding-ada-002](https://platform.openai.com/docs/guides/embeddings) | - | 1536 | 8192 | 60.99 | 45.9 | 84.89 | 56.32 | 49.25 | 80.97 | 30.8 | 70.93 |
| [e5-small-v2](https://huggingface.co/intfloat/e5-base-v2) | 0.13 | 384 | 512 | 59.93 | 39.92 | 84.67 | 54.32 | 49.04 | 80.39 | 31.16 | 72.94 |
| [sentence-t5-xxl](https://huggingface.co/sentence-transformers/sentence-t5-xxl) | 9.73 | 768 | 512 | 59.51 | 43.72 | 85.06 | 56.42 | 42.24 | 82.63 | 30.08 | 73.42 |
| [all-mpnet-base-v2](https://huggingface.co/sentence-transformers/all-mpnet-base-v2) | 0.44 | 768 | 514 | 57.78 | 43.69 | 83.04 | 59.36 | 43.81 | 80.28 | 27.49 | 65.07 |
| [sgpt-bloom-7b1-msmarco](https://huggingface.co/bigscience/sgpt-bloom-7b1-msmarco) | 28.27 | 4096 | 2048 | 57.59 | 38.93 | 81.9 | 55.65 | 48.22 | 77.74 | 33.6 | 66.19 |
| [all-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L12-v2) | 0.13 | 384 | 512 | 56.53 | 41.81 | 82.41 | 58.44 | 42.69 | 79.8 | 27.9 | 63.21 |
| [all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) | 0.09 | 384 | 512 | 56.26 | 42.35 | 82.37 | 58.04 | 41.95 | 78.9 | 30.81 | 63.05 |
| [contriever-base-msmarco](https://huggingface.co/nthakur/contriever-base-msmarco) | 0.44 | 768 | 512 | 56.00 | 41.1 | 82.54 | 53.14 | 41.88 | 76.51 | 30.36 | 66.68 |
| [sentence-t5-base](https://huggingface.co/sentence-transformers/sentence-t5-base) | 0.22 | 768 | 512 | 55.27 | 40.21 | 85.18 | 53.09 | 33.63 | 81.14 | 31.39 | 69.81 |
## Usage
Code example
```python
import torch.nn.functional as F
from torch import Tensor
from transformers import AutoTokenizer, AutoModel
def average_pool(last_hidden_states: Tensor,
attention_mask: Tensor) -> Tensor:
last_hidden = last_hidden_states.masked_fill(~attention_mask[..., None].bool(), 0.0)
return last_hidden.sum(dim=1) / attention_mask.sum(dim=1)[..., None]
input_texts = [
"what is the capital of China?",
"how to implement quick sort in python?",
"Beijing",
"sorting algorithms"
]
tokenizer = AutoTokenizer.from_pretrained("thenlper/gte-large")
model = AutoModel.from_pretrained("thenlper/gte-large")
# Tokenize the input texts
batch_dict = tokenizer(input_texts, max_length=512, padding=True, truncation=True, return_tensors='pt')
outputs = model(**batch_dict)
embeddings = average_pool(outputs.last_hidden_state, batch_dict['attention_mask'])
# (Optionally) normalize embeddings
embeddings = F.normalize(embeddings, p=2, dim=1)
scores = (embeddings[:1] @ embeddings[1:].T) * 100
print(scores.tolist())
```
Use with sentence-transformers:
```python
from sentence_transformers import SentenceTransformer
from sentence_transformers.util import cos_sim
sentences = ['That is a happy person', 'That is a very happy person']
model = SentenceTransformer('thenlper/gte-large')
embeddings = model.encode(sentences)
print(cos_sim(embeddings[0], embeddings[1]))
```
### Limitation
This model exclusively caters to English texts, and any lengthy texts will be truncated to a maximum of 512 tokens.
### Citation
If you find our paper or models helpful, please consider citing them as follows:
```
@misc{li2023general,
title={Towards General Text Embeddings with Multi-stage Contrastive Learning},
author={Zehan Li and Xin Zhang and Yanzhao Zhang and Dingkun Long and Pengjun Xie and Meishan Zhang},
year={2023},
eprint={2308.03281},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
```
| [
-0.5602346658706665,
-0.6140063405036926,
0.3185049891471863,
0.26056912541389465,
-0.21980403363704681,
-0.12212973088026047,
-0.3506460189819336,
-0.33097875118255615,
0.5057843327522278,
0.0752747431397438,
-0.5325027108192444,
-0.7571617960929871,
-0.7780171632766724,
-0.015728266909718513,
-0.22361545264720917,
1.0268959999084473,
-0.05791893228888512,
-0.20119039714336395,
0.0383426770567894,
-0.27382028102874756,
-0.193274587392807,
-0.4355821907520294,
-0.6931452751159668,
-0.13708527386188507,
0.49497082829475403,
0.28327658772468567,
0.8028592467308044,
0.6716150045394897,
0.3406328856945038,
0.4092709422111511,
-0.21149733662605286,
-0.02575748786330223,
-0.3917389512062073,
-0.18033367395401,
0.173374742269516,
-0.35845091938972473,
-0.4804542362689972,
0.12780950963497162,
0.5584453344345093,
0.3354552090167999,
-0.01676281914114952,
0.1689639836549759,
0.2545461356639862,
0.428621768951416,
-0.317565381526947,
0.2350580394268036,
-0.2276371866464615,
0.14651131629943848,
-0.10633525997400284,
0.18720726668834686,
-0.39779695868492126,
-0.3276267647743225,
0.3083001673221588,
-0.48453131318092346,
0.1581638753414154,
0.18737873435020447,
1.4408681392669678,
0.18374383449554443,
-0.3454252779483795,
-0.40896427631378174,
-0.18128065764904022,
0.9388483762741089,
-0.9585219621658325,
0.34038570523262024,
0.22205302119255066,
-0.040050290524959564,
-0.02373679354786873,
-0.8849125504493713,
-0.6334350109100342,
-0.0632554143667221,
-0.5860236287117004,
0.2806694507598877,
-0.25281092524528503,
-0.012560615316033363,
0.3173235356807709,
0.541077196598053,
-0.7589380741119385,
0.06732170283794403,
-0.039514560252428055,
-0.16418902575969696,
0.6444582343101501,
0.027187906205654144,
0.5068480372428894,
-0.5460618734359741,
-0.485286682844162,
-0.33013859391212463,
-0.405574768781662,
0.17566870152950287,
0.2760598063468933,
-0.05499700829386711,
-0.6605001091957092,
0.6148476600646973,
-0.07604767382144928,
0.5015254616737366,
0.0955815538764,
-0.044319115579128265,
0.7163050770759583,
-0.3475014865398407,
-0.3260972499847412,
-0.3639831840991974,
1.2485668659210205,
0.4476447105407715,
0.19274276494979858,
0.018653998151421547,
-0.12829288840293884,
-0.10549791157245636,
-0.21573807299137115,
-1.0039485692977905,
-0.2821277678012848,
0.21684576570987701,
-0.6507856249809265,
-0.3154114782810211,
0.13566087186336517,
-1.005322813987732,
-0.12441840767860413,
-0.04558245465159416,
0.617520809173584,
-0.6593480706214905,
-0.1309146136045456,
0.09038082510232925,
-0.1879844218492508,
0.3280208110809326,
-0.04333092272281647,
-0.8158499598503113,
0.09806792438030243,
0.3865635097026825,
0.971958577632904,
0.17884907126426697,
-0.31960320472717285,
-0.15112100541591644,
-0.10637561976909637,
-0.07655461132526398,
0.5471459031105042,
-0.3564351499080658,
-0.10614807158708572,
0.024858109652996063,
0.17100656032562256,
-0.3502972424030304,
-0.20613887906074524,
0.840715765953064,
-0.10259854048490524,
0.6169777512550354,
-0.13948498666286469,
-0.6112467050552368,
-0.1868353635072708,
0.23135371506214142,
-0.6567283272743225,
1.2739359140396118,
0.07615777105093002,
-1.1076141595840454,
0.22002294659614563,
-0.666335940361023,
-0.0900077149271965,
-0.44159603118896484,
-0.10299689322710037,
-0.7551627159118652,
-0.12000037729740143,
0.5480533838272095,
0.7428832054138184,
-0.22205950319766998,
0.046759653836488724,
-0.21130786836147308,
-0.23091164231300354,
0.08608158677816391,
-0.24914802610874176,
1.0343153476715088,
0.09572435170412064,
-0.6738767623901367,
0.19057051837444305,
-0.6340588331222534,
0.09653564542531967,
0.3770451843738556,
-0.14042596518993378,
-0.26024699211120605,
-0.0985817238688469,
0.139390766620636,
0.47572430968284607,
0.32108819484710693,
-0.5118434429168701,
0.26182469725608826,
-0.46522995829582214,
0.8404490351676941,
0.8610434532165527,
-0.029380979016423225,
0.320216566324234,
-0.3587396740913391,
0.21597374975681305,
0.1310470551252365,
0.3279338777065277,
-0.1368725597858429,
-0.6097369194030762,
-0.9538547992706299,
-0.5661484003067017,
0.5092132687568665,
0.619627833366394,
-0.7971947193145752,
0.8416426181793213,
-0.4479353725910187,
-0.5642858743667603,
-0.6171278357505798,
0.0045298244804143906,
0.42910516262054443,
0.30877941846847534,
0.5011263489723206,
-0.07305096089839935,
-0.4654916226863861,
-1.133253812789917,
-0.05851517617702484,
0.011866118758916855,
0.010692445561289787,
0.3786955773830414,
0.824995219707489,
-0.3295328915119171,
0.8163859248161316,
-0.6990557312965393,
-0.19630266726016998,
-0.20765812695026398,
0.17820464074611664,
0.4889189898967743,
0.5971999168395996,
0.8320267796516418,
-0.7812417149543762,
-0.7759093642234802,
-0.2703254520893097,
-0.8625352382659912,
0.16288375854492188,
-0.05952842906117439,
-0.3423367738723755,
0.21656189858913422,
0.4877162277698517,
-0.8993666172027588,
0.4823653995990753,
0.5897762775421143,
-0.6478505730628967,
0.46358340978622437,
-0.3557108938694,
0.11272231489419937,
-1.4363459348678589,
0.052064161747694016,
0.2188834547996521,
-0.24111317098140717,
-0.6204493641853333,
0.10501472651958466,
0.0678921639919281,
0.12068571150302887,
-0.359140008687973,
0.6839686632156372,
-0.6744446158409119,
0.23157796263694763,
0.13504715263843536,
0.4352460205554962,
-0.06782736629247665,
0.7930305004119873,
-0.14092735946178436,
0.7308732271194458,
0.5650690197944641,
-0.3771308958530426,
0.17516939342021942,
0.47948595881462097,
-0.45894017815589905,
0.5474658608436584,
-0.748375654220581,
0.03696669265627861,
-0.11146599054336548,
0.32523098587989807,
-1.1196972131729126,
-0.1580781787633896,
0.3919502794742584,
-0.6364998817443848,
0.41412046551704407,
0.024104196578264236,
-0.6352869868278503,
-0.7539879083633423,
-0.7512438893318176,
0.18941174447536469,
0.4847138822078705,
-0.5766066908836365,
0.38621821999549866,
0.23350298404693604,
-0.15928326547145844,
-0.8388980031013489,
-0.8360593914985657,
0.003761132014915347,
-0.28577151894569397,
-0.8485441207885742,
0.6046738624572754,
-0.2147921323776245,
0.13408677279949188,
0.15828566253185272,
0.14335082471370697,
0.05081794410943985,
-0.10995181649923325,
0.178863987326622,
0.35557764768600464,
-0.2602970600128174,
0.014070134609937668,
-0.03675835207104683,
-0.10145285725593567,
-0.13544656336307526,
-0.07251535356044769,
0.7942504286766052,
-0.25518128275871277,
-0.060031991451978683,
-0.5839666724205017,
0.2805577516555786,
0.5160541534423828,
-0.09777430444955826,
0.9946260452270508,
0.9991002678871155,
-0.4772641360759735,
0.08604638278484344,
-0.5556452870368958,
-0.1131458431482315,
-0.5350445508956909,
0.38527023792266846,
-0.46395426988601685,
-1.022889256477356,
0.7581803798675537,
0.32143324613571167,
0.15817897021770477,
1.0000675916671753,
0.6063989996910095,
-0.00242933863773942,
1.1381957530975342,
0.5643306374549866,
-0.35908588767051697,
0.6646685600280762,
-0.7296829223632812,
0.2891489863395691,
-0.9942916631698608,
-0.35535845160484314,
-0.4280329644680023,
-0.5650361180305481,
-0.8952020406723022,
-0.4795503318309784,
0.16814985871315002,
0.18548175692558289,
-0.572392463684082,
0.5707159042358398,
-0.6367578506469727,
0.16754047572612762,
0.5712229609489441,
0.2910042405128479,
-0.13946415483951569,
0.006760057061910629,
-0.42776674032211304,
-0.21601054072380066,
-0.6486482620239258,
-0.3818312883377075,
0.9212614297866821,
0.5938976407051086,
0.5027698278427124,
0.10004385560750961,
0.7037646770477295,
0.13248540461063385,
0.24379771947860718,
-0.7172930240631104,
0.6146394610404968,
-0.18215154111385345,
-0.649229109287262,
-0.2910401225090027,
-0.5821470618247986,
-0.9774810671806335,
0.3376573920249939,
-0.37030476331710815,
-0.9879647493362427,
0.1640716940164566,
-0.14734810590744019,
-0.40328449010849,
0.4780943691730499,
-0.8625009059906006,
1.0396097898483276,
0.0049963779747486115,
-0.35209882259368896,
-0.06178635358810425,
-0.6808969974517822,
0.2828260660171509,
0.4840030074119568,
0.16164307296276093,
0.05028487741947174,
-0.10321023315191269,
0.9259741902351379,
-0.47882214188575745,
0.7343586683273315,
-0.19950714707374573,
0.03422430530190468,
0.3266621530056,
-0.2698308527469635,
0.6761987209320068,
0.10032851994037628,
0.012150957249104977,
0.03720112890005112,
-0.2781781256198883,
-0.5578441619873047,
-0.5236648321151733,
0.8883863687515259,
-0.9514010548591614,
-0.5836833119392395,
-0.6212149858474731,
-0.3861953020095825,
-0.08239176124334335,
0.23308251798152924,
0.5368154048919678,
0.4756287932395935,
-0.010851491242647171,
0.47257140278816223,
0.701096773147583,
-0.4857902228832245,
0.8413257598876953,
-0.023734688758850098,
0.034462910145521164,
-0.711283266544342,
0.8898648023605347,
0.07253154367208481,
0.06495118141174316,
0.43284136056900024,
0.07988900691270828,
-0.46072325110435486,
-0.33542582392692566,
-0.3786962032318115,
0.6298227906227112,
-0.5915191769599915,
-0.16759632527828217,
-0.8373969793319702,
-0.4620906412601471,
-0.5331688523292542,
-0.1521606296300888,
-0.2402334362268448,
-0.4669067859649658,
-0.5515087842941284,
-0.24415594339370728,
0.3624646067619324,
0.7906967401504517,
-0.052644241601228714,
0.22447754442691803,
-0.5212153196334839,
0.30728214979171753,
0.2419547140598297,
0.42835816740989685,
0.020298609510064125,
-0.7548285126686096,
-0.3674732744693756,
-0.07562625408172607,
-0.38943156599998474,
-0.9153375029563904,
0.5477453470230103,
0.07781387865543365,
0.664030134677887,
0.4129473865032196,
-0.16810943186283112,
0.7236714363098145,
-0.49241024255752563,
0.994152843952179,
0.3939525783061981,
-1.030245065689087,
0.3882286548614502,
-0.23248662054538727,
0.18007385730743408,
0.406724750995636,
0.5030582547187805,
-0.586664080619812,
-0.32376036047935486,
-0.8622105717658997,
-1.1105502843856812,
0.6654008626937866,
0.4029027223587036,
0.12441229075193405,
-0.11067668348550797,
0.34955093264579773,
-0.16234035789966583,
0.11119678616523743,
-1.011307716369629,
-0.7713214159011841,
-0.3405333161354065,
-0.5772696733474731,
-0.2515275776386261,
-0.3709466755390167,
0.05595758557319641,
-0.4158303141593933,
0.7558460235595703,
-0.011223413981497288,
0.8894388675689697,
0.3477186858654022,
-0.22739677131175995,
0.41496866941452026,
0.1595194786787033,
0.7948381900787354,
0.27148059010505676,
-0.1449034959077835,
-0.028072642162442207,
0.2446349412202835,
-0.5762614011764526,
0.07425448298454285,
0.26239094138145447,
-0.13059622049331665,
0.05620034411549568,
0.39323318004608154,
0.9263187050819397,
0.24665293097496033,
-0.3176957666873932,
0.7710869908332825,
-0.13829244673252106,
-0.41870802640914917,
-0.30326876044273376,
-0.12414363771677017,
0.22970689833164215,
0.33648255467414856,
0.34130313992500305,
-0.09982090443372726,
0.04035069793462753,
-0.5378162860870361,
0.3282654881477356,
0.3888808786869049,
-0.49385228753089905,
-0.28558534383773804,
0.7174791097640991,
0.007684003561735153,
-0.012296309694647789,
0.5784611105918884,
-0.29050543904304504,
-0.7049497961997986,
0.641636848449707,
0.48057854175567627,
0.9101206660270691,
-0.11651348322629929,
0.3373290002346039,
0.7908149361610413,
0.4072166383266449,
-0.03637697547674179,
0.16362394392490387,
0.37927544116973877,
-0.5268097519874573,
-0.38019809126853943,
-0.4974106252193451,
0.04199179261922836,
0.2721610367298126,
-0.500137209892273,
0.38922014832496643,
-0.37632516026496887,
-0.21147091686725616,
-0.09011616557836533,
0.23829738795757294,
-0.7833760380744934,
0.23898008465766907,
0.08223827928304672,
1.0466523170471191,
-0.8088261485099792,
0.8539531230926514,
0.6671466827392578,
-0.5882946252822876,
-0.8428820967674255,
0.018301010131835938,
-0.14765438437461853,
-0.8098767399787903,
0.4622897207736969,
0.35144248604774475,
0.29455092549324036,
0.09398844838142395,
-0.4995194971561432,
-0.9539995193481445,
1.473369836807251,
0.2201145887374878,
-0.4057404696941376,
-0.27196669578552246,
0.02425936795771122,
0.5422502160072327,
-0.3549444079399109,
0.7866822481155396,
0.4313317835330963,
0.5685097575187683,
-0.18015886843204498,
-0.7137671709060669,
0.35565677285194397,
-0.46127161383628845,
0.04430675134062767,
0.11518815904855728,
-1.1506282091140747,
1.11716628074646,
-0.07076673209667206,
-0.10532543063163757,
0.21194839477539062,
0.8356378078460693,
0.1841593235731125,
0.02903538942337036,
0.5199782848358154,
0.9730393290519714,
0.6495543122291565,
-0.3929441571235657,
1.1919461488723755,
-0.29500430822372437,
0.7531177401542664,
0.7475178837776184,
0.40830737352371216,
0.8912453651428223,
0.2688848376274109,
-0.17624980211257935,
0.864424467086792,
0.7507817149162292,
-0.05843362212181091,
0.48165956139564514,
0.17188218235969543,
-0.034050311893224716,
-0.06941638886928558,
0.17644302546977997,
-0.4733053147792816,
0.17079618573188782,
0.3119666576385498,
-0.5471606254577637,
-0.04489704594016075,
-0.007446017116308212,
0.36188000440597534,
-0.09971179813146591,
-0.12262923270463943,
0.5368605256080627,
0.17122067511081696,
-0.330325186252594,
0.5931793451309204,
0.08147755265235901,
1.128540277481079,
-0.3544549345970154,
0.18617281317710876,
-0.20341043174266815,
0.14141540229320526,
-0.20438411831855774,
-1.0365006923675537,
0.10437403619289398,
-0.07028824836015701,
-0.1883520781993866,
-0.15848399698734283,
0.5418227910995483,
-0.41984766721725464,
-0.400473028421402,
0.48763373494148254,
0.4113759994506836,
-0.0386933833360672,
0.07105179876089096,
-1.1979265213012695,
-0.06164149194955826,
0.16086053848266602,
-0.8075860142707825,
0.2790854871273041,
0.4625840485095978,
0.20396293699741364,
0.5715964436531067,
0.38932013511657715,
-0.19583261013031006,
0.24080713093280792,
-0.06845960766077042,
0.8015033006668091,
-0.971917986869812,
-0.5116439461708069,
-0.9851186275482178,
0.8076932430267334,
-0.41188162565231323,
-0.5022894740104675,
0.767163872718811,
0.6946048140525818,
0.627310037612915,
-0.09570211172103882,
0.649783194065094,
-0.36581021547317505,
0.46942874789237976,
-0.4978640377521515,
0.7903397083282471,
-0.7811237573623657,
-0.18199193477630615,
-0.3433082699775696,
-0.9254987835884094,
-0.3382430374622345,
0.7971453070640564,
-0.3669409155845642,
0.20961874723434448,
0.8632208704948425,
0.7225432991981506,
0.006976169999688864,
-0.19834423065185547,
0.05742483213543892,
0.5605192184448242,
0.35251379013061523,
0.9236085414886475,
0.525915265083313,
-0.9397551417350769,
0.6877444386482239,
-0.4111854135990143,
-0.15198124945163727,
-0.31854870915412903,
-0.8453998565673828,
-1.1447997093200684,
-0.7831684947013855,
-0.42997080087661743,
-0.3912109136581421,
-0.19577933847904205,
0.953961968421936,
0.6760715842247009,
-0.8070103526115417,
0.022368695586919785,
0.0005083905998617411,
0.15152545273303986,
-0.06723978370428085,
-0.3481445014476776,
0.689484715461731,
-0.09108619391918182,
-1.0489861965179443,
0.02966444194316864,
0.023860571905970573,
0.26692524552345276,
-0.004430366214364767,
-0.20369572937488556,
-0.5057904124259949,
0.04868414252996445,
0.6999250054359436,
0.19099313020706177,
-0.6531747579574585,
-0.5581251382827759,
0.07161636650562286,
-0.4598692059516907,
0.17161568999290466,
0.34796950221061707,
-0.4092187285423279,
-0.010751803405582905,
0.6809929013252258,
0.368539035320282,
0.7229973077774048,
-0.1938811093568802,
0.1236065998673439,
-0.7241944074630737,
0.3221930265426636,
0.025169411674141884,
0.6113349795341492,
0.2673570513725281,
-0.24577677249908447,
0.6468997001647949,
0.3132566213607788,
-0.6547242999076843,
-0.7503462433815002,
-0.13651278614997864,
-1.1661126613616943,
-0.17566443979740143,
1.0540821552276611,
-0.2993420362472534,
-0.3378722071647644,
0.27984076738357544,
-0.31437188386917114,
0.340476393699646,
-0.41986021399497986,
0.6385000944137573,
0.921079695224762,
0.0468624010682106,
-0.3518751263618469,
-0.6655893325805664,
0.4514445662498474,
0.47939735651016235,
-0.8079826831817627,
-0.3453291356563568,
0.13563144207000732,
0.30822715163230896,
0.40201708674430847,
0.5000403523445129,
-0.15158525109291077,
0.06450720131397247,
-0.020914288237690926,
0.13549397885799408,
0.1350122094154358,
-0.08331384509801865,
-0.15325158834457397,
0.15818582475185394,
-0.2268477827310562,
-0.22867946326732635
] |