Fix on pruned head count.
Browse files
model_card/pruning_info.js
CHANGED
@@ -16,9 +16,9 @@
|
|
16 |
|
17 |
|
18 |
|
19 |
-
var element = document.getElementById("
|
20 |
if (element == null) {
|
21 |
-
console.warn("Bokeh: autoload.js configured with elementid '
|
22 |
}
|
23 |
|
24 |
|
@@ -115,8 +115,8 @@
|
|
115 |
(function(root) {
|
116 |
function embed_document(root) {
|
117 |
|
118 |
-
var docs_json = '{"
|
119 |
-
var render_items = [{"docid":"
|
120 |
root.Bokeh.embed.embed_items(docs_json, render_items);
|
121 |
|
122 |
}
|
|
|
16 |
|
17 |
|
18 |
|
19 |
+
var element = document.getElementById("f7197e6f-ccea-4a42-8fb9-7a8fe7136cf0");
|
20 |
if (element == null) {
|
21 |
+
console.warn("Bokeh: autoload.js configured with elementid 'f7197e6f-ccea-4a42-8fb9-7a8fe7136cf0' but no matching script tag was found.")
|
22 |
}
|
23 |
|
24 |
|
|
|
115 |
(function(root) {
|
116 |
function embed_document(root) {
|
117 |
|
118 |
+
var docs_json = '{"9e93a1e1-e869-4f7b-a3ab-1626817aa47f":{"roots":{"references":[{"attributes":{"factors":["0","1","2","3","4","5","6","7","8","9","10","11"],"range_padding":0.1},"id":"1004","type":"FactorRange"},{"attributes":{},"id":"1052","type":"UnionRenderers"},{"attributes":{"axis":{"id":"1012"},"grid_line_color":null,"ticker":null},"id":"1014","type":"Grid"},{"attributes":{"text":"Pruned Transformer Heads"},"id":"1002","type":"Title"},{"attributes":{},"id":"1053","type":"Selection"},{"attributes":{"axis_label":"Layer index","formatter":{"id":"1034"},"minor_tick_line_color":null,"ticker":{"id":"1013"}},"id":"1012","type":"CategoricalAxis"},{"attributes":{},"id":"1013","type":"CategoricalTicker"},{"attributes":{},"id":"1034","type":"CategoricalTickFormatter"},{"attributes":{"fields":[]},"id":"1020","type":"Stack"},{"attributes":{},"id":"1010","type":"LinearScale"},{"attributes":{"fields":["active","pruned"]},"id":"1023","type":"Stack"},{"attributes":{"source":{"id":"1024"}},"id":"1029","type":"CDSView"},{"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":{"label":{"value":"active"},"renderers":[{"id":"1028"}]},"id":"1038","type":"LegendItem"},{"attributes":{},"id":"1016","type":"BasicTicker"},{"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":{"axis_label":"Heads count","formatter":{"id":"1032"},"minor_tick_line_color":null,"ticker":{"id":"1016"}},"id":"1015","type":"LinearAxis"},{"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":{},"id":"1035","type":"UnionRenderers"},{"attributes":{"label":{"value":"pruned"},"renderers":[{"id":"1043"}]},"id":"1057","type":"LegendItem"},{"attributes":{},"id":"1036","type":"Selection"},{"attributes":{"items":[{"id":"1038"},{"id":"1054"}],"location":null},"id":"1037","type":"Legend"},{"attributes":{"label":{"value":"active"},"renderers":[{"id":"1028"}]},"id":"1056","type":"LegendItem"},{"attributes":{"axis":{"id":"1015"},"dimension":1,"ticker":null},"id":"1018","type":"Grid"},{"attributes":{"fields":["active"]},"id":"1022","type":"Stack"},{"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":{},"id":"1032","type":"BasicTickFormatter"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_multi":null,"active_scroll":"auto","active_tap":"auto"},"id":"1019","type":"Toolbar"},{"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":{"fields":["active"]},"id":"1021","type":"Stack"},{"attributes":{"data":{"active":[7,5,9,9,11,10,9,8,10,6,7,5],"layers":["0","1","2","3","4","5","6","7","8","9","10","11"],"pruned":[5,7,3,3,1,2,3,4,2,6,5,7]},"selected":{"id":"1036"},"selection_policy":{"id":"1035"}},"id":"1024","type":"ColumnDataSource"},{"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":"1008","type":"CategoricalScale"},{"attributes":{"label":{"value":"pruned"},"renderers":[{"id":"1043"}]},"id":"1054","type":"LegendItem"},{"attributes":{"start":0},"id":"1006","type":"DataRange1d"},{"attributes":{"items":[{"id":"1056"},{"id":"1057"}],"location":[10,0],"orientation":"horizontal"},"id":"1055","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":{"source":{"id":"1039"}},"id":"1044","type":"CDSView"},{"attributes":{"data":{"active":[7,5,9,9,11,10,9,8,10,6,7,5],"layers":["0","1","2","3","4","5","6","7","8","9","10","11"],"pruned":[5,7,3,3,1,2,3,4,2,6,5,7]},"selected":{"id":"1053"},"selection_policy":{"id":"1052"}},"id":"1039","type":"ColumnDataSource"}],"root_ids":["1001"]},"title":"Bokeh Application","version":"2.2.3"}}';
|
119 |
+
var render_items = [{"docid":"9e93a1e1-e869-4f7b-a3ab-1626817aa47f","root_ids":["1001"],"roots":{"1001":"f7197e6f-ccea-4a42-8fb9-7a8fe7136cf0"}}];
|
120 |
root.Bokeh.embed.embed_items(docs_json, render_items);
|
121 |
|
122 |
}
|