8-GPU Local Deployment of Ultra-Large MoE Models: VRAM Planning and Parallelism Strategies
Deploying ultra-large Mixture-of-Experts (MoE) models on an 8-GPU server requires more than adding up nominal VRAM. This article explains how to plan memory across backbone weights, conditional memory, KV cache, and runtime/communication buffers; how to choose and combine tensor parallelism (TP) and expert parallelism (EP); where to place the conditional memory module; and why host-side topology, NUMA, and affinity matter. It closes with a deployment checklist covering long-context, high-concurrency, and routing-skew stress testing.
1. Why “Enough VRAM” Does Not Equal Successful Deployment
A common mistake in local deployment of ultra-large Mixture-of-Experts (MoE) models is to simply add up the nominal VRAM of multiple GPUs and assume that total capacity covering the model size is enough to run smoothly. In reality, the VRAM of eight GPUs is not a single unified shared memory. Each GPU is an independent compute and storage unit. Even when total capacity is sufficient, whether weights are partitioned evenly, whether experts are distributed reasonably, and whether inter-GPU communication is efficient will directly determine whether the service can start, whether latency meets targets, and whether throughput remains stable.
Deployment planning therefore cannot rely on total VRAM alone. Model structure, parallelism strategy, memory hierarchy, and server topology must be planned as a whole. This article uses two high-VRAM workstation-class 8-GPU platforms—96 GB per GPU and 72 GB per GPU—as reference points and outlines the key technical considerations across the deployment process. The scenarios include enterprise internal AI assistants, R&D assistance tools, and model API services.
2. Understanding Model Structure: Activated Parameters Are Not VRAM Footprint
For a typical ultra-large MoE model, parameters can usually be divided into two major parts:
- Backbone weights: core parameters including attention layers and expert networks, potentially reaching hundreds of billions of parameters;
- Conditional memory module: an external memory parameter space used to enhance the model’s conditional memory capability over context. Its parameter count is also substantial, reaching the hundreds-of-billions scale.
A key characteristic of MoE models is sparse activation: each token is routed to only a few experts during forward computation. As a result, the per-token activated parameters in the Prefill and Decode stages may be only around 8B–16B. However, it is important to emphasize that activated parameters describe only the parameters involved in the computation path; they do not mean that all weights need only occupy a corresponding amount of VRAM. All expert parameters must remain resident in some accessible storage tier, because different tokens hit different experts.
A complete deployment usually requires planning four resource components separately:
- Model backbone weights: the largest VRAM consumer, directly related to quantization precision;
- Conditional memory access space: can reside in VRAM or host memory, with very different strategies (discussed below);
- KV cache: grows linearly with context length and concurrency, and is the main source of pressure in long-text and high-concurrency scenarios;
- Inference runtime workspace and communication buffers: including operator temporary buffers and All-Reduce/All-to-All communication buffers for parallel sharding. Tens of GB of elastic headroom are usually required.
For implementations using mixed-precision loading, public materials have cited a VRAM budget on the order of 614 GB as a planning reference for a specific configuration. This number is not fixed—it varies significantly with the placement of conditional memory, the quantization scheme (such as FP8/INT8 weights), and service parameters (maximum context and concurrency limit). Planning should first fix the service goals, then back-calculate the budget for each component, and reserve 15%–20% headroom for fragmentation and peak overhead.
3. TP and EP: Principles and Tradeoffs of Two Parallelism Strategies
Tensor Parallelism (TP)
TP splits weight matrices within a single large layer along dimensions across multiple GPUs. Each GPU computes part of the result in parallel, and the partial results are merged through collective communication. Its advantages are:
- Reducing the weight share borne by each GPU, allowing layers that exceed single-GPU capacity to be distributed;
- Being especially necessary for parts such as attention layers that must participate in computation as a whole.
The cost is that every layer’s forward pass requires cross-GPU synchronization. Communication frequency is high, and performance is very sensitive to inter-GPU interconnect bandwidth (such as NVLink or PCIe). The larger the TP scale, the higher the communication overhead ratio. It is usually recommended to use a high-bandwidth interconnect topology within a TP group.
Expert Parallelism (EP)
EP targets the MoE expert network by assigning different experts as whole units to different devices. Because each token activates only some experts, runtime involves dynamic token-to-expert cross-GPU dispatch (a typical communication pattern is All-to-All). This means:
- Load balancing is a core issue: if the routing distribution is skewed, some GPUs become hot spots and slow down overall decoding;
- EP communication volume correlates with the number of activated experts and batch size, and must be co-tuned with the inference framework’s scheduling strategy.
Combining TP and EP
The two can be combined. For example, on eight GPUs, the devices can be divided into several EP groups, with TP applied within each group. There is no universal formula for the combination. It must match three aspects: the parallel modes supported by the inference framework in use, the sharding constraints of the model implementation, and the server’s interconnect topology. A practical approach is to first get a conservative configuration running, then use stress testing to find the balance between throughput and latency.
4. Placement Strategy for the Conditional Memory Module
The placement of conditional memory (Engram-like structures) is a key decision in VRAM architecture design:
- Fully resident in VRAM: this gives the lowest access latency but squeezes the space available for backbone weights and KV cache, and is especially tight on the 72 GB tier.
- Placed in host memory: accessed on demand over PCIe, allowing valuable VRAM to focus on backbone weights and runtime cache. This does not “eliminate” the cost; it shifts the evaluation focus to the host side—CPU memory capacity and bandwidth, NUMA node distribution, PCIe link quality, and cache hit strategy all become candidate new performance bottlenecks.
Configuration sketch (pseudo-config, expressing the idea only):
parallel:tensor_parallel_size: 2 # intra-group tensor parallelismexpert_parallel_size: 4 # cross-group expert parallelismmemory:main_weights: gpuconditional_memory: host # conditional memory in host memorykv_cache_ratio: 0.25 # VRAM ratio reserved for KV cache
5. Host Side Matters Too: Topology, NUMA, and Affinity
For server integration and deployment engineers, the configuration checklist cannot stop at the GPU model. On dual-socket CPU platforms, also verify:
- Memory distribution: whether the number of memory channels and capacity under each CPU are symmetric, to avoid conditional memory concentrating on one side and causing bandwidth bottlenecks;
- PCIe connection relationships: which CPU each GPU directly connects to, how many switch levels are involved, and whether link bandwidth is split;
- Process affinity: inference processes and communication threads should be bound to the NUMA node on the same side as the GPUs in use, reducing cross-socket data movement.
The same 8-GPU configuration can show noticeably different time to first token and steady-state throughput solely because of differences in topology and data placement.
6. Deployment Checklist
Before deployment, confirm each item:
- Define service goals: maximum context length, concurrency, and latency SLA;
- Calculate VRAM using the four-part budget, reserving headroom for communication and fragmentation;
- Decide the TP/EP combination based on inter-GPU interconnect topology;
- Decide the storage tier for conditional memory and evaluate host-side bandwidth and NUMA;
- Configure CPU/GPU affinity for processes and threads;
- Before launch, run three types of stress tests: long context, high concurrency, and routing skew.
In summary, local 8-GPU deployment of ultra-large MoE models is a systems engineering task: VRAM capacity is only the entry ticket. What truly determines service quality is the co-design of model structure, parallelism strategy, memory hierarchy, and hardware topology. Front-loading planning is far more cost-effective than repeated tuning after launch.
