Skip to content

vLLM Launch Command Generator

Pure frontend: choose options in the form and instantly get a copyable vllm serve command. Every flag is a real vLLM parameter; data stays in your browser — no network call, nothing recorded.

How to use

Fill in the model path and hardware-related options for your environment, then context length and concurrency for your workload. Tick the optional switches you need and the command updates live. "Copy command" puts it straight into a terminal.


What each flag does

Flag Purpose Guidance
--model Model path or ID Use a path you can actually reach
--tensor-parallel-size Tensor-parallel degree Must divide the attention head count; use one on a single card
--max-model-len Maximum context length Size it to real traffic, not the model's advertised ceiling
--gpu-memory-utilization Fraction of device memory the engine may use Lower it with co-resident processes; check the docs for your version
--max-num-batched-tokens Token budget processed per step Affects chunked prefill and time to first token
--max-num-seqs Maximum sequences per step A direct concurrent-session cap; setting it too high only grows the queue
--kv-cache-dtype KV cache dtype auto follows the model; fp8 saves memory but needs a quality check
--enable-prefix-caching Automatic prefix caching Strong gains when a stable prefix is shared
--enforce-eager Disable CUDA graphs For troubleshooting; usually costs steady-state throughput
--port API server port 8000 by default; avoid conflicts

Every switch here can be found in vLLM's command-line documentation. The tool deliberately offers no "more advanced" invented flags: a command that fails on the machine is worse than one with a few fewer switches.

After you generate the command

The command is a starting point. Confirm your vLLM version first: defaults, aliases and supported ranges for the same flag can change, especially for KV cache dtype and memory allocation. Before launch, compare against the help output: vllm serve --help lists the full set accepted by your version.

Then load-test at small scale. First send a few requests to confirm the command starts, the model loads and the endpoint answers. Then ramp up gradually using your real input and output length distribution while watching time to first token, time per output token, running and waiting requests, KV cache utilisation and prefix-cache hits. Metric names must come from the /metrics endpoint of the version you run — do not copy strings from an old article. If the queue keeps growing and cache usage nears its ceiling, go back to concurrency and length before adding cards.

Common combinations

Start with a single card. Where memory is sufficient, keep tensor parallelism at one, set context length to the real requirement rather than the model's advertised ceiling, keep the memory fraction at its default and turn prefix caching on. That is the simplest command, with the fewest variables to debug. Short conversations can carry looser concurrency, but do not treat max sequences as a throughput dial: it is only a cap, and setting it far beyond what memory can hold buys a longer queue and worse first-token latency, not more concurrency.

Long context plus high concurrency is different. There the KV cache is the main consumer: estimate its footprint at your target context and concurrency first, then set the length and concurrency caps. Prefix caching is close to mandatory — system prompts, knowledge-base prefixes and multi-turn history, once aligned to block boundaries, remove repeated prefill work. Raise the batched-token budget with it: it decides whether a long prompt can be chunked and interleaved with other requests' decoding, which directly affects tail latency. Tune it with load tests, not a number from a blog.

Multi-card deployments must respect the divisibility constraints. Attention head count must divide evenly by the tensor-parallel size, and structures with few KV heads narrow the options further; an eight-head model on three cards is refused at startup, which is geometry, not a bug. Higher parallelism adds inter-layer communication that eats part of the gain — measure whether communication has become the bottleneck before adding cards.

Where the debug switches stop being useful

Eager mode exists for troubleshooting: it skips CUDA graph capture, starts faster and behaves more directly, but steady-state decoding is usually slower. Use it temporarily to isolate a bug that only appears with graph capture, then turn it off — do not leave it in a production command. The same caution applies to any development switch or profiling endpoint found in a debugging article: check the official security docs first, because they may expose extra interfaces unsuitable for a public service.

Prefix caching has its own exceptions. If a model depends on computing the whole prompt at once, or you are evaluating probabilistic outputs and need bit-for-bit reproducibility, floating-point ordering changes from cache reuse can contaminate results and evaluation scripts will turn it off explicitly. Ordinary text generation does not need that extreme, but remember the gain depends heavily on prompt structure: a timestamp or random ID at the start of the prompt drops the hit rate to zero.

Only real vLLM flags make it into the command — a flag this page has not verified is a flag you cannot copy to production. Prefix caching saves repeated prefill work, but the hit rate is decided by where you put the stable part of the prompt.

Official references