Resource Planning for Deploying MoE LLMs on 8 Local GPUs
This article explains how to plan resources for deploying large-scale Mixture-of-Experts (MoE) models on a single 8-GPU server. It corrects two common misconceptions—confusing activated parameters with VRAM requirements, and treating eight GPUs as one pooled memory block—then walks through deriving a resource profile from model structure, budgeting four separate resource categories (backbone weights, conditional memory, KV cache, and runtime buffers), and choosing between tensor parallelism and expert parallelism. A deployment checklist and a sample configuration are included.
1. Two Misconceptions to Correct First
Most resource planning mistakes in single-node 8-GPU MoE deployments come from two intuitive but wrong assumptions.
The first is treating “activated parameters” as “VRAM requirements.” Take a large-scale MoE model with roughly 552B backbone parameters and about 196B conditional memory parameters. Its Prefill stage activates about 8B parameters per token, and its Decode stage about 16B. These numbers describe the subset of parameters touched by a single forward pass. They determine compute and memory-access pressure, but they say nothing about how much VRAM the weights must permanently occupy. All expert weights, the conditional memory structures, and runtime overhead must be resident or quickly accessible at the same time.
The second is adding up the nominal VRAM of eight cards and treating it as one large unified pool. Physically, they are eight independent address spaces connected by limited-bandwidth interconnects. A sufficient total capacity only means the model “fits in theory.” It does not mean the weight sharding is balanced, the communication overhead is acceptable, or that no single card exceeds its peak limit.
So the correct planning order is: understand the structure first, calculate the four resource categories second, and only then decide on a parallelism strategy.
2. Deriving a Resource Profile from Model Structure
The defining trait of an MoE structure is “large total parameters, sparse per-token compute path.” The backbone parameters make up the bulk of the attention, normalization, routing, and expert sets. Conditional memory parameters are an additional addressable memory structure, read only under specific conditions to supplement context beyond the backbone.
Three conclusions follow that are decisive for deployment:
- Resident weight size is determined by total parameters and precision, not by activation size. In a mixed-precision implementation, a public configuration has cited a VRAM budget of about 614GB as a planning reference for one particular loading method. This is only a starting point; it shifts noticeably with conditional memory placement, quantization, and concurrency settings.
- Load imbalance from routing is the norm. Cards hosting popular experts hit their VRAM and compute ceilings earlier, so planning must be based on the hottest card, not the average one.
- Conditional memory access patterns differ from KV cache. It behaves more like “a large table read with sparse random access,” sensitive to capacity and access latency, and less dependent on sustained bandwidth.
3. Plan the Four Resource Categories Separately
A rigorous VRAM budget should be split into four parts, each estimated and given its own watermark.
1) Backbone weights. Estimate as parameter count multiplied by bytes per parameter, then add alignment and metadata overhead. With mixed precision, specify which layers keep higher precision and which can be reduced, and reserve temporary space for dequantization.
2) Conditional memory access space. This is either kept resident in VRAM or placed in host memory/local storage and fetched on demand by the runtime. The placement directly determines the capacity budget and first-token latency, and is the item most worth A/B testing in an 8-GPU setup.
3) KV cache. It scales strongly with concurrency, context length, layer count, and head dimension. It is the only part that grows linearly with business load, so it must have an explicit upper bound.
4) Runtime workspace and communication buffers. This includes temporary operator tensors, sampling and decoding buffers, and parallel communication send/receive areas. It is the most commonly missed item and often takes a considerable fixed overhead in 8-GPU scenarios.
A practical budget expression is: usable VRAM per card × 8 ≥ backbone weights + resident conditional memory + KV cache limit + runtime buffers + safety margin, with every term calculated for the hottest card.
4. Division of Labor and Trade-offs Between TP and EP
Tensor parallelism (TP) splits a single layer’s operators across cards horizontally. It is good at reducing the per-card weight peak, but every layer requires reduction-type communication, making it sensitive to inter-card bandwidth. Too high a split degree also fragments small operators and lowers utilization.
Expert parallelism (EP) distributes experts across cards, concentrating communication in routing and result aggregation. It scales better but amplifies load skew: when a few cards carry popular experts, the rest sit idle.
A common combination in practice is to use TP to ensure each card can hold its share and EP to expand total capacity, aligning communication domains with the physical interconnect topology so that high-frequency communication stays within the highest-bandwidth links. Parallelism is not “the larger the better”; there is a feasible range bounded by the per-card capacity floor and the communication overhead ceiling.
An illustrative configuration expression (structure only, not a specific interface):
parallel:tensor: 4 # controls per-card weight peakexpert: 2 # expands total capacitykv_cache:max_tokens: 32768reserve_ratio: 0.15runtime:workspace_reserve_gb: 6
5. An 8-GPU Deployment Checklist
- Calculate the hottest card first, then the average; size capacity for the peak card.
- Set a hard limit on KV cache, and stress-test the two extremes of long context and high concurrency.
- A/B test conditional memory placement, recording changes in first-token latency and throughput.
- Align communication domains with topology; avoid high-frequency communication crossing high-latency links.
- Reserve a safety margin to cover fragmentation, temporary tensors, and burst concurrency.
- Set up monitoring and alerting to collect per-card VRAM, utilization, and communication wait time, and use general-purpose logging/alerting capabilities for trend analysis; distribute model files with general-purpose object storage capabilities, and handle orchestration with general-purpose container platform capabilities.
6. Conclusion
Deploying a large-scale MoE model on 8 local GPUs is essentially a planning problem where capacity, bandwidth, and load balancing constrain one another. Activated parameters only describe the compute path; the VRAM budget must cover four resource categories—weights, conditional memory, KV cache, and runtime buffers. The parallelism strategy must find a feasible range between per-card capacity and communication cost. Getting these two points right significantly improves deployment success.
