dongjunwei.djw commited on
Commit
66feca4
1 Parent(s): 12c9336

first commit for the pre-trained pai-bert-base-zh model

Browse files
Files changed (4) hide show
  1. README.md +24 -0
  2. config.json +28 -0
  3. pytorch_model.bin +3 -0
  4. vocab.txt +0 -0
README.md CHANGED
@@ -1,3 +1,27 @@
1
  ---
 
 
 
 
 
 
 
2
  license: apache-2.0
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language: zh
3
+ pipeline_tag: fill-mask
4
+ # widget:
5
+ # - text: "感冒需要吃[MASK]"
6
+ # - text: "人类的[MASK]温是37度"
7
+ tags:
8
+ - bert
9
  license: apache-2.0
10
  ---
11
+ ## Alibaba PAI BERT Base Chinese
12
+
13
+ This project provides Chinese pre-trained language models and various types of NLP tools. The models are pre-trained on the large-scale corpura hosted by the Alibaba PAI team. It is developed based on the EasyNLP framework: https://github.com/alibaba/EasyNLP by the Alibaba PAI team.
14
+
15
+ ## Citation
16
+
17
+ If you find the resource is useful, please cite the following papers in your work.
18
+
19
+ - For the EasyNLP framework:
20
+ ```
21
+ @article{easynlp,
22
+ title = {EasyNLP: A Comprehensive and Easy-to-use Toolkit for Natural Language Processing}, publisher = {arXiv},
23
+ author = {Wang, Chengyu and Qiu, Minghui and Zhang, Taolin and Liu, Tingting and Li, Lei and Wang, Jianing and Wang, Ming and Huang, Jun and Lin, Wei},
24
+ url = {https://arxiv.org/abs/2205.00258},
25
+ year = {2022}
26
+ }
27
+ ```
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertForMaskedLM"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "bos_token_id": 0,
7
+ "directionality": "bidi",
8
+ "eos_token_id": 2,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "output_past": true,
20
+ "pad_token_id": 1,
21
+ "pooler_fc_size": 768,
22
+ "pooler_num_attention_heads": 12,
23
+ "pooler_num_fc_layers": 3,
24
+ "pooler_size_per_head": 128,
25
+ "pooler_type": "first_token_transform",
26
+ "type_vocab_size": 2,
27
+ "vocab_size": 21128
28
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ded5a5a1c7841dee6e47942f7b5bf2bcf6f73ff19197580f852f7f638f86b35
3
+ size 411578458
vocab.txt ADDED
The diff for this file is too large to render. See raw diff