Skip to main content

vLLM (vllm)

Production inference engine with an OpenAI compatible API: one model per installation, served on NVIDIA GPU hosts (tensor parallelism on several GPUs of a host, Ray pipeline parallelism across hosts) or on CPU hosts (x86 AVX512 or AVX2 build). Model weights are hosted on the host (Hugging Face cache or imported folders), never downloaded at start in offline mode. Registered automatically in LiteLLM.

Generated from catalog/services/vllm.yaml: do not edit by hand.

Summary​

Version0.33.0
Useinstall and configure, configure and connect
Layerfunctional (AI catalog)
CategoryAI serving
Installation methodspodman
External connectionno
Sandbox onlyno

Licence​

SPDX identifierApache-2.0
Licence policycore licence (MIT or Apache-2.0)
Licence exception-
Platform componentvllm

Packages and artifacts​

A package the project of the service publishes (its image, its binary archive, its Python or OS package) carries the licence of the service; a third-party package carries the licence written on its row, read from the official upstream metadata.

KindPackageVersionLicenceDetails
container imagedocker.io/vllm/vllm-openaiv0.33.0Apache-2.0image key vllm, used by server, ray-worker, digest sha256:d825baf9ce4b1b6bfc5ecc7b79880c7e6748c65a72d697ce3d47607aafa84c6e
container imagedocker.io/vllm/vllm-openai-cpuv0.33.0-x86_64Apache-2.0image key vllm_cpu, used by server, ray-worker, digest sha256:4154467a886f8b7ffa9dbab32f873f5ca4528409d042a6ec866e8888223263d3

Images are pinned by tag in the descriptor, and by digest when the descriptor declares one (the offline bundle then refuses a pulled image that does not carry it); the digest is recorded in the mirror of the Manager when the offline bundle is imported, and every pull or load is checked against it.

Supported systems and architectures​

MethodOperating systemsArchitectures
podmanRHEL family (dnf), Debian family (apt), Arch Linux (pacman)x86_64, aarch64 (not restricted by the descriptor)

Certified host systems: RHEL 8/9/10, Rocky Linux 8/9/10, AlmaLinux 8/9/10, Oracle Linux 8/9, CentOS Stream 9/10, Ubuntu 22.04/24.04, Debian 12, Arch Linux (rolling). The host preflight accepts these systems (other releases of a known family give a warning, end of life releases are refused) and the x86_64 and aarch64 architectures.

GPU: NVIDIA GPU given to the component as CDI devices (nvidia.com/gpu): server (when the configuration asks for it), ray-worker (when the configuration asks for it).

Prerequisites​

Host​

  • at least 8192 MB of memory (blocking, memory).
  • at least 1 NVIDIA GPU with 8000 MB of memory, only when accelerator is gpu (blocking, gpu).
  • at least 8 CPU, only when accelerator is cpu (warning, cpu_cores).
  • the program podman installed on the host (blocking, podman).
  • at least 51200 MB free for /var/lib/navin (warning, model_disk).

Programs the commands and checks of the service start on the host, outside the managed roots: add them to allowed_commands of the agent (see Security of the Navin agent), else the agent refuses them with command_not_allowed: /usr/bin/nvidia-smi, /usr/bin/podman.

Network and ports​

ComponentPort namePortOpened in the host firewall
serverapi8000/tcpyes
serverray6379/tcpyes
serverray_node6381-6382/tcpyes
serverray_workers20000-20199/tcpyes
ray-workerray_node6381-6382/tcpyes
ray-workerray_workers20000-20199/tcpyes

Services and connections needed​

This service has no dependency.

Installation methods and modes​

MethodDefaultWhat the method uses
podmanyesthe container images of the descriptor, run by Podman under systemd

Components​

ComponentKindInstallation methodsPorts
vLLM server (server)masterpodman8000/tcp, 6379/tcp, 6381-6382/tcp, 20000-20199/tcp
Ray worker (ray-worker)workerpodman6381-6382/tcp, 20000-20199/tcp

Single instance (sandbox) (single) (default)​

One engine on one CPU or GPU host.

What the mode deploys:

ComponentPlacement
servermin 1, max 1
ray-workernot used

Replicated (high availability) (replicated)​

Independent instances of the same model on distinct hosts; LiteLLM balances, retries and fails over between them.

What the mode deploys:

ComponentPlacement
servermin 2, recommended 2
ray-workernot used

