Skip to content

vllm.benchmarks.sweep.param_sweep

Classes:

ParameterSweep

Bases: list['ParameterSweepItem']

Methods:

  • read_from_dict –

    Read parameter sweep from a dict format where keys are names.

read_from_dict(data) classmethod

Read parameter sweep from a dict format where keys are names.

Example

{ "experiment1": {"max_tokens": 100, "temperature": 0.7}, "experiment2": {"max_tokens": 200, "temperature": 0.9} }

ParameterSweepItem

Bases: dict[str, object]

Attributes:

  • name (str) –

    Get the name for this parameter sweep item.

name property

Get the name for this parameter sweep item.

Returns the '_benchmark_name' field if present, otherwise returns a text representation of all parameters.

_normalize_cmd_kv_pair(k, v)

Normalize a key-value pair into command-line arguments.

Returns a list containing either: - A single element for boolean flags (e.g., ['--flag'] or ['--flag=true']) - Two elements for key-value pairs (e.g., ['--key', 'value'])