Skip to content

vllm.benchmarks.lib.utils

Functions:

convert_to_pytorch_benchmark_format(args, metrics, extra_info)

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

default_vllm_config()

Set a default VllmConfig for cases that directly test CustomOps or pathways that use get_current_vllm_config() outside of a full engine context.

redact_sensitive_namespace(args, fields)

Return a copy of CLI arguments with selected values redacted.

use_compile(args, extra_info)

Check if the benchmark is run with torch.compile.