Cost Breakdown for Deploying Trillion-Parameter MoE Models On-Premises

    This article breaks down the real cost of self-hosting trillion-parameter MoE models, explaining why sparse activation reduces compute but not memory, how to calculate the 1.49TB weight floor for a 2.8T-parameter MXFP4 model, why 64+ GPU supernodes are recommended, and what to budget across three deployment tiers from CPU offloading to large-scale serving. It also provides a practical evaluation checklist covering memory, bandwidth, throughput, elasticity, and staffing.

    1. First, a Common Misconception: Sparse Activation Saves Compute, Not Memory

    When many teams evaluate on-premises deployment of a very large MoE model for the first time, they scale resources with a single ratio: the model has 2.8 trillion total parameters, only 16 of 896 experts are activated per token, giving an activation ratio of about 1.79%, and they conclude that “less than 2% of the memory is needed.” That inference is wrong.

    Two completely different quantities must be separated:

    • Storage footprint is determined by total parameters. The weights of all 896 experts must remain resident in an addressable storage tier. Routing can only select from experts that are already loaded; it cannot generate them on demand.
    • Compute is determined by activated parameters. Sparsity reduces the number of multiply-accumulate operations and bandwidth pressure per token. It affects throughput and latency, not the size of the resident weights.

    One easily overlooked detail: 1.79% is the expert activation ratio, which is not strictly equivalent to the parameter activation ratio, because the model also contains shared components that every token passes through (the attention backbone, normalization, embedding and output layers, and so on).

    The K3 backbone consists of KDA (Kimi Delta Attention) plus Attention Residuals, with Gated MLA as a component. This kind of shared backbone is compute-intensive and executed in full at every layer. It cannot be skipped through sparsification, nor can only part of it be loaded.

    The conclusion is straightforward: for capacity planning, size storage by total parameters and compute by activated parameters. The two cannot offset each other.

    2. Calculating the Weight Floor: From Raw Data to Real Footprint

    K3 uses quantization-aware training already in the SFT stage, with weights in MXFP4 and activations in MXFP8. This means 4-bit is not a temporary inference-time compression but a numerical distribution aligned during training, so the accuracy loss is relatively controlled.

    Under the OCP specification, MXFP4 attaches one 8-bit scale to every 32 4-bit elements, so the effective bit width per element is 4.25 bits:

    1. 2.8e12 × 4.25 bit ÷ 8 ≈ 1487.5 GB

    That is about 1.49TB, which is only the theoretical lower bound of the weights themselves. It does not yet include:

    • Non-4-bit tensors (embeddings, output heads, and some normalization and residual parameters usually kept at higher precision);
    • Tensor metadata, alignment padding, and fragmentation from shard splitting;
    • Runtime workspace (temporary buffers, dequantization intermediates, communication send/receive buffers);
    • KV cache, which grows linearly with context length and concurrency and can consume tens to over a hundred GB in long-context scenarios.

    As a reference point, a publicly documented 671B-class MoE model has about 685B parameters including the main parameters and multi-token prediction heads, roughly 685GB in FP8; converted to 4-bit, the weights are about 335GB, and with activations and runtime overhead the total is around 400GB, which just fits on 8 accelerator cards with 80GB each (640GB). K3 is more than four times that scale, which means one fact: a single 8-card node cannot hold the full version no matter how it is optimized, and cross-node networking is mandatory.

    The performance bottleneck of large-scale MoE inference is often not compute but all-to-all communication. After routing, each token’s activations must be moved to the device hosting the target expert and moved back after computation. With 896 experts spread across dozens of cards, this shuffling is a fixed cost at every layer.

    If the communication domain spans a low-speed network, latency directly eats the compute gains, producing the typical symptom of “double the cards, no throughput increase.” The value of high-speed interconnect (NVLink or equivalent) is to enlarge the communication domain so that most of the shuffling happens within it.

    Networking practices:

    1. Prioritize intra-node inter-card bandwidth and keep expert shards converged within a node;
    2. Let cross-node links carry only necessary expert-parallel traffic, avoiding concentration of routing hotspots on a few links;
    3. Use expert placement strategies to keep frequently co-occurring experts close, reducing cross-domain hops;
    4. Overlap communication with computation to hide all-to-all beneath expert computation.

    4. Three Deployment Tiers and Their Cost Structures

    Tier 1: It Runs, Without Chasing Speed

    The approach is GPU+CPU heterogeneous inference: keep each layer’s shared attention backbone on the GPU to handle the compute-intensive part with high bandwidth, and offload the sparse experts that dominate storage to CPU memory on a large-memory server. Common open-source inference frameworks support this “backbone on the card, experts offloaded” partitioning.

    Public data shows a dual-socket server CPU with one consumer 24GB GPU running a 671B 4-bit quantized model (about 377GB) reaching over 200 token/s prefill and about 14 token/s decode, and that figure is conditioned on an expert selection strategy rather than an unconstrained result.

    Cost structure: one large-memory GPU server (hundreds of GB to 1TB of memory) plus one high-end consumer or professional GPU. This is the minimum bar for fitting 1.5TB of weights into addressable storage, suitable for offline analysis and quality validation, not for user-facing online serving.

    Tier 2: It Runs Well Enough for Low Concurrency Online

    Experts must be sharded across multiple nodes with high-speed interconnect, weights resident at 4-bit, and headroom reserved for KV cache. The core cost here is interconnect and whole machines, not per-card compute: node count is determined by memory capacity, while intra- and inter-node bandwidth determines whether the experience is usable.

    Tier 3: It Runs Well, Supporting Scaled Service

    This is the supernode form: 64 or more cards in a unified communication domain, combined with continuous batching, prefix caching, quantized KV cache, and a hybrid of expert parallelism and pipeline parallelism. The main cost items, in order, are accelerators and whole machines, data center space and power, memory expansion driven by long context, and operations and monitoring (metrics collection, log services, alerting).

    5. Getting the Costs Straight: An Evaluation Checklist

    • Memory: 1.49TB of weights + runtime overhead + KV cache (estimated by context × concurrency);
    • Bandwidth: whether inter-card interconnect is in the same domain, number of cross-node hops, and whether all-to-all becomes the bottleneck;
    • Throughput: separate prefill from decode and define the target token/s and time to first token;
    • Elasticity: fixed on-premises investment vs. cloud on-demand (a combination of container platform, object storage, and monitoring/alerting scales more easily);
    • Staffing: long-term investment in quantization format adaptation, parallel strategy tuning, and fault localization, often exceeding the hardware itself.

    6. Conclusion

    The barrier to on-premises deployment of trillion-parameter MoE models comes down to two hard constraints: 1.5TB-class weight residency and a high-bandwidth communication domain. Sparse activation only optimizes the compute bill. With a limited budget, heterogeneous offloading buys “it runs”; “running well enough” requires cross-node networking; and “running well” requires a supernode plus a mature inference engineering stack. Calculate memory and bandwidth first, then discuss unit price, so procurement decisions are not wrong from the start.