File size: 28,643 Bytes
83d7ce2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6327213
83d7ce2
6327213
83d7ce2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6327213
 
83d7ce2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
(function() {
  var fn = function() {
    
    (function(root) {
      function now() {
        return new Date();
      }
    
      var force = false;
    
      if (typeof root._bokeh_onload_callbacks === "undefined" || force === true) {
        root._bokeh_onload_callbacks = [];
        root._bokeh_is_loading = undefined;
      }
    
      
      
    
      var element = document.getElementById("2d0fc334-fe98-4315-8890-d6eaca1fa9be");
        if (element == null) {
          console.warn("Bokeh: autoload.js configured with elementid '2d0fc334-fe98-4315-8890-d6eaca1fa9be' but no matching script tag was found.")
        }
      
    
      function run_callbacks() {
        try {
          root._bokeh_onload_callbacks.forEach(function(callback) {
            if (callback != null)
              callback();
          });
        } finally {
          delete root._bokeh_onload_callbacks
        }
        console.debug("Bokeh: all callbacks have finished");
      }
    
      function load_libs(css_urls, js_urls, callback) {
        if (css_urls == null) css_urls = [];
        if (js_urls == null) js_urls = [];
    
        root._bokeh_onload_callbacks.push(callback);
        if (root._bokeh_is_loading > 0) {
          console.debug("Bokeh: BokehJS is being loaded, scheduling callback at", now());
          return null;
        }
        if (js_urls == null || js_urls.length === 0) {
          run_callbacks();
          return null;
        }
        console.debug("Bokeh: BokehJS not loaded, scheduling load and callback at", now());
        root._bokeh_is_loading = css_urls.length + js_urls.length;
    
        function on_load() {
          root._bokeh_is_loading--;
          if (root._bokeh_is_loading === 0) {
            console.debug("Bokeh: all BokehJS libraries/stylesheets loaded");
            run_callbacks()
          }
        }
    
        function on_error(url) {
          console.error("failed to load " + url);
        }
    
        for (let i = 0; i < css_urls.length; i++) {
          const url = css_urls[i];
          const element = document.createElement("link");
          element.onload = on_load;
          element.onerror = on_error.bind(null, url);
          element.rel = "stylesheet";
          element.type = "text/css";
          element.href = url;
          console.debug("Bokeh: injecting link tag for BokehJS stylesheet: ", url);
          document.body.appendChild(element);
        }
    
        const hashes = {"https://cdn.bokeh.org/bokeh/release/bokeh-2.3.2.min.js": "XypntL49z55iwGVUW4qsEu83zKL3XEcz0MjuGOQ9SlaaQ68X/g+k1FcioZi7oQAc", "https://cdn.bokeh.org/bokeh/release/bokeh-tables-2.3.2.min.js": "bEsM86IHGDTLCS0Zod8a8WM6Y4+lafAL/eSiyQcuPzinmWNgNO2/olUF0Z2Dkn5i", "https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.3.2.min.js": "TX0gSQTdXTTeScqxj6PVQxTiRW8DOoGVwinyi1D3kxv7wuxQ02XkOxv0xwiypcAH"};
    
        for (let i = 0; i < js_urls.length; i++) {
          const url = js_urls[i];
          const element = document.createElement('script');
          element.onload = on_load;
          element.onerror = on_error.bind(null, url);
          element.async = false;
          element.src = url;
          if (url in hashes) {
            element.crossOrigin = "anonymous";
            element.integrity = "sha384-" + hashes[url];
          }
          console.debug("Bokeh: injecting script tag for BokehJS library: ", url);
          document.head.appendChild(element);
        }
      };
    
      function inject_raw_css(css) {
        const element = document.createElement("style");
        element.appendChild(document.createTextNode(css));
        document.body.appendChild(element);
      }
    
      
      var js_urls = ["https://cdn.bokeh.org/bokeh/release/bokeh-2.3.2.min.js", "https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.3.2.min.js", "https://cdn.bokeh.org/bokeh/release/bokeh-tables-2.3.2.min.js"];
      var css_urls = [];
      
    
      var inline_js = [
        function(Bokeh) {
          Bokeh.set_log_level("info");
        },
        
        function(Bokeh) {
          (function() {
            var fn = function() {
              Bokeh.safely(function() {
                (function(root) {
                  function embed_document(root) {
                    
                  var docs_json = '{"26a004c6-8fab-4f02-8b46-12f868198a5e":{"defs":[],"roots":{"references":[{"attributes":{"fill_color":{"value":"#20cb97"},"line_color":{"value":"#20cb97"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1143","type":"VBar"},{"attributes":{"data_source":{"id":"1135"},"glyph":{"id":"1137"},"hover_glyph":null,"muted_glyph":null,"name":"Wk","nonselection_glyph":{"id":"1138"},"view":{"id":"1140"}},"id":"1139","type":"GlyphRenderer"},{"attributes":{"data":{"density":["28.0%","26.2%","23.3%","22.7%","32.5%","38.7%","28.0%","41.8%","30.6%","18.8%","13.5%","0.0%"],"height":[0.164864,0.154624,0.137216,0.134144,0.191488,0.228352,0.164864,0.246784,0.180224,0.110592,0.079872,0.0],"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":["encoder.layer.0.attention.output","encoder.layer.1.attention.output","encoder.layer.2.attention.output","encoder.layer.3.attention.output","encoder.layer.4.attention.output","encoder.layer.5.attention.output","encoder.layer.6.attention.output","encoder.layer.7.attention.output","encoder.layer.8.attention.output","encoder.layer.9.attention.output","encoder.layer.10.attention.output","encoder.layer.11.attention.output"],"parameters":["0.16","0.15","0.14","0.13","0.19","0.23","0.16","0.25","0.18","0.11","0.08","0.00"],"url":["/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_0_attention_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_1_attention_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_2_attention_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_3_attention_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_4_attention_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_5_attention_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_6_attention_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_7_attention_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_8_attention_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_9_attention_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_10_attention_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_11_attention_output_dense.png"],"x":[0.5833333333333334,1.5833333333333333,2.5833333333333335,3.5833333333333335,4.583333333333333,5.583333333333333,6.583333333333333,7.583333333333333,8.583333333333334,9.583333333333334,10.583333333333334,11.583333333333334]},"selected":{"id":"1179"},"selection_policy":{"id":"1178"}},"id":"1147","type":"ColumnDataSource"},{"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":"1144","type":"VBar"},{"attributes":{},"id":"1172","type":"UnionRenderers"},{"attributes":{},"id":"1115","type":"LinearScale"},{"attributes":{},"id":"1173","type":"Selection"},{"attributes":{"axis":{"id":"1119"},"grid_line_color":null,"ticker":null},"id":"1122","type":"Grid"},{"attributes":{"source":{"id":"1141"}},"id":"1146","type":"CDSView"},{"attributes":{"fill_color":{"value":"#f7b269"},"line_color":{"value":"#f7b269"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1149","type":"VBar"},{"attributes":{},"id":"1177","type":"Selection"},{"attributes":{"data_source":{"id":"1141"},"glyph":{"id":"1143"},"hover_glyph":null,"muted_glyph":null,"name":"Wv","nonselection_glyph":{"id":"1144"},"view":{"id":"1146"}},"id":"1145","type":"GlyphRenderer"},{"attributes":{"data":{"density":["14.8%","19.8%","14.2%","16.5%","16.8%","26.2%","21.5%","30.0%","20.1%","9.0%","4.5%","0.0%"],"height":[0.08704,0.116736,0.083968,0.09728,0.099328,0.154624,0.126976,0.177152,0.118784,0.053248,0.026624,0.0],"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":["encoder.layer.0.attention.query","encoder.layer.1.attention.query","encoder.layer.2.attention.query","encoder.layer.3.attention.query","encoder.layer.4.attention.query","encoder.layer.5.attention.query","encoder.layer.6.attention.query","encoder.layer.7.attention.query","encoder.layer.8.attention.query","encoder.layer.9.attention.query","encoder.layer.10.attention.query","encoder.layer.11.attention.query"],"parameters":["0.09","0.12","0.08","0.10","0.10","0.15","0.13","0.18","0.12","0.05","0.03","0.00"],"url":["/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_0_attention_self_query.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_1_attention_self_query.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_2_attention_self_query.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_3_attention_self_query.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_4_attention_self_query.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_5_attention_self_query.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_6_attention_self_query.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_7_attention_self_query.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_8_attention_self_query.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_9_attention_self_query.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_10_attention_self_query.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/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":"1173"},"selection_policy":{"id":"1172"}},"id":"1129","type":"ColumnDataSource"},{"attributes":{"axis":{"id":"1123"},"dimension":1,"ticker":null},"id":"1126","type":"Grid"},{"attributes":{"data":{"density":["54.5%","54.5%","57.6%","57.6%","69.4%","69.4%","72.4%","72.4%","69.4%","69.4%","67.6%","67.6%","61.4%","61.4%","49.3%","49.3%","25.3%","25.3%","10.9%","10.9%","5.1%","5.1%","5.1%","5.1%"],"height":[1.284864,1.284864,1.360128,1.360128,1.638144,1.638144,1.708032,1.708032,1.638144,1.638144,1.595904,1.595904,1.449216,1.449216,1.164288,1.164288,0.596736,0.596736,0.258048,0.258048,0.121344,0.121344,0.120576,0.120576],"img_height":["384px","96px","384px","96px","384px","96px","384px","96px","384px","96px","384px","96px","384px","96px","384px","96px","384px","96px","384px","96px","384px","96px","384px","96px"],"img_width":["96px","384px","96px","384px","96px","384px","96px","384px","96px","384px","96px","384px","96px","384px","96px","384px","96px","384px","96px","384px","96px","384px","96px","384px"],"name":["encoder.layer.0.intermediate","encoder.layer.0.output","encoder.layer.1.intermediate","encoder.layer.1.output","encoder.layer.2.intermediate","encoder.layer.2.output","encoder.layer.3.intermediate","encoder.layer.3.output","encoder.layer.4.intermediate","encoder.layer.4.output","encoder.layer.5.intermediate","encoder.layer.5.output","encoder.layer.6.intermediate","encoder.layer.6.output","encoder.layer.7.intermediate","encoder.layer.7.output","encoder.layer.8.intermediate","encoder.layer.8.output","encoder.layer.9.intermediate","encoder.layer.9.output","encoder.layer.10.intermediate","encoder.layer.10.output","encoder.layer.11.intermediate","encoder.layer.11.output"],"parameters":["1.28","1.28","1.36","1.36","1.64","1.64","1.71","1.71","1.64","1.64","1.60","1.60","1.45","1.45","1.16","1.16","0.60","0.60","0.26","0.26","0.12","0.12","0.12","0.12"],"url":["/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_0_intermediate_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_0_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_1_intermediate_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_1_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_2_intermediate_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_2_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_3_intermediate_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_3_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_4_intermediate_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_4_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_5_intermediate_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_5_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_6_intermediate_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_6_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_7_intermediate_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_7_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_8_intermediate_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_8_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_9_intermediate_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_9_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_10_intermediate_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_10_output_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_11_intermediate_dense.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_11_output_dense.png"],"x":[0.75,0.9166666666666667,1.75,1.9166666666666665,2.75,2.916666666666667,3.75,3.916666666666667,4.75,4.916666666666666,5.75,5.916666666666666,6.75,6.916666666666666,7.75,7.916666666666666,8.75,8.916666666666668,9.75,9.916666666666668,10.75,10.916666666666668,11.75,11.916666666666668]},"selected":{"id":"1181"},"selection_policy":{"id":"1180"}},"id":"1153","type":"ColumnDataSource"},{"attributes":{"axis_label":"Layer","formatter":{"id":"1168"},"major_label_policy":{"id":"1167"},"minor_tick_line_color":null,"ticker":{"id":"1120"}},"id":"1119","type":"LinearAxis"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#f7b269"},"line_alpha":{"value":0.1},"line_color":{"value":"#f7b269"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1150","type":"VBar"},{"attributes":{},"id":"1178","type":"UnionRenderers"},{"attributes":{"start":0},"id":"1113","type":"DataRange1d"},{"attributes":{},"id":"1117","type":"LinearScale"},{"attributes":{"fill_color":{"value":"#aa69f7"},"line_color":{"value":"#aa69f7"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1155","type":"VBar"},{"attributes":{},"id":"1167","type":"AllLabels"},{"attributes":{"data_source":{"id":"1147"},"glyph":{"id":"1149"},"hover_glyph":null,"muted_glyph":null,"name":"Wo","nonselection_glyph":{"id":"1150"},"view":{"id":"1152"}},"id":"1151","type":"GlyphRenderer"},{"attributes":{},"id":"1179","type":"Selection"},{"attributes":{},"id":"1168","type":"BasicTickFormatter"},{"attributes":{"items":[{"id":"1160"},{"id":"1161"},{"id":"1162"},{"id":"1163"},{"id":"1164"}],"location":[10,0],"orientation":"horizontal"},"id":"1159","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":"1156","type":"VBar"},{"attributes":{},"id":"1174","type":"UnionRenderers"},{"attributes":{"source":{"id":"1153"}},"id":"1158","type":"CDSView"},{"attributes":{},"id":"1175","type":"Selection"},{"attributes":{"data_source":{"id":"1153"},"glyph":{"id":"1155"},"hover_glyph":null,"muted_glyph":null,"name":"FFN","nonselection_glyph":{"id":"1156"},"view":{"id":"1158"}},"id":"1157","type":"GlyphRenderer"},{"attributes":{},"id":"1170","type":"AllLabels"},{"attributes":{},"id":"1171","type":"BasicTickFormatter"},{"attributes":{"label":{"value":"Wq"},"renderers":[{"id":"1133"}]},"id":"1160","type":"LegendItem"},{"attributes":{"data":{"density":["14.4%","19.4%","14.8%","17.7%","18.1%","27.6%","21.4%","33.0%","25.3%","15.1%","6.9%","0.0%"],"height":[0.084992,0.114688,0.08704,0.104448,0.106496,0.162816,0.125952,0.19456,0.149504,0.089088,0.04096,0.0],"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":["encoder.layer.0.attention.key","encoder.layer.1.attention.key","encoder.layer.2.attention.key","encoder.layer.3.attention.key","encoder.layer.4.attention.key","encoder.layer.5.attention.key","encoder.layer.6.attention.key","encoder.layer.7.attention.key","encoder.layer.8.attention.key","encoder.layer.9.attention.key","encoder.layer.10.attention.key","encoder.layer.11.attention.key"],"parameters":["0.08","0.11","0.09","0.10","0.11","0.16","0.13","0.19","0.15","0.09","0.04","0.00"],"url":["/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_0_attention_self_key.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_1_attention_self_key.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_2_attention_self_key.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_3_attention_self_key.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_4_attention_self_key.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_5_attention_self_key.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_6_attention_self_key.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_7_attention_self_key.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_8_attention_self_key.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_9_attention_self_key.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_10_attention_self_key.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/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":"1175"},"selection_policy":{"id":"1174"}},"id":"1135","type":"ColumnDataSource"},{"attributes":{},"id":"1180","type":"UnionRenderers"},{"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":"1132","type":"VBar"},{"attributes":{"label":{"value":"Wk"},"renderers":[{"id":"1139"}]},"id":"1161","type":"LegendItem"},{"attributes":{"source":{"id":"1129"}},"id":"1134","type":"CDSView"},{"attributes":{"text":"Transformer Layers"},"id":"1109","type":"Title"},{"attributes":{},"id":"1181","type":"Selection"},{"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":"1107","type":"HoverTool"},{"attributes":{"data_source":{"id":"1129"},"glyph":{"id":"1131"},"hover_glyph":null,"muted_glyph":null,"name":"Wq","nonselection_glyph":{"id":"1132"},"view":{"id":"1134"}},"id":"1133","type":"GlyphRenderer"},{"attributes":{"axis_label":"Parameters (M)","formatter":{"id":"1171"},"major_label_policy":{"id":"1170"},"minor_tick_line_color":null,"ticker":{"id":"1124"}},"id":"1123","type":"LinearAxis"},{"attributes":{"fill_color":{"value":"#ed5642"},"line_color":{"value":"#ed5642"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1137","type":"VBar"},{"attributes":{"fill_color":{"value":"#6573f7"},"line_color":{"value":"#6573f7"},"top":{"field":"height"},"width":{"value":0.125},"x":{"field":"x"}},"id":"1131","type":"VBar"},{"attributes":{"label":{"value":"Wv"},"renderers":[{"id":"1145"}]},"id":"1162","type":"LegendItem"},{"attributes":{"data":{"density":["27.1%","23.8%","22.4%","22.2%","33.0%","38.7%","26.2%","42.2%","32.1%","22.4%","14.6%","0.0%"],"height":[0.159744,0.140288,0.132096,0.131072,0.19456,0.228352,0.154624,0.248832,0.18944,0.132096,0.086016,0.0],"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":["encoder.layer.0.attention.value","encoder.layer.1.attention.value","encoder.layer.2.attention.value","encoder.layer.3.attention.value","encoder.layer.4.attention.value","encoder.layer.5.attention.value","encoder.layer.6.attention.value","encoder.layer.7.attention.value","encoder.layer.8.attention.value","encoder.layer.9.attention.value","encoder.layer.10.attention.value","encoder.layer.11.attention.value"],"parameters":["0.16","0.14","0.13","0.13","0.19","0.23","0.15","0.25","0.19","0.13","0.09","0.00"],"url":["/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_0_attention_self_value.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_1_attention_self_value.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_2_attention_self_value.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_3_attention_self_value.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_4_attention_self_value.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_5_attention_self_value.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_6_attention_self_value.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_7_attention_self_value.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_8_attention_self_value.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_9_attention_self_value.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/raw/main/model_card/images/layer_10_attention_self_value.png","/echarlaix/bert-base-uncased-sst2-acc91.1-d37-hybrid/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":"1177"},"selection_policy":{"id":"1176"}},"id":"1141","type":"ColumnDataSource"},{"attributes":{"label":{"value":"FFN"},"renderers":[{"id":"1157"}]},"id":"1164","type":"LegendItem"},{"attributes":{},"id":"1124","type":"BasicTicker"},{"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":"1138","type":"VBar"},{"attributes":{},"id":"1111","type":"DataRange1d"},{"attributes":{"label":{"value":"Wo"},"renderers":[{"id":"1151"}]},"id":"1163","type":"LegendItem"},{"attributes":{},"id":"1176","type":"UnionRenderers"},{"attributes":{},"id":"1120","type":"BasicTicker"},{"attributes":{"source":{"id":"1147"}},"id":"1152","type":"CDSView"},{"attributes":{"above":[{"id":"1159"}],"below":[{"id":"1119"}],"center":[{"id":"1122"},{"id":"1126"}],"height":300,"left":[{"id":"1123"}],"outline_line_color":null,"renderers":[{"id":"1133"},{"id":"1139"},{"id":"1145"},{"id":"1151"},{"id":"1157"}],"title":{"id":"1109"},"toolbar":{"id":"1127"},"width":505,"x_range":{"id":"1111"},"x_scale":{"id":"1115"},"y_range":{"id":"1113"},"y_scale":{"id":"1117"}},"id":"1108","subtype":"Figure","type":"Plot"},{"attributes":{"active_multi":null,"tools":[{"id":"1107"}]},"id":"1127","type":"Toolbar"},{"attributes":{"source":{"id":"1135"}},"id":"1140","type":"CDSView"}],"root_ids":["1108"]},"title":"Bokeh Application","version":"2.3.2"}}';
                  var render_items = [{"docid":"26a004c6-8fab-4f02-8b46-12f868198a5e","root_ids":["1108"],"roots":{"1108":"2d0fc334-fe98-4315-8890-d6eaca1fa9be"}}];
                  root.Bokeh.embed.embed_items(docs_json, render_items);
                
                  }
                  if (root.Bokeh !== undefined) {
                    embed_document(root);
                  } else {
                    var attempts = 0;
                    var timer = setInterval(function(root) {
                      if (root.Bokeh !== undefined) {
                        clearInterval(timer);
                        embed_document(root);
                      } else {
                        attempts++;
                        if (attempts > 100) {
                          clearInterval(timer);
                          console.log("Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing");
                        }
                      }
                    }, 10, root)
                  }
                })(window);
              });
            };
            if (document.readyState != "loading") fn();
            else document.addEventListener("DOMContentLoaded", fn);
          })();
        },
        function(Bokeh) {
        
        
        }
      ];
    
      function run_inline_js() {
        
        for (var i = 0; i < inline_js.length; i++) {
          inline_js[i].call(root, root.Bokeh);
        }
        
      }
    
      if (root._bokeh_is_loading === 0) {
        console.debug("Bokeh: BokehJS loaded, going straight to plotting");
        run_inline_js();
      } else {
        load_libs(css_urls, js_urls, function() {
          console.debug("Bokeh: BokehJS plotting callback run at", now());
          run_inline_js();
        });
      }
    }(window));
  };
  if (document.readyState != "loading") fn();
  else document.addEventListener("DOMContentLoaded", fn);
})();