The Cost of Deploying a Trillion-Parameter LLM Locally

    A practical breakdown of the hardware, throughput, and cost economics of self-hosting a trillion-parameter sparse Mixture-of-Experts model, covering the 1.4TB weight memory floor, three deployment tiers from "it boots" to 10 concurrent users, and how utilization drives cost per million tokens.

    The Cost of Deploying a Trillion-Parameter LLM Locally

    The short answer: this is not a “buy a few consumer GPUs” problem

    Discussions about whether a trillion-parameter model can run locally, and what it costs, usually collapse into a question of stacking compute. The real constraints sit at three levels: whether the weights fit in memory, whether the runtime can execute efficiently, and whether per-stream output speed stays stable under concurrency. The first is a hard gate; the other two determine experience and cost efficiency.

    One premise up front: this article only quantifies the relationship between capacity and cost. It does not address the availability of specific hardware for purchase. To keep the conclusions general, hardware is described with generic categories such as “data-center-class accelerator card” and “previous-generation high-memory accelerator card,” and pricing uses a neutral framing of “the order of magnitude of a cloud provider’s published on-demand/reserved rates.”

    Memory is the first-principles constraint: 1.4TB of weights cannot be compressed away

    The defining trait of a trillion-class total-parameter model is sparse activation: each token’s forward pass activates only a small fraction of the parameters (roughly 3%~4% of the total at the scale discussed here), so the compute required per token is far lower than for a dense model. But sparsification reduces compute, not memory — all expert weights must stay resident, or every step would require swapping them in and out from external media, and throughput would collapse to unusable levels.

    The good news is that these models typically ship in a native 4-bit floating-point quantized format (an MXFP4-style low-precision format with block-shared exponents). 4-bit is the officially designed precision rather than an after-the-fact squeeze, so the accuracy loss is manageable. The capacity estimate:

    1. Weight memory ≈ total parameters × bytes per parameter
    2. ≈ 2.8e12 × 0.5 Byte
    3. ≈ 1.4 TB
    4. Usable memory per user ≈ 1.4TB weights + activation/runtime/context state ≈ 1.5 TB

    The most easily overlooked piece is context state. The attention key-value cache (or the state cache in a hybrid architecture) grows roughly linearly with context length, and in long-context scenarios this portion can balloon from tens of GB to hundreds of GB. So “1.5TB” is a starting point for short-to-medium contexts, not a ceiling.

    Three tiers: from “it fits” to “usable by several people”

    Tier 1: It only has to run, with no speed commitment

    Pure capacity division says 1.5TB needs about 19 previous-generation 80GB-class cards, or about 11 141GB-class cards. But there is a fatal detail here: previous-generation hardware usually cannot natively execute 4-bit block floating-point instructions and needs the runtime to dequantize to a higher precision before computing. The result is that the memory fits but the speed may be too slow to be practically useful, and dequantization adds extra memory and bandwidth overhead.

    A more realistic minimum configuration is therefore a single-node, 8-card next-generation high-bandwidth-memory accelerator setup (roughly 192GB per card, about 1.5TB across 8 cards). This matches the deployment guidance in the official documentation of mainstream inference frameworks: 8-card tensor parallelism plus expert parallelism is the starting topology for this class of model. In other words, “getting it to run” is already server-class engineering, not a workstation-level hobby.

    Tier 2: Stable 25 tokens/s for a single user

    The hardware starting point is still an 8-card node. The reason: the first bottleneck is capacity, not compute, and you cannot shrink the machine to two or three cards just because there is only one user. Whether 8 cards can sustain 25 tokens/s depends on separating two phases:

    • The prefill phase is bounded by both compute and memory bandwidth, so long prompts bring noticeable time-to-first-token;
    • The decode phase is bounded by memory bandwidth, and single-stream output speed is roughly “bytes of activated weights read per step ÷ effective bandwidth.”

    In industry experience, single-stream decoding for a large model typically lands in the tens of tokens per second, so 25 tokens/s is a reasonable target — but it must be confirmed by load testing at the actual context length, not inferred from card count alone.

    Tier 3: 10 concurrent users at 25 tokens/s each

    This requires aggregate output to hold steady above 250 tokens/s. Interestingly, the memory configuration may not need to grow: a single 8-card node can often keep dozens of requests resident simultaneously at medium context (on the order of 40 streams in the reference scenario here), so 10 concurrent users usually will not force you to add a second machine.

    The real challenge is scheduling and throughput: with multiple concurrent streams, batching dilutes per-stream bandwidth, and you can end up with “aggregate throughput on target but per-stream speed down to 10 tokens/s.” Engineering-wise you need to:

    1. Enable continuous batching and chunked prefill so long prompts do not block decoding;
    2. Set a quality-of-service target for per-request output rate, capping maximum batch size when necessary;
    3. Use load-test curves to determine the feasible region across “concurrency — per-stream rate — time-to-first-token.”
    1. Example acceptance targets (replace with measured values)
    2. Aggregate output ≥ 250 tokens/s
    3. Per-stream output ≥ 25 tokens/s (P50), P95 no lower than 20 tokens/s
    4. Time-to-first-token P95 ≤ 3s (4K context)

    How to calculate the cost: from hourly rate to per-million tokens

    There is no consumer-grade substitute for data-center-class accelerator cards, so cloud pricing is the only reference. Taking the published order of magnitude of a certain cloud provider as an example, next-generation data-center accelerator cards with more than 32GB of memory run about $4~5 per card per hour on a 12-month reservation, or about $32~40 per hour for an 8-card node. From there:

    1. Annual cost order of magnitude ≈ $38/hour × 24 × 365 ≈ $330K
    2. On-demand (no reservation discount) is typically 30%~100% higher

    Converting this to a unit cost is more useful for decisions:

    1. Cost per million tokens = node hourly price ÷ (aggregate tokens/s × 3600) × 1e6
    2. At 10 concurrent users, fully loaded (250 tokens/s) ≈ 38 ÷ 900000 × 1e6 ≈ $42 per million tokens
    3. Single user (25 tokens/s) ≈ $170 per million tokens

    The conclusion is blunt: the economics of this kind of deployment depend entirely on utilization. A single user monopolizing an 8-card node costs roughly 4x the unit cost of a fully loaded one; raising concurrency from 1 to 10 cuts unit cost by about 75% with the same hardware.

    Deployment checklist

    1. Do the capacity math first: weights + context state + runtime overhead, with 10%~15% headroom;
    2. Confirm the precision path: prefer hardware with native support for low-precision block formats, and avoid the hidden cost of runtime dequantization;
    3. Default to a single 8-card node topology: tensor parallelism + expert parallelism to reduce cross-node communication;
    4. Let load testing drive selection: benchmark with real prompt lengths and concurrency profiles, not theoretical peaks;
    5. Treat utilization as the cost lever: make “cost per million tokens” the core metric, paired with elastic scaling and request queuing policies;
    6. Add observability: logging services, monitoring and alerting, and metrics dashboards to locate bandwidth bottlenecks and batching jitter.

    In related practice at Baidu AI Cloud, this kind of work is typically carried by a container platform hosting the inference service, with monitoring/alerting and logging services providing runtime observability, alongside object storage for distributing model weights — the general engineering path for taking a trillion-parameter model from “it fits” to “it runs reliably and the cost is calculable.”