8-GPU Local Deployment and Resource Planning for Large MoE Models
This article explains how to plan local deployment of ultra-large MoE models on a single 8-GPU node, using 96GB and 72GB per-GPU configurations as examples. It covers why total VRAM capacity alone does not guarantee a viable deployment, how to split the memory budget across backbone weights, conditional memory, KV Cache, and runtime buffers, and how tensor parallelism and expert parallelism divide the work. It also outlines conditional memory placement strategies, the tradeoff between context length and concurrency, and a practical checklist for validating the deployment.
1. Background: Why “Enough Total VRAM” Does Not Mean “Deployable”
For internal enterprise AI assistants, coding assistants for developers, and externally offered model API services, deploying ultra-large Mixture-of-Experts (MoE) models locally has become a common choice. When evaluating hardware, many teams start by adding up the nominal capacity of several accelerators and comparing it with the published size of the model weights. Once the numbers appear to fit, they proceed with the purchase.
Under load testing, however, such setups often run into three types of problems. First, loading fails outright because uneven weight sharding exhausts VRAM on individual devices before others. Second, the model starts but throughput is extremely low, with cross-GPU communication becoming the bottleneck. Third, performance degrades as soon as concurrency rises, because the KV Cache crowds out the space that should be reserved for communication buffers and the runtime workspace.
Real deployment planning has to answer four questions at once: how to shard and place the backbone weights, how conditional memory (Engram-like) parameters are accessed, how the expert networks are distributed, and how inter-GPU communication matches the context scale. Using a single node with 8 GPUs, in two configurations with 96GB and 72GB of VRAM per card, this article presents a reusable planning framework.
2. How Model Structure Drives Resource Planning
This class of ultra-large MoE models typically contains about 552B backbone parameters and about 196B conditional memory parameters. The activated parameters per token are roughly 8B in the Prefill stage and 16B in the Decode stage.
The most common misunderstanding here is treating “activated parameters” as the VRAM requirement. Activated parameters describe the subset of parameters that a single token’s forward pass actually goes through; they determine compute and memory-access intensity. Resident VRAM, by contrast, depends on how all the weights are placed. The two differ by one to two orders of magnitude, and conflating them directly distorts planning.
A more rigorous approach is to break the VRAM budget into four parts:
- Backbone weight region: When loaded in mixed precision, the published configuration once used about 614GB as a planning reference for a specific loading method. This figure changes with the quantization scheme and sharding strategy, so it should only serve as an order-of-magnitude anchor.
- Conditional memory access space: Conditional memory parameters do not all have to stay resident. They can be paged in and out on demand, but this requires reserved address space, page tables, and a prefetch buffer.
- KV Cache region: Strongly tied to context length, concurrency, layer count, and the attention implementation, this is the only part that grows linearly with business load.
- Runtime workspace and communication buffers: This includes temporary operator tensors, sampling and decoding buffers, and the send/receive windows for cross-GPU collective communication. This part is the easiest to overlook, yet it is a common cause of startup failures.
A practical rule-of-thumb allocation is 70%–78% for backbone weights, 12%–20% for the KV Cache, and 8%–15% combined for conditional memory and runtime buffers. The exact numbers need to be calibrated against measurements in your actual framework.
3. Tensor Parallelism vs. Expert Parallelism: Two Sharding Logics
Tensor parallelism (TP) splits the tensor dimensions inside a single operator across multiple GPUs. It suits large matrix computations such as attention projections and feed-forward layers. Its advantage is that per-GPU weights and compute drop together. Its drawback is that every layer’s forward pass requires a collective communication, making it extremely sensitive to inter-GPU interconnect bandwidth. As a result, the TP degree generally does not exceed the size of the high-speed interconnect domain within a node; an 8-GPU machine typically uses 4 or 8.
Expert parallelism (EP) targets the expert networks in MoE models by placing entire experts on different devices. Since each token is routed to only a few experts, EP yields significant VRAM savings, but it introduces routing-result exchange and uneven expert load. The GPU hosting a popular expert becomes a hotspot, producing a pattern where the overall system is idle while a single card is maxed out.
How the two are combined determines overall efficiency. A common strategy is to let TP handle the backbone and attention while EP handles the expert layers, with the product of their degrees not exceeding the total GPU count. An illustrative configuration looks like this:
# Two typical sharding schemes for an 8-GPU nodeOption A (ample interconnect bandwidth): TP=8, EP=1 # Regular communication, balanced weightsOption B (prioritize expert scale): TP=4, EP=2 # Saves more VRAM, requires hotspot handling
The choice should not be based on which approach is “more advanced,” but on three measured metrics: peak VRAM per GPU, the share of cross-GPU communication in per-step latency, and the skew coefficient of expert load.
4. Conditional Memory Placement Strategies
Conditional memory parameters are large in volume but accessed sparsely. There are three placement orientations:
- Fully resident: Lowest latency, but it takes up a large amount of space that could otherwise go to the KV Cache. Suited to short-context, low-concurrency scenarios.
- Tiered paging: Keep a portion of high-frequency entries resident and page the rest in by access热度. This requires a stable buffer and prefetch bandwidth reserved, and suits long contexts.
- Cross-node pooling: Place conditional memory in a separate memory pool accessed over a high-speed network. On a single 8-GPU machine the benefit is usually limited; this is more useful for later horizontal scaling.
The deciding factors are the conditional memory hit rate and the per-access latency budget. If the hit rate falls below expectations, paging overhead cancels out the VRAM savings, and you should fall back to a more conservative resident ratio.
5. Quantifying the Context and Concurrency Tradeoff
KV Cache usage can be approximated as: number of layers × 2 (K and V) × attention head dimension × context length × concurrency × bytes per element. It grows linearly with concurrency and is the first metric to hit the ceiling in load testing.
A recommended planning order is to fix concurrency first, then context length: determine how many concurrent requests the business must support, then allocate the remaining VRAM to context length. If the two conflict, prioritize concurrency, because insufficient context only affects a single interaction, while insufficient concurrency directly triggers queuing and timeouts.
6. Deployment Checklist
- Run a single-GPU load test first to confirm there is no skew in weight sharding.
- Measure per-step latency for Prefill and Decode with a fixed input, and break out the communication share.
- Increase concurrency gradually and record the point where the KV Cache hits the ceiling.
- Check the runtime buffer headroom; a common recommendation is to leave 5%–8% of VRAM unallocated.
- Bring monitoring alerts, logging services, and the container platform into the deployment so that resource watermarks and request latency are observable.
In cloud environments, you can use a container platform for orchestration, object storage to hold model files, and monitoring alerts to track VRAM and latency watermarks. This turns one-off deployment tuning into a sustainable operational capability.
