vLLM startup time: CUDA graphs, compilation and enforce-eager

A vLLM server can take minutes to become ready because it loads weights, compiles and captures GPU graphs, and allocates KV cache. This page explains the trade-offs and how startup time should shape probes and autoscaling.

On this page

Why vLLM startup time matters before you go live

A new vLLM server can take minutes before it accepts traffic, and during that window the readiness probe fails, the load balancer has nothing to route to, and an autoscaler may keep adding replicas that are still warming up. The startup delay comes from three stages: loading model weights into accelerator memory, compiling the model graph, and capturing CUDA graphs for the batch sizes the server expects to run. The main control is the trade-off between those optimizations and enforce-eager, which skips graph capture and compilation to start faster at the cost of steady-state decode speed. Before go-live, the team should measure the actual time from process start to a healthy response on the exact image, model and accelerator they will run, because that number drives every probe and scaling decision that follows.

The server gives you little to work with at startup. A process that has not finished loading returns no useful answer on the health and API routes, and the vLLM metrics at /metrics only become meaningful once the engine is serving. That means the readiness signal your platform depends on is whatever you configure around the process, so you need to decide which endpoint marks the pod ready and confirm in your environment that it stays unavailable until the engine can generate tokens. The vLLM Kubernetes guide makes the related point that a startup or readiness failure threshold set too low can cause Kubernetes to restart a container that is still starting, and it suggests measuring startup time without probes first. Use that measurement as the baseline for thresholds rather than a guess.

Startup options and when each fits

This table compares the default compiled path with CUDA graphs against enforce-eager and related optimization level settings. Read each row for what the option skips, what it adds to startup, what it costs at runtime, and the workload it suits. Confirm exact flag names and defaults for your pinned vLLM version in the vLLM docs before you rely on them.

OptionWhat it skips and what it costsRuntime effectWorkload where it fits
Default compiled path with CUDA graphsSkips nothing. Startup pays for torch compilation and capturing CUDA graphs for a set of batch sizes, which is the main reason a server takes minutes to become ready.Lowest per-token overhead for decode, because captured graphs replay with less CPU launch cost.Steady production serving where the server runs for long periods and startup happens rarely.
Enforce-eager modeSkips torch compilation and CUDA graph capture, so startup is shorter and easier to debug.Higher per-step CPU overhead and usually lower decode throughput than the graph path.Development, debugging, new model bring-up and short-lived test servers where start speed matters more than peak speed.
Reduced optimization levelsSkips some compilation passes or fusions but keeps the general approach. Confirm the level names and what each level includes in the docs for your version.Performance falls between the default path and eager mode, and the gap depends on the model and hardware.Teams that hit a compilation failure on a new model or hardware and need a working server before a full fix.
Cached compilation artifactsReuses compiled artifacts from an earlier start on the same software and hardware, so repeat starts skip some work. Confirm the cache location and invalidation rules for your version.No runtime cost once the server is up, as long as the cache is valid.Pods restarted often on the same image and node type, where the first start is paid once.
Pre-baked images or warm volumesMoves compilation and cache creation out of the pod start path, so the server only loads weights and reads cached artifacts.No runtime cost. The cost moves to image build time and storage for the cache.Autoscaled or rolling-update deployments where new replicas must become ready quickly.
Changing the set of captured batch sizesNarrows or widens which batch sizes get graphs captured. Fewer sizes shorten capture but can push some batch sizes onto slower paths.Throughput changes at batch sizes that fall outside the captured set. Measure with your real concurrency.Workloads with a narrow, predictable concurrency range, where capture time is a bottleneck.

Choosing enforce-eager by environment

On a developer workstation or a shared test box, the cost of a slow start is paid many times a day, while peak serving speed matters little. Enforce-eager skips graph capture, so the server becomes ready sooner and failures in the model code surface with clearer tracebacks. That makes it a practical default while you are still changing flags, chat templates or model paths.

  • Restart frequency: Count how many times you restart the server in a typical session. Frequent restarts favor eager mode.
  • Error visibility: Eager execution makes it easier to see which layer or operation fails during loading or the first request.
  • Throughput checks: Do not judge batching or latency settings in this mode, because the numbers will not reflect production graph execution.
  • Compilation cache: Compare cold and warm starts with the default settings so you know what the workstation saves.
  • Switch-over: Keep a separate configuration for benchmarking so the development setting does not leak into release.

Before you rely on this setup, confirm which options your vLLM version exposes for eager execution and compilation, because flag names change between releases.

How to measure startup time before setting probes

