benchmark
Evaluate model inference performance by executing a small completion and measuring latency (ms) and throughput (tokens/sec).
Instructions
HEAVY: Runs REAL inference. Executes one small completion against a loaded/loadable model and measures latency (ms) and throughput (tokens/sec). This consumes compute and may load the model. Without a provider arg, runs on the first detected provider.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model id/name to benchmark | |
| prompt | No | Optional prompt; a short default is used otherwise | |
| provider | No | Optional provider id | |
| maxTokens | No | Max tokens to generate (default 64) |