vLLM slow or hanging model downloads and loading

vLLM often looks hung during startup because it is downloading, authenticating, reading or decompressing weights. This page shows how to tell these apart and how to pre-stage weights for repeatable starts.

On this page

Why vLLM looks stuck before it serves

When vllm serve runs for a long time without opening its port or logging a ready state, the process is usually still in startup, not failed. Startup covers several stages: resolving the model reference, downloading weights if they are not local, loading the tokenizer and configuration files, reading weights into CPU and then GPU memory, and preparing graphs or kernels before the first request. Any one of these can be the slow stage, and the log output differs between them, so the first task is to find which stage the process is in rather than assuming a hang. Check the console for download progress, look at network traffic and disk writes, and watch GPU memory allocation with nvidia-smi to see whether weights are arriving on the device.

vLLM is Apache-2.0 open source with no paid edition, so waiting costs infrastructure time and operator time, not a license fee. Every minute a GPU node sits in startup is accelerator capacity that is billed but not serving, and every repeated restart multiplies that cost. The cost also grows when a team has to babysit startups by hand across several nodes. Before you decide a stall is acceptable, confirm against your installed version which startup messages it logs and at what level, since log wording changes between releases. Confirm also how your version handles download timeouts and retries, and whether it reports progress for each shard, because those answers determine how long a healthy start can take and how you should tune your probes.

Which startup stage is actually stuck

A vLLM process that looks hung before serving is usually waiting on one of a few stages: fetching weights, authenticating to a gated repository, reading files from storage, or loading tensors into memory. Each stage leaves a different trace in the logs, so the first check should follow the evidence rather than a guess.

Slow or interrupted Hugging Face download

When the model is not already on local disk, vLLM fetches weight shards from the Hugging Face Hub before it can load anything. The logs show download progress bars that stop advancing, repeated retries, or connection resets. Check whether the host can reach the Hub at all, whether a proxy or firewall is in the path, and whether the cache directory has free space for the full checkpoint. A partial download in the cache is a common reason a restart appears to hang on the same file.

vLLM installation docs

Missing or invalid access token

Gated models return an authorization error, not a slow transfer. The log shows a 401 or 403 response for the model repository, or a message that the repository is gated. Confirm that the account behind the token has accepted the model license on the Hub, then confirm that the token reaches the container as an environment variable. A token set in an interactive shell is often absent from the systemd unit, Kubernetes secret or container runtime that actually starts vLLM.

Network filesystem read latency

When weights live on NFS or another shared filesystem, each shard is read over the network and load time depends on that path. The symptom is a process that stays in the loading phase with low GPU activity and steady but slow read throughput on the host. Measure a plain sequential read of one shard outside vLLM, check mount options and client caching, and compare against a local copy of the same files. Confirm the storage team's throughput guarantees for that mount before assuming the model is broken.

vLLM online serving docs

CPU memory pressure during weight load

During loading, weights pass through host memory before they reach the accelerator, so a host with little free RAM can swap or stall. The signs are a process that slows sharply mid-load, swap activity on the node, or an out-of-memory kill recorded by the kernel rather than an error from vLLM. Check available host memory and container memory limits while the model loads, and check whether other workloads on the same node are competing for it. Raising limits or moving the load to a larger node is a host decision, not a vLLM flag.

Slow local disk on first start

On a first start, weights are read from local disk for the first time and the page cache is cold, so load time reflects raw disk speed. The logs show progress through shard files at a rate that matches the disk, not the network or the GPU. Compare first-start and second-start times on the same node: a large gap points to disk throughput or a cold cache, while similar times point elsewhere. Confirm the disk class and sustained read rate with the infrastructure team for the node pool in use.

Where the weights come from and how that changes startup

The simplest setup lets vLLM pull the model from the Hugging Face Hub the first time the server starts. The engine fetches the weight files into its cache directory, then loads them into accelerator memory. Startup time on a fresh node therefore depends on the network path to the Hub, the size of the checkpoint, and whether the node already holds files from an earlier run. Two nodes started at the same moment can end up with different cached revisions if the model repository changes between pulls, which makes this option hard to repeat exactly.

  • Repeatability: Each new node or container image rebuild repeats the download, so startup time and outcome vary with network conditions and Hub availability.
  • Revision drift: Without a pinned revision, nodes may load different weight files from the same model name.
  • Credentials: Gated models need a Hugging Face token available to the process, which places a secret in the startup environment.
  • Egress: The node must reach the Hub, which may conflict with a restricted or air-gapped network policy.
  • Cache security: The downloaded files sit in a per-user cache on the node, so file permissions on that path matter in shared hosts.