Multi node (large model) (distributed)​

One large model split across GPU hosts with Ray (pipeline parallelism): one server host and Ray worker hosts. Not high availability by itself.

What the mode deploys:

ComponentPlacement
servermin 1, max 1
ray-workermin 1, recommended 1

Install this service​

The install wizard of the Navin Manager plans, validates and runs the installation; you need the services:install permission on the cluster.

  1. Open the wizard. In Clusters, choose the row action Install services of the target cluster. The wizard opens on its first step, Service.

  2. Choose the service. On the Service step, select vLLM. The card shows the licence Apache-2.0.

  3. Choose the hosts and the mode. On the Hosts step, tick the hosts, then choose the Mode: single (default), replicated, distributed. Each mode deploys the components listed in Installation methods and modes. With several components, place each one on its hosts in Component placement (Suggest placement proposes a placement that respects the cardinalities).

  4. Bindings. This service has no dependency: the Bindings step has nothing to bind.

  5. Configure. On the Configure step, review the parameters (see Configuration parameters); the required ones are model. Passwords left empty with a generated default are generated and sealed by the Manager.

  6. Review and install. On the Install step the Manager validates the plan and shows the installation order; when it says "The plan is valid. Ready to install.", choose Install. A highly available mode is installed only when its HA checks pass.

  7. Verify. The operation ends when the health checks of every instance pass (see Health checks); the service then shows as running in Services.

Connect an existing service​

Schemeshttps, http
Default port8000
Authenticationoptional
Health check/health
Authentication methodFieldsDescription
bearertokenKey of --api-key (or VLLM_API_KEY), sent as Authorization: Bearer on the OpenAI compatible API.
none-Without --api-key the OpenAI compatible API of vLLM is open to anyone who reaches it.

Official documentation: https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html

High availability​

Clusterreplicas (replication)
High availabilityredundancy (redundancy)
Failoverclient side (client)
Replicationnone (none)
Quorumnone (none)
Discoverystatic (static)
Entry pointany node (any-node)
Official documentationhttps://docs.vllm.ai/en/latest/serving/parallelism_scaling.html
Referenceshttps://docs.vllm.ai/en/latest/deployment/k8s.html, https://docs.litellm.ai/docs/routing

Prerequisites​

PrerequisiteMust be highly availableModesDescription
litellmyesreplicatedHighly available LiteLLM (two proxies or more): it balances, retries and fails over between the replicas; agents and applications never call vLLM directly.

Topology per mode​

ModesHighest catalog levelDistributionQuorum componentFault domainsDescription
singlestandalone (standalone)single (single)-1One engine on one CPU or GPU host, no fault tolerance.
replicatedha (ha)active-active (active-active)-2Independent replicas of the same model on distinct hosts, each with its own GPUs and its own copy of the weights; LiteLLM fails over between them.
distributedstandalone (standalone)single (single)-1One large model split across GPU hosts with Ray: every host is needed and the loss of one stops the model.

Notes​

  • Splitting a model across GPUs or hosts is not high availability: a critical model needs the replicated mode, or a second independent installation under the same served model name behind LiteLLM.
  • The TLS parameter protects the OpenAI compatible API of the server (with /health, /metrics and /docs). The Ray ports of the distributed mode (head, node manager, object manager and worker ports) and the NCCL traffic between the pipeline stages stay in clear text: keep the hosts of the distributed mode on a trusted internal network. The /docs page loads Swagger UI from a public CDN: on a host without Internet add --enable-offline-docs to extra_args.

Configuration parameters​

Model and hosting​

ParameterTypeDefaultAllowed valuesRequiredSecretRestartDescription
Model (model)stringQwen/Qwen3-0.6B-yesnoyesHugging Face identifier of the model (source cache, kept in the Hugging Face cache of the host below /var/lib/navin/vllm/models/hf) or folder name of imported weights below /var/lib/navin/vllm/models/local (source local).
Model source (model_source)enumcachecache, localnonoyescache: Hugging Face cache of the host (filled by the download_model command or copied); local: validated weights imported in a folder of the host.
Served model name (served_model_name)stringqwen-local^[A-Za-z0-9][A-Za-z0-9._/-]{0,127}$nonoyesModel name of the API and of the LiteLLM entry; replicas of the same model share it so that LiteLLM balances between them.
Runner (runner)enumautoauto, generate, poolingnonoyesgenerate for chat and completion models, pooling for embedding and reranking models (registered as embedding in LiteLLM).
Vision model (VLM) (vision)boolfalse-nononoThe model reads images and video (for example Qwen3-VL, or a VLM fine-tuned with LLaMA-Factory): LiteLLM declares it with supports_vision. The number of images or videos per request goes into extra_args, for example --limit-mm-per-prompt then {"image": 4, "video": 1}.
Offline (offline)booltrue-nonoyesNever download at start (HF_HUB_OFFLINE=1): the weights must already be on the host. Required for a production host without Internet.
Model repository mirror (hf_endpoint)string(empty)-nononoInternal Hugging Face compatible mirror used by download_model (HF_ENDPOINT), empty for huggingface.co.
Repository token (hf_token)password--noyesnoToken of the gated models of the repository (HF_TOKEN), optional.

