A Guide to Local Deployment Costs for Ultra-Large MoE Models
Deploying trillion-parameter Mixture of Experts (MoE) models locally requires defining service levels before selecting hardware. This guide breaks down deployment targets into three tiers—from basic execution to concurrent multi-user inference—and provides estimation methods for VRAM, storage, communication overhead, and overall cost.
When locally deploying a large language model with a sparse expert architecture and a total parameter count reaching the trillion scale, the first question to answer is not “which GPU to buy,” but “what level of service is required.” The same model weights sitting on a large-memory server capable of generating tokens differ entirely in hardware scale, interconnect requirements, and cost magnitude from a setup that allows 10 concurrent users to stably achieve a decoding speed of 25 tokens per second (tps). This article approaches the topic from a general technical perspective, breaking down deployment goals into three tiers and providing estimation methods for VRAM, storage, communication, and cost. It is important to emphasize that the parameter scales, memory figures, and speed targets mentioned below are estimation frameworks; once official weights are released, they must be verified item by item through benchmark testing.
1. Define Three Service Tiers: Runnable, Single-User Usable, and Multi-User Concurrent
Tier 1: “As long as it runs, speed does not matter.”
The only goal is to load nearly 1500GB of 4-bit weights into addressable storage, allowing the model to complete forward computation and generate tokens, even if only at single-digit tps. Here, the bottleneck is typically not compute power, but memory capacity, storage bandwidth, and the efficiency of swapping experts in and out.
Tier 2: “Single-user usage with an output speed of 25 tps.”
This requires the decoding phase to avoid frequently waiting for weight transfers. The shared attention backbone and hot experts should reside in high-bandwidth VRAM as much as possible, while cold experts are offloaded to large system memory via hierarchical storage. The quantization level should not be lower than 4-bit, and critical layers or activations can retain 8-bit to control precision loss.
Tier 3: “10 concurrent users, each achieving an output speed of 25 tps or above.”
If every session requires 25 tps, the aggregate decoding throughput must reach at least 250 tps, with adequate headroom. At this level, single-machine VRAM and memory bandwidth are usually insufficient. Multi-GPU or even multi-node expert parallelism is required. All-to-all communication, KV cache management, continuous batching, and scheduling policies become the primary cost drivers.
| Tier | Target | Key Bottleneck | Dominant Cost Factor | Verification Metric |
|---|---|---|---|---|
| Tier 1 | Loadable, generates tokens | Memory capacity, storage bandwidth | Large-memory host, storage, few accelerators | Load time, VRAM peak, decode tps |
| Tier 2 | Single-user 25 tps | VRAM bandwidth, expert residency rate | Number of accelerators, CPU-GPU interconnect | First token latency, single-path decode tps |
| Tier 3 | 10 concurrent users at 25 tps | All-to-all communication, batch scheduling | Multi-GPU/multi-node, high-speed interconnect, power | Aggregate throughput, concurrency linearity, communication ratio |
2. VRAM and Storage Estimation: Total Parameters Dictate Storage, Activation Ratio Dictates Compute
The first principle of MoE deployment is that VRAM or memory footprint is estimated based on total parameters, while the activation ratio only affects compute consumption. Taking an architecture with 2.8 trillion parameters, 896 experts, and 16 experts activated per token as an example, the expert activation ratio is about 1.79%. However, this does not equate to a strict parameter activation ratio. During deployment, all experts must be loaded into addressable storage, and the 16 activated experts are then called out based on routing during inference.
If weights use a 4-bit floating-point format, the raw data lower limit is about 1400GB. However, quantized formats typically include scaling factors. For example, if every 32 4-bit elements are accompanied by an 8-bit scale, estimating at 4.25 bits per weight element:
Weight bytes ≈ Total parameters × Effective bits per parameter ÷ 8≈ 2.8T × 4.25 ÷ 8≈ 1487.5GB
This calculation does not account for non-4-bit tensors, metadata, alignment padding, runtime workspace, and KV cache. Therefore, the actual addressable memory should exceed 1500GB, with a 20% to 30% headroom reserved. For reference, a 671B-scale MoE model using an 8-bit format requires about 685GB for primary and auxiliary parameters, while 4-bit weights require about 335GB. Adding about 37GB for activations, a total of 400GB is needed to fit into 640GB of total VRAM. A trillion-scale model is several times this size, establishing the lower limit for a full-precision deployment.
The KV cache cannot be ignored either. A simplified estimation can be written as:
KV cache ≈ 2 × Layers × KV_heads × Head_dimension × Sequence_length × Concurrency × Bytes_per_element
Long contexts, high concurrency, and high-precision KV will rapidly amplify this footprint. In actual deployment, the KV cache peak must be monitored independently; budgeting based solely on weights is insufficient.
3. Tier 1 Solution: Large-Memory Heterogeneous Inference, Solving “Fitting it in”
The most straightforward approach for Tier 1 is CPU-GPU heterogeneous inference. Each layer of an MoE typically contains a shared attention backbone and sparse expert layers. The shared attention computation is dense and suitable for remaining on the GPU using high-bandwidth compute. Expert layers occupy the bulk of storage but only activate a small number of experts each time; they can be offloaded to CPU memory, supplied by a large-memory server.
A typical practice is to place the shared attention, routing, and hot experts on accelerators, while cold experts reside in host memory, swapped in via paging or on-demand loading. The core cost of this solution is not top-tier compute power, but large-capacity memory, sufficient storage throughput, and a stable host platform. The risk lies in the extra latency introduced by expert swapping, where PCIe or host memory bandwidth may become the bottleneck. If the goal is merely to “make it run,” a lower tps is acceptable, but load time, memory peak, and long-term operational stability must be verified.
4. Tier 2 Solution: Single-User 25 tps Requires Higher Expert Residency
A single-path decoding speed of 25 tps is already usable for interactive experiences, but it is not easy for trillion-scale MoEs. At this stage, leaving all experts in slow memory is no longer viable, as every token might stall waiting for weight transfers. A more reasonable route is hierarchical deployment: high-frequency experts and the shared backbone reside on the GPU, while low-frequency experts remain in large system memory, transferring only the activated experts after routing.
Costs shift from a “large-memory host” to “number of accelerators + high-speed interconnects.” Three metrics need to be measured closely: first token latency, single-path decode tps, and VRAM peak. If single-GPU VRAM is insufficient, multi-GPU expert parallelism can distribute experts across multiple cards, but routing transfers for each token will incur communication overhead. At this point, high-speed interconnects and topology design begin to influence cost.
5. Tier 3 Solution: 10 Concurrent Users at 25 tps, Communication and Scheduling as Primary Costs
Ten concurrent users at 25 tps per path implies an aggregate decoding throughput of at least 250 tps. Large-scale MoE inference is extremely sensitive to all-to-all communication bandwidth. When 896 experts are distributed across multiple GPUs, routing each token requires sending activations to the GPU where the target expert resides, and sending them back after computation. Communication latency directly eats into compute power.
Therefore, Tier 3 typically requires a super-node composed of multiple GPUs or nodes, using high-speed interconnects to enlarge the communication domain so that expert transfers stay within a single domain. Cost items include: number of accelerators, per-GPU VRAM, intra-node and inter-node interconnects, switching equipment, power and cooling, KV cache capacity, and scheduling and monitoring software adaptation. Simply stacking GPUs may not be effective here; measuring communication ratio and concurrency linearity first is mandatory.
6. Cost Breakdown and Decision Process
Local deployment costs can be broken down into: hardware procurement or leasing, datacenter power, network interconnects, storage, operations and maintenance labor, and model adaptation and benchmark testing. Procurement costs are determined by the cost per GB of addressable memory, per-GPU VRAM, per Gbps of interconnect bandwidth, and per kW of power. It cannot be summarized by a single “整机” (whole-machine) price.
The recommended decision process is as follows:
- Estimate the weight lower limit using total parameters and quantization format, then add a 20% to 30% headroom.
- Clarify concurrency and single-path tps targets to calculate aggregate throughput and KV cache.
- Conduct single-machine heterogeneous verification first, testing load time, first token latency, and decode tps.
- If single-path targets are met but concurrency is insufficient, add expert parallelism and high-speed interconnects.
- After weight release, perform precision regression, long-term stability testing, and communication ratio analysis.
For early-stage verification in the cloud, general-purpose container platforms, object storage, and monitoring tools can be used to quickly build an environment. Cloud providers such as Baidu AI Cloud offer these general cloud product categories, though specific specifications and quotes depend on actual inquiries. The final budget should be built around service level objectives, rather than guessing based on “parameter scale.” Costs across the three tiers rise progressively from a large-memory single machine to multi-node super-nodes. Defining the SLA first, then selecting hardware, is the controllable path for local deployment.
