Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 24 additions & 15 deletions docs/fern/pages/reference/backends/vllm-configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ subtitle: Field reference for the Dynamo-specific CLI flags and environment vari
`DynamoVllmConfig` holds the Dynamo-specific configuration for the vLLM backend (`python -m dynamo.vllm`). Every field, type, default, and choice on this page comes from the [`DynamoVllmArgGroup` and `DynamoVllmConfig`](https://github.com/ai-dynamo/dynamo/blob/main/components/src/dynamo/vllm/backend_args.py) definitions. For features and operational details, see the [vLLM Reference Guide](../../developer-guide/knowledge-base/modular-components/backends/vllm/reference-guide.md).

<Note>
These are **only** the Dynamo wrapper flags. The vLLM backend also accepts every native vLLM `EngineArgs` argument (`--model`, `--tensor-parallel-size`, `--max-model-len`, and so on) in the same command, plus the cross-cutting [Dynamo Runtime](../components/runtime-configuration.mdx) flags (`--namespace`, `--endpoint`, and others). Except for the KV event interoperability note below, this page covers neither — only the vLLM-specific `DYN_VLLM_*` surface.
These are **only** the Dynamo wrapper flags. The vLLM backend also accepts every native vLLM `EngineArgs` argument (`--model`, `--tensor-parallel-size`, `--max-model-len`, and so on) in the same command, plus the cross-cutting [Dynamo Runtime](../components/runtime-configuration.mdx) flags (`--namespace`, `--endpoint`, and others). Except for the native KV event and KV transfer sections below, this page covers neither — only the vLLM-specific `DYN_VLLM_*` surface.
</Note>

## How the config is loaded
Expand Down Expand Up @@ -72,13 +72,36 @@ The `endpoint` value is the base ZeroMQ port. vLLM assigns each data-parallel ra

If workers do not publish KV events, configure the frontend with `--no-router-kv-events` for prediction-based KV routing or `--load-aware` for load-only routing.

## Native KV transfer configuration

`--kv-transfer-config` is a native vLLM engine argument rather than a `DynamoVllmConfig` field, so it has no `DYN_VLLM_*` environment variable. It selects the KV connector that moves cache blocks between prefill and decode workers.

<Warning>
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
A worker started with `--disaggregation-mode prefill` must be passed `--kv-transfer-config` explicitly. Without it, the worker raises a `ValueError` during argument parsing and never starts. The other modes — `agg`, `decode`, and `encode` — do not enforce this check.
</Warning>
Comment thread
glamr-agent marked this conversation as resolved.
Resolved

The value is a JSON object. For NIXL-based prefill/decode disaggregation:

```bash
python -m dynamo.vllm \
--model Qwen/Qwen3-0.6B \
--disaggregation-mode prefill \
--kv-transfer-config '{"kv_connector":"NixlConnector","kv_role":"kv_both"}'
```

Only the prefill worker is required to set it, but both halves of a NIXL pair must agree on a connector for transfers to succeed. Pass the same `--kv-transfer-config` value to the decode worker, as the [disaggregated vLLM launch script](https://github.com/ai-dynamo/dynamo/blob/main/examples/backends/vllm/launch/disagg.sh) does.

The earlier `--connector` flag is no longer accepted by the vLLM backend. Setting it — on the command line or through the `DYN_CONNECTOR` environment variable — raises a `ValueError` whose message includes the equivalent `--kv-transfer-config` value to use instead.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

## Worker role and disaggregation

These flags control which role this worker plays in a disaggregated deployment. The default when no `--disaggregation-mode` is set is aggregated (`agg`).

<ParamField path="--disaggregation-mode" type="string" default="null">
Worker disaggregation mode. `agg` (default when unset) runs a combined aggregated prefill+decode worker. `pd` is a legacy alias for `agg`. `prefill` and `decode` split the pipeline for prefill/decode disaggregation. `encode` starts a multimodal encode-only worker.

`prefill` additionally requires the native `--kv-transfer-config` argument — see [Native KV transfer configuration](#native-kv-transfer-configuration).

<span className="enum-values"><span className="enum-label">Allowed values:</span> <Badge intent="note" minimal>pd</Badge> <Badge intent="note" minimal>agg</Badge> <Badge intent="note" minimal>prefill</Badge> <Badge intent="note" minimal>decode</Badge> <Badge intent="note" minimal>encode</Badge></span>

Environment variable: `DYN_VLLM_DISAGGREGATION_MODE`
Expand Down Expand Up @@ -204,18 +227,6 @@ These flags control the self-benchmark sweep that runs on startup before the wor

These flags are retained for backward compatibility and will be removed in a future release. Each is mapped to its replacement at startup with a deprecation warning.

<ParamField path="--is-prefill-worker" type="boolean" default="false" deprecated={true}>
**Deprecated** — use `--disaggregation-mode=prefill`. Enable prefill functionality for this worker.

Environment variable: `DYN_VLLM_IS_PREFILL_WORKER`
</ParamField>

<ParamField path="--is-decode-worker" type="boolean" default="false" deprecated={true}>
**Deprecated** — use `--disaggregation-mode=decode`. Mark this as a decode worker that does not publish KV events.

Environment variable: `DYN_VLLM_IS_DECODE_WORKER`
</ParamField>

<ParamField path="--model-express-url" type="string" default="null" deprecated={true}>
**Deprecated** — accepted for compatibility with older ModelExpress manifests only. The vLLM ModelExpress plugin reads its own configuration.

Expand All @@ -224,8 +235,6 @@ These flags are retained for backward compatibility and will be removed in a fut

## Validation rules

- `--disaggregation-mode` cannot be combined with `--is-prefill-worker` or `--is-decode-worker`.
- `--is-prefill-worker` and `--is-decode-worker` cannot both be set at the same time.
- `--embedding-worker` is only valid with `--disaggregation-mode=agg` (or the default aggregated mode) and cannot be combined with `--enable-multimodal` or `--benchmark-mode`.

## Related pages
Expand Down
Loading