CoolFace
Modelpublic

IDEA-CCNL/Erlangshen-Roberta-330M-Similarity

sourceHugging Faceapache-2.0updated 3y agoView on Hugging Face
8likes47downloads
Model Card

Erlangshen-Roberta-330M-Similarity

简介 Brief Introduction

中文的RoBERTa-wwm-ext-large在数个相似度任务微调后的版本

This is the fine-tuned version of the Chinese RoBERTa-wwm-ext-large model on several similarity datasets.

模型分类 Model Taxonomy

需求 Demand任务 Task系列 Series模型 Model参数 Parameter额外 Extra
通用 General自然语言理解 NLU二郎神 ErlangshenRoberta330M中文-相似度 Similarity

模型信息 Model Information

基于chinese-roberta-wwm-ext-large,我们在收集的20个中文领域的改写数据集,总计2773880个样本上微调了一个Similarity版本。

Based on chinese-roberta-wwm-ext-large, we fine-tuned a similarity version on 20 Chinese paraphrase datasets, with totaling 2,773,880 samples.

下游效果 Performance

ModelBQBUSTMAFQMC
Erlangshen-Roberta-110M-Similarity85.4195.1881.72
Erlangshen-Roberta-330M-Similarity86.2199.2993.89
Erlangshen-MegatronBert-1.3B-Similarity86.31--

使用 Usage

python
from transformers import BertForSequenceClassification
from transformers import BertTokenizer
import torch

tokenizer=BertTokenizer.from_pretrained('IDEA-CCNL/Erlangshen-Roberta-330M-Similarity')
model=BertForSequenceClassification.from_pretrained('IDEA-CCNL/Erlangshen-Roberta-330M-Similarity')

texta='今天的饭不好吃'
textb='今天心情不好'

output=model(torch.tensor([tokenizer.encode(texta,textb)]))
print(torch.nn.functional.softmax(output.logits,dim=-1))

引用 Citation

如果您在您的工作中使用了我们的模型,可以引用我们的论文:

If you are using the resource for your work, please cite the our paper:

text
@article{fengshenbang,
  author    = {Jiaxing Zhang and Ruyi Gan and Junjie Wang and Yuxiang Zhang and Lin Zhang and Ping Yang and Xinyu Gao and Ziwei Wu and Xiaoqun Dong and Junqing He and Jianheng Zhuo and Qi Yang and Yongfeng Huang and Xiayu Li and Yanghan Wu and Junyu Lu and Xinyu Zhu and Weifeng Chen and Ting Han and Kunhao Pan and Rui Wang and Hao Wang and Xiaojun Wu and Zhongshen Zeng and Chongpei Chen},
  title     = {Fengshenbang 1.0: Being the Foundation of Chinese Cognitive Intelligence},
  journal   = {CoRR},
  volume    = {abs/2209.02970},
  year      = {2022}
}

也可以引用我们的网站:

You can also cite our website:

text
@misc{Fengshenbang-LM,
  title={Fengshenbang-LM},
  author={IDEA-CCNL},
  year={2021},
  howpublished={\url{https://github.com/IDEA-CCNL/Fengshenbang-LM}},
}