Before relying on this option in production, confirm with the vLLM version you run how the download directory and cache path are set and whether a pinned revision can be requested.

Startup options and when each one fits

This table compares the startup settings that change where vLLM reads weights and whether it reaches the Hub during load. Read each row as a decision: check the option name and behavior in the vLLM docs for your release before you rely on it, then choose the setting that matches your network and governance rules.

OptionWhen it fitsTrade-off
Local model pathWeights are already staged on a local disk or a mounted volume that every node can readStartup no longer depends on Hub reachability, but someone must copy, version and verify the files first
Hub model identifierNodes have outbound access to the Hub and you want the simplest first deploymentEach cold start can download large files, so load time depends on network speed and Hub availability
Hugging Face cache locationYou want weights on a fast local disk shared by one node's processes, or on a dedicated volume per nodeA network filesystem cache can slow reads and cause lock or corruption issues; confirm the cache variable name for your release
Download directory optionYou need a predictable path for downloaded weights that operations can monitor and back upIts path must be writable at startup and sized for every model revision you keep; confirm the flag name in your release's serve options
Offline or local-files-only modeAir-gapped or egress-restricted clusters where startup must never contact the HubAny missing file, tokenizer or config fails at startup, so every artifact must be pre-staged and tested beforehand
Access token through environment variableGated or private models that your organization has approved, with the token injected from a secrets managerTokens in plain environment files leak through logs and process listings; confirm the variable name and scope the token to read access
Load format settingCheckpoints come in a non-default format, or you need a specific loader for memory or speed reasonsThe wrong format can fail or load slowly; confirm supported formats and their memory behavior for your model and release
Tensor-parallel sizeA model is too large for one accelerator and must be split across several GPUs in one nodeEach rank reads its share of weights at startup, so peak host memory and load time rise with the number of workers; test on the target hardware

Pre-stage weights so every start is repeatable

This sequence moves model weights out of the startup path so vLLM loads from a known, verified local copy on every node, instead of fetching files during a start that can look hung.

  1. Confirm the model identifier and license terms

    The platform owner and the team that approved the model confirm the exact model identifier, revision or commit they intend to use, and the license terms attached to it. Record the identifier, revision, license name and the approver in the deployment record. Ask the model publisher or your legal team to confirm whether the license permits your intended internal use. This step is done when the record names one revision and one approver, and nobody is planning to pull the model from a moving branch.

  2. Provision a gated-model token with least access

    If the model is gated on Hugging Face, a platform administrator creates a read-only access token for a dedicated service account, not a personal account. The token should be granted only the access the model requires. Store the token in your secrets manager and inject it into the download job as an environment variable, never in a shell history or a committed file. Confirm the token can read the model by running a metadata request for the file list. The step is done when the request succeeds with the service account and the token is absent from logs and manifests.

  3. Download the snapshot to a controlled path

    Run the download once, on a job or node that has the planned disk mounted, into a fixed directory such as one the team names in its runbook. Pin the revision so the download matches the record from the first step. Keep the download on a local disk that the serving nodes can read at startup, and avoid a network filesystem for the active load path unless your storage team has tested its throughput and latency. Watch the job log for completion, not for the progress bar. The step is done when the directory contains the complete file set for the pinned revision and no partial or lock files remain.

  4. Verify files and checksums against the source

    Compare the local files with the source before anyone serves them. Use the checksums or file hashes that the model repository publishes for each file, and where the source provides none, record hashes at download time and compare them across nodes. Confirm the configuration, tokenizer and chat template files are present, because missing templates later surface as chat errors. Store the manifest next to the weights. The step is done when every file matches the source or the recorded manifest, and the manifest is stored with the deployment record.

  5. Start the server in offline mode

    Start vLLM against the local path with network access to the model hub disabled, so the process cannot fetch anything during startup. Point the model argument at the directory and set the offline environment variables your vLLM version documents for this purpose. Confirm the version and flags in the vLLM online serving documentation before the first run. Watch the log for the model load stages and the message that the server is ready to accept requests. A start that tries to reach an external host will fail here, which is the signal you want. The step is done when the ready message appears without any network retry lines.

  6. Confirm the ready log and health response

    Call the health endpoint on the serving port and confirm it returns a successful status. Send one small chat or completion request with a known prompt and check that the response is well formed. Record the time from process start to ready in the deployment record as the baseline for this node, since later changes in load time are your first sign of storage or memory trouble. Keep the probe timeouts in your orchestrator longer than this baseline. The step is done when the health check passes, the test request returns a valid response, and the baseline time is recorded.

  7. Repeat the start on a second node

    Copy the verified directory and its manifest to a second serving node by the same method, or mount the same approved path if your architecture shares it. Run the offline start on that node with the same flags and version, then repeat the health check and test request. Compare the manifest hashes on both nodes and compare the load time with the baseline. Large differences in load time or any mismatch in hashes should stop the rollout until the cause is found. The step is done when both nodes report the same manifest, the same version and flags, and comparable load times.

