Initial revision of model.
Browse files- README.md +24 -21
- model_card/density.js +4 -4
- model_card/pruning.svg +1 -1
- pytorch_model.bin +2 -2
README.md
CHANGED
@@ -11,7 +11,7 @@ datasets:
|
|
11 |
metrics:
|
12 |
- squad
|
13 |
widget:
|
14 |
-
- text: "Where is
|
15 |
context: "The Eiffel Tower is a wrought-iron lattice tower on the Champ de Mars in Paris, France. It is named after the engineer Gustave Eiffel, whose company designed and built the tower."
|
16 |
- text: "Who is Frederic Chopin?"
|
17 |
context: "Frédéric François Chopin, born Fryderyk Franciszek Chopin (1 March 1810 – 17 October 1849), was a Polish composer and virtuoso pianist of the Romantic era who wrote primarily for solo piano."
|
@@ -19,23 +19,30 @@ widget:
|
|
19 |
|
20 |
## BERT-base uncased model fine-tuned on SQuAD v1
|
21 |
|
22 |
-
This model is
|
23 |
|
24 |
-
That means that with the right runtime it can run roughly 3x faster than an dense network, with 25% of the original weights.
|
25 |
|
26 |
-
|
27 |
|
28 |
-
|
29 |
|
30 |
-
|
|
|
|
|
|
|
|
|
31 |
This model is case-insensitive: it does not make a difference between english and English.
|
32 |
|
33 |
## Pruning details
|
|
|
|
|
|
|
|
|
34 |