This sequence produces measured startup numbers for your model, hardware and parallel layout, so probe thresholds and autoscaling assumptions rest on evidence rather than guesses.

  1. Pin the vLLM version and image

    The platform team records the exact vLLM version, container image digest, CUDA or ROCm runtime and model revision before any timing run. Startup behavior changes between releases, so a number measured on one version does not carry over to another. Check the release notes for the version you pin and confirm the image tag resolves to the same digest on every node. The step is done when a single written record lists version, image, driver, model and weights source, and that record is attached to the test ticket.

  2. Start the server without probes

    The engineer starts vllm serve with the target model, tensor and pipeline parallel sizes, and the exact flags planned for production, but with no liveness, readiness or startup probes attached. The vLLM Kubernetes guide advises measuring startup time without probes first, because a probe whose failure threshold is too low can cause Kubernetes to restart a container that is still loading. Run the same command in a plain container or on a bare host. The step is done when the process reaches a serving state and logs show the optimization path it took.

  3. Record time to first healthy response

    Using a script outside the server, poll the /health endpoint once per second and log the time from process start to the first successful response. Then send one short completion request to the OpenAI-compatible endpoint and record the time to a valid answer, which catches cases where the health check passes before the model can generate. Keep the timer and the poll interval in the record. The step is done when both timestamps are saved alongside the version record from the first step.

  4. Repeat across cold and warm caches

    Run the startup test at least twice from a cold state, with model weights not yet on the node and no compiled artifacts cached, and then again with weights and compilation caches already present. Record each run separately, because first-time compilation and weight download can dominate the cold figure while the warm figure shows the steady restart cost. Confirm that a node reboot or pod reschedule reproduces the warm result. The step is done when the cold and warm runs are recorded with their cache state described, and the spread between repeated runs is written down.

  5. Compare optimization levels and enforce-eager

    Repeat the timed startup with the optimization level and CUDA graph settings you are considering, including a run with enforce-eager, which skips CUDA graph capture. Compare the startup difference against the throughput and latency you measured or plan to measure for the workload, since skipping graph capture usually shortens startup but can reduce steady-state performance. Confirm the setting on the running server through its logs. The step is done when you have a table of startup time against each setting and a stated choice for production, with the reason written beside it.

  6. Set probe thresholds from measured times

    Using the worst recorded warm and cold times, the platform engineer sets the startup probe so the failure window comfortably covers the slowest measured start, then sets readiness and liveness probes to act only after startup succeeds. Leave margin for node variation and for the model growing or the image changing. Ask the team that owns the cluster to confirm the threshold math against their probe policy. The step is done when the probe values are in the manifest, each traced to a named measurement in the record, and a test deployment starts without a restart loop.

  7. Feed startup time into autoscaling

    The capacity owner uses the measured warm start time as the lag between a scale-out decision and a server that can take traffic, and checks that the autoscaler's stabilization and cooldown settings are longer than that lag. Ask the autoscaling owner to confirm which signal triggers scale-out and whether new replicas receive traffic only after readiness passes. The step is done when the expected scale-out lag is written in the capacity plan and a scale-up test shows new pods reaching ready within the measured window.

How startup phases gate Kubernetes readiness and autoscaling

The pod starts the vLLM server, which loads weights, profiles memory, allocates the KV cache, then compiles and captures CUDA graphs before the endpoint can serve. The startup probe should cover that whole window, while the readiness probe decides when traffic is routed. Check whether a failed startup threshold restarts the container before the server finishes, because that restart loop is the most common failure in this sequence. Also confirm when the autoscaler counts a new replica as capacity.

Startup phases, probe checkpoints and the restart path on Kubernetes.

How startup time affects probes and autoscaling

A short failure threshold on a liveness or readiness probe can restart a vLLM container that is still working. During startup the server loads weights, compiles and captures CUDA graphs unless enforce-eager is set, and only then answers requests. If the probe gives up before that finishes, Kubernetes restarts the container, which starts the work again and can loop indefinitely. The vLLM Kubernetes guide warns about exactly this failure and suggests measuring startup time without probes first. Run several cold starts on the target GPU type, with the same model, image, flags and node image, and record the slowest one. Startup time also changes with the model, the compilation cache state and the node's disk and network speed for pulling weights, so a single measurement on a warm node is not enough.

