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 2a98d5a
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 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 Expand Up @@ -434,11 +422,7 @@
processOption(extra.benchmarking_context.vllm_version)
);
py_versions.add(
processOption(
shortPythonVersion(
extra.benchmarking_context.python_version
)
)
processOption(extra.benchmarking_context.python_version)
);
torch_versions.add(
processOption(extra.benchmarking_context.torch_version)
Expand Down Expand Up @@ -528,9 +512,7 @@
) &&
compareOption(
python_version,
shortPythonVersion(
extra.benchmarking_context.python_version
)
extra.benchmarking_context.python_version
) &&
compareOption(
torch_version,
Expand Down

0 comments on commit 2a98d5a

Please sign in to comment.