Skip to content

Commit

Permalink
[DOCS] Port for Graph refactoring to master (openvinotoolkit#28147)
Browse files Browse the repository at this point in the history
  • Loading branch information
akopytko authored and 11happy committed Dec 23, 2024
1 parent 620e155 commit 28174cb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16046,7 +16046,7 @@
"bf16": ""
}
],
"Unit": "Tokens per Sec",
"Unit": "Tokens per sec",
"UnitDesc": "higher is better"
},
"latency": {
Expand Down Expand Up @@ -16081,7 +16081,7 @@
"bf16": ""
}
],
"Unit": "Tokens per Sec",
"Unit": "Tokens per sec",
"UnitDesc": "higher is better"
},
"latency": {
Expand Down Expand Up @@ -16116,7 +16116,7 @@
"bf16": ""
}
],
"Unit": "Tokens per Sec",
"Unit": "Tokens per sec",
"UnitDesc": "higher is better"
},
"latency": {
Expand Down Expand Up @@ -16151,7 +16151,7 @@
"bf16": ""
}
],
"Unit": "Tokens per Sec",
"Unit": "Tokens per sec",
"UnitDesc": "higher is better"
},
"latency": {
Expand Down Expand Up @@ -16186,7 +16186,7 @@
"bf16": ""
}
],
"Unit": "Tokens per Sec",
"Unit": "Tokens per sec",
"UnitDesc": "higher is better"
},
"latency": {
Expand Down Expand Up @@ -16256,7 +16256,7 @@
"bf16": ""
}
],
"Unit": "Tokens per Sec",
"Unit": "Tokens per sec",
"UnitDesc": "higher is better"
},
"latency": {
Expand Down Expand Up @@ -16326,7 +16326,7 @@
"bf16": ""
}
],
"Unit": "Tokens per Sec",
"Unit": "Tokens per sec",
"UnitDesc": "higher is better"
},
"latency": {
Expand Down Expand Up @@ -16361,7 +16361,7 @@
"bf16": ""
}
],
"Unit": "Tokens per Sec",
"Unit": "Tokens per sec",
"UnitDesc": "higher is better"
},
"latency": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"msec/token": "(lower is better)",
"Generating time, sec.": "(lower is better)",
"msec/token/TDP": "(lower is better)",
"Tokens per sec": "(higher is better)",
"FPS": "(higher is better)",
"FPS/$": "(higher is better)",
"FPS/TDP": "(higher is better)",
Expand Down
14 changes: 8 additions & 6 deletions docs/sphinx_setup/_static/js/graphs.js
Original file line number Diff line number Diff line change
Expand Up @@ -661,15 +661,18 @@ $(document).ready(function () {
var filteredNetworkModels = Filter.FilterByNetworkModel(graph, [networkModel]);
var filteredIeTypes = Filter.ByIeTypes(filteredNetworkModels, ieTypes);
var filteredGraphData = Filter.BySortPlatforms(filteredIeTypes, platforms);
var filterdPlatforms = platforms.filter(platform =>
filteredGraphData.some(filteredGraph => platform === filteredGraph.Platform)
);
$('.chart-placeholder').append(chartContainer);
if (filteredGraphData.length > 0) {
if (isLLM === true) {
var graphConfigs = setGraphConfigsByEngines(filteredGraphData, appConfig, kpis, precisions)
createChartWithNewDataByEngines(platforms, graphConfigs, chartContainer, display);
var graphConfigs = setGraphConfigsByEngines(filteredGraphData, appConfig, kpis, precisions);
createChartWithNewDataByEngines(filterdPlatforms, graphConfigs, chartContainer, display);
}
else {
var graphConfigs = setGraphConfigs(filteredGraphData, appConfig, kpis, precisions)
createChartWithNewData(platforms, graphConfigs, appConfig, chartContainer, display);
var graphConfigs = setGraphConfigs(filteredGraphData, appConfig, kpis, precisions);
createChartWithNewData(filterdPlatforms, graphConfigs, appConfig, chartContainer, display);
}

} else {
Expand Down Expand Up @@ -759,8 +762,7 @@ $(document).ready(function () {
columnHeaderContainer.append(columnIcon);
var columnHeader = $('<div class="chart-header">');
columnHeader.append($('<div class="title">' + graphConfig.chartTitle + '</div>'));
columnHeader.append($('<div class="subtitle">' + graphConfig.unit + '</div>'));
columnHeader.append($('<div class="subtitle">' + appConfig.UnitDescription[graphConfig.unit] + '</div>'));
columnHeader.append($('<div class="subtitle">' + graphConfig.unit + ' ' + appConfig.UnitDescription[graphConfig.unit] +'</div>'));
columnHeaderContainer.append(columnHeader);
chartGraphsContainer.append(graphItem);
var graphClass = $('<div>');
Expand Down

0 comments on commit 28174cb

Please sign in to comment.