CPU or GPU host​

ParameterTypeDefaultAllowed valuesRequiredSecretRestartDescription
Host type (accelerator)enumgpugpu, cpunonoyesgpu: NVIDIA GPU host (driver and NVIDIA Container Toolkit CDI specification required); cpu: x86 CPU host (AVX512 recommended), for small models and sandboxes.
GPUs (gpu_devices)stringall^(all|[A-Za-z0-9-]+(,[A-Za-z0-9-]+)*)$nonoyesGPUs given to the engine: all, or a comma list of indexes or UUIDs (dedicated GPUs of a tenant pool).
Minimum VRAM per GPU (min_gpu_memory_mb)int8000min 0, max 1048576nononoPreflight: VRAM a GPU of the host must have (MB).
CPU KV cache (cpu_kvcache_space_gb)int8min 1, max 1024nonoyesKV cache of a CPU host in GB (VLLM_CPU_KVCACHE_SPACE).
CPU cores (cpu_threads_bind)stringauto-nonoyesCores of the OpenMP threads of a CPU host (VLLM_CPU_OMP_THREADS_BIND): auto, or a range such as 0-31.

Serving and memory​

ParameterTypeDefaultAllowed valuesRequiredSecretRestartDescription
GPUs per instance (tensor_parallel_size)int1min 1, max 16nonoyesTensor parallelism: the model is split on this number of GPUs of each host. Splitting is not high availability: use the replicated mode for that.
GPU memory share (gpu_memory_utilization)float0.85min 0.1, max 0.98nonoyesShare of the VRAM of each GPU vLLM reserves for the weights and the KV cache.
Context length (max_model_len)int8192min 256, max 1048576nonoyesMaximum tokens of a request (prompt and answer).
Concurrent sequences (max_num_seqs)int128min 1, max 4096nonoyesRequests batched together by the scheduler.
Data type (dtype)enumautoauto, bfloat16, float16, float32nonoyesPrecision of the weights and activations (bfloat16 on CPU hosts).
Quantization (quantization)string(empty)^(|awq|gptq|fp8|compressed-tensors|awq_marlin|gptq_marlin)$nonoyesQuantization method of the weights, empty to detect it from the model.
Shared memory (shm_size)string8g^[0-9]+[mg]$nonoyesSize of /dev/shm of the container (tensor parallelism uses it).
Extra arguments (extra_args)list[]-nonoyesFurther vllm serve arguments, one per item (for example --enable-prefix-caching).

Multi node (Ray)​

ParameterTypeDefaultAllowed valuesRequiredSecretRestartDescription
Pipeline stages (pipeline_parallel_size)int2min 2, max 64nonoyesHosts the model is split across (server plus Ray workers); usually the number of hosts of the distributed mode. (distributed)
Ray head port (ray_port)port6379-nonoyesPort of the Ray head (GCS) on the server host. (distributed)
Ray node port (ray_node_port)port6381-nonoyesNode manager port of every Ray node (the object manager uses the next port). (distributed)
First Ray worker port (ray_worker_port_start)port20000-nonoyesFirst port of the Ray worker processes (allowed between the hosts of the service). (distributed)
Last Ray worker port (ray_worker_port_end)port20199-nonoyesLast port of the Ray worker processes. (distributed)

Network​

ParameterTypeDefaultAllowed valuesRequiredSecretRestartDescription
API port (port)port8000-nonoyesPort of the OpenAI compatible API, /health and /metrics; reached by LiteLLM only.

Security​

