init
Browse files- README.md +22 -1
- config.json +23 -0
- pytorch_model.bin +3 -0
- tf_model.h5 +3 -0
- vocab.txt +0 -0
README.md
CHANGED
@@ -1,3 +1,24 @@
|
|
1 |
---
|
2 |
-
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
language:
|
3 |
+
- zh
|
4 |
+
tags:
|
5 |
+
- bert
|
6 |
+
license: "apache-2.0"
|
7 |
---
|
8 |
+
|
9 |
+
# Please use 'Bert' related functions to load this model!
|
10 |
+
|
11 |
+
## Chinese small pre-trained model MiniRBT
|
12 |
+
For further accelerating Chinese natural language processing, we launched a Chinese small pre-training model MiniRBT based on the self-developed knowledge distillation tool TextBrewer, combined with Whole Word Masking technology and Knowledge Distillation technology.
|
13 |
+
|
14 |
+
This repository is developed based on:https://github.com/iflytek/ta-minilm-demo
|
15 |
+
|
16 |
+
You may also interested in,
|
17 |
+
- Chinese LERT: https://github.com/ymcui/LERT
|
18 |
+
- Chinese PERT: https://github.com/ymcui/PERT
|
19 |
+
- Chinese MacBERT: https://github.com/ymcui/MacBERT
|
20 |
+
- Chinese ELECTRA: https://github.com/ymcui/Chinese-ELECTRA
|
21 |
+
- Chinese XLNet: https://github.com/ymcui/Chinese-XLNet
|
22 |
+
- Knowledge Distillation Toolkit - TextBrewer: https://github.com/airaria/TextBrewer
|
23 |
+
|
24 |
+
More resources by HFL: https://github.com/iflytek/HFL-Anthology
|
config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"BertForMaskedLM"
|
4 |
+
],
|
5 |
+
"attention_probs_dropout_prob": 0.1,
|
6 |
+
"classifier_dropout": null,
|
7 |
+
"hidden_act": "gelu",
|
8 |
+
"hidden_dropout_prob": 0.1,
|
9 |
+
"hidden_size": 312,
|
10 |
+
"initializer_range": 0.02,
|
11 |
+
"intermediate_size": 1200,
|
12 |
+
"layer_norm_eps": 1e-12,
|
13 |
+
"max_position_embeddings": 512,
|
14 |
+
"model_type": "bert",
|
15 |
+
"num_attention_heads": 12,
|
16 |
+
"num_hidden_layers": 4,
|
17 |
+
"pad_token_id": 0,
|
18 |
+
"position_embedding_type": "absolute",
|
19 |
+
"transformers_version": "4.22.2",
|
20 |
+
"type_vocab_size": 2,
|
21 |
+
"use_cache": true,
|
22 |
+
"vocab_size": 21128
|
23 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:02bf4175948cd28a4de865e0400c0e221baa8bfd28ca105fac84161e42f75f51
|
3 |
+
size 45797124
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fb5202c43d8bf36886f34b643b67e4edb02730bad19205751b54508930e6d0e7
|
3 |
+
size 72901872
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|