Merge remote-tracking branch 'upstream/main' into patches
This commit is contained in:
@@ -596,6 +596,46 @@ vllm bench serve \
|
||||
--max-concurrency 512
|
||||
```
|
||||
|
||||
#### Responses API Benchmark
|
||||
|
||||
The `openai-responses` backend benchmarks vLLM's
|
||||
[Responses API](../serving/online_serving/openai_compatible_server.md#responses-api)
|
||||
directly, instead of routing the same workload through `/v1/chat/completions`.
|
||||
|
||||
```bash
|
||||
# Server
|
||||
vllm serve openai/gpt-oss-20b
|
||||
|
||||
# Client
|
||||
vllm bench serve \
|
||||
--backend openai-responses \
|
||||
--endpoint /v1/responses \
|
||||
--model openai/gpt-oss-20b \
|
||||
--dataset-name random \
|
||||
--random-input-len 1024 \
|
||||
--random-output-len 1024 \
|
||||
--num-prompts 200
|
||||
```
|
||||
|
||||
Reasoning deltas (`response.reasoning_text.delta`) count towards TTFT and ITL,
|
||||
because the server is already decoding tokens when it emits them. Only output
|
||||
text (`response.output_text.delta`) is collected as the generated text, which
|
||||
matches how the `openai-chat` backend treats `DeltaMessage.reasoning`. End-to-end
|
||||
latency stops at the last token event, so `latency - ttft` equals `sum(itl)` and
|
||||
TPOT is comparable with the other endpoints. The input and output token counts
|
||||
come from the usage block on `response.completed`, which is still required: a
|
||||
stream that ends without a terminal event is reported as a failed request.
|
||||
|
||||
The backend measures one streamed text-generation request per prompt. Built-in
|
||||
tools, MCP, and multi-turn state via `previous_response_id` are out of scope.
|
||||
All sampling parameter flags are supported except `--min-p`, which the
|
||||
Responses API does not accept.
|
||||
|
||||
!!! warning
|
||||
Do not pass `--extra-body '{"include_reasoning": false}'` when benchmarking
|
||||
a reasoning model. The server still generates reasoning tokens but emits no
|
||||
events for them, so the whole reasoning phase is absorbed into TTFT.
|
||||
|
||||
#### Running With Sampling Parameters
|
||||
|
||||
When using OpenAI-compatible backends such as `vllm`, optional sampling
|
||||
|
||||
@@ -144,7 +144,7 @@ When batch invariance is enabled, vLLM:
|
||||
|
||||
1. Uses deterministic kernel implementations for attention and other operations
|
||||
2. Ensures consistent numerical behavior across different batch sizes
|
||||
3. Disables certain optimizations that may introduce non-determinism (such as custom all-reduce operations in tensor parallel mode)
|
||||
3. Disables certain optimizations that may introduce non-determinism (such as custom all-reduce operations in tensor parallel mode, and sequence parallelism / async TP, whose reduce-scatter path is not batch-invariant)
|
||||
4. On CUDA devices with tuned matmul table entries for the model's bf16 unquantized forward linear layers (Ada, Hopper, Blackwell),
|
||||
runs without `torch.compile` using breakable CUDA graphs so tile configs follow the runtime batch size; set `VLLM_USE_BREAKABLE_CUDAGRAPH=0` to opt out
|
||||
(not applied when sequence parallelism / async TP are enabled, since those are `torch.compile` passes).
|
||||
|
||||
@@ -46,6 +46,13 @@ Now you can send requests to the proxy server through port 8000.
|
||||
- For headless instances, must be the same as the master instance
|
||||
- Each instance needs a unique port on its host; using the same port number across different hosts is fine
|
||||
|
||||
- `VLLM_MOONCAKE_CONNECTOR_TIMEOUT`: Per-request timeout (in seconds) for MooncakeConnector HTTP calls to the bootstrap server, including prefiller worker registration at startup. (Optional)
|
||||
- Default: 30.0
|
||||
- Global rank 0 hosts the bootstrap server in the same process that mounts the Mooncake transfer engine's host segment, so a large `MOONCAKE_GLOBAL_SEGMENT_SIZE` can delay responses for several seconds during startup
|
||||
- Raise this if bootstrap server timeout warnings appear on hosts with very large host-memory segments
|
||||
- Bootstrap registration uses up to 3 attempts internally, with exponential backoff capped at 10 seconds; connection errors and timeouts are both retried
|
||||
- Once the attempts are exhausted the caller raises instead of blocking, so failures surface rather than hanging
|
||||
|
||||
- `WITH_NVIDIA_PEERMEM`: Selects how mooncake registers GPU memory for RDMA. Read by mooncake, not vLLM.
|
||||
- Default: 1, which uses `ibv_reg_mr()` and requires the `nvidia-peermem` kernel module to be loaded
|
||||
- Set to 0 to use the DMA-BUF path, which does not need that module. Required on hosts where `nvidia-peermem` is not loaded, such as GB200
|
||||
|
||||
@@ -23,6 +23,10 @@ METRIC_SOURCE_FILES = [
|
||||
"path": "vllm/distributed/kv_transfer/kv_connector/v1/nixl/stats.py",
|
||||
"key": "metrics-nixl",
|
||||
},
|
||||
{
|
||||
"path": "vllm/v1/simple_kv_offload/metrics.py",
|
||||
"key": "metrics-simple-kv-offload",
|
||||
},
|
||||
{"path": "vllm/v1/metrics/perf.py", "key": "metrics-mfu"},
|
||||
]
|
||||
|
||||
|
||||
@@ -50,8 +50,8 @@ The three supported scoring functions are as illustrated in the figure below.
|
||||
| `ModernBertForSequenceClassification` | ModernBERT-based | `Alibaba-NLP/gte-reranker-modernbert-base`, etc. | N/A | | |
|
||||
| `Qwen2ForSequenceClassification`<sup>C</sup> | Qwen2-based | `mixedbread-ai/mxbai-rerank-base-v2`(see note), etc. | [mxbai_rerank_v2.jinja](../../../examples/pooling/score/template/mxbai_rerank_v2.jinja) | ✅︎ | ✅︎ |
|
||||
| `Qwen3ForSequenceClassification`<sup>C</sup> | Qwen3-based | `tomaarsen/Qwen3-Reranker-0.6B-seq-cls`, `Qwen/Qwen3-Reranker-0.6B`(see note), etc. | [qwen3_reranker.jinja](../../../examples/pooling/score/template/qwen3_reranker.jinja) | ✅︎ | ✅︎ |
|
||||
| `RobertaForSequenceClassification` | RoBERTa-based | `cross-encoder/quora-roberta-base`, etc. | N/A | | |
|
||||
| `XLMRobertaForSequenceClassification` | XLM-RoBERTa-based | `BAAI/bge-reranker-v2-m3`, etc. | N/A | | |
|
||||
| `RobertaForSequenceClassification` | RoBERTa-based | `cross-encoder/quora-roberta-base`, etc. | N/A | ✅︎ | |
|
||||
| `XLMRobertaForSequenceClassification` | XLM-RoBERTa-based | `BAAI/bge-reranker-v2-m3`, etc. | N/A | ✅︎ | |
|
||||
| `*Model`<sup>C</sup>, `*ForCausalLM`<sup>C</sup>, etc. | Generative models | N/A | N/A | \* | \* |
|
||||
|
||||
<sup>C</sup> Automatically converted into a classification model via `--convert classify`. ([details](./README.md#model-conversion))
|
||||
|
||||
@@ -45,6 +45,30 @@ The following metrics are exposed:
|
||||
|
||||
--8<-- "gen:metrics-nixl"
|
||||
|
||||
## Simple CPU Offload Connector Metrics
|
||||
|
||||
These metrics are exposed when the `SimpleCPUOffloadConnector` KV connector
|
||||
is configured (e.g. `--kv-transfer-config='{"kv_connector":
|
||||
"SimpleCPUOffloadConnector", "kv_role": "kv_both", "kv_connector_extra_config":
|
||||
{"kv_offload_backend": "disk", "disk_path": "/mnt/nvme/kv"}}'`). They are
|
||||
updated once per engine step.
|
||||
|
||||
Caveats to keep in mind when interpreting them:
|
||||
|
||||
- A "completed" store means the write syscalls returned; it is **not**
|
||||
fsync-durable, and the disk backend's file is process-lifetime scratch,
|
||||
unlinked at startup and shutdown.
|
||||
- `save_outcomes_total` classifies eager-mode boundary hand-off stores;
|
||||
lazy-mode stores are not classified.
|
||||
- `used_blocks` counts blocks pinned by in-flight transfers or cache hits;
|
||||
warm cached blocks that are evictable are not counted. Use the
|
||||
`capacity_blocks` label of `simple_kv_offload_info` as the denominator.
|
||||
- Counters and gauges are quantized to engine steps. They are reported by the
|
||||
scheduler process and reflect engine-wide logical block counts, not values
|
||||
pooled from individual tensor-parallel workers.
|
||||
|
||||
--8<-- "gen:metrics-simple-kv-offload"
|
||||
|
||||
## Model Flops Utilization (MFU) Performance Metrics
|
||||
|
||||
These metrics are available via `--enable-mfu-metrics`:
|
||||
|
||||
Reference in New Issue
Block a user