vllm.benchmarks.lib.utils
InfEncoder ¶
Bases: JSONEncoder
Source code in vllm/benchmarks/lib/utils.py
clear_inf ¶
clear_inf(o: Any)
Source code in vllm/benchmarks/lib/utils.py
convert_to_pytorch_benchmark_format ¶
convert_to_pytorch_benchmark_format(
args: Namespace,
metrics: dict[str, list],
extra_info: dict[str, Any],
) -> list
Save the benchmark results in the format used by PyTorch OSS benchmark with on metric per record https://github.com/pytorch/pytorch/wiki/How-to-integrate-with-PyTorch-OSS-benchmark-database