Joelzhang commited on
Commit
15bd917
1 Parent(s): 8ed6c66

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +58 -15
README.md CHANGED
@@ -4,9 +4,10 @@ language:
4
  license: apache-2.0
5
 
6
  tags:
7
- - bert
8
  - NLU
9
- - NLI
 
10
 
11
  inference: true
12
 
@@ -14,11 +15,41 @@ widget:
14
  - text: "今天心情不好[SEP]今天很开心"
15
 
16
  ---
17
- # Erlangshen-Roberta-330M-Similarity, model (Chinese),one model of [Fengshenbang-LM](https://github.com/IDEA-CCNL/Fengshenbang-LM).
18
- We collect 20 paraphrace datasets in the Chinese domain for finetune, with a total of 2773880 samples. Our model is mainly based on [roberta](https://huggingface.co/hfl/chinese-roberta-wwm-ext-large)
19
 
20
- ## Usage
21
- ```python
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  from transformers import BertForSequenceClassification
23
  from transformers import BertTokenizer
24
  import torch
@@ -31,17 +62,29 @@ textb='今天心情不好'
31
 
32
  output=model(torch.tensor([tokenizer.encode(texta,textb)]))
33
  print(torch.nn.functional.softmax(output.logits,dim=-1))
34
-
35
  ```
36
- ## Scores on downstream chinese tasks(The dev datasets of BUSTM and AFQMC may exist in the train set)
37
- | Model | BQ | BUSTM | AFQMC |
38
- | :--------: | :-----: | :----: | :-----: |
39
- | Erlangshen-Roberta-110M-Similarity | 85.41 | 95.18 | 81.72 |
40
- | Erlangshen-Roberta-330M-Similarity | 86.21 | 99.29 | 93.89 |
41
- | Erlangshen-MegatronBert-1.3B-Similarity | 86.31 | - | - |
42
- ## Citation
43
- If you find the resource is useful, please cite the following website in your paper.
 
 
 
 
 
 
 
44
  ```
 
 
 
 
 
 
45
  @misc{Fengshenbang-LM,
46
  title={Fengshenbang-LM},
47
  author={IDEA-CCNL},
 
4
  license: apache-2.0
5
 
6
  tags:
7
+ - roberta
8
  - NLU
9
+ - Similarity
10
+ - Chinese
11
 
12
  inference: true
13
 
 
15
  - text: "今天心情不好[SEP]今天很开心"
16
 
17
  ---
18
+ # Erlangshen-Roberta-330M-Similarity
 
19
 
20
+ - Github: [Fengshenbang-LM](https://github.com/IDEA-CCNL/Fengshenbang-LM)
21
+ - Docs: [Fengshenbang-Docs](https://fengshenbang-doc.readthedocs.io/)
22
+
23
+ ## 简介 Brief Introduction
24
+
25
+ 中文的RoBERTa-wwm-ext-large在数个相似度任务微调后的版本
26
+
27
+ This is the fine-tuned version of the Chinese RoBERTa-wwm-ext-large model on several similarity datasets.
28
+
29
+ ## 模型分类 Model Taxonomy
30
+
31
+ | 需求 Demand | 任务 Task | 系列 Series | 模型 Model | 参数 Parameter | 额外 Extra |
32
+ | :----: | :----: | :----: | :----: | :----: | :----: |
33
+ | 通用 General | 自然语言理解 NLU | 二郎神 Erlangshen | Roberta | 330M | Similarity |
34
+
35
+ ## 模型信息 Model Information
36
+
37
+ 基于[chinese-roberta-wwm-ext-large](https://huggingface.co/hfl/chinese-roberta-wwm-ext-large),我们在收集的20个中文领域的改写数据集,总计2773880个样本上微调了一个Similarity版本。
38
+
39
+ Based on [chinese-roberta-wwm-ext-large](https://huggingface.co/hfl/chinese-roberta-wwm-ext-large), we fine-tuned a similarity version on 20 Chinese paraphrase datasets, with totaling 2,773,880 samples.
40
+
41
+ ### 下游效果 Performance
42
+
43
+ | Model | BQ | BUSTM | AFQMC |
44
+ | :--------: | :-----: | :----: | :-----: |
45
+ | Erlangshen-Roberta-110M-Similarity | 85.41 | 95.18 | 81.72 |
46
+ | Erlangshen-Roberta-330M-Similarity | 86.21 | 99.29 | 93.89 |
47
+ | Erlangshen-MegatronBert-1.3B-Similarity | 86.31 | - | - |
48
+
49
+
50
+ ## 使用 Usage
51
+
52
+ ``` python
53
  from transformers import BertForSequenceClassification
54
  from transformers import BertTokenizer
55
  import torch
 
62
 
63
  output=model(torch.tensor([tokenizer.encode(texta,textb)]))
64
  print(torch.nn.functional.softmax(output.logits,dim=-1))
 
65
  ```
66
+
67
+ ## 引用 Citation
68
+
69
+ 如果您在您的工作中使用了我们的模型,可以引用我们的[论文](https://arxiv.org/abs/2209.02970):
70
+
71
+ If you are using the resource for your work, please cite the our [paper](https://arxiv.org/abs/2209.02970):
72
+
73
+ ```text
74
+ @article{fengshenbang,
75
+ author = {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 and Ruyi Gan and Jiaxing Zhang},
76
+ title = {Fengshenbang 1.0: Being the Foundation of Chinese Cognitive Intelligence},
77
+ journal = {CoRR},
78
+ volume = {abs/2209.02970},
79
+ year = {2022}
80
+ }
81
  ```
82
+
83
+ 也可以引用我们的[网站](https://github.com/IDEA-CCNL/Fengshenbang-LM/):
84
+
85
+ You can also cite our [website](https://github.com/IDEA-CCNL/Fengshenbang-LM/):
86
+
87
+ ```text
88
  @misc{Fengshenbang-LM,
89
  title={Fengshenbang-LM},
90
  author={IDEA-CCNL},