Put that measured worst case into a startup probe, with headroom for slower nodes, and keep the liveness probe from firing until the startup probe has succeeded. Use the readiness probe to control traffic, not to hide slow starts. Confirm in your own cluster how your probe settings, restart policy and any admission or GitOps tooling interact, because defaults and overrides differ between distributions and charts. Then check the autoscaler. A new replica takes the full startup time before it can serve, so a scale-out triggered when queues are already long will arrive too late. Set triggers on signals that rise before saturation, such as queue depth or running requests from the vLLM metrics, and keep warm replicas or a minimum count large enough for expected spikes. Confirm the scale-out delay your autoscaler and node provisioner actually produce, including time to acquire a new GPU node, before you accept an SLO.

Treat startup time as a number you own and retest. Each change to the model, vLLM release, compilation settings or node class can move it, so repeat the cold-start measurement after upgrades and record the result next to the probe values. If a deployment changes often, decide whether the startup cost is worth paying on every replica or whether fewer, longer-lived replicas serve the workload better.

Security and operational considerations during startup

A vLLM server that is still starting is not yet serving users, but it still exposes endpoints, writes artifacts and talks to other nodes. The cards below cover the exposure and provenance questions that come up while startup time is being measured and tuned, so that the speed work does not open new gaps.

Allowlist health and metrics endpoints

The --api-key option does not protect /health or /metrics, and the probes that gate startup usually call /health. Scrape and probe traffic should reach those paths on the pod network, while the reverse proxy exposes only the /v1 endpoints users need. Confirm that the proxy rules match the endpoint list in the vLLM security guide for your version, and that /metrics is not reachable from user networks, since it reveals request volume and KV cache use.

vLLM security guide

Protect cache and compiled artifacts

Compilation and CUDA graph capture write artifacts to cache directories, and a shared volume means one pod's output can be read or replaced by another. Treat these directories as code: restrict write access to the serving identity, keep them per model and per vLLM version, and record which artifact a node loaded. Ask your platform team whether the cache location is on node-local storage or a shared volume before you enable reuse across replicas.

Pin image and model provenance

Startup time is only comparable between runs when the image, vLLM version, model revision and accelerator driver match. Pin the container image by digest, pin the model weights to a recorded revision, and store the checksums in your change record. A new release can alter compilation behavior, so a startup measurement without these pins cannot be reproduced later. Confirm the release notes for the version you deploy before you accept a changed startup profile.

vLLM releases

Isolate multi-node startup traffic

In a multi-node deployment, the nodes exchange traffic during startup, and the vLLM security guide states that this communication is insecure by default, without authorization or encryption. Place the nodes on an isolated network segment, restrict the ports between them with network policy, and keep that traffic off the user-facing network. Ask the platform team to confirm this boundary before a multi-node pod is scheduled.

Log startup phases for audit

When a server takes minutes to become ready, operators need to know which phase it is in: weight loading, compilation, CUDA graph capture or the final readiness check. Capture those log lines with timestamps, the image digest and the startup flags, and retain them with your other platform logs. These records explain a slow or failed start after the fact and show when a configuration changed, which auditors and incident responders both ask for.

Re-measure after each upgrade

An upgrade can change how the engine compiles, which graphs it captures and how long readiness takes, so a probe that passed last quarter may now restart the container. Repeat the startup measurement on a staging cluster with the same flags before rolling out, and compare it with the baseline. Update the probe thresholds in the same change, so that the new startup profile is never judged against an old timeout.

Questions teams ask about vLLM startup time

Why does a vLLM server take several minutes to become ready?

Startup is slow because vLLM does work before it accepts traffic. It loads the model weights into GPU memory, profiles memory use with a dummy forward pass, sizes the KV cache, and then prepares the execution path. Depending on settings, that preparation includes torch.compile graph compilation and capturing CUDA graphs for a set of batch sizes. Each step costs time, and the total grows with model size, the number of GPUs, the tensor parallel layout and the number of batch sizes captured. Measure the phases in your own environment on your own hardware and image, because the split between loading, compilation and capture varies with the setup. Compilation results may also be cached between runs, so a first start on a new image and a later restart can differ a lot.

Is enforce-eager safe to run in production?

Enforce-eager disables CUDA graph capture and compiled execution, so vLLM starts faster but runs decode steps with more kernel launch overhead. It is a valid choice when startup time is the binding constraint, for example on a development cluster, during short-lived test runs, or on a model where graph capture fails. Whether it is acceptable in production depends on measured latency and throughput for your workload, not on the flag alone. Benchmark both modes with the same model, prompts and concurrency, and compare time to first token and time per output token. Confirm the current behavior and trade-offs for your vLLM version in the vLLM documentation before you decide, since optimization defaults change between releases.

Which settings change how long vLLM takes to start?

