rightyonghu commited on
Commit
def93d8
1 Parent(s): 257fee0

update model

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. config.json +18 -28
  3. pytorch_model.bin +2 -2
README.md CHANGED
@@ -19,7 +19,7 @@ More detail: https://arxiv.org/abs/2010.12148
19
  This released Pytorch model is converted from the officially released PaddlePaddle ERNIE model and
20
  a series of experiments have been conducted to check the accuracy of the conversion.
21
 
22
- - Official PaddlePaddle ERNIE repo: https://github.com/PaddlePaddle/ERNIE
23
  - Pytorch Conversion repo: https://github.com/nghuyong/ERNIE-Pytorch
24
 
25
  ## How to use
 
19
  This released Pytorch model is converted from the officially released PaddlePaddle ERNIE model and
20
  a series of experiments have been conducted to check the accuracy of the conversion.
21
 
22
+ - Official PaddlePaddle ERNIE repo: https://github.com/PaddlePaddle/PaddleNLP/blob/develop/paddlenlp/transformers/ernie_gram/modeling.py
23
  - Pytorch Conversion repo: https://github.com/nghuyong/ERNIE-Pytorch
24
 
25
  ## How to use
config.json CHANGED
@@ -1,29 +1,19 @@
1
  {
2
- "_name_or_path": "./convert",
3
- "architectures": [
4
- "BertModel"
5
- ],
6
- "attention_probs_dropout_prob": 0.1,
7
- "classifier_dropout": null,
8
- "emb_size": 768,
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-05,
15
- "max_position_embeddings": 512,
16
- "model_type": "bert",
17
- "num_attention_heads": 12,
18
- "num_hidden_layers": 12,
19
- "out_emb_size": 128,
20
- "pad_token_id": 0,
21
- "position_embedding_type": "absolute",
22
- "sent_type_vocab_size": 2,
23
- "task_type_vocab_size": 3,
24
- "torch_dtype": "float32",
25
- "transformers_version": "4.17.0",
26
- "type_vocab_size": 2,
27
- "use_cache": true,
28
- "vocab_size": 18018
29
- }
 
1
  {
2
+ "attention_probs_dropout_prob": 0.1,
3
+ "emb_size": 768,
4
+ "hidden_act": "gelu",
5
+ "hidden_dropout_prob": 0.1,
6
+ "hidden_size": 768,
7
+ "initializer_range": 0.02,
8
+ "max_position_embeddings": 512,
9
+ "num_attention_heads": 12,
10
+ "num_hidden_layers": 12,
11
+ "type_vocab_size": 2,
12
+ "vocab_size": 18018,
13
+ "layer_norm_eps": 1e-05,
14
+ "model_type": "bert",
15
+ "architectures": [
16
+ "BertModel"
17
+ ],
18
+ "intermediate_size": 3072
19
+ }
 
 
 
 
 
 
 
 
 
 
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:45aa8ada50dd35e5ff0b92c1ffe3e1c63f56f96d4248480222107871204906eb
3
- size 399596081
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd65658f16c9f5b768353a7b83e643103b6cf4ca125cf57cbc998679be846931
3
+ size 399579827