Self-Hosting LLMs Does Not Mean Token Freedom

    Self-hosting an open model is often treated as a shortcut to unlimited, free tokens. This article explains why that assumption is only half true: local deployment can remove per-token billing, but it does not automatically deliver model capability or operational simplicity. It covers the real cost shift from variable spend to upfront hardware and staffing, the memory bandwidth bottleneck that governs decoding speed, the tradeoffs of quantization, the underestimated operations burden, and a practical framework for deciding when local deployment is worthwhile versus a hybrid local-plus-cloud architecture.

    Many people assume that self-hosting a large language model means achieving “token freedom” and getting straight to work. Is that really true?

    That judgment is only half right, and the half it leaves out is the most expensive one. A more accurate statement is this: self-hosting can deliver freedom in terms of billing, but it almost never delivers freedom in terms of capability or peace of mind. It is not a free replacement for pay-as-you-go cloud inference. It is a classic technology trade-off: heavy upfront capital expenditure and ongoing operations labor in exchange for data sovereignty, deterministic behavior, and a cost advantage under specific workload patterns.

    1. Break “Token Freedom” Into Three Independent Claims

    The discussion loses focus because the word “freedom” is used loosely. It helps to separate at least three layers:

    • Billing freedom: no more metered input and output tokens, with marginal cost per call approaching zero.
    • Capability freedom: the local model can actually cover your task distribution, not just look good on demo samples.
    • Operational freedom: no ongoing investment of people to handle scaling, failures, upgrades, and monitoring.

    Self-hosting directly delivers only the first layer. The second is determined by model size, quantization, and context length. The third almost never holds, because once the service runs on your own machines, availability becomes your team’s responsibility.

    2. The Cost Does Not Disappear; It Turns Into Sunk Cost

    The bill seems to vanish, but the cost simply moves into four buckets: hardware, power, data center space, and people. Most of it is paid upfront and is hard to recover.

    The hardware bar is much higher than most people expect. A model in the 70-billion-parameter range needs roughly 140GB of VRAM for weights alone at 16-bit precision. Even squeezed down to 4-bit quantization at around 40GB, it takes two 24GB consumer GPUs just to load. And that is only the threshold for “loading successfully,” which is a completely different thing from “running usably.” If the goal is to approach the capability range of top closed-source models, the bar jumps to another order of magnitude: for trillion-parameter-class models in the industry, official deployment guidance often starts at dozens of high-end accelerators, and the accelerator purchase alone can reach tens of millions of RMB, before counting data center, liquid cooling, and power distribution upgrades.

    The “deploy on a consumer GPU in five minutes” tutorials circulating online usually run a version compressed to the point of serious precision loss, with noticeably degraded output stability and long-text consistency.

    3. The Real Performance Bottleneck Is Memory Bandwidth, Not Peak Compute

    This is the most overlooked physical constraint in self-hosting. During autoregressive decoding, the system reads all active weights from VRAM for every token it generates, while the compute units sit largely idle. So the ceiling on decoding speed is approximately:

    1. tokens_per_second ≈ memory bandwidth / bytes read per token

    For example, with 1TB/s of usable bandwidth and about 35GB of weights to read per token under 4-bit quantization, the theoretical ceiling is around 28 tokens/s, and the real number is lower once scheduling and sampling overhead are subtracted. This explains a counterintuitive result: switching from 70B to 7B often improves speed by far more than 4x, because the weight read volume drops and batch concurrency goes up at the same time.

    Three practical conclusions follow:

    1. To pursue throughput, prioritize higher concurrent batching rather than single-request speed.
    2. Long context significantly raises VRAM usage and attention computation, so capacity planning must account for weights, KV cache, and framework overhead together.
    3. Higher-precision quantization is not free; it compresses both weight size and expressive power.

    4. Quantization Is Not a Compression Trick, but a Capability-for-Speed Trade

    The benefit of quantization is that VRAM usage and bandwidth pressure drop together. The cost is that once the numerical distribution is narrowed, tasks like long-chain reasoning, code generation, and structured output become more prone to detail errors. A common rule of thumb: be aggressive for interactive Q&A, be conservative for numerical calculation, contract review, and code merging, and keep a high-precision baseline for regression evaluation. Quantizing without an evaluation set is like shipping without acceptance criteria.

    5. The Underestimated Operations Burden

    A usable inference service needs at least the following capabilities, and the labor cost here is usually higher than hardware depreciation over the long run:

    • Serving and scheduling: request queuing, timeout retries, rate limiting, and prioritization.
    • Observability: log services, metrics monitoring, and alerting covering VRAM usage, queue latency, and time to first token.
    • Elasticity and capacity: peak scaling, faulty-node removal, canary upgrades, and rollback.
    • Data and knowledge pipeline: vector retrieval, document parsing, permission isolation, and auditing.
    • Security and compliance: model weight protection, input/output masking, and access control.

    6. A Decision Framework: When Self-Hosting Actually Pays Off

    Four questions make a good first filter:

    1. Is the data not allowed to leave your environment? If so, local or dedicated deployment is nearly a hard constraint.
    2. Is the workload stable and continuous? Only 24/7 high utilization amortizes the sunk cost; intermittent, bursty workloads fit pay-as-you-go services better.
    3. Can the task be covered by a small model? Narrow tasks like classification, extraction, formatting, and summarization often give better value with a small model plus fine-tuning.
    4. Does the team have inference operations capability? If not, outsourced labor and cloud managed services may cost less overall.

    A rough estimate looks like this:

    1. Total local cost ≈ hardware depreciation + power and data center + labor + hardware refresh
    2. Total cloud cost ≈ call volume × unit price + a small amount of integration labor

    When local utilization stays below a certain threshold for a long time, or when task demands on model capability keep rising, the balance tips quickly toward the cloud.

    7. A More Pragmatic Middle Path

    For most teams, the best answer is not either/or but a layered approach: keep sensitive data and high-frequency narrow tasks on a local small model, route complex reasoning and long-tail tasks to general cloud capabilities, and use a unified gateway in the middle for routing, caching, and fallback. Platforms such as Baidu AI Cloud typically offer general-purpose capabilities like container platforms, object storage, log services, and monitoring and alerting, which can serve as infrastructure options for this hybrid architecture, while the model serving itself can be planned as a local-plus-cloud combination.

    The conclusion is straightforward: self-hosting buys data sovereignty and determinism, not free unlimited tokens. Treating it as an engineering project that requires capacity planning, an evaluation system, and operations headcount, rather than a script you install and forget, is what it truly means to understand its price.