Skip to content

vLLM engine ​

Safetensors models on NVIDIA GPUs run on vLLM 0.31.0, from the cuda agent package. What it served on one NVIDIA L40 on 25 November 2026 is on Measured on real machines.

What you need ​

  • The cuda node-agent package on the machine with the GPU, with the diffuse-cuda-runtime packages that carry PyTorch 2.13.0, Triton and the NVIDIA libraries. It carries vLLM 0.31.0, built for CUDA 13.
  • An NVIDIA driver of branch R580 or later (R580, R595; nvidia-smi shows it). Nothing else of CUDA is installed on the machine. Below R580 the agent says so when it starts and keeps vLLM off.
  • A safetensors model whose architecture vLLM supports without remote code.

The files of the machine, how to download and install them, and the sequence from an R570 driver are in Deployment: a node with an NVIDIA card. Then:

bash
nvidia-smi --query-gpu=index,name,memory.total,memory.free,driver_version --format=csv
sudo diffuse-coordinator nodes --wide

nodes --wide shows the GPU and its memory, and the engines each machine runs with their versions (vllm 0.31.0). When the agent starts, it checks what vLLM needs on its machine: an NVIDIA GPU, the driver, gcc (the package depends on it), and the cache directories vLLM writes, all under the agent's own state. When one is missing, nodes --wide says vllm 0.31.0 (unusable: <the reason>) and no vLLM deployment is placed there.

The package carries FlashInfer's precompiled kernels for sm80, sm89, sm90a, sm100a, sm103a and sm120f.

Choosing the engine ​

bash
sudo diffuse-coordinator model serve qwen3-8b-st --engine auto
--engine
auto (default)GGUF on llama-server; safetensors on vLLM where a GPU with vLLM admits the model, otherwise on the reference backend
vllmvLLM, or a refusal
llamallama-server (GGUF)
referencethe reference backend (safetensors)

An engine asked for explicitly is never replaced by another. When no machine can run it, the refusal names every machine and what it lacks:

--engine vllm: no machine in pool gpu can run it. ws-12 has no NVIDIA GPU;
ws-14 is too small: weights 16.4 GiB + KV 2.3 GiB at context 16384 = 18.7 GiB,
above 0.90 x 12.0 GiB of VRAM on 1 GPU(s). Leave --engine at auto to let the
placement choose.

How much fits ​

vLLM takes 90 % of the memory of each GPU it is given. A model fits when its weights, at the precision they are stored in, vLLM's own overhead and the KV cache of one conversation at the full context fit in 90 % of the VRAM. A machine with several GPUs uses them together for one model (tensor parallelism over 2, 4 or 8 GPUs).

vLLM pages its KV cache: what is left of that 90 % is shared by up to 64 conversations at once (--max-batch changes it). deployment show gives the size of the pool, paged, up to 64 conversations. For a hybrid model (Qwen3.5, Qwen3.8), only the full attention layers are charged a KV cache. In front of the batch is the same fair queue as on llama-server, and a 429 with Retry-After when the wait runs out or the queue is full.

Quantized models ​

fp8 checkpoints (by blocks too), compressed-tensors, awq and gptq are imported with their quantization shown in model list, and served by vLLM: --engine auto chooses it. model pull reads the repository's files and config.json before the weights, and says at once when nothing in the pool can serve the model or the disk cannot hold it.

What it serves ​

On vLLM
Chat Completions, streamed or not, n, logprobs, seedyes
ToolsQwen 2.5, 3, 3.5 and 3.8, Llama 3, Mistral. Another family: 400, param: "tools"
Reasoning (Qwen 3)in reasoning_content, or dropped with --reasoning drop
response_format (json_object, json_schema)yes
Responses APIyes, built by Diffuse over chat
Embeddingsmodels with sentence-transformers files (modules.json)

How it runs on the machine ​

  • Started by the node agent, as its own user, on 127.0.0.1 and a port picked at each start, with a new key each time, kept out of the command line.
  • Never with remote code from a model repository.
  • Nothing leaves the machine. vLLM sends usage statistics to its project by default; the agent turns that off, and turns off every access to a model hub. Request contents are not logged.
  • It is ready when vLLM answers its health check; until then the deployment is loading.
  • If vLLM exits, it is restarted, after 2 s and then up to a minute between attempts. Each restart is counted in nodes --wide (RESTARTS) and written to the audit as deployment.engine_restart.
  • deployment rm closes the requests in progress, asks vLLM to stop, stops it outright after 30 s, and returns once the machine has given back its memory and disk.
  • An answer stops when its client disconnects, when its key is revoked, and when its deployment is removed.
  • The audit records the engine and its version for the deployment and for every request.

Diffuse Enterprise is commercial software. Diffuse Open is AGPL-3.0.