[Rust][Benchmark] Align speed-bench CLI flags with Python and add flag parity test (#51592)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com> Co-authored-by: Bugen Zhao <i@bugenzhao.com> Signed-off-by: esmeetu <jasonailu87@gmail.com> Signed-off-by: Bugen Zhao <i@bugenzhao.com>
This commit is contained in:
co-authored by
Claude Fable 5
Bugen Zhao
parent
4666a8ba9e
commit
963fcfa48c
@@ -483,7 +483,7 @@ Run `vllm-bench --help` for the authoritative list. Grouped reference below.
|
||||
| `--model` | Auto-detect | Model name (fetched from `/v1/models` if omitted) |
|
||||
| `--served-model-name` | — | Model name used in API requests |
|
||||
| `--tokenizer` | Same as model | Tokenizer name or path (supports HF, tiktoken, server fallback) |
|
||||
| `--tokenizer-mode` | `auto` | Tokenizer mode (`auto`, `hf`, `slow`, `mistral`) |
|
||||
| `--tokenizer-mode` | `auto` | Accepted for Python CLI compatibility but ignored (warns on non-`auto`): resolution always follows the HF `tokenizer.json` → tiktoken → server-side `/tokenize` chain, so `mistral_common` (tekken) tokenizers fall back to server-side tokenization |
|
||||
| `--trust-remote-code` | `false` | Trust remote code for tokenizer |
|
||||
| `--skip-tokenizer-init` | `false` | Skip tokenizer initialization |
|
||||
|
||||
@@ -521,7 +521,8 @@ Run `vllm-bench --help` for the authoritative list. Grouped reference below.
|
||||
| `--sonnet-output-len` | `150` | Output tokens per request |
|
||||
| `--sonnet-prefix-len` | `200` | Prefix tokens shared across requests |
|
||||
| **SPEED-Bench** | | |
|
||||
| `--speed-bench-config` | `qualitative` | Split (`qualitative`, `throughput_1k`/`2k`/`8k`/`16k`/`32k`) |
|
||||
| `--speed-bench-config` | `qualitative` | Split (`qualitative`, `throughput_1k`/`2k`/`8k`/`16k`/`32k`); alias: `--speed-bench-dataset-subset` (Python name) |
|
||||
| `--speed-bench-output-len` | `4096` | Output tokens per request (matches Python default) |
|
||||
| `--speed-bench-category` | — | Filter by category (`low_entropy`, `high_entropy`, `mixed_entropy`, `coding`, `math`, …) |
|
||||
| `--speed-bench-max-input-len` | — | Truncate prompts to at most N tokens |
|
||||
| **HuggingFace** | | |
|
||||
@@ -794,6 +795,11 @@ The Rust implementation matches Python `vllm bench serve` in:
|
||||
- Rate control (Gamma distribution, normalization, burstiness, linear/exponential ramp-up)
|
||||
- Metrics (TTFT/TPOT/ITL/E2EL percentiles, peak tokens/sec, peak concurrency, goodput)
|
||||
- Sampling parameters merged into the request body via `extra_body` (same precedence rules)
|
||||
- CLI flags: a superset of Python's, enforced by `tests/cli_parity.rs` against a
|
||||
snapshot of the Python parser (`tests/python_serve_flags.txt`, regenerated by
|
||||
`tests/benchmarks/test_rust_bench_cli_parity.py` in the repo root) with an
|
||||
explicit allowlist for the Python-only remainder — so `VLLM_USE_RUST_BENCH=1`
|
||||
delegation cannot silently reject documented flags
|
||||
|
||||
## Environment Variables
|
||||
|
||||
|
||||
Reference in New Issue
Block a user