Ultra-Large MoE Model Local Deployment Costs: A Practical Breakdown

    This article breaks down the real cost of deploying ultra-large mixture-of-experts (MoE) models locally. It explains why total parameters, not the activation ratio, determine the memory floor; how 4-bit quantization still leads to roughly 1.5TB of weight storage for a 2.8T-parameter MoE model; why communication and interconnect bandwidth become the true throughput bottleneck; and how three deployment tiers differ in GPU count, network requirements, and monthly cost. It also compares self-built infrastructure, on-demand cloud rental, and reserved capacity, and provides practical formulas, optimization levers, and validation checklists.

    Introduction: Separating “Can it run?” from “How much will it cost?”

    Running an ultra-large-parameter model on infrastructure you control has become a common goal for developers and enterprises. The use cases usually fall into three categories:

    • Proof of concept and debugging: the model only needs to load and produce outputs;
    • Individual research or development: a single user needs smooth interaction and usable latency;
    • Multi-user serving: the system must remain stable under concurrency without sacrificing output quality.

    For a familiar question such as “Can a 16GB GPU run a 7B model?”, the answer is relatively straightforward. But when total parameters reach the trillion-parameter scale, several familiar assumptions need to be re-examined:

    • Is there enough GPU memory?
    • Will it be fast enough?
    • How much will it cost in total?

    This article uses an ultra-large MoE model as an analysis target. Its weights have not been fully released publicly, so it is referred to here as the “baseline model”:

    • Total parameters: approximately 2.8 trillion;
    • 896 experts, with 16 experts activated per token;
    • The official recommendation is to use a super-node composed of 64 or more high-speed interconnected accelerators.

    A few notes on the numbers:

    • The complete weights and technical report for the baseline model have not been released as of the latest public information covered by this article. Public information mainly covers the architecture design and recommended configuration.
    • Except for the official recommendation, the speed, memory, and configuration numbers in this article are estimates based on public information.
    • Once the weights are released, every item should be verified with real benchmarks.
    • This article does not quote any specific vendor’s pricing.

    The focus is not only on one particular model. The goal is to provide a method for estimating the deployment cost of trillion-parameter-class MoE models. The same approach can be applied to other ultra-large models.

    1. The first cost: memory — weights set the floor, activations mainly affect compute

    1.1 Activation ratio is not memory ratio

    One of the most common misunderstandings about MoE models is treating the “activated parameter ratio” as if it were the “memory usage ratio.”

    In the baseline model, only 16 out of 896 experts are activated for each token. That is about 1.79% of the experts. However, this does not mean that only 1.79% of the parameters need to be resident in memory.

    Shared components such as attention layers are computed for every token. Only the expert portion is sparse. More importantly, MoE memory usage is driven by total parameters, while the activation ratio mainly affects compute consumption. Routing decides which experts are computed for a given token, but it does not allow you to load only those experts. Any input could hit any expert, so all 896 experts must be resident in GPU memory, or at least placed in addressable storage, before inference begins.

    A useful analogy is a library. You may borrow only 16 books in one visit, but the entire collection still has to be stored on-site.

    The relationship can be expressed as follows:

    • Total parameters = expert parameters × number of experts + non-expert parameters such as attention layers, embedding layers, output layers, and normalization layers.
    • Weight memory ≈ sum of tensor element counts × bytes per element × (1 + metadata and alignment overhead).

    Plugging in the expert count makes the scale clearer:

    Configuration Total parameters Experts Activated experts per token Average parameters per expert, expert part only
    Publicly discussed 671B-class MoE model 671B Tens to hundreds Around 8 Several billion
    Baseline model 2.8T 896 16 About 3.1B

    In other words, one expert in the baseline model is roughly equivalent to a 3B model. It cannot be sliced into tiny pieces and loaded on demand. Instead, it must remain resident as a whole inside the GPU memory cluster. This fundamentally determines the scale of all later cost estimates.

    1.2 4-bit quantization: 1.4TB is only the starting point

    A common misconception is that “2.8 trillion parameters at 4-bit equals 1.4TB.” This ignores the extra overhead introduced by the quantization format itself.

    According to public architecture information:

    • The baseline model uses quantization-aware training starting from the supervised fine-tuning (SFT) stage;
    • Weights use MXFP4 format;
    • Activations use MXFP8 format.

    The key concept here is block scaling. MXFP4 is a 4-bit floating-point format defined under the OCP micro-scaling format specification:

    • Each element uses 1 sign bit, 2 exponent bits, and 1 mantissa bit;
    • Every 32 elements share one 8-bit scale factor, forming a block of 32 elements.

    This is a block-level shared-exponent numerical representation, not simple post-training quantization, so it can preserve model quality relatively well. However, inference frameworks still need to read the scale factors and include them in computation. Therefore, weight storage must account for them:

    • Pure 4-bit data lower bound: 2.8T × 4 bit ÷ 8 = 1400GB
    • Weights including scale factors: 2.8T × 4.25 bit ÷ 8 ≈ 1487.5GB
    • Actual weight memory: additional unquantized tensors, tensor metadata, alignment padding, and framework overhead still need to be added.
    1. # Rough lower-bound estimate for 4-bit weight memory
    2. # Values are derived from public information.
    3. params = 2.8e12 # total parameter count
    4. bits_per_elem = 4 + 8 / 32 # 4-bit element plus one 8-bit scale per 32 elements
    5. weight_gb = params * bits_per_elem / 8 / 1e9 # ≈ 1487.5 GB
    6. card_memory_gb = 80 # memory per card
    7. usable_ratio = 0.85 # reserve space for runtime workspace, fragmentation, and KV cache
    8. min_cards = math.ceil(weight_gb / (card_memory_gb * usable_ratio)) # ≈ 22, rounded up to 24

    Even at 4-bit precision, weights on the order of 1.5TB already exceed the memory capacity of most single-node 8-GPU servers with 640GB total memory. A single node is not enough. At least 3 nodes and 24 80GB accelerators are required just to hold the weights.

    For comparison, a publicly discussed 671B-class model is a different situation:

    • Under FP8 format, the main parameters plus multi-token prediction (MTP) parameters are about 685GB;
    • After 4-bit quantization-aware training, weights are about 335GB, and activation overhead is about 37GB;
    • The total is about 400GB, leaving headroom on an 8-accelerator server with 640GB memory.

    The difference is clear:

    • For the 671B-class model, the deployment challenge is mostly how to partition the model within a single machine;
    • The baseline model is more than four times larger, so the challenge becomes how to organize a cross-node cluster;
    • The two cases are not in the same cost range, and this is the source of the “minimum full-capability deployment” floor.

    1.3 KV cache and runtime overhead: the second cost often overlooked

    Beyond weights, there are two types of overhead that are difficult to compress:

    • KV cache: grows linearly with context length and concurrency.

      • Estimation formula: KV memory ≈ layers × 2 × KV bytes per token per layer × context length × concurrent requests
      • The baseline model uses a KDA (Kimi Delta Attention) backbone and introduces Attention Residuals. Gated MLA is one of its attention components. These attention variants can reduce KV cache memory pressure while preserving long-context capability.
      • However, “reduced” does not mean “eliminated.” Long contexts and high concurrency still significantly increase memory demand.
    • Runtime workspace: includes all-to-all communication buffers, temporary activations, intermediate results for quantization and dequantization, and the framework’s own memory pool. This is usually around 5% to 15% of total memory, depending on the parallelism strategy.

    Therefore, memory planning should be based on four components:

    weights + KV cache + runtime overhead + safety margin

    Choosing GPUs based only on weight size is one of the most common deployment mistakes.

    2. The second cost: communication — the real bottleneck for trillion-parameter MoE

    2.1 Why enough memory does not mean the model runs fast

    Large-scale MoE inference is extremely sensitive to intra-node and inter-node communication:

    • 896 experts are distributed across dozens of accelerators;
    • After routing, each token’s hidden state must be sent to the cards hosting the selected experts;
    • After computation, the result must be sent back to the original card.

    For example, with 64 cards, each card hosts about 14 experts, since 896 ÷ 64 ≈ 14. Each token activates 16 experts, which means each token may trigger a “send-compute-return” round trip involving 16 cards.

    As this repeats layer by layer:

    • The number of communication events generated by a single token across the network scales with the number of layers multiplied by 16;
    • Latency is amplified layer by layer, directly consuming compute capacity.

    2.2 Communication topology determines real throughput

    Inside a node, GPUs usually have high-speed interconnects such as NVLink or similar proprietary links. Bandwidth can reach hundreds of GB/s to TB/s. Across nodes, systems rely on specialized networks such as InfiniBand, or RDMA such as RoCE over a losslessly configured data center network using PFC and ECN. Cross-node bandwidth is often only a fraction of intra-node bandwidth, sometimes one-tenth.

    For MoE models:

    • Keeping expert shards within the same node can significantly reduce cross-node traffic;
    • But the total number of experts far exceeds the capacity of a single node, so cross-node communication is unavoidable;
    • In practice, communication overhead can account for a substantial share of a single forward pass, becoming the true ceiling on throughput.

    2.3 Super-nodes: enlarging the communication domain

    This is why the official recommendation is to use a super-node composed of 64 or more accelerators. A super-node uses high-bandwidth, low-latency dedicated interconnects to organize dozens of cards into a tightly coupled communication domain. This keeps most expert-to-expert data movement inside the domain and reduces cross-node jumps.

    An engineering analogy:

    • Think of the super-node as one “logically large GPU”;
    • Intra-node communication is similar to on-chip interconnect;
    • Inter-node communication is similar to off-chip memory access;
    • Layout optimization aims to increase “on-chip hits” and reduce “off-chip accesses.”

    2.4 Three hardware requirements created by communication needs

    1. High bandwidth: all-to-all traffic per token per layer scales with activated experts × hidden dimension × bytes.
    2. Low latency: every layer requires a global synchronization step, and latency accumulates layer by layer.
    3. Stable tail latency: long-tail latency determines P99 latency and user experience under high concurrency.

    This explains why “can run” and “runs fast” can differ by orders of magnitude in cost:

    • If the only goal is to make the model run, a slower network may be tolerable;
    • If the goal is interactive throughput above 25 tokens per second, communication latency must be reduced to an extremely low level.

    3. Three requirement tiers, three deployment forms

    The original requirements can be divided into three tiers.

    3.1 Tier 1: It only needs to run, speed is not a concern

    Goal: the model can load, perform inference, and return results. Speed can be slow, even accepting tens of seconds or minutes per token.

    Memory lower bound:

    • 4-bit weights are about 1.5TB;
    • At least 3 eight-GPU servers are required, totaling 24 80GB cards;
    • Cards with 48GB memory would require even more nodes.

    Network requirement: standard data center Ethernet plus RDMA such as RoCE may be enough. Even ordinary 10GbE networking with heavy communication optimization might barely run.

    Typical use cases: model architecture validation, quantization quality comparison, and prompt debugging.

    Cost scale:

    • Renting 24 cards on demand in the cloud, based on publicly observed hourly pricing ranges for high-end accelerators, may cost roughly RMB 150k to 300k per month;
    • If an idle cluster is already available, the main costs are electricity and operations.

    3.2 Tier 2: 25 tokens per second for one user, smooth interaction

    Goal: a single user gets output speed above 25 tokens/s, close to human reading speed. Chinese reading speed is roughly 5 to 10 characters per second, though English reading speed differs.

    Key constraints:

    • End-to-end latency per token must be kept below 40ms, since 1 ÷ 25 = 0.04 seconds;
    • This budget must cover computation and communication across all layers, leaving only microseconds per layer for communication;
    • Ordinary Ethernet is difficult to satisfy this requirement. High-speed dedicated networking such as InfiniBand or high-performance RDMA is required.

    Parallelism strategy:

    • A combination of expert parallelism (EP), tensor parallelism (TP), and pipeline parallelism (PP) is needed;
    • A typical configuration uses TP/EP within a single 8-GPU node and PP or wider EP across nodes;
    • Mainstream inference frameworks such as SGLang and vLLM need MoE optimization support.

    Cost scale: the node count increases to 4 to 8 nodes, or 32 to 64 cards, and high-speed networking is mandatory. Monthly cost roughly doubles to RMB 300k to 600k.

    3.3 Tier 3: 10 concurrent users × 25 tokens/s, with acceptable quantized quality

    Goal: 10 concurrent requests, each achieving at least 25 tokens/s, while quantization-induced quality loss remains acceptable.

    Compared with Tier 2, this tier adds several constraints:

    • Memory: KV cache grows linearly with concurrency. Ten concurrent requests with long contexts may consume hundreds of GB more.
    • Bandwidth: 10 tokens routed at the same time can amplify all-to-all traffic by roughly 10x, increasing the risk of network congestion.
    • Scheduling: continuous batching, chunked prefill, preemption, and recomputation may be required to balance time to first token (TTFT) and time per output token (TPOT).
    • Quantization quality: 4-bit weights plus 8-bit activations are close to lossless on many tasks, but long-tail capabilities such as code and mathematics still need item-by-item validation.

    Cost scale: 64 cards at minimum, with super-node-level interconnect. Monthly cost is roughly in the RMB 600k to 1.2M range.

    3.4 Comparison of the three tiers

    Dimension Tier 1: Run only Tier 2: One user at 25 tps Tier 3: 10 concurrent at 25 tps
    Minimum cards, 80GB 24 32 to 64 64 or more
    Nodes 3 4 to 8 8 or more
    Network requirement Ordinary RDMA may suffice High-speed dedicated network Super-node-level interconnect
    Typical monthly cost, estimate RMB 150k to 300k RMB 300k to 600k RMB 600k to 1.2M
    Suitable scenarios Validation, debugging Individual or small team Multi-user serving

    It should be emphasized that:

    • These numbers are estimates based on public architecture information, not vendor quotations;
    • Actual costs will vary significantly with GPU model, rental method, usage duration, electricity price, and data center conditions;
    • After the weights are released, costs should be recalculated using real benchmarks.

    4. Cost breakdown: self-built vs. rented vs. cloud service

    4.1 Self-built: high upfront investment, potentially lower long-term unit cost

    For example, with 64 80GB cards organized as 8 servers with 8 GPUs each:

    • Servers: each 8-GPU server may cost roughly RMB 2M to 4M; 8 servers total RMB 16M to 32M;
    • Networking: InfiniBand or high-speed RDMA switches and cables may cost from several million to tens of millions of RMB;
    • Storage: an all-flash parallel file system is needed for fast loading of 1.5TB weights and multi-replica caching;
    • Facility upgrades: power delivery such as 40kW to 80kW per rack, and cooling such as liquid cooling or high-density air cooling;
    • Operations: at least one or two dedicated operations staff.

    Hidden costs also matter:

    • Iteration cost: models may be updated every 6 to 12 months, so hardware can become outdated soon after purchase;
    • Utilization risk: if effective daily usage is less than 8 hours, self-built unit costs may be much higher than on-demand cloud;
    • Elasticity gap: it is difficult to expand quickly during traffic peaks.

    4.2 On-demand cloud: flexible, but with higher unit prices

    Advantages:

    • Provisioning in minutes;
    • Multiple GPU types available;
    • Pay-as-you-go with no upfront capital expenditure;
    • Mature bandwidth and storage integration.

    Disadvantages:

    • For long-term high-frequency use, total cost may exceed self-built infrastructure;
    • Super-node-level interconnect resources can be scarce and may require advance reservation;
    • Cross-availability-zone networking may add latency and cost.

    4.3 Reserved annual or monthly plans: a middle ground

    Committing to a 1-to-3-year usage period usually provides a discount of about 50% to 70% of on-demand pricing. This suits teams with stable demand and predictable budgets.

    4.4 Cost comparison of the three paths

    For a 64-card scale over three years:

    Path Upfront investment Monthly operating cost Rough three-year total Suitable scenarios
    Self-built RMB 20M to 40M Electricity and operations about RMB 200k to 400k RMB 27M to 54M Long-term stable use, sensitive data
    On-demand rental 0 RMB 600k to 1.2M RMB 21.6M to 43.2M Elastic demand, short-term projects
    Reserved rental 0 RMB 400k to 700k RMB 14.4M to 25.2M Stable demand, clear budget

    Note: the above figures are order-of-magnitude estimates. Formal quotations should be used for actual decisions.

    5. Practical formulas for memory and cost estimation

    The logic above can be organized into formulas that can be applied directly:

    1. # ===== 1. Quantized weight memory =====
    2. W = sum_i(P_i * b_i / 8 * (1 + o_i)) # GB
    3. # P_i: parameter count of tensor type i
    4. # b_i: bit width, such as 4, 8, or 16
    5. # o_i: metadata and alignment overhead, including block scaling, indices, and padding, usually 1% to 10%
    6. # ===== 2. KV cache =====
    7. KV = L * 2 * k * C * B * bytes / 1e9 # GB
    8. # L: number of layers
    9. # k: KV elements per token per layer
    10. # C: average context length
    11. # B: concurrency
    12. # ===== 3. Usable memory per card =====
    13. M_usable = M_card * (1 - r_overhead) # r_overhead is approximately 0.10 to 0.15
    14. # ===== 4. Minimum number of cards =====
    15. N_min = ceil((W + KV + workspace) / (M_usable * N_node)) * N_node
    16. # N_node: cards per node, ensuring expert shard alignment
    17. # ===== 5. Monthly cost for on-demand rental =====
    18. Cost_month = N * price_per_card_hour * 24 * 30
    19. # ===== 6. Cost per 1,000 tokens =====
    20. cost_per_1k_tokens = Cost_month / (throughput_tps * 86400 * 30) * 1000

    Key takeaways:

    • Weight memory determines the lower bound and cannot be compressed away.
    • KV cache grows linearly with concurrency and context length, making it the main variable in high-concurrency scenarios.
    • Runtime overhead should be reserved at around 10% to 15% as a safe margin.
    • Node alignment: the card count should be an integer multiple of the cards per node to avoid misaligned expert shards across nodes.

    6. Five levers for reducing cost

    6.1 Quantization: from 4-bit to 2-bit or 1-bit?

    • 4-bit is currently the practical cost-performance turning point;
    • More aggressive quantization such as 2-bit or 1-bit causes noticeable quality loss on trillion-parameter models;
    • Mixed precision, such as 8-bit for critical layers and 4-bit elsewhere, is a safer direction.

    6.2 Sparse activation optimization

    • Expert caching: keep frequently activated experts resident in memory to reduce swapping;
    • Routing pruning: limit the number of experts activated per token, such as reducing from top-16 to top-8, but quality loss must be validated;
    • Grouped-query attention (GQA) or multi-query attention (MQA) can reduce KV cache usage.

    6.3 Communication optimization

    • Overlap computation and communication by pipelining all-to-all operations with GEMM;
    • Use hierarchical all-to-all: aggregate within a node first, then transfer across nodes;
    • Apply topology-aware scheduling by placing frequently co-activated experts on the same node.

    6.4 Inference framework tuning

    • Enable chunked prefill to reduce blocking caused by long prompts during decoding;
    • Adjust continuous batching batch size and waiting windows;
    • Enable speculative decoding to accelerate large-model decoding with a smaller draft model;
    • Enable prefix caching to reuse common prefixes such as system prompts.

    6.5 Service-layer optimization

    • Request classification: route long-text and code-generation requests to dedicated queues;
    • Dynamic routing: distribute requests across replicas based on load;
    • Rate limiting and graceful degradation: queue or downgrade non-critical requests to smaller models during peak periods.

    7. Decision checklist: which tier should you choose?

    Use five questions to quickly narrow down the choice:

    1. Can data leave your environment? If not, self-built or private deployment is the only option.
    2. How many effective usage hours per day? If less than 4 hours, on-demand rental is preferable; if more than 12 hours, consider reserved capacity or self-built infrastructure.
    3. How large is the concurrency? 1 to 3 users suggests Tier 2; 10 or more users suggests Tier 3.
    4. What context length is required? If the average exceeds 32K tokens, memory demand may increase by 30% to 50%.
    5. What quality tolerance do you have? If 4-bit is sufficient, use the estimates in this article; if FP8 or higher is required, the card count may roughly double.

    8. Validation checklist after weights are released

    Once the weights are released, validate the following items in order:

    1. Loading test: record weight loading time, peak memory usage, and whether out-of-memory errors occur;
    2. Single-request benchmark: measure TTFT, TPOT, and end-to-end latency;
    3. Concurrency stress test: measure throughput and P99 latency at 1, 4, 8, 16, and 32 concurrent requests;
    4. Long-context test: measure memory and speed at 4K, 16K, 64K, and 128K context lengths;
    5. Quantization quality: compare against an FP8 baseline on standard evaluation sets, with special attention to code, mathematics, and long-text tasks;
    6. Communication overhead: use a profiler to quantify all-to-all overhead and determine whether upgrading the network is worthwhile.

    Conclusion

    Deploying a trillion-parameter MoE model locally is essentially a system of equations involving memory and communication:

    • Memory determines whether the model can be loaded: at 4-bit, 1.5TB of weights requires at least 24 80GB cards;
    • Communication determines how fast it runs: the 25 tokens/s threshold requires single-token latency to be pushed below 40ms, which ordinary networks cannot achieve;
    • Concurrency and quantization determine service quality and cost: 10 concurrent users, long contexts, and high-precision quantization can push deployment into super-node configurations with 64 or more cards.

    The estimated monthly costs for the three tiers are roughly RMB 150k to 300k, RMB 300k to 600k, and RMB 600k to 1.2M. Self-built, on-demand, and reserved rental paths each have suitable scenarios; none is universally better.

    A practical approach is:

    • First use Tier 1 to validate model quality and business fit;
    • Then run stress tests under realistic traffic to decide between Tier 2 and Tier 3;
    • Finally, compare self-built and rental options based on average daily usage to find the lowest-cost solution.

    Before the weights are released, all numbers in this article should be treated as order-of-magnitude references rather than precise quotations. The most reliable basis for decision-making will always be the first round of real benchmarks after obtaining the weights.