Benchmark a template against one or more GPUs and report performance per dollar.Documentation Index
Fetch the complete documentation index at: https://docs.vast.ai/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Options
Template hash to benchmark. One of
--template_hash or --template_id is required.Template ID to benchmark. Wins over
--template_hash if both are passed. One of --template_hash or --template_id is required.Comma-separated GPU names, same format as
vastai search offers (e.g. RTX_4090,RTX_3090). An optional Nx prefix per token requests a multi-GPU configuration (e.g. "2x RTX_4090"). Defaults to RTX_5090,RTX_4090,RTX_3090,RTX_A6000.GPUs per instance for tokens without an
Nx prefix. If omitted, the count is auto-sized from the template’s gpu_total_ram filter so VRAM fits.Per-GPU safety ceiling in seconds. Each rental is torn down at this point even if no
measured_perf was reported.Skip the cost confirmation prompt.
Examples
Global Options
The following options are available for all commands:| Option | Description |
|---|---|
--url URL | Server REST API URL |
--retry N | Retry limit |
--raw | Output machine-readable JSON |
--explain | Verbose explanation of API calls |
--api-key KEY | API key (defaults to ~/.config/vastai/vast_api_key) |