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
76 changes: 65 additions & 11 deletions docs/fern/pages/reference/backends/vllm-configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -191,22 +191,40 @@ These flags control the self-benchmark sweep that runs on startup before the wor
Environment variable: `DYN_BENCHMARK_MODE`
</ParamField>

<ParamField path="--benchmark-prefill-granularity" type="integer" default="16">
Number of ISL sample points for the prefill sweep.
<ParamField path="--benchmark-points-file" type="string" default="null">
JSON file of explicit pure prefill/decode benchmark points, applied uniformly to every data-parallel rank. The file completely replaces generated grid sampling for the phases selected by `--benchmark-mode`, so the sampling limits below are ignored when it is set. It is read and normalized once before vLLM workers start, then the same contents are forwarded to every rank. Requires `--benchmark-mode`; setting it without a mode raises a `ValueError` during argument parsing.
Comment thread
dagil-nvidia marked this conversation as resolved.
Resolved
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

Environment variable: `DYN_BENCHMARK_PREFILL_GRANULARITY`
Environment variable: `DYN_BENCHMARK_POINTS_FILE`
</ParamField>

<ParamField path="--benchmark-decode-length-granularity" type="integer" default="6">
Number of context length sample points for the decode sweep.
<ParamField path="--prefill-max-new-token-samples" type="integer" default="64">
Maximum number of iteration-total prefill new-token samples. If the CUDA-graph-aware axis has more points, points are selected uniformly across the sorted axis while always retaining its minimum and maximum. Must be at least 2.

Environment variable: `DYN_BENCHMARK_DECODE_LENGTH_GRANULARITY`
Environment variable: `DYN_PREFILL_MAX_NEW_TOKEN_SAMPLES`
</ParamField>

<ParamField path="--benchmark-decode-batch-granularity" type="integer" default="6">
Number of batch size sample points per context length for the decode sweep.
<ParamField path="--prefill-max-kv-read-token-samples" type="integer" default="16">
Maximum number of iteration-total prefill KV-read-token samples for each (new tokens, batch size) pair. If the block-aligned KV ladder has more points, points are selected uniformly while always retaining zero and the feasible maximum. Must be at least 2.

Environment variable: `DYN_BENCHMARK_DECODE_BATCH_GRANULARITY`
Environment variable: `DYN_PREFILL_MAX_KV_READ_TOKEN_SAMPLES`
</ParamField>

<ParamField path="--prefix-max-batch-size-samples" type="integer" default="3">
Maximum number of prefill request-batch-size samples for each new-token point. Keeps the first N values from the sorted power-of-two-plus-legal-maximum axis, so the default of 3 selects `[1, 2, 4]` when all three are legal. Must be positive.

Environment variable: `DYN_PREFIX_MAX_BATCH_SIZE_SAMPLES`
</ParamField>

<ParamField path="--decode-max-kv-read-token-samples" type="integer" default="128">
Maximum number of iteration-total decode KV-read-token samples for each batch size. If the KV ladder has more points, points are selected uniformly while always retaining its minimum and feasible maximum. Must be at least 2.

Environment variable: `DYN_DECODE_MAX_KV_READ_TOKEN_SAMPLES`
</ParamField>

<ParamField path="--decode-max-batch-size-samples" type="integer" default="128">
Maximum number of decode batch-size samples. If the CUDA-graph-aware axis has more points, points are selected uniformly while always retaining the minimum and feasible maximum. Must be at least 2.

Environment variable: `DYN_DECODE_MAX_BATCH_SIZE_SAMPLES`
</ParamField>

<ParamField path="--benchmark-warmup-iterations" type="integer" default="5">
Expand All @@ -221,8 +239,8 @@ These flags control the self-benchmark sweep that runs on startup before the wor
Environment variable: `DYN_BENCHMARK_OUTPUT_PATH`
</ParamField>

<ParamField path="--benchmark-timeout" type="integer" default="300">
Maximum seconds to wait for the benchmark to complete. Worker startup fails if this limit is exceeded.
<ParamField path="--benchmark-timeout" type="integer" default="900">
Soft limit, in seconds, for the self-benchmark. Reaching it does not fail worker startup: the iteration being measured finishes, the partial results collected so far are returned, and engine startup continues. A bounded cleanup grace still fails closed if no result is written at all. Must be positive.

Environment variable: `DYN_BENCHMARK_TIMEOUT`
</ParamField>
Expand All @@ -231,6 +249,42 @@ 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.

The five `--benchmark-*-granularity` flags below are read only when `--benchmark-mode` is set and `--benchmark-points-file` is not; otherwise they are ignored entirely, and none of the translation, range checking, or deprecation warnings described here takes place. Under those conditions each is translated to its replacement at startup, with a deprecation warning, and is accepted in the range 1 to 1024; a value outside it raises a `ValueError`. Because the four uniform-sampling limits need both endpoints of their axis, a legacy value of `1` maps to `2` for those flags.

<Warning>
With `--benchmark-mode` set and no points file, passing a legacy flag together with its replacement raises a `ValueError` at startup, for example `cannot combine --benchmark-decode-length-granularity with --decode-max-kv-read-token-samples`, and likewise for each of the other pairs. Migrate to the replacement rather than setting both. All five are ignored when `--benchmark-points-file` is set.
</Warning>

<ParamField path="--benchmark-prefill-granularity" type="integer" default="null" deprecated={true}>
**Deprecated** — use `--prefill-max-new-token-samples`. Legacy values are translated to the new sampling limit.

Environment variable: `DYN_BENCHMARK_PREFILL_GRANULARITY`
</ParamField>

<ParamField path="--benchmark-prefill-kv-read-granularity" type="integer" default="null" deprecated={true}>
**Deprecated** — use `--prefill-max-kv-read-token-samples`. Legacy values are translated to the new sampling limit.

Environment variable: `DYN_BENCHMARK_PREFILL_KV_READ_GRANULARITY`
</ParamField>

<ParamField path="--benchmark-prefill-batch-granularity" type="integer" default="null" deprecated={true}>
**Deprecated** — use `--prefix-max-batch-size-samples`. Legacy values are translated to the new sampling limit.

Environment variable: `DYN_BENCHMARK_PREFILL_BATCH_GRANULARITY`
</ParamField>

<ParamField path="--benchmark-decode-length-granularity" type="integer" default="null" deprecated={true}>
**Deprecated** — use `--decode-max-kv-read-token-samples`. Legacy values are translated to the new sampling limit.

Environment variable: `DYN_BENCHMARK_DECODE_LENGTH_GRANULARITY`
</ParamField>

<ParamField path="--benchmark-decode-batch-granularity" type="integer" default="null" deprecated={true}>
**Deprecated** — use `--decode-max-batch-size-samples`. Legacy values are translated to the new sampling limit.

Environment variable: `DYN_BENCHMARK_DECODE_BATCH_GRANULARITY`
</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 Down
Loading