Model release
Browse files- .gitattributes +1 -0
- README.md +32 -0
- all_results.json +3 -0
- config.json +3 -0
- eval_nbest_predictions.json +3 -0
- eval_predictions.json +3 -0
- eval_results.json +3 -0
- pytorch_model.bin +3 -0
- recipe.yaml +14 -0
- special_tokens_map.json +3 -0
- tokenizer.json +3 -0
- tokenizer_config.json +3 -0
- train_results.json +3 -0
- trainer_state.json +3 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
.gitattributes
CHANGED
@@ -25,3 +25,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
25 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
25 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# oBERT-6-downstream-pruned-block4-80-QAT-squadv1
|
2 |
+
|
3 |
+
This model is obtained with [The Optimal BERT Surgeon: Scalable and Accurate Second-Order Pruning for Large Language Models](https://arxiv.org/abs/2203.07259).
|
4 |
+
|
5 |
+
|
6 |
+
It corresponds to the model presented in the `Table 3 - 6 Layers - Sparsity 80% - 4-block + QAT`.
|
7 |
+
|
8 |
+
```
|
9 |
+
Pruning method: oBERT downstream block-4 + QAT
|
10 |
+
Paper: https://arxiv.org/abs/2203.07259
|
11 |
+
Dataset: SQuADv1
|
12 |
+
Sparsity: 80%
|
13 |
+
Number of layers: 6
|
14 |
+
```
|
15 |
+
|
16 |
+
The dev-set performance of this model:
|
17 |
+
```
|
18 |
+
EM = 78.28
|
19 |
+
F1 = 86.10
|
20 |
+
```
|
21 |
+
|
22 |
+
Code: _coming soon_
|
23 |
+
|
24 |
+
## BibTeX entry and citation info
|
25 |
+
```bibtex
|
26 |
+
@article{kurtic2022optimal,
|
27 |
+
title={The Optimal BERT Surgeon: Scalable and Accurate Second-Order Pruning for Large Language Models},
|
28 |
+
author={Kurtic, Eldar and Campos, Daniel and Nguyen, Tuan and Frantar, Elias and Kurtz, Mark and Fineran, Benjamin and Goin, Michael and Alistarh, Dan},
|
29 |
+
journal={arXiv preprint arXiv:2203.07259},
|
30 |
+
year={2022}
|
31 |
+
}
|
32 |
+
```
|
all_results.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ad1896842d5a10db3bdcd0dc97063c7f8780681062d3777ca950c8f6eff3807f
|
3 |
+
size 253
|
config.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e0497907c0f0e5547f0b6aa95d6fbc9013a3b13e937f70b8df913c0ba851efaa
|
3 |
+
size 678
|
eval_nbest_predictions.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6bfe9b95d17e4fceb7c2dee8a9aa35adf07658a7e1760bbc2374818d54858249
|
3 |
+
size 49274845
|
eval_predictions.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a915eb3020c85bf76491c4ed04ecb2a09f7b5ee2ebc6e882f1f54dad095780a3
|
3 |
+
size 588950
|
eval_results.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:566a1b9590fcf3c6e36152b874d00101463cc42fd74316bcac62d44e62e6e368
|
3 |
+
size 115
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c2f2cc810d2d5cb61a451bf8cb0fdd1e9208a3fab5ba933d5dfc0f1afb0143d4
|
3 |
+
size 266036691
|
recipe.yaml
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
!LayerPruningModifier
|
2 |
+
end_epoch: -1.0
|
3 |
+
layers: ['bert.encoder.layer.6', 'bert.encoder.layer.7', 'bert.encoder.layer.8', 'bert.encoder.layer.9', 'bert.encoder.layer.10', 'bert.encoder.layer.11']
|
4 |
+
start_epoch: -1.0
|
5 |
+
update_frequency: -1.0
|
6 |
+
|
7 |
+
!QuantizationModifier
|
8 |
+
disable_quantization_observer_epoch: 5.0
|
9 |
+
end_epoch: -1.0
|
10 |
+
freeze_bn_stats_epoch: 5.0
|
11 |
+
quantize_embeddings: 1
|
12 |
+
start_epoch: 0.0
|
13 |
+
submodules: ['bert.embeddings', 'qa_outputs', 'bert.encoder']
|
14 |
+
|
special_tokens_map.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3
|
3 |
+
size 112
|
tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5fd1c882abbd30517dced455a2c9768945ec726b96727927e4959348d9de550b
|
3 |
+
size 466081
|
tokenizer_config.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bc1c4d809bc68b296696dadfe28fcfd3b13a48c807b8de51798ed61d0a7aac0e
|
3 |
+
size 392
|
train_results.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:89d32c3dce70c7a0238eeba36cdaf6847ae3ec5e479fddb40415e4cd953603a7
|
3 |
+
size 159
|
trainer_state.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cf0e9164f3386ccb0591ea717c95ad41118ec61e4664d53a3340bbb62420be12
|
3 |
+
size 7339
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:43573a265ff081eaa5cd0789a2e99d638ee679a3a144dedf28f6f2e3569ee136
|
3 |
+
size 2607
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|