sl
commited on
Commit
•
b6ec82d
1
Parent(s):
1b4fb1b
init
Browse files- README.md +30 -1
- config.json +27 -0
- pytorch_model.bin +3 -0
- vocab.txt +0 -0
README.md
CHANGED
@@ -1,3 +1,32 @@
|
|
1 |
---
|
2 |
-
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
language:
|
3 |
+
- zh
|
4 |
+
license: "apache-2.0"
|
5 |
---
|
6 |
+
|
7 |
+
## Chinese-MobileBERT
|
8 |
+
> The original [Chinese-MobileBERT](https://github.com/ymcui/Chinese-MobileBERT) repository does not provide pytorch weights, here the weights are converted via the [model_convert](https://github.com/CycloneBoy/model_convert) repository.
|
9 |
+
|
10 |
+
This repository is developed based on:https://github.com/ymcui/Chinese-MobileBERT
|
11 |
+
|
12 |
+
You may also be interested in,
|
13 |
+
- Chinese BERT series: https://github.com/ymcui/Chinese-BERT-wwm
|
14 |
+
- Chinese MacBERT: https://github.com/ymcui/MacBERT
|
15 |
+
- Chinese ELECTRA: https://github.com/ymcui/Chinese-ELECTRA
|
16 |
+
- Chinese XLNet: https://github.com/ymcui/Chinese-XLNet
|
17 |
+
- Knowledge Distillation Toolkit - TextBrewer: https://github.com/airaria/TextBrewer
|
18 |
+
|
19 |
+
More resources by HFL: https://github.com/ymcui/HFL-Anthology
|
20 |
+
|
21 |
+
## Citation
|
22 |
+
If you find the technical report or resource is useful, please cite the following technical report in your paper.
|
23 |
+
|
24 |
+
|
25 |
+
```
|
26 |
+
@misc{cui-2022-chinese-mobilebert,
|
27 |
+
title={Chinese MobileBERT},
|
28 |
+
author={Cui, Yiming},
|
29 |
+
howpublished={\url{https://github.com/ymcui/Chinese-MobileBERT}},
|
30 |
+
year={2022}
|
31 |
+
}
|
32 |
+
```
|
config.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "cycloneboy/chinese_mobilebert_large_f4",
|
3 |
+
"architectures": [
|
4 |
+
"MobileBertForPreTraining"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"hidden_act": "relu",
|
8 |
+
"hidden_dropout_prob": 0.0,
|
9 |
+
"hidden_size": 1024,
|
10 |
+
"initializer_range": 0.02,
|
11 |
+
"intermediate_size": 512,
|
12 |
+
"max_position_embeddings": 512,
|
13 |
+
"num_attention_heads": 16,
|
14 |
+
"num_hidden_layers": 24,
|
15 |
+
"type_vocab_size": 2,
|
16 |
+
"vocab_size": 21128,
|
17 |
+
"embedding_size": 1024,
|
18 |
+
"trigram_input": true,
|
19 |
+
"use_bottleneck": true,
|
20 |
+
"intra_bottleneck_size": 128,
|
21 |
+
"key_query_shared_bottleneck": true,
|
22 |
+
"num_feedforward_networks": 4,
|
23 |
+
"normalization_type": "no_norm",
|
24 |
+
"classifier_activation": false,
|
25 |
+
"transformers_version": "4.6.0.dev0",
|
26 |
+
"model_type": "mobilebert"
|
27 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:546a591703749bb1316e3260656f6422c03d7f4ac3cd0ffee9e585dede32079e
|
3 |
+
size 212172421
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|