mako benchmark
Benchmarks a running or locally launched LLM server using a selected workload. You can use this command to evaluate performance with various configurations or measure results of external servers.
Command Syntax
Required arguments
MODEL_NAME(str, positional) - Name of the model to benchmark.
If benchmarking an external server
-
--address(str) - Benchmark an already running external server at the specified address. If set, results will not be uploaded to Bench Hub or otherwise recorded since the configuration of the server is unknown. The address should be in the form of:[proto://]host[:port], whereproto://is eitherhttp://orhttps://and defaults tohttp://,hostis either an IP address or a name of the target host, and:portis optional port number (defaults to the default for a relevant protocol).Changed in version 1.3.0
--addressnow accepts the optionalproto://prefix, and allows omitting:port. Beforehttp://was always used and:portwas required. -
--api-key(str) - API key to use when benchmarking an external server (relevant only if--addressis provided).
Benchmarking locally (auto-launching server)
--engine-type(str) - Which engine to use (vllmorsglang). If not set, Mako will try to auto-detect it.--baseline(flag) - Start the server usingvllmorsglangdirectly, otherwise they will be launched via mako serve and subject to using optimized settings.--skip-hf-download(flag) - Don’t pre-download the model from HuggingFace Hub (useful for local-only models).
Common arguments
--workload,-w(str) - Name of the workload to use for benchmarking. See technical notes on workloads. This is also passed tomako serve, if relevant.--workloads-spec(str) - Path to a YAML file that defines custom workloads. See: custom workloads.--dont-upload(flag) - Skip uploading benchmark results to Bench Hub.--verbose,-v(int) - Increase verbosity level (e.g.,-v 1,-v 2). Controls debug output during the launch.
Notes
- If you do not specify
--address, Mako will automatically launch a local server, benchmark it, and shut it down afterward.' - If
--addressis provided, no local server will be launched and benchmark results will not be uploaded to Bench Hub. - Without
--tensor-parallel-size, your benchmark will run fine, but results might not be uploaded to Bench Hub. This argument is required for proper identification and validation on the platform.