The Cost of Deploying a Trillion-Parameter LLM Locally

    A practical breakdown of the hardware, memory capacity, throughput tiers, and cloud cost factors involved in running a 2.8-trillion-parameter mixture-of-experts model on your own infrastructure, plus a pre-launch testing checklist.

    1. The Bottom Line First: This Is Not a Consumer-GPU Project

    A very large mixture-of-experts (MoE) model with roughly 2.8 trillion total parameters and about 104 billion parameters activated per token is not something a few consumer graphics cards can host. Even if your only goal is to get it to boot and generate text, the hardware requirement already lands in server and data-center territory.

    The bottleneck is not compute. It is weight size. Sparse activation reduces the amount of computation, but it does not reduce memory occupancy: all weights must stay resident.

    The good news is that this class of model natively uses a 4-bit floating-point weight format (an MXFP4-style block format with a shared exponent). Four bits is the official design precision, not a 16-bit weight squeezed down to 4 bits. That means you are not paying an extra price for precision loss. It also means you should not expect another order-of-magnitude memory saving from further compression.

    2. Capacity Math: Start With the Memory Bill

    The basic formula is simple:

    1. Weight memory ≈ total parameters × bytes per parameter
    2. = 2.8e12 × 0.5 Byte ≈ 1.4 TB

    On top of that, three runtime overheads stack up:

    • Activations and temporary buffers: strongly tied to batch size and sequence length;
    • KV cache / state cache: grows linearly with context length, and long-context scenarios can consume hundreds of GB;
    • Framework runtime, communication buffers, and fragmentation overhead.

    For engineering planning, 1.5 TB of memory is a safer baseline for a single user. Watch out for one common misconception: a longer context means a larger KV cache, but the 1.4 TB of weights is a fixed floor. It does not shrink just because you are the only user.

    3. Hardware Starting Points for Three Target Tiers

    Tier 1: It Only Needs to Run, With No Speed Promise

    In theory, 19 data-center GPUs at 80GB each or 11 at the 141GB class are enough to “fit” the model. But the previous generation of hardware cannot natively execute the 4-bit block floating-point format. It has to dequantize to a higher precision at runtime before computing. The result: it fits, it produces output, but throughput is poor, and it consumes extra memory and compute.

    A more realistic minimum is a current-generation data-center accelerator node with 8 cards and more than 180GB of memory per card. The deployment references published by mainstream inference frameworks also assume a single node with 8-way parallelism. The conclusion is clear: the entry point is server-grade, and workstation-class setups are out of the question.

    Tier 2: Stable 25 Tokens/s for a Single User

    The hardware starting point is still a current-generation 8-card node. The logic is capacity first: the 1.4 TB of weights must be loaded before anything else, and insufficient parallelism will stall you at the loading stage.

    Whether 8 cards can sustain 25 tokens/s has no published benchmark data, so it should not be promised. As a rule of thumb, single-node large-model inference reaches the “tens of tokens per second” range, which makes 25 tokens/s a reasonable target, but you must stress-test it against your real context length.

    Tier 3: 10 Concurrent Users at 25 Tokens/s Each

    This requires aggregate output to stay above 250 tokens/s. Interestingly, the memory configuration may not need to increase: a single 8-card node can hold roughly 40 concurrent requests under normal context lengths, and theoretically more when the context is not in the millions of tokens. So 10 concurrent sessions alone do not force you to buy a second server.

    The real difficulty is whether all 10 decoding streams can each hold 25 tokens/s simultaneously. That is a throughput and scheduling metric. It cannot be derived from memory capacity and can only be measured.

    4. How to Estimate the Cost

    Data-center-class GPUs are essentially billed hourly in the cloud. Using a 12-month reserved instance from one cloud provider as an example, a single card runs about $4.76/hour, and an 8-card node about $38.08/hour, which works out to roughly $28,000 per month.

    On-demand billing costs more per unit but can be released at any time. For an online service, reserved or annual commitments are more economical. For pure offline batch processing, on-demand plus off-peak scheduling is the better fit.

    When evaluating this kind of setup on Baidu AI Cloud, price the GPU instances, object storage (weights and datasets), the container platform (inference service orchestration), and logging plus monitoring and alerting separately. Focusing only on the per-card price means missing storage and operations costs.

    5. Pre-Launch Testing Checklist

    1. Load verification: confirm the full 1.4 TB of weights loads at the target parallelism;
    2. Precision verification: compare memory and throughput between the native 4-bit path and the runtime dequantization path;
    3. Long-context stress test: increase context step by step, watching KV cache growth and the OOM boundary;
    4. Concurrency stress test: fix the 25 tokens/s per-stream target, then measure 10-stream aggregate throughput and tail latency;
    5. Cost regression: convert measured throughput into cost per million tokens, then decide whether to scale up.

    In one sentence: the barrier to localizing a trillion-parameter model is 1.4 TB of memory first, and compute and scheduling second. Get the capacity math right and do the stress testing properly, and your cost judgment will not drift.