The demo takes twenty minutes. You pull a model, start a server, and ask it a question. It answers, and everyone in the room nods.
The part that comes next is the actual project: authentication, logging, backups, upgrades, monitoring, and a person who gets called when the model stops answering on a Sunday. Self-hosted AI is not a model you install. It is a small platform you now operate.
What the stack includes
A model server. The process that loads the weights and answers requests. vLLM is the one I use for GPU serving because it exposes an OpenAI-compatible endpoint, which keeps the application code identical whether the model is local or hosted.
A model and a quantization. The weights plus the numeric format they run in. Quantization trades a small amount of quality for a large amount of memory. A 30B model in NVFP4 fits comfortably in 128GB of unified memory. The same model at higher precision may not.
A document store and an index. If the workflow needs to retrieve from files, something has to hold the files and something has to search them. That is a second system with its own backup and permission model.
Identity and access. Who can call the model, from which application, with which token. A self-hosted endpoint with no authentication is an open proxy inside your network.
Logging. Every request, the model that served it, the latency, the token count, and the outcome. Without this, you cannot debug a bad answer or prove what happened.
A supervisor. Something that restarts the service when it dies and tells a person when it keeps dying.
A backup and a restore procedure. Model weights can be re-downloaded. Configuration, prompts, and indexes usually cannot. Test the restore before you need it.
The serving configuration matters more than the model name
A working example from my own setup, serving a 30B-class model with vLLM:
podman run --rm --name local-vllm \
--device nvidia.com/gpu=all --ipc=host \
-p 127.0.0.1:8100:8000 \
-v /models/main:/models/main:ro \
docker.io/vllm/vllm-openai:latest \
--model /models/main --served-model-name local-30b \
--kv-cache-dtype fp8 --enable-prefix-caching \
--gpu-memory-utilization 0.70 --max-num-seqs 16
Four flags carry most of the operational risk.
--gpu-memory-utilization 0.70 leaves headroom for the host. On a unified-memory machine, an aggressive value causes the engine to die under load, and it takes the agent session with it. Start low.
--max-num-seqs 16 caps concurrent sequences so the KV cache cannot grow without limit when several agent loops run at once.
--enable-prefix-caching reuses the shared prefix across requests. It is the local equivalent of prompt caching, and it matters for the same reason.
127.0.0.1 binds the server to loopback. It is not reachable from the network unless something explicitly proxies it, which is the correct default.
The four things that break
Memory contention
The model, the document index, and whatever else runs on the machine compete for the same memory. A backup job or a browser session can push the model out and cause an allocation failure. Give the model its own machine or its own memory budget, and monitor it.
A silent model swap
Someone updates the served model name or pulls a new tag, and the application keeps calling the old name. Requests fail or, worse, a different model answers and quality changes without a test. Pin the model version, and treat an upgrade as a change with an evaluation run.
An upgrade that breaks the API
The serving framework changes a flag or a response shape, and the client breaks. This is ordinary software maintenance, except the client is an AI workflow that may fail quietly. Version the server, test in staging, and keep the previous container image.
No owner
The most common failure is organizational. The machine works until the person who set it up changes jobs. Then nobody knows the flags, the model path, or the restart procedure. Documentation and a named owner are part of the deployment, not an afterthought.
A self-hosted checklist
- The endpoint is bound to loopback and reachable only through an authenticated proxy.
- The model version is pinned, and an upgrade requires an evaluation run.
- GPU memory utilization leaves headroom for the host.
- Concurrent sequences are capped.
- Prefix caching is enabled for repeated workloads.
- Every request is logged with model, latency, tokens, and outcome.
- A supervisor restarts the service, and a person is alerted after repeated failures.
- Configuration, prompts, and indexes are backed up, and a restore has been tested.
- The operating system, CUDA stack, and serving framework have a patch calendar.
- A named person owns all of the above.
Ten items. Most home-grown deployments are missing six of them.
What it costs to keep running
The hardware is a capital cost. The operating cost is attention: patching, monitoring, evaluating upgrades, and answering the page. In my own deployment, one Hermes upgrade moved the platform from version 0.15.1 to 0.16.0 with 426 commits. That is a normal release cycle for a fast-moving agent framework, and it required a review before the system went back into production.
A company that cannot staff that attention should use a private tenancy or a hosted model. The self-hosted path is not wrong. It is a commitment.
When self-hosting is the right call
The data cannot leave. A legal, medical, or defense workflow where the file is not allowed to cross the network boundary.
The volume is high and stable. A fixed machine beats a metered API when the workload is predictable and large.
The workflow needs a custom model or a custom prompt stack that a vendor will not host. Rare, but real in manufacturing and specialized extraction.
Availability is part of the product. The workflow cannot stop when an external API has an outage.
When it is not
The team has no operations owner. A self-hosted model with no owner is a liability.
The workload needs frontier reasoning. A 30B model is useful. It is not a frontier model, and pretending otherwise wastes everyone's time.
The volume is low. Idle hardware is expensive hardware.
Related
- Private AI for business: where self-hosting fits among four configurations.
- On-premise AI: the hardware and facilities side.
- Local AI models: what fits in memory and what to test.
- AI agent security: permissions and logs for the workload on top.
- What private AI costs: the four budget lines.
Questions owners ask
At low volume, no. At high, stable volume, sometimes. The comparison has to include the operations time, the replacement cycle, and the cost of the person who owns it. Price per token alone will mislead you.
No. A single machine with a supervised container is a legitimate production deployment for one workflow. Add orchestration when you have several machines and a reason.
A CPU-only server can run small models slowly. For useful throughput on a 30B model, you need a GPU with enough memory. Check the memory requirement before the purchase.
Pin the version, keep the previous image, run the evaluation set against the new one in staging, and switch only after it passes. Treat it like any other dependency upgrade.
Back up configuration, prompts, indexes, and evaluation sets. Weights can be re-downloaded. The rest is your intellectual property.

