rightyonghu
commited on
Commit
•
def93d8
1
Parent(s):
257fee0
update model
Browse files- README.md +1 -1
- config.json +18 -28
- 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/
|
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 |
-
|
3 |
-
|
4 |
-
"
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
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:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dd65658f16c9f5b768353a7b83e643103b6cf4ca125cf57cbc998679be846931
|
3 |
+
size 399579827
|