Adding model, graphs and metadata.
Browse files- README.md +12 -5
- eval/eval_metrics.json +4 -0
- eval/evaluate_timing.json +1 -0
- eval/nbest_predictions.json.tgz +0 -0
- eval/predictions.json +0 -0
- eval/sparsity_report.json +1 -0
- eval/speed_report.json +1 -0
- model_card/density_info.js +4 -4
- model_card/pruning_info.js +4 -4
- model_info.json +295 -0
- training/data_args.json +16 -0
- training/model_args.json +6 -0
- training/sparse_args.json +29 -0
- training/training_args.bin +3 -0
README.md
CHANGED
@@ -19,24 +19,26 @@ widget:
|
|
19 |
|
20 |
## BERT-base uncased model fine-tuned on SQuAD v1
|
21 |
|
22 |
-
This model was created using the [nn_pruning](https://github.com/huggingface/nn_pruning) python library: the **linear layers contains
|
23 |
|
24 |
-
|
|
|
|
|
25 |
|
26 |
With a simple resizing of the linear matrices it ran **1.84x as fast as BERT-base** on the evaluation.
|
27 |
This is possible because the pruning method lead to structured matrices: to visualize them, hover below on the plot to see the non-zero/zero parts of each matrix.
|
28 |
|
29 |
-
<div class="graph"><script src="/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/density_info.js" id="
|
30 |
|
31 |
In terms of accuracy, its **F1 is 88.72**, compared with 88.5 for BERT-base, a **F1 gain of 0.22**.
|
32 |
|
33 |
## Fine-Pruning details
|
34 |
-
This model was fine-tuned from the HuggingFace [BERT](https://www.aclweb.org/anthology/N19-1423/) base uncased checkpoint on [SQuAD1.1](https://rajpurkar.github.io/SQuAD-explorer), and distilled from the
|
35 |
This model is case-insensitive: it does not make a difference between english and English.
|
36 |
|
37 |
A side-effect of the block pruning is that some of the attention heads are completely removed: 48 heads were removed on a total of 144 (33.3%).
|
38 |
Here is a detailed view on how the remaining heads are distributed in the network after pruning.
|
39 |
-
<div class="graph"><script src="/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/pruning_info.js" id="
|
40 |
|
41 |
## Details of the SQuAD1.1 dataset
|
42 |
|
@@ -66,6 +68,11 @@ GPU driver: 455.23.05, CUDA: 11.1
|
|
66 |
| **F1** | **88.72** | **88.5** | **+0.22**|
|
67 |
|
68 |
## Example Usage
|
|
|
|
|
|
|
|
|
|
|
69 |
|
70 |
```python
|
71 |
from transformers import pipeline
|
|
|
19 |
|
20 |
## BERT-base uncased model fine-tuned on SQuAD v1
|
21 |
|
22 |
+
This model was created using the [nn_pruning](https://github.com/huggingface/nn_pruning) python library: the **linear layers contains 36.0%** of the original weights.
|
23 |
|
24 |
+
|
25 |
+
|
26 |
+
The model contains **50.0%** of the original weights **overall** (the embeddings account for a significant part of the model, and they are not pruned by this method).
|
27 |
|
28 |
With a simple resizing of the linear matrices it ran **1.84x as fast as BERT-base** on the evaluation.
|
29 |
This is possible because the pruning method lead to structured matrices: to visualize them, hover below on the plot to see the non-zero/zero parts of each matrix.
|
30 |
|
31 |
+
<div class="graph"><script src="/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/density_info.js" id="4d42d80b-b77b-473a-88be-4fc356398a81"></script></div>
|
32 |
|
33 |
In terms of accuracy, its **F1 is 88.72**, compared with 88.5 for BERT-base, a **F1 gain of 0.22**.
|
34 |
|
35 |
## Fine-Pruning details
|
36 |
+
This model was fine-tuned from the HuggingFace [BERT](https://www.aclweb.org/anthology/N19-1423/) base uncased checkpoint on [SQuAD1.1](https://rajpurkar.github.io/SQuAD-explorer), and distilled from the model [csarron/bert-base-uncased-squad-v1](https://huggingface.co/csarron/bert-base-uncased-squad-v1).
|
37 |
This model is case-insensitive: it does not make a difference between english and English.
|
38 |
|
39 |
A side-effect of the block pruning is that some of the attention heads are completely removed: 48 heads were removed on a total of 144 (33.3%).
|
40 |
Here is a detailed view on how the remaining heads are distributed in the network after pruning.
|
41 |
+
<div class="graph"><script src="/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/pruning_info.js" id="6d8fc181-a288-4ff2-8846-d16d82b0da33"></script></div>
|
42 |
|
43 |
## Details of the SQuAD1.1 dataset
|
44 |
|
|
|
68 |
| **F1** | **88.72** | **88.5** | **+0.22**|
|
69 |
|
70 |
## Example Usage
|
71 |
+
Install nn_pruning: it contains the optimization script, which just pack the linear layers into smaller ones by removing empty rows/columns.
|
72 |
+
|
73 |
+
`pip install nn_pruning`
|
74 |
+
|
75 |
+
Then you can use the `transformers library` almost as usual: you just have to call `optimize_model` when the pipeline has loaded.
|
76 |
|
77 |
```python
|
78 |
from transformers import pipeline
|
eval/eval_metrics.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"exact_match": 81.69347209082308,
|
3 |
+
"f1": 88.72194531479171
|
4 |
+
}
|
eval/evaluate_timing.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"eval_elapsed_time": 21.117456380976364}
|
eval/nbest_predictions.json.tgz
ADDED
Binary file (6.63 MB). View file
|
|
eval/predictions.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
eval/sparsity_report.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"total": 108883970, "nnz": 54738530, "linear_total": 84934656, "linear_nnz": 30818304, "layers": {"0": {"total": 7086912, "nnz": 2508829, "linear_total": 7077888, "linear_nnz": 2502144, "linear_attention_total": 2359296, "linear_attention_nnz": 1376256, "linear_dense_total": 4718592, "linear_dense_nnz": 1125888}, "1": {"total": 7086528, "nnz": 2275077, "linear_total": 7077888, "linear_nnz": 2268672, "linear_attention_total": 2359296, "linear_attention_nnz": 983040, "linear_dense_total": 4718592, "linear_dense_nnz": 1285632}, "2": {"total": 7087296, "nnz": 3300512, "linear_total": 7077888, "linear_nnz": 3293184, "linear_attention_total": 2359296, "linear_attention_nnz": 1769472, "linear_dense_total": 4718592, "linear_dense_nnz": 1523712}, "3": {"total": 7087296, "nnz": 3332789, "linear_total": 7077888, "linear_nnz": 3325440, "linear_attention_total": 2359296, "linear_attention_nnz": 1769472, "linear_dense_total": 4718592, "linear_dense_nnz": 1555968}, "4": {"total": 7087680, "nnz": 3787869, "linear_total": 7077888, "linear_nnz": 3780096, "linear_attention_total": 2359296, "linear_attention_nnz": 2162688, "linear_dense_total": 4718592, "linear_dense_nnz": 1617408}, "5": {"total": 7087488, "nnz": 3488090, "linear_total": 7077888, "linear_nnz": 3480576, "linear_attention_total": 2359296, "linear_attention_nnz": 1966080, "linear_dense_total": 4718592, "linear_dense_nnz": 1514496}, "6": {"total": 7087296, "nnz": 2911651, "linear_total": 7077888, "linear_nnz": 2904576, "linear_attention_total": 2359296, "linear_attention_nnz": 1769472, "linear_dense_total": 4718592, "linear_dense_nnz": 1135104}, "7": {"total": 7087104, "nnz": 2427432, "linear_total": 7077888, "linear_nnz": 2420736, "linear_attention_total": 2359296, "linear_attention_nnz": 1572864, "linear_dense_total": 4718592, "linear_dense_nnz": 847872}, "8": {"total": 7087488, "nnz": 2447541, "linear_total": 7077888, "linear_nnz": 2440704, "linear_attention_total": 2359296, "linear_attention_nnz": 1966080, "linear_dense_total": 4718592, "linear_dense_nnz": 474624}, "9": {"total": 7086720, "nnz": 1394440, "linear_total": 7077888, "linear_nnz": 1388544, "linear_attention_total": 2359296, "linear_attention_nnz": 1179648, "linear_dense_total": 4718592, "linear_dense_nnz": 208896}, "10": {"total": 7086912, "nnz": 1551278, "linear_total": 7077888, "linear_nnz": 1545216, "linear_attention_total": 2359296, "linear_attention_nnz": 1376256, "linear_dense_total": 4718592, "linear_dense_nnz": 168960}, "11": {"total": 7086528, "nnz": 1474300, "linear_total": 7077888, "linear_nnz": 1468416, "linear_attention_total": 2359296, "linear_attention_nnz": 983040, "linear_dense_total": 4718592, "linear_dense_nnz": 485376}}, "total_sparsity": 49.72765045212808, "linear_sparsity": 63.71527777777778, "pruned_heads": {"0": [2, 4, 5, 6, 7], "1": [0, 2, 3, 5, 6, 7, 8], "2": [8, 4, 7], "3": [2, 4, 6], "4": [2], "5": [1, 2], "6": [2, 3, 7], "7": [11, 3, 6, 7], "8": [0, 4], "9": [1, 4, 5, 7, 9, 10], "10": [1, 4, 5, 6, 7], "11": [0, 2, 5, 6, 7, 8, 11]}}
|
eval/speed_report.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"timings": {"eval_elapsed_time": 28.213609586004168, "cuda_eval_elapsed_time": 20.951393741607667}, "metrics": {"exact_match": 81.69347209082308, "f1": 88.72194531479171}}
|
model_card/density_info.js
CHANGED
@@ -16,9 +16,9 @@
|
|
16 |
|
17 |
|
18 |
|
19 |
-
var element = document.getElementById("
|
20 |
if (element == null) {
|
21 |
-
console.warn("Bokeh: autoload.js configured with elementid '
|
22 |
}
|
23 |
|
24 |
|
@@ -115,8 +115,8 @@
|
|
115 |
(function(root) {
|
116 |
function embed_document(root) {
|
117 |
|
118 |
-
var docs_json = '{"5bc1f83f-24ee-454a-879e-7d8ec9e16e24":{"roots":{"references":[{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#20cb97"},"line_alpha":{"value":0.1},"line_color":{"value":"#20cb97"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1131","type":"VBar"},{"attributes":{"above":[{"id":"1140"}],"below":[{"id":"1106"}],"center":[{"id":"1109"},{"id":"1113"}],"left":[{"id":"1110"}],"outline_line_color":null,"plot_height":300,"plot_width":505,"renderers":[{"id":"1120"},{"id":"1126"},{"id":"1132"},{"id":"1138"}],"title":{"id":"1096"},"toolbar":{"id":"1114"},"x_range":{"id":"1098"},"x_scale":{"id":"1102"},"y_range":{"id":"1100"},"y_scale":{"id":"1104"}},"id":"1095","subtype":"Figure","type":"Plot"},{"attributes":{"source":{"id":"1134"}},"id":"1139","type":"CDSView"},{"attributes":{},"id":"1152","type":"Selection"},{"attributes":{"data_source":{"id":"1116"},"glyph":{"id":"1118"},"hover_glyph":null,"muted_glyph":null,"name":"query","nonselection_glyph":{"id":"1119"},"selection_glyph":null,"view":{"id":"1121"}},"id":"1120","type":"GlyphRenderer"},{"attributes":{"items":[{"id":"1141"},{"id":"1142"},{"id":"1143"},{"id":"1144"}],"location":[10,0],"orientation":"horizontal"},"id":"1140","type":"Legend"},{"attributes":{"label":{"value":"fully connected"},"renderers":[{"id":"1138"}]},"id":"1144","type":"LegendItem"},{"attributes":{},"id":"1107","type":"BasicTicker"},{"attributes":{"source":{"id":"1122"}},"id":"1127","type":"CDSView"},{"attributes":{"axis_label":"Parameters (M)","formatter":{"id":"1146"},"minor_tick_line_color":null,"ticker":{"id":"1111"}},"id":"1110","type":"LinearAxis"},{"attributes":{"axis_label":"Layer","formatter":{"id":"1148"},"minor_tick_line_color":null,"ticker":{"id":"1107"}},"id":"1106","type":"LinearAxis"},{"attributes":{"start":0},"id":"1100","type":"DataRange1d"},{"attributes":{},"id":"1104","type":"LinearScale"},{"attributes":{},"id":"1150","type":"Selection"},{"attributes":{"source":{"id":"1116"}},"id":"1121","type":"CDSView"},{"attributes":{"text":"Transformer Layers"},"id":"1096","type":"Title"},{"attributes":{"data_source":{"id":"1122"},"glyph":{"id":"1124"},"hover_glyph":null,"muted_glyph":null,"name":"key","nonselection_glyph":{"id":"1125"},"selection_glyph":null,"view":{"id":"1127"}},"id":"1126","type":"GlyphRenderer"},{"attributes":{"data":{"density":["58.3%","23.9%","23.9%","41.7%","27.2%","27.2%","75.0%","32.3%","32.3%","75.0%","33.0%","33.0%","91.7%","34.3%","34.3%","83.3%","32.1%","32.1%","75.0%","24.1%","24.1%","66.7%","18.0%","18.0%","83.3%","10.1%","10.1%","50.0%","4.4%","4.4%","58.3%","3.6%","3.6%","41.7%","10.3%","10.3%"],"height":[0.344064,0.562944,0.562944,0.24576,0.642816,0.642816,0.442368,0.761856,0.761856,0.442368,0.777984,0.777984,0.540672,0.808704,0.808704,0.49152,0.757248,0.757248,0.442368,0.567552,0.567552,0.393216,0.423936,0.423936,0.49152,0.237312,0.237312,0.294912,0.104448,0.104448,0.344064,0.08448,0.08448,0.24576,0.242688,0.242688],"img_height":["96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px"],"img_width":["96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px"],"name":["0.attention.output","0.intermediate","0.output","1.attention.output","1.intermediate","1.output","2.attention.output","2.intermediate","2.output","3.attention.output","3.intermediate","3.output","4.attention.output","4.intermediate","4.output","5.attention.output","5.intermediate","5.output","6.attention.output","6.intermediate","6.output","7.attention.output","7.intermediate","7.output","8.attention.output","8.intermediate","8.output","9.attention.output","9.intermediate","9.output","10.attention.output","10.intermediate","10.output","11.attention.output","11.intermediate","11.output"],"parameters":["0.34","0.56","0.56","0.25","0.64","0.64","0.44","0.76","0.76","0.44","0.78","0.78","0.54","0.81","0.81","0.49","0.76","0.76","0.44","0.57","0.57","0.39","0.42","0.42","0.49","0.24","0.24","0.29","0.10","0.10","0.34","0.08","0.08","0.25","0.24","0.24"],"url":["/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_0_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_0_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_0_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_1_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_1_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_1_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_2_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_2_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_2_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_3_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_3_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_3_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_4_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_4_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_4_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_5_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_5_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_5_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_6_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_6_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_6_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_7_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_7_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_7_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_8_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_8_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_8_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_9_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_9_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_9_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_10_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_10_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_10_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_11_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_11_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_11_output_dense.png"],"x":[0.5833333333333334,0.75,0.9166666666666667,1.5833333333333333,1.75,1.9166666666666665,2.5833333333333335,2.75,2.916666666666667,3.5833333333333335,3.75,3.916666666666667,4.583333333333333,4.75,4.916666666666666,5.583333333333333,5.75,5.916666666666666,6.583333333333333,6.75,6.916666666666666,7.583333333333333,7.75,7.916666666666666,8.583333333333334,8.75,8.916666666666668,9.583333333333334,9.75,9.916666666666668,10.583333333333334,10.75,10.916666666666668,11.583333333333334,11.75,11.916666666666668]},"selected":{"id":"1156"},"selection_policy":{"id":"1157"}},"id":"1134","type":"ColumnDataSource"},{"attributes":{"axis":{"id":"1106"},"grid_line_color":null,"ticker":null},"id":"1109","type":"Grid"},{"attributes":{"source":{"id":"1128"}},"id":"1133","type":"CDSView"},{"attributes":{"fill_color":{"value":"#aa69f7"},"line_color":{"value":"#aa69f7"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1136","type":"VBar"},{"attributes":{},"id":"1157","type":"UnionRenderers"},{"attributes":{"data":{"density":["58.3%","41.7%","75.0%","75.0%","91.7%","83.3%","75.0%","66.7%","83.3%","50.0%","58.3%","41.7%"],"height":[0.344064,0.24576,0.442368,0.442368,0.540672,0.49152,0.442368,0.393216,0.49152,0.294912,0.344064,0.24576],"img_height":["96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px"],"img_width":["96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px"],"name":["0.attention.value","1.attention.value","2.attention.value","3.attention.value","4.attention.value","5.attention.value","6.attention.value","7.attention.value","8.attention.value","9.attention.value","10.attention.value","11.attention.value"],"parameters":["0.34","0.25","0.44","0.44","0.54","0.49","0.44","0.39","0.49","0.29","0.34","0.25"],"url":["/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_0_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_1_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_2_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_3_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_4_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_5_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_6_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_7_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_8_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_9_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_10_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_11_attention_self_value.png"],"x":[0.41666666666666663,1.4166666666666665,2.416666666666667,3.416666666666667,4.416666666666666,5.416666666666666,6.416666666666666,7.416666666666666,8.416666666666668,9.416666666666668,10.416666666666668,11.416666666666668]},"selected":{"id":"1154"},"selection_policy":{"id":"1155"}},"id":"1128","type":"ColumnDataSource"},{"attributes":{},"id":"1154","type":"Selection"},{"attributes":{"label":{"value":"value"},"renderers":[{"id":"1132"}]},"id":"1143","type":"LegendItem"},{"attributes":{"data":{"density":["58.3%","41.7%","75.0%","75.0%","91.7%","83.3%","75.0%","66.7%","83.3%","50.0%","58.3%","41.7%"],"height":[0.344064,0.24576,0.442368,0.442368,0.540672,0.49152,0.442368,0.393216,0.49152,0.294912,0.344064,0.24576],"img_height":["96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px"],"img_width":["96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px"],"name":["0.attention.query","1.attention.query","2.attention.query","3.attention.query","4.attention.query","5.attention.query","6.attention.query","7.attention.query","8.attention.query","9.attention.query","10.attention.query","11.attention.query"],"parameters":["0.34","0.25","0.44","0.44","0.54","0.49","0.44","0.39","0.49","0.29","0.34","0.25"],"url":["/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_0_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_1_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_2_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_3_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_4_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_5_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_6_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_7_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_8_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_9_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_10_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_11_attention_self_query.png"],"x":[0.08333333333333333,1.0833333333333333,2.0833333333333335,3.0833333333333335,4.083333333333333,5.083333333333333,6.083333333333333,7.083333333333333,8.083333333333334,9.083333333333334,10.083333333333334,11.083333333333334]},"selected":{"id":"1150"},"selection_policy":{"id":"1151"}},"id":"1116","type":"ColumnDataSource"},{"attributes":{"data":{"density":["58.3%","41.7%","75.0%","75.0%","91.7%","83.3%","75.0%","66.7%","83.3%","50.0%","58.3%","41.7%"],"height":[0.344064,0.24576,0.442368,0.442368,0.540672,0.49152,0.442368,0.393216,0.49152,0.294912,0.344064,0.24576],"img_height":["96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px"],"img_width":["96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px"],"name":["0.attention.key","1.attention.key","2.attention.key","3.attention.key","4.attention.key","5.attention.key","6.attention.key","7.attention.key","8.attention.key","9.attention.key","10.attention.key","11.attention.key"],"parameters":["0.34","0.25","0.44","0.44","0.54","0.49","0.44","0.39","0.49","0.29","0.34","0.25"],"url":["/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_0_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_1_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_2_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_3_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_4_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_5_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_6_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_7_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_8_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_9_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_10_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_11_attention_self_key.png"],"x":[0.25,1.25,2.25,3.25,4.25,5.25,6.25,7.25,8.25,9.25,10.25,11.25]},"selected":{"id":"1152"},"selection_policy":{"id":"1153"}},"id":"1122","type":"ColumnDataSource"},{"attributes":{"fill_color":{"value":"#20cb97"},"line_color":{"value":"#20cb97"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1130","type":"VBar"},{"attributes":{},"id":"1148","type":"BasicTickFormatter"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#ed5642"},"line_alpha":{"value":0.1},"line_color":{"value":"#ed5642"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1125","type":"VBar"},{"attributes":{"label":{"value":"query"},"renderers":[{"id":"1120"}]},"id":"1141","type":"LegendItem"},{"attributes":{"fill_color":{"value":"#ed5642"},"line_color":{"value":"#ed5642"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1124","type":"VBar"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_multi":null,"active_scroll":"auto","active_tap":"auto","tools":[{"id":"1094"}]},"id":"1114","type":"Toolbar"},{"attributes":{"callback":null,"tooltips":"\\n <div>\\n <div style=\\"margin-bottom:10px\\">\\n <span style=\\"font-size: 15px;\\"><b>@name</b><br/>density=@density</span>\\n </div>\\n <div> \\n <img\\n src=\\"@url\\" height=\\"@img_height\\" width=\\"@img_width\\" alt=\\"@url\\"\\n style=\\"float: left; margin: 0px 15px 15px 0px;\\"\\n border=\\"0\\"\\n />\\n </div>\\n </div>\\n "},"id":"1094","type":"HoverTool"},{"attributes":{},"id":"1098","type":"DataRange1d"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#6573f7"},"line_alpha":{"value":0.1},"line_color":{"value":"#6573f7"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1119","type":"VBar"},{"attributes":{},"id":"1155","type":"UnionRenderers"},{"attributes":{"label":{"value":"key"},"renderers":[{"id":"1126"}]},"id":"1142","type":"LegendItem"},{"attributes":{},"id":"1156","type":"Selection"},{"attributes":{},"id":"1153","type":"UnionRenderers"},{"attributes":{"axis":{"id":"1110"},"dimension":1,"ticker":null},"id":"1113","type":"Grid"},{"attributes":{},"id":"1151","type":"UnionRenderers"},{"attributes":{"fill_color":{"value":"#6573f7"},"line_color":{"value":"#6573f7"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1118","type":"VBar"},{"attributes":{},"id":"1146","type":"BasicTickFormatter"},{"attributes":{},"id":"1102","type":"LinearScale"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#aa69f7"},"line_alpha":{"value":0.1},"line_color":{"value":"#aa69f7"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1137","type":"VBar"},{"attributes":{"data_source":{"id":"1134"},"glyph":{"id":"1136"},"hover_glyph":null,"muted_glyph":null,"name":"fully connected","nonselection_glyph":{"id":"1137"},"selection_glyph":null,"view":{"id":"1139"}},"id":"1138","type":"GlyphRenderer"},{"attributes":{},"id":"1111","type":"BasicTicker"},{"attributes":{"data_source":{"id":"1128"},"glyph":{"id":"1130"},"hover_glyph":null,"muted_glyph":null,"name":"value","nonselection_glyph":{"id":"1131"},"selection_glyph":null,"view":{"id":"1133"}},"id":"1132","type":"GlyphRenderer"}],"root_ids":["1095"]},"title":"Bokeh Application","version":"2.2.3"}}';
|
119 |
-
var render_items = [{"docid":"
|
120 |
root.Bokeh.embed.embed_items(docs_json, render_items);
|
121 |
|
122 |
}
|
|
|
16 |
|
17 |
|
18 |
|
19 |
+
var element = document.getElementById("4d42d80b-b77b-473a-88be-4fc356398a81");
|
20 |
if (element == null) {
|
21 |
+
console.warn("Bokeh: autoload.js configured with elementid '4d42d80b-b77b-473a-88be-4fc356398a81' but no matching script tag was found.")
|
22 |
}
|
23 |
|
24 |
|
|
|
115 |
(function(root) {
|
116 |
function embed_document(root) {
|
117 |
|
118 |
+
var docs_json = '{"0d48e600-a989-4b84-b4f4-bd4af314c73e":{"roots":{"references":[{"attributes":{"source":{"id":"1116"}},"id":"1121","type":"CDSView"},{"attributes":{"fill_color":{"value":"#6573f7"},"line_color":{"value":"#6573f7"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1118","type":"VBar"},{"attributes":{"data_source":{"id":"1116"},"glyph":{"id":"1118"},"hover_glyph":null,"muted_glyph":null,"name":"query","nonselection_glyph":{"id":"1119"},"selection_glyph":null,"view":{"id":"1121"}},"id":"1120","type":"GlyphRenderer"},{"attributes":{"start":0},"id":"1100","type":"DataRange1d"},{"attributes":{"fill_color":{"value":"#20cb97"},"line_color":{"value":"#20cb97"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1130","type":"VBar"},{"attributes":{"axis":{"id":"1106"},"grid_line_color":null,"ticker":null},"id":"1109","type":"Grid"},{"attributes":{"data":{"density":["58.3%","23.9%","23.9%","41.7%","27.2%","27.2%","75.0%","32.3%","32.3%","75.0%","33.0%","33.0%","91.7%","34.3%","34.3%","83.3%","32.1%","32.1%","75.0%","24.1%","24.1%","66.7%","18.0%","18.0%","83.3%","10.1%","10.1%","50.0%","4.4%","4.4%","58.3%","3.6%","3.6%","41.7%","10.3%","10.3%"],"height":[0.344064,0.562944,0.562944,0.24576,0.642816,0.642816,0.442368,0.761856,0.761856,0.442368,0.777984,0.777984,0.540672,0.808704,0.808704,0.49152,0.757248,0.757248,0.442368,0.567552,0.567552,0.393216,0.423936,0.423936,0.49152,0.237312,0.237312,0.294912,0.104448,0.104448,0.344064,0.08448,0.08448,0.24576,0.242688,0.242688],"img_height":["96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px"],"img_width":["96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px","96px","96px","384px"],"name":["0.attention.output","0.intermediate","0.output","1.attention.output","1.intermediate","1.output","2.attention.output","2.intermediate","2.output","3.attention.output","3.intermediate","3.output","4.attention.output","4.intermediate","4.output","5.attention.output","5.intermediate","5.output","6.attention.output","6.intermediate","6.output","7.attention.output","7.intermediate","7.output","8.attention.output","8.intermediate","8.output","9.attention.output","9.intermediate","9.output","10.attention.output","10.intermediate","10.output","11.attention.output","11.intermediate","11.output"],"parameters":["0.34","0.56","0.56","0.25","0.64","0.64","0.44","0.76","0.76","0.44","0.78","0.78","0.54","0.81","0.81","0.49","0.76","0.76","0.44","0.57","0.57","0.39","0.42","0.42","0.49","0.24","0.24","0.29","0.10","0.10","0.34","0.08","0.08","0.25","0.24","0.24"],"url":["/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_0_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_0_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_0_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_1_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_1_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_1_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_2_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_2_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_2_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_3_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_3_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_3_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_4_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_4_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_4_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_5_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_5_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_5_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_6_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_6_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_6_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_7_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_7_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_7_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_8_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_8_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_8_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_9_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_9_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_9_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_10_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_10_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_10_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_11_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_11_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_11_output_dense.png"],"x":[0.5833333333333334,0.75,0.9166666666666667,1.5833333333333333,1.75,1.9166666666666665,2.5833333333333335,2.75,2.916666666666667,3.5833333333333335,3.75,3.916666666666667,4.583333333333333,4.75,4.916666666666666,5.583333333333333,5.75,5.916666666666666,6.583333333333333,6.75,6.916666666666666,7.583333333333333,7.75,7.916666666666666,8.583333333333334,8.75,8.916666666666668,9.583333333333334,9.75,9.916666666666668,10.583333333333334,10.75,10.916666666666668,11.583333333333334,11.75,11.916666666666668]},"selected":{"id":"1156"},"selection_policy":{"id":"1157"}},"id":"1134","type":"ColumnDataSource"},{"attributes":{},"id":"1154","type":"Selection"},{"attributes":{"label":{"value":"key"},"renderers":[{"id":"1126"}]},"id":"1142","type":"LegendItem"},{"attributes":{},"id":"1111","type":"BasicTicker"},{"attributes":{},"id":"1155","type":"UnionRenderers"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#ed5642"},"line_alpha":{"value":0.1},"line_color":{"value":"#ed5642"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1125","type":"VBar"},{"attributes":{"axis":{"id":"1110"},"dimension":1,"ticker":null},"id":"1113","type":"Grid"},{"attributes":{"label":{"value":"value"},"renderers":[{"id":"1132"}]},"id":"1143","type":"LegendItem"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_multi":null,"active_scroll":"auto","active_tap":"auto","tools":[{"id":"1094"}]},"id":"1114","type":"Toolbar"},{"attributes":{},"id":"1102","type":"LinearScale"},{"attributes":{"callback":null,"tooltips":"\\n <div>\\n <div style=\\"margin-bottom:10px\\">\\n <span style=\\"font-size: 15px;\\"><b>@name</b><br/>density=@density</span>\\n </div>\\n <div> \\n <img\\n src=\\"@url\\" height=\\"@img_height\\" width=\\"@img_width\\" alt=\\"@url\\"\\n style=\\"float: left; margin: 0px 15px 15px 0px;\\"\\n border=\\"0\\"\\n />\\n </div>\\n </div>\\n "},"id":"1094","type":"HoverTool"},{"attributes":{},"id":"1153","type":"UnionRenderers"},{"attributes":{"fill_color":{"value":"#aa69f7"},"line_color":{"value":"#aa69f7"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1136","type":"VBar"},{"attributes":{"data_source":{"id":"1128"},"glyph":{"id":"1130"},"hover_glyph":null,"muted_glyph":null,"name":"value","nonselection_glyph":{"id":"1131"},"selection_glyph":null,"view":{"id":"1133"}},"id":"1132","type":"GlyphRenderer"},{"attributes":{},"id":"1107","type":"BasicTicker"},{"attributes":{},"id":"1146","type":"BasicTickFormatter"},{"attributes":{"text":"Transformer Layers"},"id":"1096","type":"Title"},{"attributes":{"data":{"density":["58.3%","41.7%","75.0%","75.0%","91.7%","83.3%","75.0%","66.7%","83.3%","50.0%","58.3%","41.7%"],"height":[0.344064,0.24576,0.442368,0.442368,0.540672,0.49152,0.442368,0.393216,0.49152,0.294912,0.344064,0.24576],"img_height":["96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px"],"img_width":["96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px"],"name":["0.attention.query","1.attention.query","2.attention.query","3.attention.query","4.attention.query","5.attention.query","6.attention.query","7.attention.query","8.attention.query","9.attention.query","10.attention.query","11.attention.query"],"parameters":["0.34","0.25","0.44","0.44","0.54","0.49","0.44","0.39","0.49","0.29","0.34","0.25"],"url":["/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_0_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_1_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_2_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_3_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_4_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_5_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_6_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_7_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_8_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_9_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_10_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_11_attention_self_query.png"],"x":[0.08333333333333333,1.0833333333333333,2.0833333333333335,3.0833333333333335,4.083333333333333,5.083333333333333,6.083333333333333,7.083333333333333,8.083333333333334,9.083333333333334,10.083333333333334,11.083333333333334]},"selected":{"id":"1150"},"selection_policy":{"id":"1151"}},"id":"1116","type":"ColumnDataSource"},{"attributes":{},"id":"1151","type":"UnionRenderers"},{"attributes":{},"id":"1156","type":"Selection"},{"attributes":{"data_source":{"id":"1122"},"glyph":{"id":"1124"},"hover_glyph":null,"muted_glyph":null,"name":"key","nonselection_glyph":{"id":"1125"},"selection_glyph":null,"view":{"id":"1127"}},"id":"1126","type":"GlyphRenderer"},{"attributes":{"label":{"value":"query"},"renderers":[{"id":"1120"}]},"id":"1141","type":"LegendItem"},{"attributes":{"source":{"id":"1134"}},"id":"1139","type":"CDSView"},{"attributes":{},"id":"1104","type":"LinearScale"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#aa69f7"},"line_alpha":{"value":0.1},"line_color":{"value":"#aa69f7"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1137","type":"VBar"},{"attributes":{"items":[{"id":"1141"},{"id":"1142"},{"id":"1143"},{"id":"1144"}],"location":[10,0],"orientation":"horizontal"},"id":"1140","type":"Legend"},{"attributes":{},"id":"1157","type":"UnionRenderers"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#20cb97"},"line_alpha":{"value":0.1},"line_color":{"value":"#20cb97"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1131","type":"VBar"},{"attributes":{"axis_label":"Parameters (M)","formatter":{"id":"1146"},"minor_tick_line_color":null,"ticker":{"id":"1111"}},"id":"1110","type":"LinearAxis"},{"attributes":{},"id":"1098","type":"DataRange1d"},{"attributes":{"source":{"id":"1128"}},"id":"1133","type":"CDSView"},{"attributes":{},"id":"1152","type":"Selection"},{"attributes":{"data_source":{"id":"1134"},"glyph":{"id":"1136"},"hover_glyph":null,"muted_glyph":null,"name":"fully connected","nonselection_glyph":{"id":"1137"},"selection_glyph":null,"view":{"id":"1139"}},"id":"1138","type":"GlyphRenderer"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#6573f7"},"line_alpha":{"value":0.1},"line_color":{"value":"#6573f7"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1119","type":"VBar"},{"attributes":{"data":{"density":["58.3%","41.7%","75.0%","75.0%","91.7%","83.3%","75.0%","66.7%","83.3%","50.0%","58.3%","41.7%"],"height":[0.344064,0.24576,0.442368,0.442368,0.540672,0.49152,0.442368,0.393216,0.49152,0.294912,0.344064,0.24576],"img_height":["96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px"],"img_width":["96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px"],"name":["0.attention.value","1.attention.value","2.attention.value","3.attention.value","4.attention.value","5.attention.value","6.attention.value","7.attention.value","8.attention.value","9.attention.value","10.attention.value","11.attention.value"],"parameters":["0.34","0.25","0.44","0.44","0.54","0.49","0.44","0.39","0.49","0.29","0.34","0.25"],"url":["/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_0_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_1_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_2_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_3_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_4_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_5_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_6_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_7_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_8_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_9_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_10_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_11_attention_self_value.png"],"x":[0.41666666666666663,1.4166666666666665,2.416666666666667,3.416666666666667,4.416666666666666,5.416666666666666,6.416666666666666,7.416666666666666,8.416666666666668,9.416666666666668,10.416666666666668,11.416666666666668]},"selected":{"id":"1154"},"selection_policy":{"id":"1155"}},"id":"1128","type":"ColumnDataSource"},{"attributes":{},"id":"1148","type":"BasicTickFormatter"},{"attributes":{"fill_color":{"value":"#ed5642"},"line_color":{"value":"#ed5642"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1124","type":"VBar"},{"attributes":{"data":{"density":["58.3%","41.7%","75.0%","75.0%","91.7%","83.3%","75.0%","66.7%","83.3%","50.0%","58.3%","41.7%"],"height":[0.344064,0.24576,0.442368,0.442368,0.540672,0.49152,0.442368,0.393216,0.49152,0.294912,0.344064,0.24576],"img_height":["96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px"],"img_width":["96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px","96px"],"name":["0.attention.key","1.attention.key","2.attention.key","3.attention.key","4.attention.key","5.attention.key","6.attention.key","7.attention.key","8.attention.key","9.attention.key","10.attention.key","11.attention.key"],"parameters":["0.34","0.25","0.44","0.44","0.54","0.49","0.44","0.39","0.49","0.29","0.34","0.25"],"url":["/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_0_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_1_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_2_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_3_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_4_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_5_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_6_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_7_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_8_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_9_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_10_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.84-f88.7-d36-hybrid-filled-v1/raw/main/model_card/images/layer_11_attention_self_key.png"],"x":[0.25,1.25,2.25,3.25,4.25,5.25,6.25,7.25,8.25,9.25,10.25,11.25]},"selected":{"id":"1152"},"selection_policy":{"id":"1153"}},"id":"1122","type":"ColumnDataSource"},{"attributes":{"label":{"value":"fully connected"},"renderers":[{"id":"1138"}]},"id":"1144","type":"LegendItem"},{"attributes":{"source":{"id":"1122"}},"id":"1127","type":"CDSView"},{"attributes":{},"id":"1150","type":"Selection"},{"attributes":{"axis_label":"Layer","formatter":{"id":"1148"},"minor_tick_line_color":null,"ticker":{"id":"1107"}},"id":"1106","type":"LinearAxis"},{"attributes":{"above":[{"id":"1140"}],"below":[{"id":"1106"}],"center":[{"id":"1109"},{"id":"1113"}],"left":[{"id":"1110"}],"outline_line_color":null,"plot_height":300,"plot_width":505,"renderers":[{"id":"1120"},{"id":"1126"},{"id":"1132"},{"id":"1138"}],"title":{"id":"1096"},"toolbar":{"id":"1114"},"x_range":{"id":"1098"},"x_scale":{"id":"1102"},"y_range":{"id":"1100"},"y_scale":{"id":"1104"}},"id":"1095","subtype":"Figure","type":"Plot"}],"root_ids":["1095"]},"title":"Bokeh Application","version":"2.2.3"}}';
|
119 |
+
var render_items = [{"docid":"0d48e600-a989-4b84-b4f4-bd4af314c73e","root_ids":["1095"],"roots":{"1095":"4d42d80b-b77b-473a-88be-4fc356398a81"}}];
|
120 |
root.Bokeh.embed.embed_items(docs_json, render_items);
|
121 |
|
122 |
}
|
model_card/pruning_info.js
CHANGED
@@ -16,9 +16,9 @@
|
|
16 |
|
17 |
|
18 |
|
19 |
-
var element = document.getElementById("
|
20 |
if (element == null) {
|
21 |
-
console.warn("Bokeh: autoload.js configured with elementid '
|
22 |
}
|
23 |
|
24 |
|
@@ -115,8 +115,8 @@
|
|
115 |
(function(root) {
|
116 |
function embed_document(root) {
|
117 |
|
118 |
-
var docs_json = '{"
|
119 |
-
var render_items = [{"docid":"
|
120 |
root.Bokeh.embed.embed_items(docs_json, render_items);
|
121 |
|
122 |
}
|
|
|
16 |
|
17 |
|
18 |
|
19 |
+
var element = document.getElementById("6d8fc181-a288-4ff2-8846-d16d82b0da33");
|
20 |
if (element == null) {
|
21 |
+
console.warn("Bokeh: autoload.js configured with elementid '6d8fc181-a288-4ff2-8846-d16d82b0da33' but no matching script tag was found.")
|
22 |
}
|
23 |
|
24 |
|
|
|
115 |
(function(root) {
|
116 |
function embed_document(root) {
|
117 |
|
118 |
+
var docs_json = '{"cd9627dc-8392-4c24-ba61-759f0a52912f":{"roots":{"references":[{"attributes":{"start":0},"id":"1006","type":"DataRange1d"},{"attributes":{},"id":"1008","type":"CategoricalScale"},{"attributes":{"axis":{"id":"1012"},"grid_line_color":null,"ticker":null},"id":"1014","type":"Grid"},{"attributes":{},"id":"1013","type":"CategoricalTicker"},{"attributes":{"items":[{"id":"1056"},{"id":"1057"}],"location":[10,0],"orientation":"horizontal"},"id":"1055","type":"Legend"},{"attributes":{},"id":"1052","type":"Selection"},{"attributes":{"fields":[]},"id":"1020","type":"Stack"},{"attributes":{"factors":["0","1","2","3","4","5","6","7","8","9","10","11"],"range_padding":0.1},"id":"1004","type":"FactorRange"},{"attributes":{"label":{"value":"active"},"renderers":[{"id":"1028"}]},"id":"1038","type":"LegendItem"},{"attributes":{},"id":"1035","type":"Selection"},{"attributes":{},"id":"1053","type":"UnionRenderers"},{"attributes":{"label":{"value":"pruned"},"renderers":[{"id":"1043"}]},"id":"1057","type":"LegendItem"},{"attributes":{"text":"Pruned Transformer Heads"},"id":"1002","type":"Title"},{"attributes":{},"id":"1036","type":"UnionRenderers"},{"attributes":{},"id":"1010","type":"LinearScale"},{"attributes":{},"id":"1031","type":"BasicTickFormatter"},{"attributes":{"data":{"active":[7,5,9,9,11,10,9,8,10,6,7,5],"layers":["0","1","2","3","4","5","6","7","8","9","10","11"],"pruned":[5,7,3,3,1,2,3,4,2,6,5,7]},"selected":{"id":"1052"},"selection_policy":{"id":"1053"}},"id":"1039","type":"ColumnDataSource"},{"attributes":{},"id":"1033","type":"CategoricalTickFormatter"},{"attributes":{"label":{"value":"active"},"renderers":[{"id":"1028"}]},"id":"1056","type":"LegendItem"},{"attributes":{"fields":["active"]},"id":"1021","type":"Stack"},{"attributes":{"source":{"id":"1039"}},"id":"1044","type":"CDSView"},{"attributes":{"axis":{"id":"1015"},"dimension":1,"ticker":null},"id":"1018","type":"Grid"},{"attributes":{},"id":"1016","type":"BasicTicker"},{"attributes":{"bottom":{"expr":{"id":"1022"}},"fill_color":{"value":"#ffcccc"},"line_color":{"value":"#ffcccc"},"top":{"expr":{"id":"1023"}},"width":{"value":0.9},"x":{"field":"layers"}},"id":"1041","type":"VBar"},{"attributes":{"label":{"value":"pruned"},"renderers":[{"id":"1043"}]},"id":"1054","type":"LegendItem"},{"attributes":{"bottom":{"expr":{"id":"1022"}},"fill_alpha":{"value":0.1},"fill_color":{"value":"#ffcccc"},"line_alpha":{"value":0.1},"line_color":{"value":"#ffcccc"},"top":{"expr":{"id":"1023"}},"width":{"value":0.9},"x":{"field":"layers"}},"id":"1042","type":"VBar"},{"attributes":{"data":{"active":[7,5,9,9,11,10,9,8,10,6,7,5],"layers":["0","1","2","3","4","5","6","7","8","9","10","11"],"pruned":[5,7,3,3,1,2,3,4,2,6,5,7]},"selected":{"id":"1035"},"selection_policy":{"id":"1036"}},"id":"1024","type":"ColumnDataSource"},{"attributes":{"axis_label":"Heads count","formatter":{"id":"1031"},"minor_tick_line_color":null,"ticker":{"id":"1016"}},"id":"1015","type":"LinearAxis"},{"attributes":{"data_source":{"id":"1039"},"glyph":{"id":"1041"},"hover_glyph":null,"muted_glyph":null,"name":"pruned","nonselection_glyph":{"id":"1042"},"selection_glyph":null,"view":{"id":"1044"}},"id":"1043","type":"GlyphRenderer"},{"attributes":{"fields":["active","pruned"]},"id":"1023","type":"Stack"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_multi":null,"active_scroll":"auto","active_tap":"auto"},"id":"1019","type":"Toolbar"},{"attributes":{"source":{"id":"1024"}},"id":"1029","type":"CDSView"},{"attributes":{"bottom":{"expr":{"id":"1020"}},"fill_color":{"value":"#0000ff"},"line_color":{"value":"#0000ff"},"top":{"expr":{"id":"1021"}},"width":{"value":0.9},"x":{"field":"layers"}},"id":"1026","type":"VBar"},{"attributes":{"fields":["active"]},"id":"1022","type":"Stack"},{"attributes":{"bottom":{"expr":{"id":"1020"}},"fill_alpha":{"value":0.1},"fill_color":{"value":"#0000ff"},"line_alpha":{"value":0.1},"line_color":{"value":"#0000ff"},"top":{"expr":{"id":"1021"}},"width":{"value":0.9},"x":{"field":"layers"}},"id":"1027","type":"VBar"},{"attributes":{"items":[{"id":"1038"},{"id":"1054"}],"location":null},"id":"1037","type":"Legend"},{"attributes":{"above":[{"id":"1055"}],"below":[{"id":"1012"}],"center":[{"id":"1014"},{"id":"1018"},{"id":"1037"}],"left":[{"id":"1015"}],"outline_line_color":null,"plot_height":400,"renderers":[{"id":"1028"},{"id":"1043"}],"title":{"id":"1002"},"toolbar":{"id":"1019"},"toolbar_location":null,"x_range":{"id":"1004"},"x_scale":{"id":"1008"},"y_range":{"id":"1006"},"y_scale":{"id":"1010"}},"id":"1001","subtype":"Figure","type":"Plot"},{"attributes":{"data_source":{"id":"1024"},"glyph":{"id":"1026"},"hover_glyph":null,"muted_glyph":null,"name":"active","nonselection_glyph":{"id":"1027"},"selection_glyph":null,"view":{"id":"1029"}},"id":"1028","type":"GlyphRenderer"},{"attributes":{"axis_label":"Layer index","formatter":{"id":"1033"},"minor_tick_line_color":null,"ticker":{"id":"1013"}},"id":"1012","type":"CategoricalAxis"}],"root_ids":["1001"]},"title":"Bokeh Application","version":"2.2.3"}}';
|
119 |
+
var render_items = [{"docid":"cd9627dc-8392-4c24-ba61-759f0a52912f","root_ids":["1001"],"roots":{"1001":"6d8fc181-a288-4ff2-8846-d16d82b0da33"}}];
|
120 |
root.Bokeh.embed.embed_items(docs_json, render_items);
|
121 |
|
122 |
}
|
model_info.json
ADDED
@@ -0,0 +1,295 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"checkpoint_path": "/data_2to/devel_data/nn_pruning/output/squad_test_final_fine_tune/fine_tuned_aws_nn-pruning-v10-a32-l5-dl0-5--2021-01-21--00-52-45/checkpoint-22132",
|
3 |
+
"config": {
|
4 |
+
"_name_or_path": "/tmp/tmp3c96kd08",
|
5 |
+
"architectures": ["BertForQuestionAnswering"],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"gradient_checkpointing": false,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"intermediate_size": 3072,
|
13 |
+
"layer_norm_eps": 1e-12,
|
14 |
+
"max_position_embeddings": 512,
|
15 |
+
"model_type": "bert",
|
16 |
+
"num_attention_heads": 12,
|
17 |
+
"num_hidden_layers": 12,
|
18 |
+
"pad_token_id": 0,
|
19 |
+
"position_embedding_type": "absolute",
|
20 |
+
"pruned_heads": {
|
21 |
+
"0": [2, 4, 5, 6, 7],
|
22 |
+
"1": [0, 2, 3, 5, 6, 7, 8],
|
23 |
+
"10": [1, 4, 5, 6, 7],
|
24 |
+
"11": [0, 2, 5, 6, 7, 8, 11],
|
25 |
+
"2": [4, 7, 8],
|
26 |
+
"3": [2, 4, 6],
|
27 |
+
"4": [2],
|
28 |
+
"5": [1, 2],
|
29 |
+
"6": [2, 3, 7],
|
30 |
+
"7": [3, 6, 7, 11],
|
31 |
+
"8": [0, 4],
|
32 |
+
"9": [1, 4, 5, 7, 9, 10]
|
33 |
+
},
|
34 |
+
"type_vocab_size": 2,
|
35 |
+
"vocab_size": 30522
|
36 |
+
},
|
37 |
+
"eval_metrics": {
|
38 |
+
"exact_match": 81.69347209082308,
|
39 |
+
"f1": 88.72194531479171,
|
40 |
+
"main_metric": 88.72194531479171
|
41 |
+
},
|
42 |
+
"model_args": {
|
43 |
+
"cache_dir": null,
|
44 |
+
"config_name": null,
|
45 |
+
"model_name_or_path": "/home/lagunas/devel/hf/nn_pruning/nn_pruning/analysis/tmp_finetune",
|
46 |
+
"tokenizer_name": null
|
47 |
+
},
|
48 |
+
"source_checkpoint": "/data_2to/devel_data/nn_pruning/output/squad_test_aws/aws_nn-pruning-v10-a32-l5-dl0-5--2021-01-21--00-52-45/checkpoint-95000",
|
49 |
+
"sparse_args": {
|
50 |
+
"ampere_pruning_method": "disabled",
|
51 |
+
"attention_block_cols": 1,
|
52 |
+
"attention_block_rows": 1,
|
53 |
+
"attention_lambda": 1.0,
|
54 |
+
"attention_output_with_dense": 0,
|
55 |
+
"attention_pruning_method": "topK",
|
56 |
+
"bias_mask": true,
|
57 |
+
"dense_block_cols": 1,
|
58 |
+
"dense_block_rows": 1,
|
59 |
+
"dense_lambda": 1.0,
|
60 |
+
"dense_pruning_method": "topK",
|
61 |
+
"distil_alpha_ce": 0.1,
|
62 |
+
"distil_alpha_teacher": 0.9,
|
63 |
+
"distil_teacher_name_or_path": "csarron/bert-base-uncased-squad-v1",
|
64 |
+
"distil_temperature": 2.0,
|
65 |
+
"final_ampere_temperature": 20.0,
|
66 |
+
"final_finetune": 1,
|
67 |
+
"final_threshold": 0.5,
|
68 |
+
"final_warmup": 0,
|
69 |
+
"initial_ampere_temperature": 0.0,
|
70 |
+
"initial_threshold": 1.0,
|
71 |
+
"initial_warmup": 0,
|
72 |
+
"mask_init": "constant",
|
73 |
+
"mask_scale": 0.0,
|
74 |
+
"mask_scores_learning_rate": 0.01,
|
75 |
+
"regularization": "",
|
76 |
+
"regularization_final_lambda": 0
|
77 |
+
},
|
78 |
+
"speed": {
|
79 |
+
"cuda_eval_elapsed_time": 20.951393741607667,
|
80 |
+
"eval_elapsed_time": 28.213609586004168
|
81 |
+
},
|
82 |
+
"speedup": 1.8420919143305463,
|
83 |
+
"stats": {
|
84 |
+
"layers": {
|
85 |
+
"0": {
|
86 |
+
"linear_attention_nnz": 1376256,
|
87 |
+
"linear_attention_total": 2359296,
|
88 |
+
"linear_dense_nnz": 1125888,
|
89 |
+
"linear_dense_total": 4718592,
|
90 |
+
"linear_nnz": 2502144,
|
91 |
+
"linear_total": 7077888,
|
92 |
+
"nnz": 2508829,
|
93 |
+
"total": 7086912
|
94 |
+
},
|
95 |
+
"1": {
|
96 |
+
"linear_attention_nnz": 983040,
|
97 |
+
"linear_attention_total": 2359296,
|
98 |
+
"linear_dense_nnz": 1285632,
|
99 |
+
"linear_dense_total": 4718592,
|
100 |
+
"linear_nnz": 2268672,
|
101 |
+
"linear_total": 7077888,
|
102 |
+
"nnz": 2275077,
|
103 |
+
"total": 7086528
|
104 |
+
},
|
105 |
+
"10": {
|
106 |
+
"linear_attention_nnz": 1376256,
|
107 |
+
"linear_attention_total": 2359296,
|
108 |
+
"linear_dense_nnz": 168960,
|
109 |
+
"linear_dense_total": 4718592,
|
110 |
+
"linear_nnz": 1545216,
|
111 |
+
"linear_total": 7077888,
|
112 |
+
"nnz": 1551278,
|
113 |
+
"total": 7086912
|
114 |
+
},
|
115 |
+
"11": {
|
116 |
+
"linear_attention_nnz": 983040,
|
117 |
+
"linear_attention_total": 2359296,
|
118 |
+
"linear_dense_nnz": 485376,
|
119 |
+
"linear_dense_total": 4718592,
|
120 |
+
"linear_nnz": 1468416,
|
121 |
+
"linear_total": 7077888,
|
122 |
+
"nnz": 1474300,
|
123 |
+
"total": 7086528
|
124 |
+
},
|
125 |
+
"2": {
|
126 |
+
"linear_attention_nnz": 1769472,
|
127 |
+
"linear_attention_total": 2359296,
|
128 |
+
"linear_dense_nnz": 1523712,
|
129 |
+
"linear_dense_total": 4718592,
|
130 |
+
"linear_nnz": 3293184,
|
131 |
+
"linear_total": 7077888,
|
132 |
+
"nnz": 3300512,
|
133 |
+
"total": 7087296
|
134 |
+
},
|
135 |
+
"3": {
|
136 |
+
"linear_attention_nnz": 1769472,
|
137 |
+
"linear_attention_total": 2359296,
|
138 |
+
"linear_dense_nnz": 1555968,
|
139 |
+
"linear_dense_total": 4718592,
|
140 |
+
"linear_nnz": 3325440,
|
141 |
+
"linear_total": 7077888,
|
142 |
+
"nnz": 3332789,
|
143 |
+
"total": 7087296
|
144 |
+
},
|
145 |
+
"4": {
|
146 |
+
"linear_attention_nnz": 2162688,
|
147 |
+
"linear_attention_total": 2359296,
|
148 |
+
"linear_dense_nnz": 1617408,
|
149 |
+
"linear_dense_total": 4718592,
|
150 |
+
"linear_nnz": 3780096,
|
151 |
+
"linear_total": 7077888,
|
152 |
+
"nnz": 3787869,
|
153 |
+
"total": 7087680
|
154 |
+
},
|
155 |
+
"5": {
|
156 |
+
"linear_attention_nnz": 1966080,
|
157 |
+
"linear_attention_total": 2359296,
|
158 |
+
"linear_dense_nnz": 1514496,
|
159 |
+
"linear_dense_total": 4718592,
|
160 |
+
"linear_nnz": 3480576,
|
161 |
+
"linear_total": 7077888,
|
162 |
+
"nnz": 3488090,
|
163 |
+
"total": 7087488
|
164 |
+
},
|
165 |
+
"6": {
|
166 |
+
"linear_attention_nnz": 1769472,
|
167 |
+
"linear_attention_total": 2359296,
|
168 |
+
"linear_dense_nnz": 1135104,
|
169 |
+
"linear_dense_total": 4718592,
|
170 |
+
"linear_nnz": 2904576,
|
171 |
+
"linear_total": 7077888,
|
172 |
+
"nnz": 2911651,
|
173 |
+
"total": 7087296
|
174 |
+
},
|
175 |
+
"7": {
|
176 |
+
"linear_attention_nnz": 1572864,
|
177 |
+
"linear_attention_total": 2359296,
|
178 |
+
"linear_dense_nnz": 847872,
|
179 |
+
"linear_dense_total": 4718592,
|
180 |
+
"linear_nnz": 2420736,
|
181 |
+
"linear_total": 7077888,
|
182 |
+
"nnz": 2427432,
|
183 |
+
"total": 7087104
|
184 |
+
},
|
185 |
+
"8": {
|
186 |
+
"linear_attention_nnz": 1966080,
|
187 |
+
"linear_attention_total": 2359296,
|
188 |
+
"linear_dense_nnz": 474624,
|
189 |
+
"linear_dense_total": 4718592,
|
190 |
+
"linear_nnz": 2440704,
|
191 |
+
"linear_total": 7077888,
|
192 |
+
"nnz": 2447541,
|
193 |
+
"total": 7087488
|
194 |
+
},
|
195 |
+
"9": {
|
196 |
+
"linear_attention_nnz": 1179648,
|
197 |
+
"linear_attention_total": 2359296,
|
198 |
+
"linear_dense_nnz": 208896,
|
199 |
+
"linear_dense_total": 4718592,
|
200 |
+
"linear_nnz": 1388544,
|
201 |
+
"linear_total": 7077888,
|
202 |
+
"nnz": 1394440,
|
203 |
+
"total": 7086720
|
204 |
+
}
|
205 |
+
},
|
206 |
+
"linear_nnz": 30818304,
|
207 |
+
"linear_sparsity": 63.71527777777778,
|
208 |
+
"linear_total": 84934656,
|
209 |
+
"nnz": 54738530,
|
210 |
+
"pruned_heads": {
|
211 |
+
"0": [2, 4, 5, 6, 7],
|
212 |
+
"1": [0, 2, 3, 5, 6, 7, 8],
|
213 |
+
"10": [1, 4, 5, 6, 7],
|
214 |
+
"11": [0, 2, 5, 6, 7, 8, 11],
|
215 |
+
"2": [8, 4, 7],
|
216 |
+
"3": [2, 4, 6],
|
217 |
+
"4": [2],
|
218 |
+
"5": [1, 2],
|
219 |
+
"6": [2, 3, 7],
|
220 |
+
"7": [11, 3, 6, 7],
|
221 |
+
"8": [0, 4],
|
222 |
+
"9": [1, 4, 5, 7, 9, 10]
|
223 |
+
},
|
224 |
+
"total": 108883970,
|
225 |
+
"total_sparsity": 49.72765045212808
|
226 |
+
},
|
227 |
+
"training_args": {
|
228 |
+
"_n_gpu": -1,
|
229 |
+
"adafactor": false,
|
230 |
+
"adam_beta1": 0.9,
|
231 |
+
"adam_beta2": 0.999,
|
232 |
+
"adam_epsilon": 1e-08,
|
233 |
+
"dataloader_drop_last": false,
|
234 |
+
"dataloader_num_workers": 0,
|
235 |
+
"dataloader_pin_memory": true,
|
236 |
+
"ddp_find_unused_parameters": null,
|
237 |
+
"debug": false,
|
238 |
+
"deepspeed": null,
|
239 |
+
"disable_tqdm": false,
|
240 |
+
"do_eval": 1,
|
241 |
+
"do_predict": false,
|
242 |
+
"do_train": 1,
|
243 |
+
"eval_accumulation_steps": null,
|
244 |
+
"eval_steps": 2500,
|
245 |
+
"evaluation_strategy": "steps",
|
246 |
+
"fp16": false,
|
247 |
+
"fp16_backend": "auto",
|
248 |
+
"fp16_full_eval": false,
|
249 |
+
"fp16_opt_level": "O1",
|
250 |
+
"gradient_accumulation_steps": 1,
|
251 |
+
"greater_is_better": null,
|
252 |
+
"group_by_length": false,
|
253 |
+
"ignore_data_skip": false,
|
254 |
+
"label_names": null,
|
255 |
+
"label_smoothing_factor": 0.0,
|
256 |
+
"learning_rate": 3e-05,
|
257 |
+
"length_column_name": "length",
|
258 |
+
"load_best_model_at_end": false,
|
259 |
+
"local_rank": -1,
|
260 |
+
"logging_dir": "/data_2to/devel_data/nn_pruning/output/squad_test_final_fine_tune/fine_tuned_aws_nn-pruning-v10-a32-l5-dl0-5--2021-01-21--00-52-45",
|
261 |
+
"logging_first_step": false,
|
262 |
+
"logging_steps": 250,
|
263 |
+
"logging_strategy": "steps",
|
264 |
+
"lr_scheduler_type": "linear",
|
265 |
+
"max_grad_norm": 1.0,
|
266 |
+
"max_steps": -1,
|
267 |
+
"metric_for_best_model": null,
|
268 |
+
"mp_parameters": "",
|
269 |
+
"no_cuda": false,
|
270 |
+
"num_train_epochs": 4,
|
271 |
+
"optimize_model_before_eval": "disabled",
|
272 |
+
"output_dir": "/data_2to/devel_data/nn_pruning/output/squad_test_final_fine_tune/fine_tuned_aws_nn-pruning-v10-a32-l5-dl0-5--2021-01-21--00-52-45",
|
273 |
+
"overwrite_output_dir": 1,
|
274 |
+
"past_index": -1,
|
275 |
+
"per_device_eval_batch_size": 128,
|
276 |
+
"per_device_train_batch_size": 16,
|
277 |
+
"per_gpu_eval_batch_size": null,
|
278 |
+
"per_gpu_train_batch_size": null,
|
279 |
+
"prediction_loss_only": false,
|
280 |
+
"remove_unused_columns": true,
|
281 |
+
"report_to": null,
|
282 |
+
"run_name": "/data_2to/devel_data/nn_pruning/output/squad_test_final_fine_tune/fine_tuned_aws_nn-pruning-v10-a32-l5-dl0-5--2021-01-21--00-52-45",
|
283 |
+
"save_steps": 2500,
|
284 |
+
"save_strategy": "steps",
|
285 |
+
"save_total_limit": 50,
|
286 |
+
"seed": 17,
|
287 |
+
"sharded_ddp": "",
|
288 |
+
"skip_memory_metrics": false,
|
289 |
+
"tpu_metrics_debug": false,
|
290 |
+
"tpu_num_cores": null,
|
291 |
+
"warmup_ratio": 0.0,
|
292 |
+
"warmup_steps": 10,
|
293 |
+
"weight_decay": 0.0
|
294 |
+
}
|
295 |
+
}
|
training/data_args.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"dataset_cache_dir": "dataset_cache",
|
3 |
+
"dataset_config_name": null,
|
4 |
+
"dataset_name": "squad",
|
5 |
+
"doc_stride": 128,
|
6 |
+
"max_answer_length": 30,
|
7 |
+
"max_seq_length": 384,
|
8 |
+
"n_best_size": 20,
|
9 |
+
"null_score_diff_threshold": 0.0,
|
10 |
+
"overwrite_cache": 0,
|
11 |
+
"pad_to_max_length": true,
|
12 |
+
"preprocessing_num_workers": null,
|
13 |
+
"train_file": null,
|
14 |
+
"validation_file": null,
|
15 |
+
"version_2_with_negative": false
|
16 |
+
}
|
training/model_args.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cache_dir": null,
|
3 |
+
"config_name": null,
|
4 |
+
"model_name_or_path": "/home/lagunas/devel/hf/nn_pruning/nn_pruning/analysis/tmp_finetune",
|
5 |
+
"tokenizer_name": null
|
6 |
+
}
|
training/sparse_args.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"ampere_pruning_method": "disabled",
|
3 |
+
"attention_block_cols": 1,
|
4 |
+
"attention_block_rows": 1,
|
5 |
+
"attention_lambda": 1.0,
|
6 |
+
"attention_output_with_dense": 0,
|
7 |
+
"attention_pruning_method": "topK",
|
8 |
+
"bias_mask": true,
|
9 |
+
"dense_block_cols": 1,
|
10 |
+
"dense_block_rows": 1,
|
11 |
+
"dense_lambda": 1.0,
|
12 |
+
"dense_pruning_method": "topK",
|
13 |
+
"distil_alpha_ce": 0.1,
|
14 |
+
"distil_alpha_teacher": 0.9,
|
15 |
+
"distil_teacher_name_or_path": "csarron/bert-base-uncased-squad-v1",
|
16 |
+
"distil_temperature": 2.0,
|
17 |
+
"final_ampere_temperature": 20.0,
|
18 |
+
"final_finetune": 1,
|
19 |
+
"final_threshold": 0.5,
|
20 |
+
"final_warmup": 0,
|
21 |
+
"initial_ampere_temperature": 0.0,
|
22 |
+
"initial_threshold": 1.0,
|
23 |
+
"initial_warmup": 0,
|
24 |
+
"mask_init": "constant",
|
25 |
+
"mask_scale": 0.0,
|
26 |
+
"mask_scores_learning_rate": 0.01,
|
27 |
+
"regularization": "",
|
28 |
+
"regularization_final_lambda": 0
|
29 |
+
}
|
training/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:90758f61d80b6d9410cdabb76020584b16844432c7ae7e8aee9fcbc79d9d4c3d
|
3 |
+
size 1967
|