Local Deployment of Large MoE Models on 8 GPUs: Resource Planning Explained
This article explains why total VRAM capacity alone does not determine whether a large MoE model can be deployed on 8 GPUs. It breaks down the four resource categories that must be planned, compares tensor parallelism and expert parallelism, discusses placing conditional memory in host memory, and outlines a layered capacity planning approach with common pitfalls to avoid.
Local Deployment of Large MoE Models on 8 GPUs: Resource Planning Explained
1. Why “Enough Total VRAM” Does Not Mean “Deployable”
For internal AI assistants, coding assistants, and model API services, deploying very large Mixture-of-Experts (MoE) models locally has become a common requirement. When selecting hardware, many teams start by multiplying single-GPU VRAM capacity by the number of cards. What actually determines deployment success is how well the model’s structural characteristics match the server’s resources.
Consider a class of MoE models with roughly 552B backbone parameters and 196B conditional memory parameters. In the Prefill stage, each token activates about 8B parameters; in the Decode stage, about 16B. The most commonly misread point here is that activated parameters only describe the scale of the path taken by a single forward pass. They do not mean you only need to provision that much VRAM. All expert weights and the conditional memory access space must be resident or addressable; otherwise routing cannot be completed.
A complete deployment therefore requires planning four categories of resources separately:
- Backbone weights: the shared parts such as attention layers, embedding layers, and normalization layers;
- Conditional memory access space: the external memory structures along with their indexes and caches;
- KV Cache: strongly correlated with context length and concurrency;
- Runtime workspace and communication buffers: temporary operator tensors, AllReduce/All-to-All buffers, and so on.
Public configurations have shown a VRAM budget of around 614GB as a planning reference for a certain loading approach. That is only a starting point; the actual value varies significantly with quantization method, memory placement strategy, and service parameters.
2. 8 GPUs Are Not One Unified Memory Pool: The Nature of Parallelism
The sum of the nominal VRAM across 8 GPUs is not a shared memory. Cross-card access must go through high-speed interconnects or PCIe, and every synchronization introduces latency. The parallelism strategy determines what gets split, how it is split, and how much communication occurs.
2.1 Tensor Parallelism (TP)
TP splits the weight matrices of a single layer across multiple cards by row or column. It suits large matrix multiplications and reduces per-GPU weight pressure. The cost is that every layer requires a cross-card reduction, making communication frequent and sensitive to inter-card bandwidth. When the TP degree is too high, communication overhead can consume the gains from computation.
2.2 Expert Parallelism (EP)
EP targets MoE expert networks by placing different experts on different devices. Since each token activates only a few experts, the actual communication volume depends on the routing distribution. If routing is skewed, a few cards become overloaded while the rest sit idle. Performance analysis for EP must account for expert routing and All-to-All data exchange.
2.3 Combining TP and EP
In practice, TP and EP are often combined: TP handles the dense backbone, while EP carries the sparse experts. The chosen values must match the inference framework, the model implementation, and the server topology. There is no universal optimum. An illustrative configuration logic looks like this:
world_size = 8tp_size = 2 # Tensor parallelism for the backboneep_size = 4 # Expert parallelism# Constraint: tp_size * ep_size matches the framework's parallelism mapping# Constraint: members of the same TP group should sit under the same NUMA node / same PCIe switch
3. Placing Conditional Memory: Trade-offs Between VRAM and Host Memory
Conditional memory parameters are sizable, and some implementations place them in host memory so that more GPU VRAM can serve backbone weights and runtime caches. This does not make the cost disappear; it shifts the evaluation focus to:
- Whether CPU memory capacity is enough to hold the memory space;
- Whether memory bandwidth can support the random access of the Decode stage;
- Whether NUMA node distribution causes cross-node access;
- Whether the PCIe access path goes through extra bridging;
- Whether caching and prefetching strategies are effective.
For integration engineers, a configuration checklist should not list only the GPU model. It should also verify memory distribution under a dual-socket CPU, PCIe slot connectivity, and CPU/GPU affinity binding for the inference process. With the same number of 8 cards, latency and throughput can differ markedly depending on topology and data placement.
4. A Layered Approach to Resource Planning
The following steps are recommended for capacity and performance planning:
- Estimate backbone weights: convert per-GPU load according to precision (FP8/INT8/FP16);
- Determine memory placement: in VRAM or in host memory, and adjust the budget accordingly;
- Derive the KV Cache ceiling:
per-GPU KV = layers × 2 × heads × head_dim × context × concurrency / TP; - Reserve runtime buffers: communication and operator workspaces usually need extra headroom;
- Calibrate with load testing: validate using real business context lengths and concurrency curves.
5. Common Pitfalls and Practical Recommendations
- Pitfall 1: Small activated parameters mean small VRAM requirements. Wrong. All weights and the memory space must be addressable.
- Pitfall 2: More cards mean more speed. Wrong. Communication and routing skew can offset the gains from parallelism.
- Pitfall 3: Placing data in host memory is zero cost. Wrong. Bandwidth, NUMA, and PCIe become the new bottlenecks.
In practice, first ensure topology consistency, then tune the parallelism degrees, and finally use monitoring and logging to observe throughput, latency, and VRAM levels, forming a reproducible capacity baseline.
