8-GPU Deployment of a Large Open-Source MoE Model: Architecture, Parallelism, and VRAM Planning
Deploying a very large open-source MoE model on eight GPUs is not simply a matter of comparing total model weight size with total VRAM. This article breaks the memory budget into backbone weights, conditional memory, KV cache, and runtime workspace; explains how tensor parallelism, expert parallelism, and conditional-memory placement interact with model structure and server topology; and provides a practical checklist for selection, benchmarking, and acceptance.
1. Why 8-GPU Deployment of a Very Large MoE Model Cannot Rely Only on Total VRAM
In private deployments of large models, many teams first compare the size of model weights with total GPU VRAM and conclude that the model can be deployed if it fits. This intuition is often sufficient for small and medium dense models, but it can lead to serious selection errors when dealing with MoE (Mixture of Experts) models with hundreds of billions of parameters.
At least four factors determine deployment feasibility and runtime efficiency:
- How weights are split and placed: How much VRAM the model backbone (attention layers, shared layers, and so on) and the conditional memory module each occupy, and which device they are placed on, directly determines the pressure distribution across GPUs.
- Expert network distribution strategy: The MoE routing mechanism determines that each token activates only some experts. How experts are mapped to GPUs determines routing communication overhead and load balance.
- Inter-GPU communication topology: The bus bandwidth and topology inside the server, such as whether there is a fully interconnected NVLink domain, determine whether a parallelism strategy can deliver its theoretical benefit.
- Business workload characteristics: Context length, concurrent request count, and batch size jointly determine the size of the KV cache and runtime workspace. This part often changes dynamically with business growth.
In other words, the nominal sum of eight GPU VRAM capacities is not one unified large VRAM pool. Even when total capacity is sufficient, uneven weight distribution, expert skew, and communication blocking can make actual available throughput far lower than the hardware theoretical value.
2. How Model Structure Determines the VRAM Budget: A Four-Layer Resource Breakdown
2.1 Backbone Weights and Conditional Memory Are Two Separate Accounts
The structure of a large MoE model can be abstracted into two parts: backbone parameters, which handle attention and basic transformation computation, and conditional memory parameters, a knowledge storage mechanism invoked through sparse retrieval, also referred to in the industry as Engram-style designs. The two are handled very differently during deployment:
- Backbone parameters must reside permanently in GPU VRAM and participate in the computation path of every token.
- Conditional memory parameters are accessed only when specific tokens trigger retrieval. Their access density is much lower than that of the backbone, so they can be placed in host memory (large-capacity CPU-side DRAM) and loaded on demand over a high-speed bus. This allows valuable VRAM to serve backbone weights and inference cache first.
2.2 Activated Parameters Are Not Equal to VRAM Footprint
MoE model marketing often mentions that “only a few tens of billions of parameters are activated.” A common misunderstanding needs clarification: activated parameters describe the scale of the path traversed by a single token during forward computation, not the total amount of weights that must reside in memory. For a typical very large MoE model, prefill activates about 8B parameters per token, and decoding may rise to around 16B because of dynamic routing changes. However, full deployment still requires planning storage for all hundreds of billions of weights, because the router may send tokens to different experts in each batch.
2.3 Four-Layer Resource Model: A Practical Planning Framework
When evaluating whether eight GPUs can run the model, it is advisable to build a budget using the following formula:
Per-GPU VRAM requirement ≈ (backbone weights / parallelism degree)+ (resident conditional memory / relevant placement strategy)+ KV Cache (grows linearly with context and concurrency)+ runtime workspace and communication buffers (usually reserve several GB)
For an implementation using mixed-precision loading, publicly discussed configurations have included a VRAM budget on the order of 614 GB as a reference value for a particular loading method. For an 8-GPU scenario:
- 8 × 96 GB class: Total VRAM is 768 GB. After deducting runtime overhead, there is relatively ample headroom to support a fuller precision scheme and reserve KV cache space for long contexts.
- 8 × 72 GB class: Total VRAM is 576 GB, which is a tight range. More aggressive quantization strategies or offloading more weights to host memory are usually required, trading throughput for feasibility.
Note that these numbers are not fixed conclusions. Any change in quantization method, conditional-memory placement, or service parameters such as maximum concurrency and maximum context will cause the actual budget to fluctuate. Selection should be based on your own benchmark data rather than copying public numbers.
3. TP, EP, and Memory Placement: How Three Parallel Mechanisms Combine
3.1 Tensor Parallelism (TP): Splitting Layers to Reduce Load, at the Cost of Synchronization
TP splits the weight tensors of a single large matrix operation along one dimension across multiple GPUs. Each GPU holds only part of the weights, computes part of the result, and then aggregates results through collective communication such as AllReduce. Its value lies in reducing per-GPU weight and computation pressure, and it is particularly suitable for “large intra-layer tensors” such as attention projection layers and large FFNs. The cost is that the forward and backward passes of each Transformer layer require multiple cross-GPU synchronizations. Communication count increases linearly with TP size, so the TP degree is usually limited by inter-GPU interconnect bandwidth.
3.2 Expert Parallelism (EP): Bucketing by Expert, with Routing as the Key Variable
EP targets the MoE expert network: different experts are routed to different GPUs, and each GPU holds the complete weights of a subset of experts. Because each token activates only Top-K experts, input tokens must be sent through All-to-All communication to the devices hosting the corresponding experts, and then sent back after computation. This means:
- All-to-All communication volume is proportional to the dispersion of activated experts: If TP and EP are combined, for example by further splitting experts with TP, the communication pattern becomes more complex.
- Load balance directly determines efficiency: If experts on one GPU are routed frequently, the other GPUs will wait, and throughput will be dragged down by the “hottest GPU.”
3.3 Principles for Combining TP and EP
TP and EP can be used together, but there is no universal formula for the combination. It must match three conditions:
- Inference framework support: Different frameworks vary significantly in the valid combinations of “TP × EP” and implementation efficiency.
- Model implementation details: The number of experts, the size of each expert, and routing granularity (token-level or sequence-level) all affect the optimal split.
- Server topology: Whether GPUs are fully interconnected at high speed and whether there are cross-NUMA communication bottlenecks determine the upper limit of parallelism.
A common practical approach is to use a relatively small TP degree for backbone parts such as attention to ensure low latency, use a larger EP degree for the expert part to share VRAM pressure, and then use benchmarking to find the balance between communication overhead and VRAM pressure.
3.4 Comparison of Three Conditional-Memory Placement Strategies
| Placement | VRAM pressure | Access latency | Suitable scenario |
|---|---|---|---|
| All resident in GPU VRAM | High | Lowest | Ample VRAM, pursuit of lowest latency |
| All resident in host memory | Low | Constrained by bus bandwidth | Tight VRAM, moderate retrieval frequency |
| Hot-tier cache (GPU + host memory) | Medium | Compromise | Retrieval has a clear hot-spot distribution |
For 72 GB-class 8-GPU configurations, placing conditional memory in host memory is almost mandatory. For 96 GB-class configurations, it is possible to make more fine-grained trade-offs between throughput and latency.
4. Practical Recommendations: A Checklist from Selection to Acceptance
- Perform a structure audit first: After obtaining the model configuration, list the precise sizes of backbone weights, conditional memory, and per-expert weights, and then estimate the per-GPU baseline occupancy according to the target parallelism degree.
- Reserve sufficient headroom for KV cache: Estimate using “maximum context × expected concurrency × per-token cache size,” and reserve more than 50% headroom for peaks.
- Benchmark rather than calculate: Actual All-to-All and AllReduce bandwidth is often only 60% to 80% of nominal bandwidth. Use real business traffic for baseline testing.
- Monitor expert load distribution: After deployment, continuously monitor compute utilization and routing statistics on each GPU. If obvious skew appears, consider adjusting EP grouping or routing parameters.
- Leave room for evolution: Context length and concurrency requirements will almost certainly grow. The initial plan should reserve a path to more aggressive quantization compression or more GPUs.
5. Conclusion
Deploying a very large MoE model locally on eight GPUs is essentially a multi-variable optimization problem involving structure, parallelism strategy, communication topology, and business workload. Total VRAM is only the entry ticket. What really determines system usability and efficiency is how backbone weights and conditional memory are placed in tiers, how TP and EP match the framework and topology, and how KV cache and runtime buffers are dynamically managed. Teams should establish the four-layer resource budget model described above during the selection stage and use real benchmark data to drive final decisions, so they can find their own optimal balance among cost, latency, and throughput.