ParameterTypeDefaultAllowed valuesRequiredSecretRestartDescription
API key (api_key)passwordgenerated-noyesnoKey required on /v1 (VLLM_API_KEY); given to LiteLLM through the binding, never to the agents.
TLS (tls_enabled)boolfalse-nonoyesServe the OpenAI compatible API, /health, /metrics and /docs over TLS with the certificate the Manager issues to each host from its CA (--ssl-certfile, --ssl-keyfile, --ssl-ca-certs, reloaded on renewal by --enable-ssl-refresh); LiteLLM then calls the engine in https and verifies the Manager CA. The Ray ports of the distributed mode stay in clear text between the hosts of the service.
Log level (log_level)enumINFODEBUG, INFO, WARNING, ERRORnononoVerbosity of the engine log (VLLM_LOGGING_LEVEL).

Endpoints​

EndpointSchemeComponentPortPathTLS parameterBinding parametersBinding secretsProvisioning command
apihttpserver8000 (port)/v1tls_enabledmodel, mode, engine, visionapi_key-

Commands​

CommandComponentTargetDescription
Served models (models)serverevery hostLists the models every instance serves (GET /v1/models with the API key).
Download a model (download_model)serverevery hostDownloads the weights of a Hugging Face model into the cache of every host of the service (from huggingface.co or the internal mirror); then set the model parameter.
Download a model on the Ray workers (download_model_workers)ray-workerevery hostSame download on every Ray worker host of the distributed mode.
Hosted models (hosted_models)serverevery hostModels stored on every host: Hugging Face cache and imported folders, with their size.
Delete a hosted model (delete_model)serverevery hostRemoves the weights of a model that is not served any more from the cache and the imported folders of every host. (asks for confirmation)
GPU status (gpu_status)serverevery hostUsage, memory and temperature of the GPUs of every host (nvidia-smi).
Ray cluster status (ray_status)serverfirst hostNodes and resources of the Ray cluster of the distributed mode.
Recent logs (logs)serverchosen hostLast lines of the engine journal.

Command parameters​

CommandParameterTypeDefaultRequiredDescription
download_modelRepository (repo)string-yesHugging Face identifier, for example Qwen/Qwen3-8B.
download_modelRevision (revision)stringmainnoBranch, tag or commit of the validated weights.
download_model_workersRepository (repo)string-yesHugging Face identifier, for example Qwen/Qwen3-8B.
download_model_workersRevision (revision)stringmainnoBranch, tag or commit of the validated weights.
delete_modelModel (repo)string-yesHugging Face identifier (cache) or imported folder name.

Health checks​

Liveness (per instance)​

ComponentCheckDetails
serverHTTP {{ 'https' if config.tls_enabled else 'http' }}://{{ host.fqdn if config.tls_enabled else (host.ip or '127.0.0.1') }}:{{ config.port }}/healthExpected 200; 120 retries; interval 10 s; timeout 5 s
ray-workerTCP {{ host.ip or '127.0.0.1' }}:{{ config.ray_node_port }}60 retries; interval 5 s; timeout 5 s

Readiness (service check)​

CheckDetails
HTTP {{ 'https' if config.tls_enabled else 'http' }}://{{ host.fqdn if config.tls_enabled else (host.ip or '127.0.0.1') }}:{{ config.port }}/healthExpected 200; 10 retries; interval 5 s; timeout 10 s

Preflight checks​

CheckTypeMeaningSeverityComponents
memorymemory_mb {"min": 8192}at least 8192 MB of memoryblockingevery component
gpugpu {"min_count": 1, "min_memory_mb": 8000}at least 1 NVIDIA GPU with 8000 MB of memory, only when accelerator is gpublockingevery component
cpu_corescpu_count {"min": 8}at least 8 CPU, only when accelerator is cpuwarningevery component
podmanbinary {"name": "podman"}the program podman installed on the hostblockingevery component
model_diskdisk_free_mb {"path": "/var/lib/navin", "min": 51200}at least 51200 MB free for /var/lib/navinwarningevery component
api_port_freeport_free {"param": "port"}port 8000 free on the hostblockingserver

Uninstall​

Paths removed when the data is purged: {{ paths.data }}, {{ paths.log }}.

  • Metrics: {{ 'https' if config.tls_enabled else 'http' }}://{{ host.fqdn }}:{{ config.port }}/metrics
  • API documentation: {{ 'https' if config.tls_enabled else 'http' }}://{{ host.fqdn }}:{{ config.port }}/docs

Upstream documentation​