User Configuration Parametersο
AISBench Benchmark supports customizing the inference mode and evaluation process through two methods: Command Line Interface (CLI) Parameters and Configuration Constant File.
Command Line Parametersο
The basic calling format for command line parameters [OPTIONS] is as follows:
ais_bench [OPTIONS]
Parameter Descriptionο
Based on the execution scenario, command line parameters are divided into four categories:
Common Parameters
Accuracy Evaluation Parameters (effective only when
--modeis set toall,infer,eval, orviz)Performance Evaluation Parameters (effective only when
--modeis set toperforperf_viz)Agent Evaluation Parameters (effective only when
--modeis set toagentoragent_viz)
Accuracy Evaluation Parameters take effect only when the --mode parameter is specified as "all", "infer", "eval", "viz". Performance Evaluation Parameters take effect only when the --mode parameter is specified as "perf", "perf_viz". Agent Evaluation Parameters take effect only when the --mode parameter is specified as "agent", "agent_viz". Common Parameters are not restricted by the task execution mode and can be specified in all modes.
Common Parametersο
Applicable to all modes and can be used in combination with accuracy or performance parameters.
Parameter |
Description |
Example |
|---|---|---|
|
Specifies the path to a custom configuration file. |
|
|
Specifies the name of the model inference backend task (corresponding to a pre-implemented default model configuration file under the path |
|
|
Specifies the name of the dataset task (corresponding to a pre-implemented default dataset configuration file under the path |
|
|
Specifies the name of the result summary task (corresponding to a pre-implemented default configuration file under the path |
|
|
Running mode, optional values: |
|
|
Specifies the timestamp in an existing working directory to continue execution and overwrite original results. Used in conjunction with the |
|
|
Specifies the evaluation working directory for saving output results. Default path: |
|
|
Path to the folder where configuration files for |
|
|
Enables Debug mode. The mode is enabled if this parameter is configured, and disabled if not; disabled by default. In Debug mode, all logs are printed directly to the terminal. (In Debug mode, the |
|
|
Enables Dry Run mode (prints logs to the screen without actually running tasks). The mode is enabled if this parameter is configured, and disabled if not; disabled by default. |
|
|
Reserved parameter; not currently supported. |
|
|
Enables merged inference for datasets of the same type (runs multiple datasets for the same task together). |
|
|
Specifies the number of test cases for the dataset (selected in dataset order). A positive integer must be passed. If the number exceeds the total number of cases in the dataset or no value is specified, the entire dataset is used for testing. |
|
|
Number of parallel tasks, range: |
|
|
Number of warm-up runs before sending requests. Data is selected in dataset order for testing. When |
|
|
Enables response anomaly detection with zero extra configuration: adding |
|
|
Payload retention mode after anomaly detection: |
|
API Model Common Override Parametersο
Applicable to service-oriented inference backends (API models such as vLLM, Triton, MindIE, TGI, etc.), used to directly override common fields in the model configuration via the command line without modifying the model configuration files.
β οΈ Coverage Notes:
Only fields already present in the model config are overridden; no new keys are added (so model classes that do not support a given field do not receive unexpected keywords, preserving backward compatibility).
An explicitly specified parameter overrides the corresponding field in all executed model configs (effective across multiple model tasks in the same command).
Parameters not explicitly specified are ignored (default
None), keeping the original values in the config files.The model-name field is written to
modelormodel_namedepending on the modeltypeconstructor signature: VLLM classes usemodel, Triton usesmodel_name; when the type accepts neither (e.g. MindIE, TGI), a warning is printed and the value is skipped.
Parameter |
Description |
Example |
|---|---|---|
|
Overrides the |
|
|
Overrides the model name, written to |
|
|
Overrides |
|
|
Overrides |
|
|
Overrides |
|
|
Overrides |
|
|
Overrides |
|
|
Overrides |
|
|
Overrides |
|
|
Overrides |
|
|
Overrides |
|
|
Overrides |
|
Accuracy Evaluation Parametersο
Valid only when the mode is all, infer, eval, or viz.
Parameter |
Description |
Example |
|---|---|---|
|
Toggle to dump details of the evaluation process. Enabled if configured, disabled if not; disabled by default. |
|
|
Toggle to dump evaluation speed data. Enabled if configured, disabled if not; disabled by default. |
|
Performance Evaluation Parametersο
Valid only when the mode is perf or perf_viz.
Parameter |
Description |
Example |
|---|---|---|
|
Switch to enable performance pressure testing mode. Effective only when |
|
|
Duration of pressure testing. Only takes effect when |
|
|
Enable speculative decoding metrics collection from the inference serverβs Prometheus |
|
Agent Evaluation Parametersο
Effective only when --mode is agent or agent_viz. AISBench runs agent evaluation through Harbor; unified semantic parameters (model service base url / API key / LLM call parameters, etc.) are translated automatically by AgentParamAdapter into each agentβs private kwargs / environment variables. For detailed usage, see π Agent Evaluation.
Parameter |
Description |
Example |
|---|---|---|
|
Agent name (a Harbor |
|
|
Import path of a custom agent ( |
|
|
Model name used by the agent (repeatable, corresponding to config |
|
|
Model service base url (unified semantic, translated by the agent adapter) |
|
|
Model service API key (unified semantic, translated by the agent adapter) |
|
|
Additional agent kwargs in |
|
|
Environment variables passed to the agent in |
|
|
Path to an offline agent deps bundle ( |
|
|
Local dataset path (also supports a single task directory) |
|
|
Remote dataset |
|
|
Number of concurrent trials |
|
|
Number of attempts per trial |
|
|
Harbor environment type ( |
|
|
Task timeout multiplier |
|
|
Maximum number of retry attempts |
|
|
Task names to include (supports glob, repeatable) |
|
|
Task names to exclude (supports glob, repeatable) |
|
|
Maximum number of tasks to take from the dataset |
|
|
Disable the verifier |
|
|
Whether to force rebuild the environment |
|
|
Run all task containers sharing the host network (docker-compose network_mode: host) |
|
|
Additional Docker Compose overlay file (repeatable, one file each) |
|
|
Whether to delete the environment after completion |
|
|
Delete all case directories that ended with an exception before execution to auto-retry them; effective only when |
|
|
Suppress per-trial progress output |
|
|
Automatically confirm environment variable prompts |
|
|
Path to a |
|
|
Harbor monitoring HTTP service port ( |
|
Configuration Constant File Parametersο
Some global constants are not restricted by task type, and it is recommended to keep their default values. If customization is required, edit the constant file: global_consts.py for configuration.
The currently supported parameter configurations are as follows:
Parameter Name |
Description |
Value Range / Requirements |
|---|---|---|
|
Number of processes used for sending requests. The default value is 0, which means automatic allocation based on the maximum number of concurrent requests configured by the user. (Invalid when the command-line parameter |
[0, number of CPU cores] |
|
Maximum cache size for a single chunk returned by the streaming inference model backend. The default value is 65535 bytes (64KB). |
|
|
Timeout period for the client to wait for a response after sending a request. The default value is None, meaning infinite waiting (always waiting for the model to return results). |
|
|
Log level, optional values: |
|