Joelzhang commited on
Commit
bddbf92
1 Parent(s): f42d4a4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +57 -14
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-NLI, model (Chinese),one model of [Fengshenbang-LM](https://github.com/IDEA-CCNL/Fengshenbang-LM).
18
- We collect 4 NLI(Natural Language Inference) datasets in the Chinese domain for finetune, with a total of 1014787 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 (without any data augmentation)
37
- | Model | cmnli | ocnli | snli |
38
- | :--------: | :-----: | :----: | :-----: |
39
- | Erlangshen-Roberta-110M-NLI | 80.83 | 78.56 | 88.01 |
40
- | Erlangshen-Roberta-330M-NLI | 82.25 | 79.82 | 88 |
41
- | Erlangshen-MegatronBert-1.3B-NLI | 84.52 | 84.17 | 88.67 |
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
  - NLI
10
+ - Chinese
11
 
12
  inference: true
13
 
 
15
  - text: "今天心情不好[SEP]今天很开心"
16
 
17
  ---
18
+ # Erlangshen-Roberta-330M-NLI
 
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 NLI datasets.
28
+
29
+ ## 模型分类 Model Taxonomy
30
+
31
+ | 需求 Demand | 任务 Task | 系列 Series | 模型 Model | 参数 Parameter | 额外 Extra |
32
+ | :----: | :----: | :----: | :----: | :----: | :----: |
33
+ | 通用 General | 自然语言理解 NLU | 二郎神 Erlangshen | Roberta | 330M | NLI |
34
+
35
+ ## 模型信息 Model Information
36
+
37
+ 基于[chinese-roberta-wwm-ext-large](https://huggingface.co/hfl/chinese-roberta-wwm-ext-large),我们在收集的4个中文领域的NLI(自然语言推理)数据集,总计1014787个样本上微调了一个NLI版本。
38
+
39
+ Based on [chinese-roberta-wwm-ext-large](https://huggingface.co/hfl/chinese-roberta-wwm-ext-large), we fine-tuned an NLI version on 4 Chinese Natural Language Inference (NLI) datasets, with totaling 1,014,787 samples.
40
+
41
+ ### 下游效果 Performance
42
+
43
+ | 模型 Model | cmnli | ocnli | snli |
44
+ | :--------: | :-----: | :----: | :-----: |
45
+ | Erlangshen-Roberta-110M-NLI | 80.83 | 78.56 | 88.01 |
46
+ | Erlangshen-Roberta-330M-NLI | 82.25 | 79.82 | 88 |
47
+ | Erlangshen-MegatronBert-1.3B-NLI | 84.52 | 84.17 | 88.67 |
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},