李龙威 commited on
Commit
d3a4e29
1 Parent(s): 4bfc093
Files changed (4) hide show
  1. README.md +14 -0
  2. config.json +39 -0
  3. pytorch_model.bin +3 -0
  4. vocab.txt +0 -0
README.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - zh
4
+ license:
5
+ - apache-2.0
6
+ ---
7
+ ```python
8
+ from transformers import BertTokenizer
9
+ from transformers import BigBirdModel
10
+
11
+ model = BigBirdModel.from_pretrained('Lowin/chinese-bigbird-base-wwm')
12
+ tokenizer = BertTokenizer.from_pretrained('Lowin/chinese-bigbird-base-wwm')
13
+ ```
14
+ https://github.com/LowinLi/chinese-bigbird
config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BigBirdForMaskedLM"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "attention_type": "block_sparse",
7
+ "block_size": 64,
8
+ "bos_token_id": 0,
9
+ "classifier_dropout": null,
10
+ "directionality": "bidi",
11
+ "eos_token_id": 2,
12
+ "gradient_checkpointing": false,
13
+ "hidden_act": "gelu",
14
+ "hidden_dropout_prob": 0.1,
15
+ "hidden_size": 768,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "layer_norm_eps": 1e-12,
19
+ "max_position_embeddings": 4096,
20
+ "model_type": "big_bird",
21
+ "num_attention_heads": 12,
22
+ "num_hidden_layers": 12,
23
+ "num_random_blocks": 3,
24
+ "output_past": true,
25
+ "pad_token_id": 1,
26
+ "pooler_fc_size": 768,
27
+ "pooler_num_attention_heads": 12,
28
+ "pooler_num_fc_layers": 3,
29
+ "pooler_size_per_head": 128,
30
+ "pooler_type": "first_token_transform",
31
+ "rescale_embeddings": false,
32
+ "sep_token_id": 66,
33
+ "torch_dtype": "float32",
34
+ "transformers_version": "4.10.2",
35
+ "type_vocab_size": 2,
36
+ "use_bias": true,
37
+ "use_cache": true,
38
+ "vocab_size": 21128
39
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1ecdf791554260c45f29152a2b2ebaff9139554237853055e47273089cd94f2
3
+ size 422650980
vocab.txt ADDED
The diff for this file is too large to render. See raw diff