Skip to content

Commit

Permalink
Adjust JavaScript for new data structures
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarbuzzi committed Dec 12, 2024
1 parent 7a5bda1 commit be8ba19
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions dev/bench/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,6 @@
return new Array({ name: "Benchmarks", dataSet: allDataSetsMap });
}

function shortPythonVersion(long_py_version_str) {
// long_py_version_str = "3.10.12 (main, Mar 7 2024, 18:39:53) [GCC 9.4.0]"
// to shortPythonVersion 3.10.12
return long_py_version_str
.slice(0, long_py_version_str.indexOf(" "))
.trim();
}

function shortDate(long_date_str) {
// long_date_str = 2024-03-19 03:26:26 UTC
// to shortDate 2024-03-19
Expand Down Expand Up @@ -253,19 +245,15 @@
const metric_name = name_json.name;
const description = name_json.description;
const gpu_description = name_json.gpu_description;
const vllm_version = name_json.vllm_version;
const python_version = shortPythonVersion(
name_json.python_version
);
const python_version = name_json.python_version;
const torch_version = name_json.torch_version;

const title = [
metric_name,
description,
`GPU : ${gpu_description}`,
`vllm : ${vllm_version}`,
`py_version : ${python_version}`,
`torch : ${torch_version}`,
`GPU: ${gpu_description}`,
`Python: ${python_version}`,
`torch: ${torch_version}`,
];
return title;
}
Expand Down

0 comments on commit be8ba19

Please sign in to comment.