It generates one token at a time
Each word depends on the last, so the model runs hundreds of times for one answer. Latency and cost scale with output length.
A plain-English field guide to hosting, adapting and running your own LLMs — what the terms really mean, where the work is, and why "just fine-tune it" is the most expensive wrong turn in enterprise AI.
It's the most common instinct — and the most expensive. The belief is that if you fine-tune a model on your documents, it "learns your business" and just knows the answers. That is not how it works, and building on that belief burns budget, underdelivers on accuracy, and locks you into a re-training treadmill.
Architecture, and why it decides your GPU bill.
Each word depends on the last, so the model runs hundreds of times for one answer. Latency and cost scale with output length.
To avoid re-reading the whole conversation each step, it caches "attention" in GPU memory. Long context = huge cache — often what actually forces you onto more GPUs.
One user barely uses a GPU. Serving many requests at once (continuous batching) is what makes cost-per-answer collapse — and why "tokens/sec for one user" is a misleading number.
vLLM, SGLang, TensorRT-LLM are specialised software whose whole job is packing memory and batching efficiently. Choosing and tuning them is the deployment work.
What it is, what it isn't, what it costs, and the data it demands.
Two peer-reviewed studies land the same verdict: models struggle to absorb new facts through fine-tuning, and retrieval beats it decisively — most of all for the niche, proprietary knowledge enterprises care about. Fine-tuning changes how the model responds; it does not reliably change what it knows.
| Method | In one line | When you'd use it |
|---|---|---|
| Full fine-tune | Retrain all weights. | Rarely. Max control, max cost — deep behaviour change with lots of data + GPUs. |
| LoRA | Train a small side-adapter; freeze the rest. | The default. Cheap, fast, swappable. 95% of enterprise fine-tuning. |
| QLoRA | LoRA + 4-bit compression of the base. | Tune a 30B+ model on a single GPU. The single-GPU default. |
| DoRA / QDoRA | A smarter LoRA (splits weight into size + direction). | When you want a bit more accuracy at the same cost — the 2026 recommended starting point. |
Retrieval and agents — how you inject knowledge without touching the weights.
An agent is just a model given tools and allowed to use them in a loop until the job's done. The tools are wired up via MCP (Model Context Protocol) — think of it as a universal adapter (a "USB-C for AI tools") so any model can safely plug into any system through one standard.
| Rung | What we do | Why this rung, not fine-tuning |
|---|---|---|
| 1 · Private inference | Host an open-weight model in the insurer's VPC. No PHI ever leaves. | HIPAA + residency solved on day one. |
| 2 · Agentic access | Agent queries the claims DB, policy rules API, and member records live — each under the adjuster's own permissions — plus searches the static policy manuals. | The "knowledge" is live and per-user. Fine-tuning could never keep balances current or enforce who sees what. |
| 3 · Targeted fine-tune | A small LoRA so every summary follows the insurer's exact adjuster-note format and house tone. | Pure behaviour/format — the one thing fine-tuning is genuinely good at. |
| 4 · LLMOps | Eval harness on real historical claims gates every change; guardrails block PII leaks; dashboards track accuracy & cost. | Makes an agentic system safe enough for a regulated insurer. |
How you get frontier-class skill at a fraction of the cost.
You use the big model not in production, but as a trainer — it produces high-quality demonstrations, and a small model learns to copy them on one narrow job. It's fine-tuning where the labels come from a smarter model instead of humans.
DeepSeek distilled its giant reasoning model into small Qwen- and Llama-based students. The result beat trying to train those small models directly, and the 7B–70B students retain a high fraction of the teacher's performance while running on modest hardware. Only the tiniest (1.5B) student drops sharply on hard multi-step tasks.
Choosing the model, the serving stack, and the operations around it.
| Option | What it is | Use it when |
|---|---|---|
| vLLM | The flexible default. Runs almost any model on almost any GPU. | Your safe starting point; multi-hardware; fast to stand up. |
| SGLang | Optimised for shared context & multi-step. ~29% faster on those. | Agentic / chat / RAG workloads — often the better pick for us. |
| TensorRT-LLM | Compiles to a specific NVIDIA GPU. 15–30% more throughput. | Max performance, stable model, NVIDIA-only, can absorb the setup. |
| NVIDIA NIM | Turnkey, vendor-supported container (SLAs, CVE patching). | Client wants a supported product, not a DIY stack (needs NVIDIA AI Enterprise licence). |
| Ollama | Dead-simple local runner. | Prototyping & developer laptops — not production scale. |
Most common. We deploy into their cloud account (AWS/Azure/GCP). No data egress, their identity & keys. This is what most vendors call "private."
Runs in their datacenter on their own GPUs. Harder: capacity planning, driver management, no cloud burst — but total physical control.
No internet at all. Model weights, updates, even patches are shipped in deliberately. Maximum security — and the least-competed, premium tier.
| GPU | Rent/hr | Good for |
|---|---|---|
| L40S | ~$0.72 | small/distilled models, single-GPU |
| A100 80G | ~$1.64 | mid-size models, RAG |
| H100 | ~$2.90 | large models, heavy batching |
Fireworks, Cohere North, NVIDIA NIM. Fast, supported, private-capable. But you rent someone's roadmap and pay per-seat/per-token.
Full DIY on open-source. Max control & lowest run-cost, but you own all the plumbing, eval and ops forever.
Proven open components (vLLM/SGLang, MCP, eval tools) wired into their infra, with our reusable IP. Their asset, no lock-in.
That sequence — in that order — is the difference between an AI programme that compounds and one that stalls. It's also exactly what Coditas is built to deliver.