Ultra-Large-Scale MoE Model Local Deployment and Cost Assessment

    A practical engineering guide to deploying ultra-large-scale Mixture-of-Experts (MoE) models on local infrastructure. It explains why trillion-parameter MoE models cannot follow conventional large-model deployment assumptions, walks through weight-capacity and memory-bandwidth estimation, defines three deployment tiers with their hardware forms and cost ranges, highlights often-overlooked power and operations costs, recommends a three-layer architecture, and outlines validation and load-testing practices.

    1. Defining the Problem: Why Ultra-Large MoE Models Can’t Follow Conventional Deployment Thinking

    When you deploy a 2.8-trillion-parameter-class MoE model locally, you can’t rely on intuitions like “it fits on one GPU” or “just add more GPUs and VRAM.” The defining trait of the MoE architecture is that the total parameter count is enormous, yet each individual token activates only a small fraction of the experts. For example, if the model has 896 experts and each token activates 16 of them, the expert activation ratio is about 1.79%. This ratio affects the compute cost of a single inference pass, but it does not lower the storage barrier at deployment time.

    The reason is simple: during inference you must first load all expert weights into addressable storage or VRAM, then compute the experts that correspond to the current token based on the routing result. In other words, the activation ratio determines “how much to compute,” while the total parameter count determines “how much to store.” For local deployment, what usually blocks people first is not compute but weight capacity, memory bandwidth, expert-parallel communication, and facility power and cooling.

    So before assessing local deployment cost, you should break the goal into three tiers:

    1. Minimum viable (can run): no concern for output speed; only requires the model to load and continuously generate tokens.
    2. Single user at 25 tokens/s: for individual or small-team interaction; requires decode speed close to a usable experience.
    3. 10 concurrent users at 25+ tokens/s each: for small-scale service scenarios; requires aggregate throughput of at least 250 tokens/s.

    These three tiers correspond to very different hardware scales, network requirements, and budgets. Lumping them together when asking “how much does it cost” strips away all reference value.


    2. Weight Capacity Estimation: ~1.4TB Is Only the Theoretical Lower Bound

    Assume the model has a total of 2.8 trillion parameters:

    1. Total parameters ≈ 2.8 × 10^12

    If the weights use 4-bit quantization, the raw data volume is:

    1. 2.8 × 10^12 × 4 bit ÷ 8 ≈ 1.4 × 10^12 byte ≈ 1400 GB

    But real deployment can’t count raw weights alone. 4-bit quantization usually requires accompanying scale factors, zero points, or other metadata. If we count roughly 4-bit of main-body data plus about 0.25-bit of equivalent metadata per weight element, we can approximate it as 4.25-bit:

    1. 2.8 × 10^12 × 4.25 bit ÷ 8 ≈ 1.4875 × 10^12 byte ≈ 1487.5 GB

    This still does not include:

    • non-4-bit tensors, such as some normalization layers, embedding layers, routing layers, or special-precision layers;
    • weight metadata, indices, checksum information, and memory-alignment overhead;
    • the inference runtime’s workspace and temporary buffers;
    • the KV Cache;
    • additional VRAM usage in long-context scenarios;
    • batch-processing buffers in high-concurrency scenarios.

    Therefore, a more realistic local-deployment weight budget should be no less than 1.6TB, and to support longer contexts and some concurrency you typically need to prepare more than 2TB of VRAM or memory pool. For a 10-concurrent scenario that requires high context length, total storage capacity above 3TB is not an exaggeration.

    Here one point deserves special emphasis: MoE VRAM usage is mainly calculated from the total parameters, not the activated parameters. The activation ratio only affects the compute of a single inference pass; it does not make all the experts disappear. At deployment time you still need to reserve space for every expert.


    3. Compute and Bandwidth Estimation: The Real Bottleneck for 25 tokens/s

    Many people mistakenly assume “we activate 16 experts, so we only need to compute 1.79% of the parameters.” This has partial meaning for assessing compute, but it is not enough for local deployment.

    Roughly estimating from the expert portion: if total parameters are 2.8 trillion and 16 of 896 experts are activated, then the number of expert parameters activated per token is about:

    1. 2.8 × 10^12 × 16 ÷ 896 ≈ 5.0 × 10^10

    That is about 50 billion parameters. Estimating a 4-bit weight read, each token needs to read at least:

    1. 5.0 × 10^10 × 4.25 bit ÷ 8 ≈ 26.6 GB

    If we require a single user at 25 tokens/s, the effective bandwidth needed just to read the expert weights is about:

    1. 26.6 GB × 25 ≈ 664 GB/s

    If we require 10 concurrent users each at 25 tokens/s, for an aggregate throughput of at least 250 tokens/s, then the theoretical weight-reading bandwidth demand is about:

    1. 26.6 GB × 250 ≈ 6.65 TB/s

    This is only an approximate value for the expert portion. Real inference must also add:

    • reading the shared attention module;
    • KV Cache reads and writes;
    • router computation;
    • expert dispatch and result merging;
    • cross-device all-to-all communication;
    • batch concatenation and scheduling overhead;
    • linear or superlinear memory growth from long context.

    So in engineering you usually need to leave a 1.5–2x margin on the theoretical bandwidth requirement. This also explains why ultra-large MoE local deployment often can’t be solved by “buying a few cards,” but requires designing whole machines, high-speed interconnect, unified memory, and scheduling systems together.


    4. Three Deployment Tiers and Cost Ranges

    The following is an estimate for local self-build or small server rooms. Prices are approximated only by rough ranges for common hardware: whole machines, memory, storage, network, and accelerator cards. They exclude server-room renovation, power expansion, long-term operations, spare parts, and labor costs. Actual prices fluctuate with the supply chain, channels, and second-hand markets.

    Deployment Target Main Bottleneck Recommended Hardware Form Budget Range Expected Experience
    Just needs to run, don’t care about speed Weight capacity, memory bandwidth Large-memory server + a few inference cards ~RMB 200,000–400,000 1–5 tokens/s, suitable for validation
    Single user at 25 tokens/s VRAM bandwidth, expert parallelism, communication Multi-node high-bandwidth inference cluster ~RMB 800,000–1,800,000 Close to usable single-person interaction
    10 concurrent at 25 tokens/s each Aggregate throughput, all-to-all, stability 64-card-class supernode or equivalent ~RMB 4,000,000–10,000,000 Small production service

    1. Tier One: Just Needs to Run

    The core goal of this tier is not speed but validating whether the model can correctly load, route, and generate. Here you can use a heterogeneous approach: place the compute-intensive but relatively fixed shared-attention part on a few inference cards, and place the large-capacity but sparsely activated expert weights in large-memory CPU nodes.

    A typical configuration can include:

    • 1–2 large-memory servers, total memory recommended at 2TB+;
    • 4–8 inference cards, for shared layers, routing layers, and some high-frequency experts;
    • 2TB+ of high-speed SSD storage, for weight caching;
    • a gigabit or 10-gigabit network is sufficient; no pursuit of extremely low latency.

    The cost of this tier comes mainly from memory and storage. Because the weights can’t fully fit in VRAM, CPU memory bandwidth becomes the main bottleneck, and decode speed may be only single-digit tokens/s. It suits architecture validation, quality sampling, and troubleshooting, and is not suited as a daily development tool.

    2. Tier Two: Single User at 25 tokens/s

    To reach single-user 25 tokens/s, relying on CPU memory alone is usually not enough. You need more of the weights to reside in high-bandwidth VRAM, and you use expert parallelism to distribute the 896 experts across multiple cards.

    Recommended form:

    • 16–24 high-bandwidth inference cards;
    • multi-machine, multi-card setup, with nodes requiring low-latency high-speed interconnect;
    • total VRAM capacity recommended at no less than 2TB;
    • high-speed SSD storage configured as the weight-landing and cache layer;
    • an inference engine that supports expert parallelism, dynamic routing, paged KV Cache, and continuous batching.

    The key of this tier is not single-card performance but inter-card communication. After each token routes to 16 experts, activations may need to be moved between multiple devices, then computed by the target devices and returned. If inter-node network latency is high, all-to-all communication will directly eat into the compute.

    The budget is about RMB 800,000–1,800,000, depending on inference-card type, VRAM capacity, number of nodes per machine, and interconnect method. If you use second-hand equipment or a hosted server room, the cost may drop, but stability, power consumption, and operations risk will rise.

    3. Tier Three: 10 Concurrent at 25 tokens/s Each

    This tier has entered small production-service territory. Aggregate throughput must reach at least 250 tokens/s, and P95 latency must not degrade significantly. At this point, single-machine or multi-machine heterogeneous solutions are hard to sustain stably, and you usually need 64+ high-bandwidth inference cards forming a supernode, or an equivalent high-speed communication domain.

    Recommended configuration:

    • 48–64 high-bandwidth inference cards as a starting point;
    • high-speed, low-latency inter-card interconnect;
    • a large VRAM pool, recommended at 4TB+;
    • multi-path redundant power supply;
    • dedicated cooling or server-room-level refrigeration;
    • monitoring, alerting, logging, and rate-limiting components;
    • weight distribution, version management, and canary-release mechanisms.

    The budget for this tier is about RMB 4,000,000–10,000,000. If you require high availability, dual-active deployment, disaster recovery, and long-term stable operation, the budget will continue to rise.


    5. Cost Is Not Just Hardware: Power, Cooling, and Operations Are Often Underestimated

    The power consumption of ultra-large MoE inference is often underestimated. A 64-card-class system at full load may draw tens of kilowatts. Estimating at 30–80kW of power consumption and an electricity price of RMB 0.6–1.2/kWh, the annual electricity cost is roughly between RMB 160,000 and 840,000.

    Beyond electricity, you also need to account for:

    • server-room floor loading;
    • power redundancy;
    • UPS and power-distribution renovation;
    • cooling capacity;
    • noise control;
    • spare-parts inventory;
    • faulty-card replacement;
    • network-equipment maintenance;
    • software upgrades and security patches;
    • re-running load tests after model weight updates.

    If deployed in an ordinary office environment, the heat and noise of high-power equipment may directly affect availability. For this reason, production-grade local deployment is best placed in a standard server room or a hosted environment.


    For this kind of model, we recommend not treating deployment as simply “launching an inference process,” but splitting it into a three-layer architecture.

    1. Weight Storage Layer

    Weight files are large and can’t just sit in a single machine’s temporary directory. Recommended:

    • object storage or a distributed file system to hold the original weights;
    • local high-speed SSD as a cache;
    • a checksum mechanism to ensure weight-file integrity;
    • multi-version canary support, to avoid a single update interrupting the service.

    Weight distribution should be parallelized as much as possible. For example, multiple nodes should pull shards simultaneously at startup rather than one node reading them serially.

    2. Inference Compute Layer

    The inference layer needs to support the following capabilities:

    • 4-bit or mixed-precision weight loading;
    • MoE routing and expert scheduling;
    • tensor parallelism and expert parallelism;
    • paged KV Cache management;
    • dynamic batching;
    • long-context truncation or a sliding-window strategy;
    • request timeouts and circuit breaking;
    • expert load balancing.

    A simplified MoE inference flow can be abstracted as:

    1. for layer in model.layers:
    2. hidden = shared_attention(layer, hidden)
    3. route_scores = router(layer, hidden)
    4. selected_experts = top_k(route_scores, k=16)
    5. expert_inputs = dispatch(hidden, selected_experts)
    6. expert_outputs = run_experts(expert_inputs)
    7. hidden = combine(layer, hidden, expert_outputs)

    In real engineering, this flow is heavily optimized, including operator fusion, communication overlap, asynchronous pipelines, expert caching, and batch merging.

    3. Scheduling and Observability Layer

    Local deployment does not mean unattended operation. In production environments especially, you need to observe:

    • single-request first-token latency;
    • per-token output latency;
    • aggregate throughput;
    • P95/P99 latency;
    • VRAM usage;
    • memory-bandwidth utilization;
    • inter-card communication latency;
    • expert routing distribution;
    • request queue length;
    • power consumption and temperature.

    If an expert node stays overloaded for a long time, it causes jitter in overall throughput. So routing balance and dynamic migration are the keys to MoE service stability.


    7. A Simple Capacity Estimation Script

    Below is a general estimation approach for quickly judging weight capacity and bandwidth requirements. It does not involve any specific vendor and does not represent any real product interface.

    1. def estimate_moe_deployment(
    2. total_params,
    3. num_experts,
    4. activated_experts,
    5. bit_width,
    6. target_tps,
    7. concurrency=1
    8. ):
    9. # Estimate weight volume, in GB
    10. weight_gb = total_params * bit_width / 8 / 1e9
    11. # Number of expert parameters activated per token
    12. activated_params = total_params * activated_experts / num_experts
    13. # Expert weight volume that must be read per token, in GB
    14. activated_weight_gb = activated_params * bit_width / 8 / 1e9
    15. # Aggregate target throughput
    16. aggregate_tps = target_tps * concurrency
    17. # Theoretical weight-reading bandwidth requirement, in GB/s
    18. required_bandwidth_gb_s = activated_weight_gb * aggregate_tps
    19. return {
    20. "weight_gb": weight_gb,
    21. "activated_weight_gb_per_token": activated_weight_gb,
    22. "required_bandwidth_gb_s": required_bandwidth_gb_s
    23. }
    24. result = estimate_moe_deployment(
    25. total_params=2.8e12,
    26. num_experts=896,
    27. activated_experts=16,
    28. bit_width=4.25,
    29. target_tps=25,
    30. concurrency=10
    31. )
    32. print(result)

    The core takeaways from this example are:

    • weight capacity of about 1487.5GB;
    • about 26.6GB of expert weights read per token;
    • at 10 concurrency with 25 tokens/s each, a theoretical bandwidth requirement of about 6650GB/s;
    • actual deployment must add shared layers, KV Cache, communication, and scheduling overhead on top of this.

    So when selecting hardware, you can’t look only at “whether it fits” but also at “whether it can keep feeding data at high speed.”


    8. Validation and Load Testing: Don’t Just Check Whether It Starts

    A model that starts up does not mean the deployment has succeeded. We recommend completing at least the following validations:

    1. Weight integrity verification
      Load all weight files and check that shards, checksums, and memory mapping are all normal.

    2. Single-request decode test
      Fix the input length and output length, measure per-token latency, and confirm whether the target tokens/s is reached.

    3. Long-context test
      Test 8K, 32K, 128K, and other context lengths separately, and observe KV Cache growth and peak VRAM.

    4. Concurrency step test
      Step up from 1 concurrent to 10, 20, and 50, and observe throughput, latency, and queuing.

    5. Expert routing distribution test
      Count how often experts are activated under different inputs, to judge whether hotspot experts or routing skew appear.

    6. Communication latency test
      In multi-node scenarios, measure all-to-all communication latency to confirm the network won’t become a bottleneck.

    7. Fault recovery test
      Simulate single-card failure, single-node restart, storage jitter, and network jitter, and verify whether the service can auto-degrade or recover.

    Recommended acceptance metrics include:

    • single-user target: sustained output speed of no less than 25 tokens/s over 10 minutes;
    • 10-concurrency target: per-person output speed of no less than 25 tokens/s, with P95 no less than 20 tokens/s;
    • first-token latency: within an acceptable range, avoiding long unresponsive periods;
    • VRAM margin: peak usage no more than 85% of the total;
    • power and temperature: stable operation within the range the server room allows.

    9. Conclusion: The Essence of Local Deployment Is Systems Engineering, Not Single-Card Procurement

    For a 2.8-trillion-parameter-class MoE model, the local-deployment cost cannot be answered simply with “how much do a few cards cost.” What really determines the budget are three questions:

    1. Do you want it to run, or to be usable?
      Minimum viable operation may need a large-memory server plus a few inference cards, at a relatively low budget, but the speed may be only single digits.

    2. Do you want to serve one person, or many people?
      The gap between single-user 25 tokens/s and 10 concurrent at 25 tokens/s each is not linear but close to an order-of-magnitude difference.

    3. Can your server room support high power consumption and high-bandwidth communication?
      Power supply, cooling, network, and operations capability will directly affect long-term cost.

    From an engineering-practice standpoint, low-throughput validation can use heterogeneous solutions to cut cost; single-user high throughput needs multi-card parallelism and high-speed communication; production-grade high concurrency usually needs a supernode architecture. For teams with a limited budget, the more prudent path is to first run small-scale benchmark tests, then scale up gradually based on the actual tokens/s, latency, and power consumption, rather than procuring large-scale equipment all at once and tuning afterward.