How the startup stages connect

The flow starts when the operator runs vllm serve, which first checks for a Hugging Face token and then looks up the model in the local cache or on the Hub. If the weights are not cached, they are downloaded to the storage volume, then read into CPU memory and transferred to the GPUs before the server reports ready. The trust boundary sits around the token, the model source and the storage volume, so each of those is a place to check for permissions, access and free space. Network filesystem and object storage paths are optional branches that change where the read happens.

Startup stages from the serve command to ready, with optional storage branches.

Security and operational risks in the model cache

Model downloads and loading touch several trust boundaries at once: the Hugging Face token, the shared weights directory, the API server's open routes and the network between nodes. Each one can expose the deployment or let bad weights reach production, so review them before you tune load times.

Scope and rotate Hugging Face tokens

A token used to pull gated models often has broader access than the one model a server needs. Create a dedicated token per environment, grant only the repositories the deployment uses, and keep it out of container images and shell history. Plan rotation and confirm with your identity team how revocation works for tokens stored in orchestration secrets. Check which account owns the token, because downloads and access requests are tied to it.

Control who writes the shared cache

A shared Hugging Face cache or download directory lets any process that can write to it replace the files a later pod loads. vLLM loads what is on disk, so tampered weights can reach production without any change to the serving image. Limit write access to the job that downloads and verifies weights, make the serving pods read-only, and record checksums of approved model directories so you can detect changes before a restart.

Keep the API key from covering every route

The vLLM security docs state that --api-key protects the /v1, /v2, /inference and /cohere endpoints, but not /invocations, /pause, /resume, /abort_requests, /metrics or /health. A deployment that sets an API key may still expose pause and abort controls and metrics to anyone who can reach the port. Put a reverse proxy in front that allowlists only the paths users need, and block the control routes from user networks.

vLLM security docs

Restrict egress from the download host

Weight downloads usually need outbound access to the model hub, and a node with broad egress can fetch from any host an attacker chooses. Allow only the hub hosts and internal mirrors the deployment uses, and log outbound requests from the serving nodes. Confirm with your network team whether air-gapped sites will mirror weights in advance, and whether the offline documentation option applies to your setup.

Isolate inter-node traffic

The vLLM security docs state that communication between nodes in a multi-node deployment is insecure by default, with no authorization or encryption. A node that loads weights over the cluster network can be impersonated or observed by anything else on that network. Place the nodes on an isolated network segment, restrict which hosts can reach the distributed backend ports, and confirm the segment policy before a multi-node load begins.

vLLM security docs

Questions teams ask before fixing or outsourcing model loading

How long should a first vLLM start take?

No supplied figure gives a fixed duration, so the honest answer is that a first start depends on model size, download speed, and how fast the disk and CPU memory can read the weights. A first start that includes a Hugging Face download adds the full transfer time of every weight file, while a later start that reads from a local cache skips that step. Measure the time for your own model on your own hardware and storage, then record it as the baseline. Use that baseline to set probe timeouts and to decide whether the next start is abnormal. Confirm the expected figures with your hardware vendor and with the model's own documentation before you set any alert threshold.

Is a slow vLLM start a vLLM bug or a storage problem?

In most cases a slow or stalled start traces to the path the weights take, not to the engine itself. Check the download progress, the network route to the model host, the throughput of the volume that holds the cache, and whether the process is reading from a network filesystem. Then check CPU memory during load, since a host that swaps or is short on RAM can look hung. Only after those checks come back clean should you suspect an engine defect, and then you should gather logs and versions for an upstream issue. The vLLM online serving docs are the right next read for the startup flags that affect loading.

What does the work need from our team?