|
35 |
|
36 |
## Density plot
|
37 |
|
38 |
-
<script src="/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/density.js" id="
|
39 |
|
40 |
## Details
|
41 |
|
@@ -44,32 +51,27 @@ This model is case-insensitive: it does not make a difference between english an
|
|
44 |
| SQuAD1.1 | train | 90.6K |
|
45 |
| SQuAD1.1 | eval | 11.1k |
|
46 |
|
47 |
-
|
48 |
### Fine-tuning
|
49 |
- Python: `3.8.5`
|
50 |
|
51 |
- Machine specs:
|
52 |
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
`GPU driver: 455.23.05, CUDA: 11.1`
|
60 |
|
61 |
|
62 |
### Results
|
63 |
|
64 |
-
**
|
65 |
|
66 |
| Metric | # Value | # Original ([Table 2](https://www.aclweb.org/anthology/N19-1423.pdf))|
|
67 |
| ------ | --------- | --------- |
|
68 |
| **EM** | **76.98** | **80.8** |
|
69 |
| **F1** | **85.45** | **88.5** |
|
70 |
|
71 |
-
Note that the above results didn't involve any hyperparameter search.
|
72 |
-
|
73 |
## Example Usage
|
74 |
|
75 |
```python
|
@@ -77,8 +79,8 @@ from transformers import pipeline
|
|
77 |
|
78 |
qa_pipeline = pipeline(
|
79 |
"question-answering",
|
80 |
-
model="madlag/bert-base-uncased-
|
81 |
-
tokenizer="madlag/bert-base-uncased-
|
82 |
)
|
83 |
|
84 |
predictions = qa_pipeline({
|
@@ -86,4 +88,5 @@ predictions = qa_pipeline({
|
|
86 |
'question': "Who is Frederic Chopin?",
|
87 |
})
|
88 |
|
89 |
-
print(predictions)
|
|
|
|
11 |
metrics:
|
12 |
- squad
|
13 |
widget:
|
14 |
+
- text: "Where is the Eiffel Tower located?"
|
15 |
context: "The Eiffel Tower is a wrought-iron lattice tower on the Champ de Mars in Paris, France. It is named after the engineer Gustave Eiffel, whose company designed and built the tower."
|
16 |
- text: "Who is Frederic Chopin?"
|
17 |
context: "Frédéric François Chopin, born Fryderyk Franciszek Chopin (1 March 1810 – 17 October 1849), was a Polish composer and virtuoso pianist of the Romantic era who wrote primarily for solo piano."
|
|
|
19 |
|
20 |
## BERT-base uncased model fine-tuned on SQuAD v1
|
21 |
|
22 |
+
This model is block sparse: the **linear** layers contains **20.2%** of the original weights.
|
23 |
|
|
|
24 |
|
25 |
+
The model contains **38.1%** of the original weights **overall**.
|
26 |
|
27 |
+
The training use a modified version of Victor Sanh [Movement Pruning](https://arxiv.org/abs/2005.07683) method.
|
28 |
|
29 |
+
That means that with the [block-sparse](https://github.com/huggingface/pytorch_block_sparse) runtime it ran **1.39x** faster than an dense networks on the evaluation, at the price of some impact on the accuracy (see below).
|
30 |
+
|
31 |
+
|
32 |
+
|
33 |
+
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 equivalent model [csarron/bert-base-uncased-squad-v1](https://huggingface.co/csarron/bert-base-uncased-squad-v1).
|
34 |
This model is case-insensitive: it does not make a difference between english and English.
|
35 |
|
36 |
## Pruning details
|
37 |
+
A side-effect of the block pruning is that some of the attention heads are completely removed: 90 heads were removed on a total of 144 (62.5%).
|
38 |
+
|
39 |
+
Here is a detailed view on how the remaining heads are distributed in the network after pruning.
|
40 |
+
|
41 |

|
42 |
|
43 |
## Density plot
|
44 |
|
45 |
+
<script src="/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/density.js" id="61a5e601-a8d3-463f-98db-8fbf642810fe"></script>
|
46 |
|
47 |
## Details
|
48 |
|
|
|
51 |
| SQuAD1.1 | train | 90.6K |
|
52 |
| SQuAD1.1 | eval | 11.1k |
|
53 |
|
|
|
54 |
### Fine-tuning
|
55 |
- Python: `3.8.5`
|
56 |
|
57 |
- Machine specs:
|
58 |
|
59 |
+
```CPU: Intel(R) Core(TM) i7-6700K CPU
|
60 |
+
Memory: 64 GiB
|
61 |
+
GPUs: 1 GeForce GTX 3090, with 24GiB memory
|
62 |
+
GPU driver: 455.23.05, CUDA: 11.1
|
63 |
+
```
|
|
|
|
|
64 |
|
65 |
|
66 |
### Results
|
67 |
|
68 |
+
**Pytorch model file size**: `347M` (original BERT: `438M`)
|
69 |
|
70 |
| Metric | # Value | # Original ([Table 2](https://www.aclweb.org/anthology/N19-1423.pdf))|
|
71 |
| ------ | --------- | --------- |
|
72 |
| **EM** | **76.98** | **80.8** |
|
73 |
| **F1** | **85.45** | **88.5** |
|
74 |
|
|
|
|
|
75 |
## Example Usage
|
76 |
|
77 |
```python
|
|
|
79 |
|
80 |
qa_pipeline = pipeline(
|
81 |
"question-answering",
|
82 |
+
model="madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1",
|
83 |
+
tokenizer="madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1"
|
84 |
)
|
85 |
|
86 |
predictions = qa_pipeline({
|
|
|
88 |
'question': "Who is Frederic Chopin?",
|
89 |
})
|
90 |
|
91 |
+
print(predictions)
|
92 |
+
```
|
model_card/density.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 = '{"ac8e4ca8-4a8a-4c7f-b8a4-74bc8b8b5d5a":{"roots":{"references":[{"attributes":{"axis":{"id":"1446"},"dimension":1,"ticker":null},"id":"1449","type":"Grid"},{"attributes":{"source":{"id":"1467"}},"id":"1472","type":"CDSView"},{"attributes":{},"id":"1447","type":"BasicTicker"},{"attributes":{},"id":"1518","type":"Selection"},{"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":"1430","type":"HoverTool"},{"attributes":{"items":[{"id":"1466"},{"id":"1482"},{"id":"1500"},{"id":"1520"}],"location":"top_left","orientation":"horizontal"},"id":"1465","type":"Legend"},{"attributes":{"source":{"id":"1452"}},"id":"1457","type":"CDSView"},{"attributes":{},"id":"1480","type":"Selection"},{"attributes":{},"id":"1463","type":"Selection"},{"attributes":{},"id":"1481","type":"UnionRenderers"},{"attributes":{"fill_color":{"value":"#ed5642"},"line_color":{"value":"#ed5642"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1469","type":"VBar"},{"attributes":{},"id":"1464","type":"UnionRenderers"},{"attributes":{"data":{"density":["0.16","0.17","0.22","0.29","0.15","0.17","0.15","0.19","0.12","0.16","0.11","0.07"],"height":[0.15625,0.1666666716337204,0.2170138955116272,0.2881944477558136,0.1510416716337204,0.1701388955116272,0.1475694477558136,0.1927083283662796,0.1180555522441864,0.1631944477558136,0.1145833358168602,0.0694444477558136],"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"],"url":["https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_0_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_1_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_2_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_3_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_4_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_5_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_6_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_7_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_8_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_9_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_10_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_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":"1463"},"selection_policy":{"id":"1464"}},"id":"1452","type":"ColumnDataSource"},{"attributes":{"label":{"value":"query"},"renderers":[{"id":"1456"}]},"id":"1466","type":"LegendItem"},{"attributes":{"label":{"value":"fully connected"},"renderers":[{"id":"1505"}]},"id":"1520","type":"LegendItem"},{"attributes":{"data_source":{"id":"1467"},"glyph":{"id":"1469"},"hover_glyph":null,"muted_glyph":null,"name":"key","nonselection_glyph":{"id":"1470"},"selection_glyph":null,"view":{"id":"1472"}},"id":"1471","type":"GlyphRenderer"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_multi":null,"active_scroll":"auto","active_tap":"auto","tools":[{"id":"1430"}]},"id":"1450","type":"Toolbar"},{"attributes":{"data_source":{"id":"1452"},"glyph":{"id":"1454"},"hover_glyph":null,"muted_glyph":null,"name":"query","nonselection_glyph":{"id":"1455"},"selection_glyph":null,"view":{"id":"1457"}},"id":"1456","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":"1455","type":"VBar"},{"attributes":{"source":{"id":"1501"}},"id":"1506","type":"CDSView"},{"attributes":{"fill_color":{"value":"#6573f7"},"line_color":{"value":"#6573f7"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1454","type":"VBar"},{"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":"1504","type":"VBar"},{"attributes":{"data_source":{"id":"1501"},"glyph":{"id":"1503"},"hover_glyph":null,"muted_glyph":null,"name":"fully connected","nonselection_glyph":{"id":"1504"},"selection_glyph":null,"view":{"id":"1506"}},"id":"1505","type":"GlyphRenderer"},{"attributes":{"data":{"density":["0.25","0.15","0.20","0.27","0.18","0.22","0.16","0.24","0.10","0.06","0.05","0.03"],"height":[0.2482638955116272,0.1458333283662796,0.1979166716337204,0.2708333432674408,0.1788194477558136,0.2170138955116272,0.1649305522441864,0.2378472238779068,0.0989583358168602,0.0555555559694767,0.046875,0.0295138880610466],"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"],"url":["https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_0_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_1_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_2_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_3_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_4_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_5_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_6_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_7_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_8_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_9_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_10_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_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":"1498"},"selection_policy":{"id":"1499"}},"id":"1483","type":"ColumnDataSource"},{"attributes":{"axis_label":"Density","formatter":{"id":"1461"},"minor_tick_line_color":null,"ticker":{"id":"1447"}},"id":"1446","type":"LinearAxis"},{"attributes":{"start":0},"id":"1436","type":"DataRange1d"},{"attributes":{},"id":"1459","type":"BasicTickFormatter"},{"attributes":{"label":{"value":"value"},"renderers":[{"id":"1487"}]},"id":"1500","type":"LegendItem"},{"attributes":{},"id":"1434","type":"DataRange1d"},{"attributes":{"axis_label":"Layer","formatter":{"id":"1459"},"minor_tick_line_color":null,"ticker":{"id":"1443"}},"id":"1442","type":"LinearAxis"},{"attributes":{"fill_color":{"value":"#20cb97"},"line_color":{"value":"#20cb97"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1485","type":"VBar"},{"attributes":{},"id":"1443","type":"BasicTicker"},{"attributes":{"data_source":{"id":"1483"},"glyph":{"id":"1485"},"hover_glyph":null,"muted_glyph":null,"name":"value","nonselection_glyph":{"id":"1486"},"selection_glyph":null,"view":{"id":"1488"}},"id":"1487","type":"GlyphRenderer"},{"attributes":{"below":[{"id":"1442"}],"center":[{"id":"1445"},{"id":"1449"},{"id":"1465"}],"left":[{"id":"1446"}],"outline_line_color":null,"plot_height":400,"plot_width":800,"renderers":[{"id":"1456"},{"id":"1471"},{"id":"1487"},{"id":"1505"}],"title":{"id":"1432"},"toolbar":{"id":"1450"},"x_range":{"id":"1434"},"x_scale":{"id":"1438"},"y_range":{"id":"1436"},"y_scale":{"id":"1440"}},"id":"1431","subtype":"Figure","type":"Plot"},{"attributes":{},"id":"1440","type":"LinearScale"},{"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":"1486","type":"VBar"},{"attributes":{"data":{"density":["0.18","0.17","0.22","0.30","0.16","0.20","0.17","0.23","0.13","0.18","0.11","0.08"],"height":[0.1753472238779068,0.171875,0.21875,0.3020833432674408,0.1579861044883728,0.1979166716337204,0.1701388955116272,0.234375,0.1284722238779068,0.1753472238779068,0.1059027761220932,0.0815972238779068],"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"],"url":["https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_0_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_1_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_2_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_3_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_4_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_5_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_6_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_7_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_8_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_9_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_10_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_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":"1480"},"selection_policy":{"id":"1481"}},"id":"1467","type":"ColumnDataSource"},{"attributes":{},"id":"1519","type":"UnionRenderers"},{"attributes":{"source":{"id":"1483"}},"id":"1488","type":"CDSView"},{"attributes":{"fill_color":{"value":"#aa69f7"},"line_color":{"value":"#aa69f7"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1503","type":"VBar"},{"attributes":{"data":{"density":["0.25","0.38","0.35","0.14","0.31","0.28","0.21","0.47","0.40","0.28","0.37","0.31","0.19","0.35","0.29","0.20","0.38","0.28","0.15","0.28","0.22","0.19","0.18","0.14","0.08","0.06","0.04","0.05","0.03","0.02","0.05","0.06","0.04","0.03","0.06","0.04"],"height":[0.2517361044883728,0.3754340410232544,0.3493923544883728,0.1440972238779068,0.3146701455116272,0.2782118022441864,0.2083333283662796,0.4674479067325592,0.3975694477558136,0.2760416567325592,0.3702256977558136,0.3068576455116272,0.1909722238779068,0.3537326455116272,0.29296875,0.2013888955116272,0.3767361044883728,0.2769097089767456,0.1545138955116272,0.2795138955116272,0.2165798544883728,0.1927083283662796,0.18359375,0.1371527761220932,0.0833333358168602,0.0568576380610466,0.04296875,0.0451388880610466,0.02864583395421505,0.02300347201526165,0.0538194440305233,0.0555555559694767,0.0373263880610466,0.02604166604578495,0.0564236119389534,0.0355902761220932],"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"],"url":["https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_0_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_0_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_0_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_1_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_1_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_1_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_2_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_2_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_2_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_3_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_3_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_3_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_4_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_4_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_4_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_5_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_5_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_5_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_6_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_6_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_6_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_7_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_7_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_7_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_8_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_8_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_8_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_9_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_9_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_9_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_10_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_10_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_10_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_11_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_11_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_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":"1518"},"selection_policy":{"id":"1519"}},"id":"1501","type":"ColumnDataSource"},{"attributes":{"axis":{"id":"1442"},"grid_line_color":null,"ticker":null},"id":"1445","type":"Grid"},{"attributes":{"label":{"value":"key"},"renderers":[{"id":"1471"}]},"id":"1482","type":"LegendItem"},{"attributes":{},"id":"1498","type":"Selection"},{"attributes":{"text":"Transformer Layers"},"id":"1432","type":"Title"},{"attributes":{},"id":"1499","type":"UnionRenderers"},{"attributes":{},"id":"1438","type":"LinearScale"},{"attributes":{},"id":"1461","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":"1470","type":"VBar"}],"root_ids":["1431"]},"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("61a5e601-a8d3-463f-98db-8fbf642810fe");
|
20 |
if (element == null) {
|
21 |
+
console.warn("Bokeh: autoload.js configured with elementid '61a5e601-a8d3-463f-98db-8fbf642810fe' but no matching script tag was found.")
|
22 |
}
|
23 |
|
24 |
|
|
|
115 |
(function(root) {
|
116 |
function embed_document(root) {
|
117 |
|
118 |
+
var docs_json = '{"85871f7a-7ebc-41fd-a69b-d83ad72afa1c":{"roots":{"references":[{"attributes":{"data_source":{"id":"1501"},"glyph":{"id":"1503"},"hover_glyph":null,"muted_glyph":null,"name":"fully connected","nonselection_glyph":{"id":"1504"},"selection_glyph":null,"view":{"id":"1506"}},"id":"1505","type":"GlyphRenderer"},{"attributes":{"data":{"density":["0.18","0.17","0.22","0.30","0.16","0.20","0.17","0.23","0.13","0.18","0.11","0.08"],"height":[0.1753472238779068,0.171875,0.21875,0.3020833432674408,0.1579861044883728,0.1979166716337204,0.1701388955116272,0.234375,0.1284722238779068,0.1753472238779068,0.1059027761220932,0.0815972238779068],"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"],"url":["https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_0_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_1_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_2_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_3_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_4_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_5_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_6_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_7_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_8_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_9_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_10_attention_self_key.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_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":"1480"},"selection_policy":{"id":"1481"}},"id":"1467","type":"ColumnDataSource"},{"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":"1430","type":"HoverTool"},{"attributes":{},"id":"1518","type":"Selection"},{"attributes":{},"id":"1480","type":"Selection"},{"attributes":{"fill_color":{"value":"#aa69f7"},"line_color":{"value":"#aa69f7"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1503","type":"VBar"},{"attributes":{},"id":"1463","type":"Selection"},{"attributes":{"data":{"density":["0.25","0.38","0.35","0.14","0.31","0.28","0.21","0.47","0.40","0.28","0.37","0.31","0.19","0.35","0.29","0.20","0.38","0.28","0.15","0.28","0.22","0.19","0.18","0.14","0.08","0.06","0.04","0.05","0.03","0.02","0.05","0.06","0.04","0.03","0.06","0.04"],"height":[0.2517361044883728,0.3754340410232544,0.3493923544883728,0.1440972238779068,0.3146701455116272,0.2782118022441864,0.2083333283662796,0.4674479067325592,0.3975694477558136,0.2760416567325592,0.3702256977558136,0.3068576455116272,0.1909722238779068,0.3537326455116272,0.29296875,0.2013888955116272,0.3767361044883728,0.2769097089767456,0.1545138955116272,0.2795138955116272,0.2165798544883728,0.1927083283662796,0.18359375,0.1371527761220932,0.0833333358168602,0.0568576380610466,0.04296875,0.0451388880610466,0.02864583395421505,0.02300347201526165,0.0538194440305233,0.0555555559694767,0.0373263880610466,0.02604166604578495,0.0564236119389534,0.0355902761220932],"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"],"url":["https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_0_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_0_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_0_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_1_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_1_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_1_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_2_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_2_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_2_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_3_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_3_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_3_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_4_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_4_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_4_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_5_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_5_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_5_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_6_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_6_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_6_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_7_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_7_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_7_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_8_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_8_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_8_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_9_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_9_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_9_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_10_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_10_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_10_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_11_attention_output_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_11_intermediate_dense.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_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":"1518"},"selection_policy":{"id":"1519"}},"id":"1501","type":"ColumnDataSource"},{"attributes":{},"id":"1464","type":"UnionRenderers"},{"attributes":{},"id":"1481","type":"UnionRenderers"},{"attributes":{},"id":"1519","type":"UnionRenderers"},{"attributes":{"fill_color":{"value":"#6573f7"},"line_color":{"value":"#6573f7"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1454","type":"VBar"},{"attributes":{"text":"Transformer Layers"},"id":"1432","type":"Title"},{"attributes":{"below":[{"id":"1442"}],"center":[{"id":"1445"},{"id":"1449"},{"id":"1465"}],"left":[{"id":"1446"}],"outline_line_color":null,"plot_height":300,"plot_width":505,"renderers":[{"id":"1456"},{"id":"1471"},{"id":"1487"},{"id":"1505"}],"title":{"id":"1432"},"toolbar":{"id":"1450"},"x_range":{"id":"1434"},"x_scale":{"id":"1438"},"y_range":{"id":"1436"},"y_scale":{"id":"1440"}},"id":"1431","subtype":"Figure","type":"Plot"},{"attributes":{"source":{"id":"1501"}},"id":"1506","type":"CDSView"},{"attributes":{},"id":"1459","type":"BasicTickFormatter"},{"attributes":{"axis_label":"Density","formatter":{"id":"1459"},"minor_tick_line_color":null,"ticker":{"id":"1447"}},"id":"1446","type":"LinearAxis"},{"attributes":{"label":{"value":"value"},"renderers":[{"id":"1487"}]},"id":"1500","type":"LegendItem"},{"attributes":{"start":0},"id":"1436","type":"DataRange1d"},{"attributes":{},"id":"1434","type":"DataRange1d"},{"attributes":{"data":{"density":["0.16","0.17","0.22","0.29","0.15","0.17","0.15","0.19","0.12","0.16","0.11","0.07"],"height":[0.15625,0.1666666716337204,0.2170138955116272,0.2881944477558136,0.1510416716337204,0.1701388955116272,0.1475694477558136,0.1927083283662796,0.1180555522441864,0.1631944477558136,0.1145833358168602,0.0694444477558136],"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"],"url":["https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_0_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_1_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_2_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_3_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_4_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_5_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_6_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_7_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_8_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_9_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_10_attention_self_query.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_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":"1463"},"selection_policy":{"id":"1464"}},"id":"1452","type":"ColumnDataSource"},{"attributes":{"axis_label":"Layer","formatter":{"id":"1461"},"minor_tick_line_color":null,"ticker":{"id":"1443"}},"id":"1442","type":"LinearAxis"},{"attributes":{},"id":"1443","type":"BasicTicker"},{"attributes":{"fill_color":{"value":"#20cb97"},"line_color":{"value":"#20cb97"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1485","type":"VBar"},{"attributes":{},"id":"1440","type":"LinearScale"},{"attributes":{"data_source":{"id":"1483"},"glyph":{"id":"1485"},"hover_glyph":null,"muted_glyph":null,"name":"value","nonselection_glyph":{"id":"1486"},"selection_glyph":null,"view":{"id":"1488"}},"id":"1487","type":"GlyphRenderer"},{"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":"1486","type":"VBar"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_multi":null,"active_scroll":"auto","active_tap":"auto","tools":[{"id":"1430"}]},"id":"1450","type":"Toolbar"},{"attributes":{"label":{"value":"query"},"renderers":[{"id":"1456"}]},"id":"1466","type":"LegendItem"},{"attributes":{"source":{"id":"1483"}},"id":"1488","type":"CDSView"},{"attributes":{"label":{"value":"fully connected"},"renderers":[{"id":"1505"}]},"id":"1520","type":"LegendItem"},{"attributes":{"axis":{"id":"1442"},"grid_line_color":null,"ticker":null},"id":"1445","type":"Grid"},{"attributes":{"label":{"value":"key"},"renderers":[{"id":"1471"}]},"id":"1482","type":"LegendItem"},{"attributes":{"fill_color":{"value":"#ed5642"},"line_color":{"value":"#ed5642"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1469","type":"VBar"},{"attributes":{"data_source":{"id":"1467"},"glyph":{"id":"1469"},"hover_glyph":null,"muted_glyph":null,"name":"key","nonselection_glyph":{"id":"1470"},"selection_glyph":null,"view":{"id":"1472"}},"id":"1471","type":"GlyphRenderer"},{"attributes":{},"id":"1438","type":"LinearScale"},{"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":"1470","type":"VBar"},{"attributes":{"axis":{"id":"1446"},"dimension":1,"ticker":null},"id":"1449","type":"Grid"},{"attributes":{"source":{"id":"1467"}},"id":"1472","type":"CDSView"},{"attributes":{},"id":"1447","type":"BasicTicker"},{"attributes":{"data":{"density":["0.25","0.15","0.20","0.27","0.18","0.22","0.16","0.24","0.10","0.06","0.05","0.03"],"height":[0.2482638955116272,0.1458333283662796,0.1979166716337204,0.2708333432674408,0.1788194477558136,0.2170138955116272,0.1649305522441864,0.2378472238779068,0.0989583358168602,0.0555555559694767,0.046875,0.0295138880610466],"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"],"url":["https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_0_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_1_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_2_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_3_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_4_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_5_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_6_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_7_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_8_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_9_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_images/layer_10_attention_self_value.png","https://huggingface.co/madlag/bert-base-uncased-squad1.1-block-sparse-0.20-v1/raw/main/model_card/layer_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":"1498"},"selection_policy":{"id":"1499"}},"id":"1483","type":"ColumnDataSource"},{"attributes":{},"id":"1461","type":"BasicTickFormatter"},{"attributes":{"source":{"id":"1452"}},"id":"1457","type":"CDSView"},{"attributes":{},"id":"1498","type":"Selection"},{"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":"1455","type":"VBar"},{"attributes":{},"id":"1499","type":"UnionRenderers"},{"attributes":{"items":[{"id":"1466"},{"id":"1482"},{"id":"1500"},{"id":"1520"}],"location":"top_left","orientation":"horizontal"},"id":"1465","type":"Legend"},{"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":"1504","type":"VBar"},{"attributes":{"data_source":{"id":"1452"},"glyph":{"id":"1454"},"hover_glyph":null,"muted_glyph":null,"name":"query","nonselection_glyph":{"id":"1455"},"selection_glyph":null,"view":{"id":"1457"}},"id":"1456","type":"GlyphRenderer"}],"root_ids":["1431"]},"title":"Bokeh Application","version":"2.2.3"}}';
|
119 |
+
var render_items = [{"docid":"85871f7a-7ebc-41fd-a69b-d83ad72afa1c","root_ids":["1431"],"roots":{"1431":"61a5e601-a8d3-463f-98db-8fbf642810fe"}}];
|
120 |
root.Bokeh.embed.embed_items(docs_json, render_items);
|
121 |
|
122 |
}
|
model_card/pruning.svg
CHANGED
|
|
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:fa72fd224cb86e1e7f35278bfb12db9e29f0491cd391e9e628ca19e710bd6077
|
3 |
+
size 364810489
|