Skip to content

vllm.entrypoints.cli.preload

The preload subcommand for the vLLM CLI.

Launches one weight cache daemon per GPU; each daemon holds the post-quantized, TP-sharded weights of its rank in GPU memory and serves GPU IPC handles to vLLM engines over a Unix domain socket, so restarting engines can map the weights via zero-copy IPC instead of reloading from disk. The VMM backend uses CUDA/HIP VMM allocations on Linux:

vllm preload --model /path/to/model --tensor-parallel-size 4

Engines then load from the daemons with:

vllm serve /path/to/model --tensor-parallel-size 4 --load-format ipc_cache

Tensor, expert and data parallelism are supported, including across nodes; see vllm/model_executor/model_loader/weight_cache/daemon.py for the rank layout and rendezvous details.

A second replica's daemons can instead pull their weights from a loaded replica (--weight-cache-seed); see docs/features/preload.md.

Classes:

PreloadSubcommand

Bases: CLISubcommand

The preload subcommand for the vLLM CLI.

_validate_seed_args(args, *, world_size, num_groups, nnodes, local_world_size, addresses)

Validate the seed CLI options before any daemon spawns.