Self-Hosting LLMs Doesn't Mean Free Tokens
Self-hosting an LLM does not deliver unlimited capability; it converts a per-token billing model into costs for hardware depreciation, power, facilities, and operations. This article explains the real cost structure of local inference, why memory bandwidth rather than peak compute is the main bottleneck, the trade-offs of quantization, how to plan capacity for concurrency and context length, the ongoing operational work required, and when to choose local deployment versus a cloud API. It offers decision-makers a practical framework for calculating the total cost and validating performance before scaling.
1. The Bottom Line: Local Deployment Buys Billing Freedom, Not Capability Freedom
The claim that “self-hosting a large model gives you free tokens and lets you start working immediately” is only half true—and the half it leaves out is the most expensive one.
A more accurate statement is this: local inference converts a bill based on per-token pricing into bills for hardware depreciation, electricity, facilities, and human operations. What it reliably buys is data sovereignty, control over the request path, and a cost advantage for specific workloads. It is not a free replacement for model capability, nor does it make operations effortless.
A common misconception is treating “the model weights can be downloaded” as “the capability can be copied.” Weights are only a necessary carrier of capability. Output quality is actually determined by precision, context length, sampling strategy, the scheduling efficiency of the inference engine, and server-side stability. If any one of these is compromised, the end-user experience degrades noticeably.
2. Costs Simply Move: Account for Sunk Costs
The cost structure of local deployment has three characteristics: upfront, sunk, and non-linear.
- Upfront: GPUs, servers, storage, networking, and facility upgrades must be paid for before the business generates any return.
- Sunk: Hardware depreciation cycles are often shorter than business validation cycles. One model iteration later, yesterday’s compute configuration may no longer be a good fit.
- Non-linear: Scaling concurrency from single digits to dozens usually requires not “more cards” but an architectural redesign.
A rough estimate by parameter count: a model in the 70-billion-parameter range needs about 140 GB of VRAM for weights alone at 16-bit precision. Even compressed to 4-bit quantization at roughly 40 GB, it takes two 24 GB-class consumer cards to fit—and that only gets you to “it boots.” If the goal is to approach the capability of top-tier closed-source models, the parameter count jumps to the trillion scale, and the officially recommended deployment size is often dozens of data-center-class accelerators. The accelerators alone can cost tens of millions, not yet counting facilities, liquid cooling, and power upgrades.
The online tutorials claiming “run it on a consumer card in five minutes” typically run heavily quantized versions with shortened context. Both output quality and long-task stability drop significantly.
3. The Real Bottleneck: Memory Bandwidth and the Memory Wall
The key constraint in generative inference is not peak compute but memory bandwidth. Every time a token is generated, the system reads all active weights from VRAM, so single-stream decode speed is roughly determined by “memory bandwidth ÷ bytes read per token.”
Single-stream upper bound tok/s ≈ memory bandwidth (GB/s) / bytes read per token (GB)Example: 1000 GB/s bandwidth, 40 GB weights at 4-bit → theoretical limit ~25 tok/s (excluding overhead)
This explains a counter-intuitive phenomenon: doubling compute barely changes the chat experience, while doubling bandwidth makes it noticeably faster. At the same time, autoregressive decoding is serial. Batching can raise total throughput but increases single-request latency, creating a throughput–latency trade-off.
4. Quantization Is Not a Free Lunch
Quantization significantly reduces VRAM usage, but the cost shows up in three places: precision loss, implementation differences, and long-context degradation. 4-bit quantization makes little difference on short Q&A, but problems surface more easily on tasks like mathematical reasoning, code generation, and long-document extraction. Different quantization schemes use different layer-wise strategies, so the same model can perform very differently under different implementations.
The more reliable engineering approach is to build your own small evaluation set that covers your real business distribution, and run A/B comparisons across candidate precision and context configurations—rather than copying someone else’s “it runs” conclusion.
5. Planning for Concurrency, Context, and Throughput
Capacity planning for a local service must consider three variables at once: concurrency, context length, and output length. VRAM usage is roughly “weights + KV cache,” and the KV cache grows linearly with concurrency and context. Long-context scenarios often exhaust VRAM first.
# Illustration: rough VRAM estimate (actual depends on implementation and alignment)weight_gb = params_b * bytes_per_param # 4-bit ≈ 0.5kv_gb = 2 * layers * kv_heads * head_dim * ctx_len * batch * dtype_bytes / 1e9need_gb = weight_gb + kv_gb + activation_overhead
If the estimated requirement exceeds 70% of available VRAM, prioritize shortening context, lowering concurrency, or adding cards—rather than compressing precision further.
6. Operations Are the Long-Term Ledger
A local inference service is an online system that needs ongoing care: inference framework and driver upgrades, model hot updates, canary releases and rollbacks, metrics collection, log retention, rate limiting and degradation, and failure drills—none can be skipped. Without an observability system, a single “slowdown” can take hours to diagnose.
Use the following minimal checklist to get started:
- Monitoring and alerting: time to first token, time per token, queue length, VRAM usage;
- Logging service: request sampling and error-code distribution for regression diagnosis;
- Container platform: elastic scaling and version isolation to keep upgrades from affecting production;
- Object storage: version management for models and datasets.
7. When to Self-Host and When to Use a Cloud API
Signals that favor local deployment: data residency is a hard constraint; the workload is stable and predictable over the long term; deep customization and offline environments are required; extremely high demands on path determinism.
Signals that favor a cloud API: highly variable traffic; a team without inference operations experience; a need to switch quickly among multiple model capabilities; a desire to focus effort on the business rather than compute. In practice, a hybrid architecture is more common: sensitive data stays local, elastic and long-tail traffic goes to the cloud, with a unified gateway handling routing and degradation.
8. Four Recommendations for Decision-Makers
- Calculate the total cost first: amortize three years of hardware depreciation, power, facilities, and labor per million tokens, then compare against cloud pricing.
- Validate at small scale first: use a real evaluation set to confirm precision and latency meet targets before discussing scale-up.
- Address bandwidth and cache first: when capacity is insufficient, adjust context and concurrency strategy first.
- Treat operations as a product: observability, canary releases, and rollbacks are all non-negotiable.
Self-hosting is not a free replacement for a cloud API. It is a technical choice that trades substantial upfront investment and ongoing operations for data sovereignty, determinism, and cost advantages in specific scenarios. Only by seeing the costs clearly can you talk about real freedom.