Several settings and environment factors move startup time:

  • Model size, precision and the number of weight shards that must be read from storage
  • Tensor and pipeline parallel sizes, which add worker processes and communication setup
  • The optimization level and whether CUDA graphs are captured, and for which batch sizes
  • Enforce-eager, which skips graph capture
  • Compilation cache availability, which determines whether compiled artifacts are reused
  • Storage throughput for model weights and the network path for pulling images or weights

Changes to these settings can shift readiness by a large margin, so record the baseline before changing any of them. Confirm the names and defaults of the relevant options against the vLLM release you run.

How should startup and readiness probes be set for vLLM on Kubernetes?

Set the startup probe to allow for the full measured startup time with margin, and keep the readiness and liveness probes from firing until the startup probe succeeds. If the failure threshold is too low, Kubernetes restarts the container before vLLM finishes loading, and the pod enters a restart loop. The vLLM Kubernetes guide suggests measuring startup time without probes first, which gives you a real number to build on. Then tune the period and failure threshold for your cluster, and review them after each vLLM upgrade, because compilation and capture behavior can change between releases. Test a cold start on a new node and a warm start on an existing one, since the two can differ.

Can our own platform team tune vLLM startup time without outside help?

Often yes, if your team already operates GPU workloads on Kubernetes and can run controlled benchmarks. The work involves setting up a repeatable cold-start test, changing one setting at a time, measuring readiness and serving latency, and documenting the result for each model and hardware pair. It becomes harder when the model uses unusual architecture, when multi-node parallelism is involved, or when the same settings must hold across several GPU types and vLLM releases. Assess whether your team has the GPU, scheduling and benchmarking time to repeat this after each upgrade.

What does outside help cover for vLLM startup tuning, and what does it cost?

Outside help typically covers measuring baseline startup, setting probes, comparing optimization levels against latency and throughput targets, documenting the chosen settings and handing over a runbook. Cost depends on the written scope: the number of models, hardware types, cluster environments, parallelism layouts and whether benchmarks and retests are included. Costs have two sides. Implementation work is a one-time fee, while ongoing upgrade testing and monitoring can be a recurring retainer. DeployOpen does not publish a price list. Ask for a quote built from a written scope that names the models, hardware, environments, deliverables and timeline, and agree on how results will be verified before work starts.

What does the work need from our cluster and GPU staff?

The work needs time and access from people who run your GPU nodes and Kubernetes clusters. Expect to provide a non-production cluster or a window on production-like hardware, access to the container images and model storage, and the probe and deployment manifests in use. Your GPU staff should confirm driver and CUDA versions, node pools, scheduling rules and any autoscaling policies, and should review changes before they reach production. Agree on who approves setting changes, who owns the rollback and who receives the benchmark results. Confirm the exact access and hardware needs during scoping, since they depend on your environment.

How DeployOpen scopes and supports vLLM startup work

DeployOpen treats vLLM startup time as a measured engineering item: the team first records how long each start takes on your hardware, then sets compilation, CUDA graph and enforce-eager choices and probe thresholds against that data. The work runs inside your own infrastructure, and the written scope defines what is measured, changed and handed over.

How we scope

  • Inventory the target GPUs, driver and CUDA versions, vLLM release, model and the replica counts your autoscaler must start.
  • Agree in writing whether the scope covers startup measurement, optimization-level selection, probe tuning or all three.
  • Define the acceptance measure, such as observed time to ready per model and per GPU type, before any settings change.
  • Confirm the Kubernetes distribution, deployment method and any autoscaling tooling that depends on readiness.

How we build

  • Measure cold start without probes first, following the vLLM Kubernetes guidance, and record each phase of startup.
  • Compare the default optimization level with enforce-eager on your workload and document the latency and startup trade-off.
  • Set startup and readiness probe thresholds from the measured times, with headroom for slower nodes and image pulls.
  • Test restarts, node replacement and scale-out events to confirm that probes do not kill healthy pods during warm-up.

How we hand over

  • Deliver the chosen flags, probe definitions and autoscaler settings as version-controlled configuration with a change log.
  • Write a runbook that explains each startup phase, the expected ready time and the signs that a start has stalled.
  • Record the measurement method so your team can repeat it after a vLLM release or hardware change.
  • Walk your platform and inference engineers through the configuration and the rollback path before sign-off.

How we support

  • Retest startup time after each vLLM release you adopt, since compilation and graph behavior can change between versions.
  • Review probe thresholds and autoscaling behavior when models, GPU types or cluster configuration change.
  • Offer ongoing support, upgrades and continuous testing as a retainer if your team wants a standing partner.
  • Re-run the measurement set when your startup-time targets change, and report the differences to your team.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.