tonytautai home/local-ai/run-local-ai/software/tools/cli/vllm

./vllm --serve

vllm When Many Users Hit One Server.

A vllm production deployment makes sense when a queue of users waits on one graphics card. It batches cleverly, it is demanding about hardware and formats, and for a single user it is the wrong tool.

Tony Tautai

vllm production deployment

The engines that run a model on a laptop handle one request at a time, well. A department does not send one request at a time. It sends thirty, in bursts, and a single-user engine serves them in a line while the card sits mostly idle. vllm was built for the other situation, and it is the server-class option in where command line tools for local ai fits.

What It Does Differently

vllm production deployment

Two things, mainly. It batches requests continuously, adding new ones into the running batch as others finish, so the card is always full. And it manages the memory for each request's context in small pages rather than one fixed block, so many more conversations fit at once. The effect is that total throughput on one card rises sharply, even though any single request is no faster, and often a little slower, than on a lean engine.

What It Wants

A proper data-centre or high-end card, with the vendor's compute stack installed. Model files in the full-precision or server-oriented quantised formats, not the laptop format most people have downloaded. A Python environment and a tolerance for dependency versions. And a machine that stays on. It runs on consumer cards for testing but comes into its own on the kind of hardware a company buys on purpose.

Deploying It Properly

vllm production deployment

Run it as a service with a fixed model and fixed settings, behind a reverse proxy that adds authentication and TLS. Set the maximum context and the maximum concurrent sequences from the memory you measured, not from the defaults. Load-test with a script that sends realistic bursts before anyone depends on it. Watch queue length and memory; when either climbs steadily, you need a second card or a smaller model. Pin the version and the model file and change them on a schedule, because an unplanned update on a server thirty people use is an incident, not a maintenance task.

When It Is Overkill

One developer, one appliance, a batch job that runs overnight: the lean engine documented in a closer look at llama.cpp guide is simpler, lighter and easier to audit. A small team on one machine without data-centre hardware: the runner in a closer look at ollama local llm guide is enough until the queue appears. We use the throughput server ourselves for evaluating models at scale, where we must push thousands of documents through quickly; on a customer's appliance, processing a day's files in a nightly batch, we do not need it.

The test is the queue. If nobody waits, you do not need a throughput server, however impressive its numbers on paper.

vllm production deployment

ssh [email protected]

Prove it on your documents.

Every engagement starts the same way: we run the system on a sample of your own files, under NDA/DPA, and hand you a written report with the scores, misses included. No commitment.

Test it on my documents Request a diagnostic