Local LLM Deployment Doesn't Mean Free Tokens

    Local LLM deployment changes your cost structure rather than eliminating costs. This article breaks down the real economics of self-hosting: hardware depreciation, electricity, and your own time, all divided by the tokens your machine actually produces. With a sample self-built setup, it shows how utilization alone can swing the cost per million tokens by 10x to 20x, why idle personal machines often cost more than a same-tier API, and which workloads genuinely benefit from local inference. It closes with a practical decision framework and tips for raising utilization if you still choose to self-host.

    1. The Bottom Line: Local Deployment Changes the Cost Structure, Not the Cost to Zero

    Many people expect local LLM deployment to mean “pay once, generate forever.” In reality, going local doesn’t eliminate cost. It replaces pay-as-you-go cloud billing with three separate expenses: a one-time capital outlay for hardware, ongoing electricity and cooling, and the time you spend on deployment, tuning, and operations.

    Once the hardware is paid for, the marginal cost of generating one more token is indeed close to zero. But what determines your bill is average cost, and the denominator of average cost is the total number of tokens the machine actually produces within the billing period. A personal machine sits idle most of the day, so that denominator is tiny, and the resulting cost per million tokens is often higher than simply calling a same-tier model API.

    A second common misconception is “enough VRAM means you can get work done.” VRAM determines whether you can load the model and how long a context window you can open. Whether you can get work done depends on the task type. Long-context summarization, batch offline processing, and latency-insensitive overnight jobs are well suited to local setups. Complex reasoning, multi-turn tool calling, and high-concurrency online serving depend more on the model’s inherent capability and supporting engineering than on stacking VRAM.

    2. The Cost Formula: Turning “It Feels Cheap” into a Computable Number

    A rough but useful estimate is:

    1. Cost per million tokens = (hardware depreciation + electricity + labor time) / (actual tokens produced / 1,000,000)

    Note that all three terms in the numerator are periodic costs, and the denominator must be the actual output within the same period. Most arguments actually come down to the denominator: people assume the machine runs at full load all the time, when in reality it runs intermittently.

    3. Electricity Only: The Same Machine Can Differ by 10x to 20x in Unit Price

    Consider a common self-built configuration: a used server plus several inference cards totaling just over 200GB of VRAM, roughly 60 tokens/s for a single request, about 450 tokens/s at 16-way concurrency, and daily consumption around 11 kWh. At a residential rate of 0.55 CNY per kWh, that’s about 6 CNY per day.

    • Scenario A (low-frequency personal use): 4 hours of actual generation per day, single request. Output is about 60 × 3600 × 4 ≈ 860,000 tokens, so electricity works out to about 7 CNY per million tokens.
    • Scenario B (full load around the clock): 24 hours at 16-way concurrency, output about 450 × 86,400 ≈ 39 million tokens. Full-load power draw is significantly higher than the daily average; even estimating electricity at two to three times that, the cost is only about 0.3 to 0.5 CNY per million tokens.

    The same hardware shows a 10x to 20x difference in unit price, and nearly all of it comes from utilization. This also explains why “my electricity bill is only 6 CNY” doesn’t prove local is cheaper. It proves you produce very little.

    4. Adding Depreciation: The Usually Overlooked Major Cost

    Depreciation is often heavier than electricity. Using straight-line depreciation over 3 years:

    • Hardware investment of 20,000 CNY: daily depreciation about 18 CNY. At 4 hours per day, single request, depreciation is about 21 CNY per million tokens, plus electricity about 28 CNY; at full concurrency around the clock, depreciation plus electricity is about 1 CNY.
    • Hardware investment of 80,000 CNY (roughly the price of a top-spec laptop workstation or two small inference appliances): daily depreciation about 73 CNY. At 4 hours per day, single request, about 90 CNY per million tokens; at full concurrency around the clock, about a bit over 2 CNY.

    The throughput here reuses the same set of numbers just to isolate the effect of hardware price. In reality, throughput varies widely across architectures and needs to be measured.

    5. Comparison Basis: Don’t Compare a Local Lightweight Model to a Cloud Flagship

    What runs smoothly locally is a lightweight-tier model. Comparing its unit price to a flagship model’s price is a category mismatch. API output prices for same-tier open-source models are roughly in the range of a few CNY per million tokens, and stronger models reach the teens (prices keep changing, so only look at the order of magnitude).

    Plugging in the earlier numbers: whether the hardware costs 20,000 or 80,000 CNY, used the personal way of “a few hours during the day, one request at a time,” the local unit price is several to over ten times the API price. Only running at full concurrency around the clock gives local a price advantage.

    6. Labor Time Must Be Counted

    Deployment, quantization, driver adaptation, context tuning, and failure recovery are all real costs. Even valued at only a few tens of CNY per hour, three hours a week adds up to a considerable annual expense, enough to erase most of the hardware price difference.

    7. Decision Framework

    • High utilization (batch offline, 24/7 online serving) → local or self-hosted is more cost-effective.
    • Low utilization (personal daytime trials, occasional Q&A) → calling an API directly is more cost-effective.
    • Data cannot leave the internal network → local or dedicated deployment is almost a hard constraint; here you’re comparing compliance cost, not unit price.
    • Highly variable demand → cloud on-demand is more suitable, since local resources can’t be released elastically.

    8. If You Do Decide to Go Local: Raise Utilization

    Batching, request merging, continuous batch scheduling, quantization and operator optimization, and scheduling idle hours into overnight batch jobs are all ways to increase the denominator. General-purpose capabilities such as containers, object storage, and monitoring and alerting offered by platforms like Baidu AI Cloud can also be used to host the orchestration and observability of a self-built inference service, but the prerequisite is still to calculate utilization clearly first.

    In one sentence: local deployment isn’t token freedom. It swaps “pay as you go” for “assets + power + time,” and the final unit price is determined by your utilization.