The work needs access to the GPU hosts, the container runtime or service manager, the network path to any model registry, and the storage systems that hold the Hugging Face cache or any shared model directory. It also needs someone who can approve a token for gated models and who understands the access policy for that token. Expect a platform or infrastructure engineer to own the storage and network checks, and an engineer who runs vLLM to own the startup flags and the test prompts. Name these owners before the work starts so nobody waits on an unlisted approval.

Can one internal engineer fix model loading alone?

One engineer with the right access can diagnose many loading problems alone, especially a single host with a clear download error or a wrong token. The work gets harder when several nodes share a network filesystem, when weights must be consistent across nodes, or when security review must approve how credentials and caches are stored. Decide early whether one person can cover the diagnosis, the storage change, and the evidence for your change record. If that person is also on call for production inference, plan for coverage gaps. A partner can take the diagnosis or the pre-staging build while your engineer keeps ownership of the running service.

What does a pre-staging project include, and what drives its cost?

A pre-staging project usually covers choosing where weights live, downloading and verifying each model revision, placing them on the agreed storage, setting the cache and download directory options, and writing a startup runbook. Cost comes from people, not from the engine, because vLLM has no paid edition. The main drivers are the number of models and nodes, the storage platform you already run, the token and access approvals required, and how much of the startup path must be tested. One-time work includes the initial build and the first verified start. Recurring work includes re-staging when you change a model revision and keeping the runbook current. Ask for each cost component to be listed separately.

What should a quote for this work include?

A useful quote lists the systems in scope, including each GPU host, storage system, and model family, and it names the deliverables in writing. Ask for the diagnostic steps, the change to the cache or download directory, the verification method, and the runbook or handover document. Ask who performs each task, what access they need, and which tasks depend on your approvals. Also ask what happens if a model revision changes mid-project, and what the retest covers. Request the exclusions too, such as hardware replacement, storage redesign, or token policy changes, so the price reflects only what you actually need.

When does a fixed-scope engagement fit this work?

A fixed-scope engagement fits when the systems, models, and deliverables are clear enough to write down before work starts. Diagnosing one slow start on one host, or pre-staging a defined set of models onto one storage platform, usually scopes well. It fits less well when the target architecture is still undecided or when many teams will change their requirements during the project. DeployOpen plans, implements and documents self-hosted platforms inside your own infrastructure, and most engagements are fixed-scope with written scope, deliverables, and timelines agreed in advance. Ongoing support and upgrades can follow as a retainer once the first start is stable.

Do we need to re-stage weights after every vLLM release?

Not necessarily. vLLM ships new minor releases about every two weeks, for example v0.28.0 on August 26, v0.29.0 on September 9, v0.30.0 on September 22 and v0.31.0 on October 5, 2026, according to the vLLM GitHub releases. A new engine release does not automatically change the weight files, but it can change which model formats, chat templates, or loading behavior your models need. Test each planned engine upgrade against the staged weights before it reaches production. Confirm the compatibility notes in each release with your own model list before you plan a re-stage.

What a DeployOpen engagement on model loading covers

A DeployOpen engagement on model loading starts with a review of how the current vLLM server reaches its weights. We read the startup logs to see whether the delay is spent resolving the model from the Hugging Face Hub, waiting on a gated model token, copying files over a network filesystem, or moving tensors into CPU memory before they reach the GPU. We also inspect the storage path itself: where the Hugging Face cache lives, which download-dir value the server uses, whether each node sees the same files, and what the container can read and write. The output of this review is a written finding for each stage of startup, so the team knows which delay belongs to which cause before any change is made.

From that review we design a pre-staging layout. This covers where weights are copied once, how each node reads them from a local disk or an agreed shared volume, how token handling works for gated models, and how the server is pointed at local paths so it does not contact the Hub at startup. We then implement the offline start, usually with the offline mode controls supplied for air-gapped or restricted networks, and verify it with repeated cold starts on each node. Verification records load duration, memory use during load and any residual network calls, so the client can compare results against its own targets. Confirm with your vLLM version which offline and cache settings it supports, since these details change between releases.

The engagement ends with a runbook that names the owner of each weight artifact, the procedure for adding a model, rotating a token and clearing a stale cache, and the checks to run after a node restart. Because vLLM ships new minor releases about every two weeks, we also include a retest after any upgrade, since loader behavior and cache layout can change between versions. Engagements are fixed-scope: deliverables, environments covered and the verification steps are agreed in writing before work starts. A quote follows from that written scope. DeployOpen does not publish a price list, so cost depends on how many nodes, model families and storage backends the scope covers.

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.