Local Deployment of Large MoE Models on 8 GPUs: Capacity Planning and Resource Allocation
This article explains why total VRAM capacity alone is not a sufficient condition for deploying a large Mixture-of-Experts (MoE) model on 8 local GPUs. It breaks down the four resource categories that must be planned, compares tensor parallelism (TP) and expert parallelism (EP), discusses where to place conditional memory (Engram-style parameters) in a dual-socket server, and shows how context length and concurrency drive KV Cache growth. A practical deployment checklist is included.
1. The Starting Problem: Why “Enough Total VRAM” Is Not a Sufficient Condition
For internal AI assistants, developer tooling, and model API services, the most common selection mistake when deploying a very large Mixture-of-Experts (MoE) model locally is comparing only the combined nominal VRAM of 8 accelerators. Capacity is a hard constraint, but it is only the lower bound of feasibility, not the variable that explains efficiency. What actually determines the system’s runtime behavior is how four categories of resources are allocated, how well the parallelism strategy matches the device topology, and the dynamic pressure created by context length and concurrency.
Start with one basic fact: the sum of VRAM across 8 cards is not a single, uniformly addressed shared memory. Each card has its own memory controller and bandwidth, and cross-card access must go through limited interconnect links. As a result, even when the capacity looks sufficient on paper, throughput and latency degrade significantly if weights and experts are unevenly distributed, cross-card communication is frequent, and the paths are suboptimal.
2. Abstracting the Model Structure: Backbone Parameters, Conditional Memory, and Activated Parameters
Take a certain class of very large MoE models as an example. Its structure can be abstracted into two parts: roughly 552B backbone parameters and roughly 196B conditional memory (Engram-style) parameters. The former carries general representations and the expert networks; the latter carries addressable, conditional memory content.
One important clarification concerns what “activated parameters” means. In this class of models, about 8B parameters are activated per token during the prefill stage, and about 16B parameters are activated per token during the decode stage. Activated parameters describe the size of the parameter subset that actually flows through a single forward pass. They determine compute demand and the distribution of memory-access hotspots, but they never mean that “only that much VRAM needs to be prepared.” All weights, including experts that are not activated and the conditional memory, must have a definite place to reside; otherwise, computation cannot complete when routing selects the corresponding expert.
This leads to a requirement that deployment resources be planned in four parts:
- Resident space for the backbone weights;
- Access space for the conditional memory (VRAM or host memory);
- KV Cache, which grows linearly with context length and concurrency;
- Runtime workspace and communication buffers, including intermediate activation tensors, temporary operator buffers, and cross-card send/receive queues.
Under a mixed-precision weight implementation, a public configuration has shown a VRAM budget of about 614GB as a planning reference for a particular loading approach. This number should be understood as an estimated baseline under a specific loading strategy, not a universal conclusion. Once the placement of conditional memory, the quantization scheme, the context limit, or the concurrency parameters change, actual demand shifts noticeably.
An illustrative capacity calculation (pseudocode, expressing only the planning order):
total_needed =weight_resident # backbone weights held in VRAM+ kv_cache(ctx_len, batch) # grows with context and concurrency+ runtime_workspace # activations and temporary operator buffers+ comm_buffer(degree) # communication buffer that grows with parallelism+ memory_offload_span # access window for conditional memory
3. Parallelism Strategy: Dividing Labor Between Tensor Parallelism and Expert Parallelism
Tensor parallelism (TP) splits the computation tensors of a single large layer across multiple cards, reducing per-card weight usage and per-layer compute. It suits dense layers and attention projections with very large parameter counts. The cost is that every layer requires cross-card synchronization (typically an all-reduce), which is highly sensitive to inter-card bandwidth and latency. For this reason, the TP degree usually should not exceed what high-bandwidth interconnect within a single machine can stably support.
Expert parallelism (EP) targets the expert networks of an MoE model by placing different experts on different cards. Because each token activates only a few experts, EP uses VRAM efficiently, but it introduces routing computation and cross-card data exchange (typically All-to-All). When expert distribution does not match token distribution, load skew appears: a hot expert on one card becomes the bottleneck while the other cards idle.
The two can be combined, but their values must be consistent with the inference framework’s execution graph, the model’s specific implementation, and the server topology. A practical order of judgment is: first determine the total parallelism degree based on VRAM feasibility, then decide the TP-to-EP ratio according to interconnect bandwidth, and finally adjust with stress tests using real workloads.
4. Placing Conditional Memory: From a VRAM Problem to a Memory Architecture Problem
Some implementations place conditional memory in host memory so that scarce VRAM serves more of the backbone weights and runtime cache. This does not make the cost disappear; it shifts the evaluation focus to the host side: CPU memory capacity and bandwidth, NUMA node partitioning, PCIe access paths, and page cache and prefetch strategies.
On a dual-socket server, if a card’s access path crosses a CPU socket boundary, the read latency of conditional memory rises noticeably. Engineering practice should therefore ensure the following:
- Verify that memory modules are symmetrically distributed across the dual CPUs, avoiding a single node’s memory becoming a hotspot;
- Verify which PCIe root complex and slot each accelerator belongs to;
- Set CPU/GPU affinity for the inference process so that worker threads, memory allocation, and device access fall within the same NUMA domain;
- Apply chunking and prefetching to conditional memory, converting random access into predictable sequential access as much as possible.
5. Context and Concurrency: The Underrated Dynamic Variables
KV Cache is the part most likely to get out of control in capacity planning. It is roughly proportional to context length and the number of concurrent requests, and it also depends on the number of layers, the number of attention heads, and whether sharing or compression mechanisms are used. If the context limit is set too aggressively, runtime memory is squeezed by the cache and frequent swapping is triggered; if concurrency scheduling lacks admission control, tail latency fluctuates sharply.
The practical recommendation is to state the service objective clearly: internal assistant scenarios usually have moderate context and controllable concurrency; developer tooling scenarios tend to have long single inputs; API service scenarios have high concurrency and strict SLAs. The three correspond to completely different KV Cache budgets and batching strategies.
6. Deployment Checklist
- Define a budget table for the four resource categories, marking which are hard constraints and which can scale elastically;
- Run stress tests with real corpus replays, observing whether expert load is balanced and whether cross-card communication becomes the bottleneck;
- Validate NUMA and affinity settings, and record latency and throughput differences across placement strategies;
- Set up monitoring, alerting, and logging services to continuously observe VRAM levels, cache hit rates, and queueing time;
- If cloud resources are used, a container platform can host the inference service, object storage can hold models and data, and a monitoring and alerting system can keep operations observable.
7. Conclusion
The success of an 8-GPU local deployment does not depend on the sum of nominal VRAM. It depends on the quality of the four-way resource plan, whether the TP-to-EP ratio matches the topology, whether conditional memory placement follows the memory architecture, and whether context and concurrency are incorporated into the capacity model. Turning these into quantifiable and reproducible checks is what delivers stable and predictable latency and throughput on the same hardware.
