madlag commited on
Commit
c0854f5
1 Parent(s): 910495e

Adding model, graphs and metadata.

Browse files
README.md CHANGED
@@ -33,7 +33,7 @@ The model contains **43.0%** of the original weights **overall** (the embeddings
33
  With a simple resizing of the linear matrices it ran **1.96x as fast as BERT-base** on the evaluation.
34
  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.
35
 
36
- <div class="graph"><script src="/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/density_info.js" id="64d55ebd-52d4-433f-b759-dd33a1565269"></script></div>
37
 
38
  In terms of accuracy, its **F1 is 88.33**, compared with 88.5 for BERT-base, a **F1 drop of 0.17**.
39
 
@@ -43,7 +43,7 @@ This model is case-insensitive: it does not make a difference between english an
43
 
44
  A side-effect of the block pruning is that some of the attention heads are completely removed: 55 heads were removed on a total of 144 (38.2%).
45
  Here is a detailed view on how the remaining heads are distributed in the network after pruning.
46
- <div class="graph"><script src="/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/pruning_info.js" id="a410b981-ef6b-41d2-87b6-d8e8f92bfaee"></script></div>
47
 
48
  ## Details of the SQuAD1.1 dataset
49
 
33
  With a simple resizing of the linear matrices it ran **1.96x as fast as BERT-base** on the evaluation.
34
  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.
35
 
36
+ <div class="graph"><script src="/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/density_info.js" id="331b1f79-21ae-4de3-b8a5-8ad1610db21f"></script></div>
37
 
38
  In terms of accuracy, its **F1 is 88.33**, compared with 88.5 for BERT-base, a **F1 drop of 0.17**.
39
 
43
 
44
  A side-effect of the block pruning is that some of the attention heads are completely removed: 55 heads were removed on a total of 144 (38.2%).
45
  Here is a detailed view on how the remaining heads are distributed in the network after pruning.
46
+ <div class="graph"><script src="/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/pruning_info.js" id="2a2be350-0d31-4b84-9bf2-81797e888d2d"></script></div>
47
 
48
  ## Details of the SQuAD1.1 dataset
49
 
eval/eval_metrics.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ {
2
+ "exact_match": 81.2961210974456,
3
+ "f1": 88.30542455786251
4
+ }
eval/evaluate_timing.json ADDED
@@ -0,0 +1 @@
 
1
+ {"eval_elapsed_time": 96.4262162912637, "cuda_eval_elapsed_time": 88.39738433074952}
eval/nbest_predictions.json.tgz ADDED
Binary file (6.62 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": 108893186, "nnz": 47038436, "linear_total": 84934656, "linear_nnz": 23121920, "layers": {"0": {"total": 7087872, "nnz": 2115942, "linear_total": 7077888, "linear_nnz": 2109440, "linear_attention_total": 2359296, "linear_attention_nnz": 920576, "linear_dense_total": 4718592, "linear_dense_nnz": 1188864}, "1": {"total": 7087872, "nnz": 1903205, "linear_total": 7077888, "linear_nnz": 1896960, "linear_attention_total": 2359296, "linear_attention_nnz": 709632, "linear_dense_total": 4718592, "linear_dense_nnz": 1187328}, "2": {"total": 7087872, "nnz": 2589021, "linear_total": 7077888, "linear_nnz": 2582016, "linear_attention_total": 2359296, "linear_attention_nnz": 1210368, "linear_dense_total": 4718592, "linear_dense_nnz": 1371648}, "3": {"total": 7087872, "nnz": 2750901, "linear_total": 7077888, "linear_nnz": 2743808, "linear_attention_total": 2359296, "linear_attention_nnz": 1433600, "linear_dense_total": 4718592, "linear_dense_nnz": 1310208}, "4": {"total": 7087872, "nnz": 2785338, "linear_total": 7077888, "linear_nnz": 2778112, "linear_attention_total": 2359296, "linear_attention_nnz": 1558528, "linear_dense_total": 4718592, "linear_dense_nnz": 1219584}, "5": {"total": 7087872, "nnz": 2258486, "linear_total": 7077888, "linear_nnz": 2251776, "linear_attention_total": 2359296, "linear_attention_nnz": 1038336, "linear_dense_total": 4718592, "linear_dense_nnz": 1213440}, "6": {"total": 7087872, "nnz": 2082422, "linear_total": 7077888, "linear_nnz": 2075648, "linear_attention_total": 2359296, "linear_attention_nnz": 1107968, "linear_dense_total": 4718592, "linear_dense_nnz": 967680}, "7": {"total": 7087872, "nnz": 1881875, "linear_total": 7077888, "linear_nnz": 1875456, "linear_attention_total": 2359296, "linear_attention_nnz": 1108992, "linear_dense_total": 4718592, "linear_dense_nnz": 766464}, "8": {"total": 7087872, "nnz": 1468548, "linear_total": 7077888, "linear_nnz": 1462272, "linear_attention_total": 2359296, "linear_attention_nnz": 1062912, "linear_dense_total": 4718592, "linear_dense_nnz": 399360}, "9": {"total": 7087872, "nnz": 951443, "linear_total": 7077888, "linear_nnz": 945664, "linear_attention_total": 2359296, "linear_attention_nnz": 670720, "linear_dense_total": 4718592, "linear_dense_nnz": 274944}, "10": {"total": 7087872, "nnz": 1176200, "linear_total": 7077888, "linear_nnz": 1170432, "linear_attention_total": 2359296, "linear_attention_nnz": 617472, "linear_dense_total": 4718592, "linear_dense_nnz": 552960}, "11": {"total": 7087872, "nnz": 1236333, "linear_total": 7077888, "linear_nnz": 1230336, "linear_attention_total": 2359296, "linear_attention_nnz": 423936, "linear_dense_total": 4718592, "linear_dense_nnz": 806400}}, "total_sparsity": 56.8031410156371, "linear_sparsity": 72.77681327160495, "pruned_heads": {"0": [0, 2, 4, 5, 6], "1": [0, 2, 3, 5, 6, 7, 8], "2": [8, 4, 7], "3": [2, 4, 6], "4": [1, 2], "5": [1, 2, 6, 7, 11], "6": [10, 2, 3], "7": [1, 3, 6, 7, 11], "8": [0, 3, 4], "9": [1, 4, 5, 7, 9, 10], "10": [1, 2, 4, 5, 6, 7, 8], "11": [0, 5, 7, 8, 10, 11]}}
eval/speed_report.json ADDED
@@ -0,0 +1 @@
 
1
+ {"timings": {"eval_elapsed_time": 26.647668646648526, "cuda_eval_elapsed_time": 19.66401289367676}, "metrics": {"exact_match": 81.30558183538317, "f1": 88.32616013981377}}
model_card/density_info.js CHANGED
@@ -16,9 +16,9 @@
16
 
17
 
18
 
19
- var element = document.getElementById("64d55ebd-52d4-433f-b759-dd33a1565269");
20
  if (element == null) {
21
- console.warn("Bokeh: autoload.js configured with elementid '64d55ebd-52d4-433f-b759-dd33a1565269' but no matching script tag was found.")
22
  }
23
 
24
 
@@ -115,8 +115,8 @@
115
  (function(root) {
116
  function embed_document(root) {
117
 
118
- var docs_json = '{"bb01ea20-a395-4323-883d-42c1fd0a7258":{"roots":{"references":[{"attributes":{},"id":"1152","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":{"start":0},"id":"1100","type":"DataRange1d"},{"attributes":{"data":{"density":["33.2%","29.9%","54.7%","60.1%","68.8%","45.7%","50.2%","47.2%","49.3%","37.0%","31.9%","25.7%"],"height":[0.195584,0.176128,0.32256,0.354304,0.405504,0.269312,0.295936,0.278528,0.290816,0.218112,0.188416,0.151552],"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.20","0.18","0.32","0.35","0.41","0.27","0.30","0.28","0.29","0.22","0.19","0.15"],"url":["/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_0_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_1_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_2_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_3_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_4_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_5_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_6_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_7_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_8_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_9_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_10_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-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":"1153"},"selection_policy":{"id":"1152"}},"id":"1122","type":"ColumnDataSource"},{"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":{},"id":"1157","type":"Selection"},{"attributes":{"axis_label":"Parameters (M)","formatter":{"id":"1149"},"minor_tick_line_color":null,"ticker":{"id":"1111"}},"id":"1110","type":"LinearAxis"},{"attributes":{},"id":"1104","type":"LinearScale"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_multi":null,"active_scroll":"auto","active_tap":"auto","tools":[{"id":"1094"}]},"id":"1114","type":"Toolbar"},{"attributes":{"axis":{"id":"1110"},"dimension":1,"ticker":null},"id":"1113","type":"Grid"},{"attributes":{"source":{"id":"1122"}},"id":"1127","type":"CDSView"},{"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":{"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":{"data":{"density":["31.1%","29.5%","53.1%","56.2%","67.0%","41.1%","42.7%","42.7%","44.8%","37.7%","32.6%","25.9%"],"height":[0.183296,0.17408,0.313344,0.331776,0.395264,0.242688,0.251904,0.251904,0.264192,0.222208,0.192512,0.152576],"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.18","0.17","0.31","0.33","0.40","0.24","0.25","0.25","0.26","0.22","0.19","0.15"],"url":["/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_0_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_1_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_2_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_3_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_4_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_5_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_6_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_7_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_8_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_9_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_10_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-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":"1151"},"selection_policy":{"id":"1150"}},"id":"1116","type":"ColumnDataSource"},{"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":{"fill_color":{"value":"#ed5642"},"line_color":{"value":"#ed5642"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1124","type":"VBar"},{"attributes":{},"id":"1151","type":"Selection"},{"attributes":{"fill_color":{"value":"#6573f7"},"line_color":{"value":"#6573f7"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1118","type":"VBar"},{"attributes":{"label":{"value":"fully connected"},"renderers":[{"id":"1138"}]},"id":"1144","type":"LegendItem"},{"attributes":{"fill_color":{"value":"#aa69f7"},"line_color":{"value":"#aa69f7"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1136","type":"VBar"},{"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":{"source":{"id":"1128"}},"id":"1133","type":"CDSView"},{"attributes":{},"id":"1156","type":"UnionRenderers"},{"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":{},"id":"1149","type":"BasicTickFormatter"},{"attributes":{"data":{"density":["43.8%","29.9%","48.1%","62.8%","64.1%","43.9%","47.2%","49.7%","42.2%","19.3%","19.4%","10.2%"],"height":[0.258048,0.176128,0.283648,0.370688,0.377856,0.259072,0.278528,0.292864,0.248832,0.113664,0.114688,0.060416],"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.26","0.18","0.28","0.37","0.38","0.26","0.28","0.29","0.25","0.11","0.11","0.06"],"url":["/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_0_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_1_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_2_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_3_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_4_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_5_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_6_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_7_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_8_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_9_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_10_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-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":"1155"},"selection_policy":{"id":"1154"}},"id":"1128","type":"ColumnDataSource"},{"attributes":{"items":[{"id":"1141"},{"id":"1142"},{"id":"1143"},{"id":"1144"}],"location":[10,0],"orientation":"horizontal"},"id":"1140","type":"Legend"},{"attributes":{"axis_label":"Layer","formatter":{"id":"1147"},"minor_tick_line_color":null,"ticker":{"id":"1107"}},"id":"1106","type":"LinearAxis"},{"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":{},"id":"1155","type":"Selection"},{"attributes":{"text":"Transformer Layers"},"id":"1096","type":"Title"},{"attributes":{"label":{"value":"value"},"renderers":[{"id":"1132"}]},"id":"1143","type":"LegendItem"},{"attributes":{"axis":{"id":"1106"},"grid_line_color":null,"ticker":null},"id":"1109","type":"Grid"},{"attributes":{},"id":"1154","type":"UnionRenderers"},{"attributes":{},"id":"1147","type":"BasicTickFormatter"},{"attributes":{"label":{"value":"query"},"renderers":[{"id":"1120"}]},"id":"1141","type":"LegendItem"},{"attributes":{},"id":"1153","type":"Selection"},{"attributes":{},"id":"1102","type":"LinearScale"},{"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"},{"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":"1107","type":"BasicTicker"},{"attributes":{"callback":null,"tooltips":"\\n &lt;div&gt;\\n &lt;div style=\\"margin-bottom:10px\\"&gt;\\n &lt;span style=\\"font-size: 15px;\\"&gt;&lt;b&gt;@name&lt;/b&gt;&lt;br/&gt;density=@density&lt;/span&gt;\\n &lt;/div&gt;\\n &lt;div&gt; \\n &lt;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 /&gt;\\n &lt;/div&gt;\\n &lt;/div&gt;\\n "},"id":"1094","type":"HoverTool"},{"attributes":{"source":{"id":"1134"}},"id":"1139","type":"CDSView"},{"attributes":{},"id":"1150","type":"UnionRenderers"},{"attributes":{},"id":"1098","type":"DataRange1d"},{"attributes":{"data":{"density":["44.3%","25.2%","25.2%","31.1%","25.2%","25.2%","49.3%","29.1%","29.1%","63.9%","27.8%","27.8%","64.4%","25.8%","25.8%","45.3%","25.7%","25.7%","47.7%","20.5%","20.5%","48.4%","16.2%","16.2%","43.9%","8.5%","8.5%","19.8%","5.8%","5.8%","20.7%","11.7%","11.7%","10.1%","17.1%","17.1%"],"height":[0.26112,0.594432,0.594432,0.183296,0.593664,0.593664,0.290816,0.685824,0.685824,0.376832,0.655104,0.655104,0.379904,0.609792,0.609792,0.267264,0.60672,0.60672,0.2816,0.48384,0.48384,0.285696,0.383232,0.383232,0.259072,0.19968,0.19968,0.116736,0.137472,0.137472,0.121856,0.27648,0.27648,0.059392,0.4032,0.4032],"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.26","0.59","0.59","0.18","0.59","0.59","0.29","0.69","0.69","0.38","0.66","0.66","0.38","0.61","0.61","0.27","0.61","0.61","0.28","0.48","0.48","0.29","0.38","0.38","0.26","0.20","0.20","0.12","0.14","0.14","0.12","0.28","0.28","0.06","0.40","0.40"],"url":["/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_0_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_0_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_0_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_1_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_1_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_1_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_2_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_2_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_2_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_3_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_3_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_3_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_4_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_4_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_4_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_5_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_5_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_5_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_6_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_6_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_6_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_7_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_7_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_7_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_8_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_8_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_8_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_9_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_9_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_9_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_10_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_10_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_10_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_11_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_11_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-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":"1157"},"selection_policy":{"id":"1156"}},"id":"1134","type":"ColumnDataSource"},{"attributes":{"label":{"value":"key"},"renderers":[{"id":"1126"}]},"id":"1142","type":"LegendItem"},{"attributes":{"source":{"id":"1116"}},"id":"1121","type":"CDSView"}],"root_ids":["1095"]},"title":"Bokeh Application","version":"2.2.3"}}';
119
- var render_items = [{"docid":"bb01ea20-a395-4323-883d-42c1fd0a7258","root_ids":["1095"],"roots":{"1095":"64d55ebd-52d4-433f-b759-dd33a1565269"}}];
120
  root.Bokeh.embed.embed_items(docs_json, render_items);
121
 
122
  }
16
 
17
 
18
 
19
+ var element = document.getElementById("331b1f79-21ae-4de3-b8a5-8ad1610db21f");
20
  if (element == null) {
21
+ console.warn("Bokeh: autoload.js configured with elementid '331b1f79-21ae-4de3-b8a5-8ad1610db21f' but no matching script tag was found.")
22
  }
23
 
24
 
115
  (function(root) {
116
  function embed_document(root) {
117
 
118
+ var docs_json = '{"45da753b-0570-4e35-b7a8-9c74acdf8643":{"roots":{"references":[{"attributes":{"axis_label":"Parameters (M)","formatter":{"id":"1148"},"minor_tick_line_color":null,"ticker":{"id":"1111"}},"id":"1110","type":"LinearAxis"},{"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":{},"id":"1153","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":{"label":{"value":"query"},"renderers":[{"id":"1120"}]},"id":"1141","type":"LegendItem"},{"attributes":{},"id":"1156","type":"UnionRenderers"},{"attributes":{"data":{"density":["43.8%","29.9%","48.1%","62.8%","64.1%","43.9%","47.2%","49.7%","42.2%","19.3%","19.4%","10.2%"],"height":[0.258048,0.176128,0.283648,0.370688,0.377856,0.259072,0.278528,0.292864,0.248832,0.113664,0.114688,0.060416],"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.26","0.18","0.28","0.37","0.38","0.26","0.28","0.29","0.25","0.11","0.11","0.06"],"url":["/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_0_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_1_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_2_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_3_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_4_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_5_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_6_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_7_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_8_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_9_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_10_attention_self_value.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-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":"1155"},"selection_policy":{"id":"1154"}},"id":"1128","type":"ColumnDataSource"},{"attributes":{},"id":"1154","type":"UnionRenderers"},{"attributes":{},"id":"1157","type":"Selection"},{"attributes":{"text":"Transformer Layers"},"id":"1096","type":"Title"},{"attributes":{"start":0},"id":"1100","type":"DataRange1d"},{"attributes":{"items":[{"id":"1141"},{"id":"1142"},{"id":"1143"},{"id":"1144"}],"location":[10,0],"orientation":"horizontal"},"id":"1140","type":"Legend"},{"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":{"active_drag":"auto","active_inspect":"auto","active_multi":null,"active_scroll":"auto","active_tap":"auto","tools":[{"id":"1094"}]},"id":"1114","type":"Toolbar"},{"attributes":{},"id":"1111","type":"BasicTicker"},{"attributes":{},"id":"1150","type":"UnionRenderers"},{"attributes":{},"id":"1152","type":"UnionRenderers"},{"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":{"data":{"density":["33.2%","29.9%","54.7%","60.1%","68.8%","45.7%","50.2%","47.2%","49.3%","37.0%","31.9%","25.7%"],"height":[0.195584,0.176128,0.32256,0.354304,0.405504,0.269312,0.295936,0.278528,0.290816,0.218112,0.188416,0.151552],"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.20","0.18","0.32","0.35","0.41","0.27","0.30","0.28","0.29","0.22","0.19","0.15"],"url":["/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_0_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_1_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_2_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_3_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_4_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_5_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_6_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_7_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_8_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_9_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_10_attention_self_key.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-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":"1153"},"selection_policy":{"id":"1152"}},"id":"1122","type":"ColumnDataSource"},{"attributes":{},"id":"1098","type":"DataRange1d"},{"attributes":{},"id":"1148","type":"BasicTickFormatter"},{"attributes":{"source":{"id":"1116"}},"id":"1121","type":"CDSView"},{"attributes":{},"id":"1146","type":"BasicTickFormatter"},{"attributes":{"label":{"value":"value"},"renderers":[{"id":"1132"}]},"id":"1143","type":"LegendItem"},{"attributes":{"source":{"id":"1128"}},"id":"1133","type":"CDSView"},{"attributes":{"source":{"id":"1134"}},"id":"1139","type":"CDSView"},{"attributes":{"axis":{"id":"1110"},"dimension":1,"ticker":null},"id":"1113","type":"Grid"},{"attributes":{"axis":{"id":"1106"},"grid_line_color":null,"ticker":null},"id":"1109","type":"Grid"},{"attributes":{"data":{"density":["31.1%","29.5%","53.1%","56.2%","67.0%","41.1%","42.7%","42.7%","44.8%","37.7%","32.6%","25.9%"],"height":[0.183296,0.17408,0.313344,0.331776,0.395264,0.242688,0.251904,0.251904,0.264192,0.222208,0.192512,0.152576],"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.18","0.17","0.31","0.33","0.40","0.24","0.25","0.25","0.26","0.22","0.19","0.15"],"url":["/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_0_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_1_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_2_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_3_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_4_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_5_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_6_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_7_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_8_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_9_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_10_attention_self_query.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-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":"1151"},"selection_policy":{"id":"1150"}},"id":"1116","type":"ColumnDataSource"},{"attributes":{},"id":"1104","type":"LinearScale"},{"attributes":{"label":{"value":"key"},"renderers":[{"id":"1126"}]},"id":"1142","type":"LegendItem"},{"attributes":{},"id":"1155","type":"Selection"},{"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":{"fill_color":{"value":"#ed5642"},"line_color":{"value":"#ed5642"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1124","type":"VBar"},{"attributes":{"fill_color":{"value":"#20cb97"},"line_color":{"value":"#20cb97"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1130","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":"1137","type":"VBar"},{"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":{"axis_label":"Layer","formatter":{"id":"1146"},"minor_tick_line_color":null,"ticker":{"id":"1107"}},"id":"1106","type":"LinearAxis"},{"attributes":{},"id":"1151","type":"Selection"},{"attributes":{"fill_color":{"value":"#6573f7"},"line_color":{"value":"#6573f7"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1118","type":"VBar"},{"attributes":{"callback":null,"tooltips":"\\n &lt;div&gt;\\n &lt;div style=\\"margin-bottom:10px\\"&gt;\\n &lt;span style=\\"font-size: 15px;\\"&gt;&lt;b&gt;@name&lt;/b&gt;&lt;br/&gt;density=@density&lt;/span&gt;\\n &lt;/div&gt;\\n &lt;div&gt; \\n &lt;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 /&gt;\\n &lt;/div&gt;\\n &lt;/div&gt;\\n "},"id":"1094","type":"HoverTool"},{"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":["44.3%","25.2%","25.2%","31.1%","25.2%","25.2%","49.3%","29.1%","29.1%","63.9%","27.8%","27.8%","64.4%","25.8%","25.8%","45.3%","25.7%","25.7%","47.7%","20.5%","20.5%","48.4%","16.2%","16.2%","43.9%","8.5%","8.5%","19.8%","5.8%","5.8%","20.7%","11.7%","11.7%","10.1%","17.1%","17.1%"],"height":[0.26112,0.594432,0.594432,0.183296,0.593664,0.593664,0.290816,0.685824,0.685824,0.376832,0.655104,0.655104,0.379904,0.609792,0.609792,0.267264,0.60672,0.60672,0.2816,0.48384,0.48384,0.285696,0.383232,0.383232,0.259072,0.19968,0.19968,0.116736,0.137472,0.137472,0.121856,0.27648,0.27648,0.059392,0.4032,0.4032],"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.26","0.59","0.59","0.18","0.59","0.59","0.29","0.69","0.69","0.38","0.66","0.66","0.38","0.61","0.61","0.27","0.61","0.61","0.28","0.48","0.48","0.29","0.38","0.38","0.26","0.20","0.20","0.12","0.14","0.14","0.12","0.28","0.28","0.06","0.40","0.40"],"url":["/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_0_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_0_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_0_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_1_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_1_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_1_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_2_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_2_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_2_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_3_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_3_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_3_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_4_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_4_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_4_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_5_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_5_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_5_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_6_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_6_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_6_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_7_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_7_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_7_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_8_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_8_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_8_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_9_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_9_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_9_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_10_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_10_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_10_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_11_attention_output_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-v1/raw/main/model_card/images/layer_11_intermediate_dense.png","/madlag/bert-base-uncased-squadv1-x1.96-f88.3-d27-hybrid-filled-opt-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":"1157"},"selection_policy":{"id":"1156"}},"id":"1134","type":"ColumnDataSource"},{"attributes":{"label":{"value":"fully connected"},"renderers":[{"id":"1138"}]},"id":"1144","type":"LegendItem"},{"attributes":{"source":{"id":"1122"}},"id":"1127","type":"CDSView"},{"attributes":{},"id":"1107","type":"BasicTicker"},{"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":"1102","type":"LinearScale"},{"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":"45da753b-0570-4e35-b7a8-9c74acdf8643","root_ids":["1095"],"roots":{"1095":"331b1f79-21ae-4de3-b8a5-8ad1610db21f"}}];
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("a410b981-ef6b-41d2-87b6-d8e8f92bfaee");
20
  if (element == null) {
21
- console.warn("Bokeh: autoload.js configured with elementid 'a410b981-ef6b-41d2-87b6-d8e8f92bfaee' but no matching script tag was found.")
22
  }
23
 
24
 
@@ -115,8 +115,8 @@
115
  (function(root) {
116
  function embed_document(root) {
117
 
118
- var docs_json = '{"caaf744c-0d91-4881-b19f-afdf13a4065e":{"roots":{"references":[{"attributes":{"axis_label":"Layer index","formatter":{"id":"1032"},"minor_tick_line_color":null,"ticker":{"id":"1013"}},"id":"1012","type":"CategoricalAxis"},{"attributes":{"label":{"value":"pruned"},"renderers":[{"id":"1043"}]},"id":"1057","type":"LegendItem"},{"attributes":{"axis_label":"Heads count","formatter":{"id":"1034"},"minor_tick_line_color":null,"ticker":{"id":"1016"}},"id":"1015","type":"LinearAxis"},{"attributes":{"axis":{"id":"1015"},"dimension":1,"ticker":null},"id":"1018","type":"Grid"},{"attributes":{"factors":["0","1","2","3","4","5","6","7","8","9","10","11"],"range_padding":0.1},"id":"1004","type":"FactorRange"},{"attributes":{"data":{"active":[7,5,9,9,10,7,9,7,9,6,5,6],"layers":["0","1","2","3","4","5","6","7","8","9","10","11"],"pruned":[5,7,3,3,2,5,3,5,3,6,7,6]},"selected":{"id":"1053"},"selection_policy":{"id":"1052"}},"id":"1039","type":"ColumnDataSource"},{"attributes":{},"id":"1032","type":"CategoricalTickFormatter"},{"attributes":{},"id":"1034","type":"BasicTickFormatter"},{"attributes":{},"id":"1010","type":"LinearScale"},{"attributes":{"text":"Pruned Transformer Heads"},"id":"1002","type":"Title"},{"attributes":{"source":{"id":"1039"}},"id":"1044","type":"CDSView"},{"attributes":{},"id":"1008","type":"CategoricalScale"},{"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":{"start":0},"id":"1006","type":"DataRange1d"},{"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_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":{"data":{"active":[7,5,9,9,10,7,9,7,9,6,5,6],"layers":["0","1","2","3","4","5","6","7","8","9","10","11"],"pruned":[5,7,3,3,2,5,3,5,3,6,7,6]},"selected":{"id":"1036"},"selection_policy":{"id":"1035"}},"id":"1024","type":"ColumnDataSource"},{"attributes":{"fields":["active"]},"id":"1022","type":"Stack"},{"attributes":{"source":{"id":"1024"}},"id":"1029","type":"CDSView"},{"attributes":{},"id":"1016","type":"BasicTicker"},{"attributes":{"fields":[]},"id":"1020","type":"Stack"},{"attributes":{"fields":["active","pruned"]},"id":"1023","type":"Stack"},{"attributes":{"items":[{"id":"1056"},{"id":"1057"}],"location":[10,0],"orientation":"horizontal"},"id":"1055","type":"Legend"},{"attributes":{"fields":["active"]},"id":"1021","type":"Stack"},{"attributes":{},"id":"1052","type":"UnionRenderers"},{"attributes":{"label":{"value":"active"},"renderers":[{"id":"1028"}]},"id":"1038","type":"LegendItem"},{"attributes":{"label":{"value":"active"},"renderers":[{"id":"1028"}]},"id":"1056","type":"LegendItem"},{"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":{},"id":"1053","type":"Selection"},{"attributes":{},"id":"1035","type":"UnionRenderers"},{"attributes":{},"id":"1036","type":"Selection"},{"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":{"items":[{"id":"1038"},{"id":"1054"}],"location":null},"id":"1037","type":"Legend"},{"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":{"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":{},"id":"1013","type":"CategoricalTicker"},{"attributes":{"axis":{"id":"1012"},"grid_line_color":null,"ticker":null},"id":"1014","type":"Grid"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_multi":null,"active_scroll":"auto","active_tap":"auto"},"id":"1019","type":"Toolbar"}],"root_ids":["1001"]},"title":"Bokeh Application","version":"2.2.3"}}';
119
- var render_items = [{"docid":"caaf744c-0d91-4881-b19f-afdf13a4065e","root_ids":["1001"],"roots":{"1001":"a410b981-ef6b-41d2-87b6-d8e8f92bfaee"}}];
120
  root.Bokeh.embed.embed_items(docs_json, render_items);
121
 
122
  }
16
 
17
 
18
 
19
+ var element = document.getElementById("2a2be350-0d31-4b84-9bf2-81797e888d2d");
20
  if (element == null) {
21
+ console.warn("Bokeh: autoload.js configured with elementid '2a2be350-0d31-4b84-9bf2-81797e888d2d' but no matching script tag was found.")
22
  }
23
 
24
 
115
  (function(root) {
116
  function embed_document(root) {
117
 
118
+ var docs_json = '{"f40f2ac0-4246-4943-b368-b9c881aa16bc":{"roots":{"references":[{"attributes":{"start":0},"id":"1006","type":"DataRange1d"},{"attributes":{},"id":"1035","type":"UnionRenderers"},{"attributes":{},"id":"1008","type":"CategoricalScale"},{"attributes":{"axis":{"id":"1012"},"grid_line_color":null,"ticker":null},"id":"1014","type":"Grid"},{"attributes":{},"id":"1036","type":"Selection"},{"attributes":{},"id":"1052","type":"UnionRenderers"},{"attributes":{},"id":"1013","type":"CategoricalTicker"},{"attributes":{"items":[{"id":"1056"},{"id":"1057"}],"location":[10,0],"orientation":"horizontal"},"id":"1055","type":"Legend"},{"attributes":{"fields":[]},"id":"1020","type":"Stack"},{"attributes":{},"id":"1053","type":"Selection"},{"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":{"text":"Pruned Transformer Heads"},"id":"1002","type":"Title"},{"attributes":{},"id":"1031","type":"CategoricalTickFormatter"},{"attributes":{},"id":"1010","type":"LinearScale"},{"attributes":{"label":{"value":"pruned"},"renderers":[{"id":"1043"}]},"id":"1057","type":"LegendItem"},{"attributes":{"data":{"active":[7,5,9,9,10,7,9,7,9,6,5,6],"layers":["0","1","2","3","4","5","6","7","8","9","10","11"],"pruned":[5,7,3,3,2,5,3,5,3,6,7,6]},"selected":{"id":"1053"},"selection_policy":{"id":"1052"}},"id":"1039","type":"ColumnDataSource"},{"attributes":{"fields":["active"]},"id":"1021","type":"Stack"},{"attributes":{"source":{"id":"1039"}},"id":"1044","type":"CDSView"},{"attributes":{},"id":"1033","type":"BasicTickFormatter"},{"attributes":{"axis":{"id":"1015"},"dimension":1,"ticker":null},"id":"1018","type":"Grid"},{"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":{},"id":"1016","type":"BasicTicker"},{"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,10,7,9,7,9,6,5,6],"layers":["0","1","2","3","4","5","6","7","8","9","10","11"],"pruned":[5,7,3,3,2,5,3,5,3,6,7,6]},"selected":{"id":"1036"},"selection_policy":{"id":"1035"}},"id":"1024","type":"ColumnDataSource"},{"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":{"axis_label":"Heads count","formatter":{"id":"1033"},"minor_tick_line_color":null,"ticker":{"id":"1016"}},"id":"1015","type":"LinearAxis"},{"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":{"label":{"value":"active"},"renderers":[{"id":"1028"}]},"id":"1056","type":"LegendItem"},{"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":"1031"},"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":"f40f2ac0-4246-4943-b368-b9c881aa16bc","root_ids":["1001"],"roots":{"1001":"2a2be350-0d31-4b84-9bf2-81797e888d2d"}}];
120
  root.Bokeh.embed.embed_items(docs_json, render_items);
121
 
122
  }
model_info.json ADDED
@@ -0,0 +1,302 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "checkpoint_path": "/data_2to/devel_data/nn_pruning/output/squad_test_9_fullpatch4/hp_od-__data_2to__devel_data__nn_pruning__output__squad_test_9_fullpatch4___es-steps_nte20_ls250_stl50_est5000_rn-__data_2to__devel_data__nn_pruning__output__squad_test_9_fullpatch4_--6cb2db64e9a885f1/checkpoint-110000",
3
+ "config": {
4
+ "_name_or_path": "/tmp/tmptzy6fw4l",
5
+ "architectures": ["BertForQuestionAnswering"],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "gradient_checkpointing": false,
8
+ "hidden_act": "relu",
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
+ "layer_norm_type": "no_norm",
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "pruned_heads": {
22
+ "0": [0, 2, 4, 5, 6],
23
+ "1": [0, 2, 3, 5, 6, 7, 8],
24
+ "10": [1, 2, 4, 5, 6, 7, 8],
25
+ "11": [0, 5, 7, 8, 10, 11],
26
+ "2": [4, 7, 8],
27
+ "3": [2, 4, 6],
28
+ "4": [1, 2],
29
+ "5": [1, 2, 6, 7, 11],
30
+ "6": [2, 3, 10],
31
+ "7": [1, 3, 6, 7, 11],
32
+ "8": [0, 3, 4],
33
+ "9": [1, 4, 5, 7, 9, 10]
34
+ },
35
+ "type_vocab_size": 2,
36
+ "vocab_size": 30522
37
+ },
38
+ "eval_metrics": {
39
+ "exact_match": 81.30558183538317,
40
+ "f1": 88.32616013981377,
41
+ "main_metric": 88.32616013981377
42
+ },
43
+ "model_args": {
44
+ "cache_dir": null,
45
+ "config_name": null,
46
+ "model_name_or_path": "bert-base-uncased",
47
+ "tokenizer_name": null,
48
+ "use_fast_tokenizer": true
49
+ },
50
+ "sparse_args": {
51
+ "ampere_pruning_method": "disabled",
52
+ "attention_block_cols": 32,
53
+ "attention_block_rows": 32,
54
+ "attention_lambda": 1.0,
55
+ "attention_output_with_dense": 0,
56
+ "attention_pruning_method": "sigmoied_threshold",
57
+ "bias_mask": true,
58
+ "dense_block_cols": 1,
59
+ "dense_block_rows": 1,
60
+ "dense_lambda": 1.0,
61
+ "dense_pruning_method": "sigmoied_threshold:1d_alt",
62
+ "distil_alpha_ce": 0.1,
63
+ "distil_alpha_teacher": 0.9,
64
+ "distil_teacher_name_or_path": "bert-large-uncased-whole-word-masking-finetuned-squad",
65
+ "distil_temperature": 2.0,
66
+ "final_ampere_temperature": 20.0,
67
+ "final_finetune": false,
68
+ "final_threshold": 0.1,
69
+ "final_warmup": 10,
70
+ "gelu_patch": 1,
71
+ "gelu_patch_steps": 50000,
72
+ "initial_ampere_temperature": 0.0,
73
+ "initial_threshold": 0,
74
+ "initial_warmup": 1,
75
+ "layer_norm_patch": 1,
76
+ "layer_norm_patch_start_delta": 0.99,
77
+ "layer_norm_patch_steps": 50000,
78
+ "linear_min_parameters": 0,
79
+ "mask_init": "constant",
80
+ "mask_scale": 0.0,
81
+ "mask_scores_learning_rate": 0.01,
82
+ "regularization": "l1",
83
+ "regularization_final_lambda": 10
84
+ },
85
+ "speed": {
86
+ "cuda_eval_elapsed_time": 19.66401289367676,
87
+ "eval_elapsed_time": 26.647668646648526
88
+ },
89
+ "speedup": 1.9626916038984936,
90
+ "stats": {
91
+ "layers": {
92
+ "0": {
93
+ "linear_attention_nnz": 920576,
94
+ "linear_attention_total": 2359296,
95
+ "linear_dense_nnz": 1188864,
96
+ "linear_dense_total": 4718592,
97
+ "linear_nnz": 2109440,
98
+ "linear_total": 7077888,
99
+ "nnz": 2115942,
100
+ "total": 7087872
101
+ },
102
+ "1": {
103
+ "linear_attention_nnz": 709632,
104
+ "linear_attention_total": 2359296,
105
+ "linear_dense_nnz": 1187328,
106
+ "linear_dense_total": 4718592,
107
+ "linear_nnz": 1896960,
108
+ "linear_total": 7077888,
109
+ "nnz": 1903205,
110
+ "total": 7087872
111
+ },
112
+ "10": {
113
+ "linear_attention_nnz": 617472,
114
+ "linear_attention_total": 2359296,
115
+ "linear_dense_nnz": 552960,
116
+ "linear_dense_total": 4718592,
117
+ "linear_nnz": 1170432,
118
+ "linear_total": 7077888,
119
+ "nnz": 1176200,
120
+ "total": 7087872
121
+ },
122
+ "11": {
123
+ "linear_attention_nnz": 423936,
124
+ "linear_attention_total": 2359296,
125
+ "linear_dense_nnz": 806400,
126
+ "linear_dense_total": 4718592,
127
+ "linear_nnz": 1230336,
128
+ "linear_total": 7077888,
129
+ "nnz": 1236333,
130
+ "total": 7087872
131
+ },
132
+ "2": {
133
+ "linear_attention_nnz": 1210368,
134
+ "linear_attention_total": 2359296,
135
+ "linear_dense_nnz": 1371648,
136
+ "linear_dense_total": 4718592,
137
+ "linear_nnz": 2582016,
138
+ "linear_total": 7077888,
139
+ "nnz": 2589021,
140
+ "total": 7087872
141
+ },
142
+ "3": {
143
+ "linear_attention_nnz": 1433600,
144
+ "linear_attention_total": 2359296,
145
+ "linear_dense_nnz": 1310208,
146
+ "linear_dense_total": 4718592,
147
+ "linear_nnz": 2743808,
148
+ "linear_total": 7077888,
149
+ "nnz": 2750901,
150
+ "total": 7087872
151
+ },
152
+ "4": {
153
+ "linear_attention_nnz": 1558528,
154
+ "linear_attention_total": 2359296,
155
+ "linear_dense_nnz": 1219584,
156
+ "linear_dense_total": 4718592,
157
+ "linear_nnz": 2778112,
158
+ "linear_total": 7077888,
159
+ "nnz": 2785338,
160
+ "total": 7087872
161
+ },
162
+ "5": {
163
+ "linear_attention_nnz": 1038336,
164
+ "linear_attention_total": 2359296,
165
+ "linear_dense_nnz": 1213440,
166
+ "linear_dense_total": 4718592,
167
+ "linear_nnz": 2251776,
168
+ "linear_total": 7077888,
169
+ "nnz": 2258486,
170
+ "total": 7087872
171
+ },
172
+ "6": {
173
+ "linear_attention_nnz": 1107968,
174
+ "linear_attention_total": 2359296,
175
+ "linear_dense_nnz": 967680,
176
+ "linear_dense_total": 4718592,
177
+ "linear_nnz": 2075648,
178
+ "linear_total": 7077888,
179
+ "nnz": 2082422,
180
+ "total": 7087872
181
+ },
182
+ "7": {
183
+ "linear_attention_nnz": 1108992,
184
+ "linear_attention_total": 2359296,
185
+ "linear_dense_nnz": 766464,
186
+ "linear_dense_total": 4718592,
187
+ "linear_nnz": 1875456,
188
+ "linear_total": 7077888,
189
+ "nnz": 1881875,
190
+ "total": 7087872
191
+ },
192
+ "8": {
193
+ "linear_attention_nnz": 1062912,
194
+ "linear_attention_total": 2359296,
195
+ "linear_dense_nnz": 399360,
196
+ "linear_dense_total": 4718592,
197
+ "linear_nnz": 1462272,
198
+ "linear_total": 7077888,
199
+ "nnz": 1468548,
200
+ "total": 7087872
201
+ },
202
+ "9": {
203
+ "linear_attention_nnz": 670720,
204
+ "linear_attention_total": 2359296,
205
+ "linear_dense_nnz": 274944,
206
+ "linear_dense_total": 4718592,
207
+ "linear_nnz": 945664,
208
+ "linear_total": 7077888,
209
+ "nnz": 951443,
210
+ "total": 7087872
211
+ }
212
+ },
213
+ "linear_nnz": 23121920,
214
+ "linear_sparsity": 72.77681327160495,
215
+ "linear_total": 84934656,
216
+ "nnz": 47038436,
217
+ "pruned_heads": {
218
+ "0": [0, 2, 4, 5, 6],
219
+ "1": [0, 2, 3, 5, 6, 7, 8],
220
+ "10": [1, 2, 4, 5, 6, 7, 8],
221
+ "11": [0, 5, 7, 8, 10, 11],
222
+ "2": [8, 4, 7],
223
+ "3": [2, 4, 6],
224
+ "4": [1, 2],
225
+ "5": [1, 2, 6, 7, 11],
226
+ "6": [10, 2, 3],
227
+ "7": [1, 3, 6, 7, 11],
228
+ "8": [0, 3, 4],
229
+ "9": [1, 4, 5, 7, 9, 10]
230
+ },
231
+ "total": 108893186,
232
+ "total_sparsity": 56.8031410156371
233
+ },
234
+ "training_args": {
235
+ "_n_gpu": -1,
236
+ "adafactor": false,
237
+ "adam_beta1": 0.9,
238
+ "adam_beta2": 0.999,
239
+ "adam_epsilon": 1e-08,
240
+ "dataloader_drop_last": false,
241
+ "dataloader_num_workers": 0,
242
+ "dataloader_pin_memory": true,
243
+ "ddp_find_unused_parameters": null,
244
+ "debug": false,
245
+ "deepspeed": null,
246
+ "disable_tqdm": false,
247
+ "do_eval": 1,
248
+ "do_predict": false,
249
+ "do_train": 1,
250
+ "eval_accumulation_steps": null,
251
+ "eval_steps": 5000,
252
+ "evaluation_strategy": "steps",
253
+ "fp16": false,
254
+ "fp16_backend": "auto",
255
+ "fp16_full_eval": false,
256
+ "fp16_opt_level": "O1",
257
+ "gradient_accumulation_steps": 1,
258
+ "greater_is_better": null,
259
+ "group_by_length": false,
260
+ "ignore_data_skip": false,
261
+ "label_names": null,
262
+ "label_smoothing_factor": 0.0,
263
+ "learning_rate": 3e-05,
264
+ "length_column_name": "length",
265
+ "load_best_model_at_end": false,
266
+ "local_rank": -1,
267
+ "logging_dir": "/data_2to/devel_data/nn_pruning/output/squad_test_9_fullpatch4/",
268
+ "logging_first_step": false,
269
+ "logging_steps": 250,
270
+ "logging_strategy": "steps",
271
+ "lr_scheduler_type": "linear",
272
+ "max_grad_norm": 1.0,
273
+ "max_steps": -1,
274
+ "metric_for_best_model": null,
275
+ "mp_parameters": "",
276
+ "no_cuda": false,
277
+ "num_train_epochs": 20,
278
+ "optimize_model_before_eval": "disabled",
279
+ "output_dir": "/data_2to/devel_data/nn_pruning/output/squad_test_9_fullpatch4/",
280
+ "overwrite_output_dir": 1,
281
+ "past_index": -1,
282
+ "per_device_eval_batch_size": 8,
283
+ "per_device_train_batch_size": 16,
284
+ "per_gpu_eval_batch_size": null,
285
+ "per_gpu_train_batch_size": null,
286
+ "prediction_loss_only": false,
287
+ "remove_unused_columns": true,
288
+ "report_to": null,
289
+ "run_name": "/data_2to/devel_data/nn_pruning/output/squad_test_9_fullpatch4/",
290
+ "save_steps": 5000,
291
+ "save_strategy": "steps",
292
+ "save_total_limit": 50,
293
+ "seed": 17,
294
+ "sharded_ddp": "",
295
+ "skip_memory_metrics": false,
296
+ "tpu_metrics_debug": false,
297
+ "tpu_num_cores": null,
298
+ "warmup_ratio": 0.0,
299
+ "warmup_steps": 5400,
300
+ "weight_decay": 0.0
301
+ }
302
+ }
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,7 @@
 
 
 
 
 
 
 
1
+ {
2
+ "cache_dir": null,
3
+ "config_name": null,
4
+ "model_name_or_path": "bert-base-uncased",
5
+ "tokenizer_name": null,
6
+ "use_fast_tokenizer": true
7
+ }
training/sparse_args.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "ampere_pruning_method": "disabled",
3
+ "attention_block_cols": 32,
4
+ "attention_block_rows": 32,
5
+ "attention_lambda": 1.0,
6
+ "attention_output_with_dense": 0,
7
+ "attention_pruning_method": "sigmoied_threshold",
8
+ "bias_mask": true,
9
+ "dense_block_cols": 1,
10
+ "dense_block_rows": 1,
11
+ "dense_lambda": 1.0,
12
+ "dense_pruning_method": "sigmoied_threshold:1d_alt",
13
+ "distil_alpha_ce": 0.1,
14
+ "distil_alpha_teacher": 0.9,
15
+ "distil_teacher_name_or_path": "bert-large-uncased-whole-word-masking-finetuned-squad",
16
+ "distil_temperature": 2.0,
17
+ "final_ampere_temperature": 20.0,
18
+ "final_finetune": false,
19
+ "final_threshold": 0.1,
20
+ "final_warmup": 10,
21
+ "gelu_patch": 1,
22
+ "gelu_patch_steps": 50000,
23
+ "initial_ampere_temperature": 0.0,
24
+ "initial_threshold": 0,
25
+ "initial_warmup": 1,
26
+ "layer_norm_patch": 1,
27
+ "layer_norm_patch_start_delta": 0.99,
28
+ "layer_norm_patch_steps": 50000,
29
+ "linear_min_parameters": 0,
30
+ "mask_init": "constant",
31
+ "mask_scale": 0.0,
32
+ "mask_scores_learning_rate": 0.01,
33
+ "regularization": "l1",
34
+ "regularization_final_lambda": 10
35
+ }
training/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bba1354c4bd39bece4bdb12520826a23ef47fbf45aada70a4aedae1f61422d95
3
+ size 1967