R.1

Flags and defaults

This page lists the flags the manual uses, grouped by user job, with the default at 0.31.0.

Use this page to look up a flag that a section names.

Defaults are for vllm serve at 0.31.0 on a CUDA GPU, read from the configuration classes in the source.

Server

FlagDefaultWhat it setsPage
--hostnot set, so every network interfacethe address the server listens onserver options
--port8000the HTTP portserver options
--served-model-namethe model namethe name that clients send in modelserver options
--api-keynot setthe key that the /v1 routes requireserver options
--chat-templatethe template of the modelthe chat template, as a file or as textserver options
--default-chat-template-kwargsnot settemplate values for every requestreasoning models
--reasoning-parsernot setthe parser that moves thinking out of the answerreasoning models
--enable-log-requestsoffone log line for each requestserver options

Memory and length

FlagDefaultWhat it setsPage
--gpu-memory-utilization0.92the share of total GPU memory for one instancestartup
--kv-cache-memory-bytesnot setthe KV cache size in bytes, which overrides the share for the cachestartup
--max-model-lenthe model configthe longest prompt plus answer for one requestlong contexts
--block-size16tokens in one KV block, or the attention backend's preferenceblock pool
--kv-cache-dtypeautothe data type of the KV cache, such as fp8attention backend
--num-gpu-blocks-overridenot seta fixed number of KV blocks, for testsstartup

Scheduling

FlagDefaultWhat it setsPage
--max-num-batched-tokens2048 for vllm serve on a GPU under 70 GiB or an A100, 8192 from 70 GiB, 16384 from 160 GiBthe token budget for one steptoken budget
--max-num-seqs256 on a GPU under 70 GiB or an A100, 1024 from 70 GiBthe most requests that run at oncetoken budget
--enable-chunked-prefillonsplitting a long prompt across stepstoken budget
--async-schedulingon for most generate modelsplanning the next step while the GPU runsModel Runner V2
--scheduling-policyfcfsfirst come first served, or prioritytoken budget
--long-prefill-token-thresholdnot seta cap on the tokens of one prefill in one steptoken budget

Cache

FlagDefaultWhat it setsPage
--enable-prefix-cachingonreuse of cached prefix blocksblock pool
--prefix-caching-hash-algosha256the hash of each blockblock pool
--disable-hybrid-kv-cache-manageroffone group for every layer kindlong contexts
--kv-transfer-confignot seta KV connector and its roleKV connectors

Execution

FlagDefaultWhat it setsPage
-O0 to -O3-O2the compile and CUDA graph levelcompile and graphs
--enforce-eageroffno compile, no CUDA graphs, and no kernel warmupcompile and graphs
--max-cudagraph-capture-sizeset by the levelthe largest batch with a captured graphcompile and graphs
--attention-backendchosen from a listthe attention kernel, by enum nameattention backend
--speculative-confignot setthe speculation method and its options, as JSONspeculative decoding

Parallelism

FlagDefaultWhat it sets
--tensor-parallel-size, -tp1GPUs that split each layer
--pipeline-parallel-size, -pp1GPUs that split the layers into stages
--data-parallel-size, -dp1full copies of the model
--enable-expert-paralleloffexperts spread across GPUs for mixture-of-experts models

Environment variables

VariableDefaultWhat it sets
VLLM_ENABLE_V1_MULTIPROCESSING1the engine core in its own process
VLLM_USE_V2_MODEL_RUNNERnot seta pinned choice of model runner
VLLM_BATCH_INVARIANT0the batch-invariant mode, when set to 1
VLLM_API_KEYnot setthe API key, as --api-key sets it
VLLM_LOGGING_LEVELINFOthe vLLM log level
VLLM_NO_USAGE_STATS0no usage statistics, when set to 1

vLLM 0.31.0 · db9527a · 2026-10-05 · Edition 2026.10