Eight-GPU LLM Deployment: MoE Architecture, Parallelism, and Resource Planning

    Deploying a large mixture-of-experts model on eight accelerators requires more than adding up GPU memory. This article explains how to budget model weights, conditional memory, KV cache, and runtime overhead; choose tensor and expert parallelism; compare eight-card 96 GB and 72 GB configurations; and validate host-memory placement, NUMA topology, and production workload limits.

    1. Eight GPUs Do Not Form One Large Memory Pool

    A common mistake when deploying very large models is to add up the memory across eight accelerators and use that total to decide whether the model will fit. Eight 96 GB cards provide a theoretical total of 768 GB, while eight 72 GB cards provide 576 GB. In practice, however, that memory belongs to separate devices. It cannot be accessed arbitrarily as though it were a single unified pool.

    When model weights are partitioned across devices, data must move through high-speed interconnects or host-mediated communication. Free memory on one card does not automatically compensate for insufficient capacity on another. Communication buffers, temporary operator storage, the KV cache, and framework runtime allocations also consume device memory.

    Capacity planning therefore needs to account for more than aggregate memory:

    1. The weight allocation on each card.
    2. Whether expert networks are distributed evenly.
    3. Any additional replicas introduced by the parallel layout.
    4. Interconnect bandwidth and topology.
    5. Context length, concurrent requests, and batching strategy.
    6. Whether host memory stores part of the model data.

    The central question is not simply whether total GPU memory is sufficient. It is how each category of model data is placed and whether the devices can work together efficiently.

    2. Divide the Resource Budget into Four Categories

    For a mixture-of-experts (MoE) model that also includes a conditional memory module, divide the resource budget into four categories rather than treating everything as a single “model size.”

    2.1 Core Model Weights

    Core model weights include attention layers, shared networks, routing networks, and expert layers. Sparse activation means that each token passes through only a small number of experts; it does not mean that all other expert weights can simply be left unloaded.

    Active parameters describe the parameters used in a particular computation and primarily affect compute requirements. Total parameters describe the complete weight set and primarily affect storage requirements. These measures must remain distinct.

    Mixed precision and low-bit quantization can substantially reduce weight storage, but actual memory use also depends on:

    • Quantization grouping.
    • Metadata such as scales and zero points.
    • Layers retained at higher precision.
    • Weight replicas across devices.
    • Format conversion required by the inference framework.
    • Whether loading temporarily retains both the original weights and the target format.

    The theoretical weight footprint is therefore only a lower-bound estimate, not a direct estimate of peak GPU memory during startup.

    2.2 Conditional Memory Modules

    A conditional memory module can be understood as an external or additional parameter collection accessed according to the input. Its size may be substantial, and its placement directly affects the system’s memory architecture.

    Keeping the entire module in device memory reduces access latency but leaves less room for core weights and the KV cache. Placing it in host memory frees device capacity while introducing constraints related to host-memory bandwidth, device-to-host links, and cache hit rates.

    Moving this data to host memory is not cost-free. Deployment planning still needs to address:

    • Whether host memory can hold both the data and system overhead.
    • Whether memory is balanced across both processors in a dual-socket server.
    • The distance between the memory node holding the data and the accelerator accessing it.
    • Frequent transfers across NUMA nodes.
    • The use of a tiered cache.
    • Whether frequently accessed data can remain resident.
    • Duplicate memory allocations across inference processes.

    For enterprise services, evaluate access locality first. If requests concentrate on particular domains, frequently accessed data can be placed in a faster cache tier, while less frequently accessed data remains in larger-capacity host memory.

    2.3 KV Cache

    The KV cache stores key and value states for tokens that have already been processed. It is a major source of device-memory consumption in long-context and highly concurrent inference.

    Its size is generally related to:

    • Context length.
    • Number of concurrent requests.
    • Batch size.
    • Number of layers.
    • Attention head dimensions.
    • KV cache precision.
    • Paging or sharing mechanisms.

    A model may load successfully and still run out of memory when inputs become longer or concurrency increases. Resource planning must account for both static model allocations and dynamic request allocations.

    A simplified per-device estimate is:

    1. Available cache memory
    2. = Device memory capacity
    3. - Weight memory
    4. - Runtime workspace
    5. - Communication buffers
    6. - Safety margin

    Use the KV cache required by an individual request to estimate the supported context lengths and concurrency levels. Do not configure the service solely around theoretical maximum capacity. Leave headroom for batching changes, temporary operator allocations, and unusually demanding requests.

    2.4 Runtime Workspace and Communication Buffers

    Inference engines need additional memory for intermediate tensors, temporary operator results, routing indices, communication data, and scheduling information. MoE models also generate intermediate data for token reordering, expert dispatch, and output collection.

    These allocations do not necessarily scale linearly with parameter count. They depend on batch size, sequence length, parallelism, and operator implementation. A capacity estimate based only on weights may allow startup but still lead to peak-memory failures during inference.

    3. What Tensor Parallelism and Expert Parallelism Solve

    3.1 Tensor Parallelism

    Tensor parallelism (TP) partitions matrices or tensors within a layer across multiple accelerators so that the devices jointly execute that layer. It is useful when individual layers are too large for one card or require substantial computation.

    TP provides a clear partitioning approach for shared layers and attention layers. Its trade-off is that layer execution typically requires inter-device synchronization. As the parallel degree increases, communication frequency and synchronization overhead become more important.

    Before selecting a TP layout, check:

    • Whether the model architecture supports the intended partitioning.
    • Whether the relevant dimensions are divisible by the parallel degree.
    • Whether the devices have high-bandwidth interconnects.
    • Whether communication crosses processor or NUMA boundaries.
    • Whether low single-request latency or high throughput is the priority.

    If a server contains multiple interconnect domains, place TP groups within closely connected device sets where possible. Avoid sending frequent synchronization traffic over lower-bandwidth paths.

    3.2 Expert Parallelism

    Expert parallelism (EP) is designed for MoE networks. Different experts reside on different devices, and the router selects a small subset of experts for each token.

    EP reduces the expert weights that each card must store, but it introduces dynamic data exchange. Tokens in a batch may be routed to several devices, requiring the system to:

    1. Reorder tokens according to routing decisions.
    2. Send tokens to the devices hosting the selected experts.
    3. Execute the expert feed-forward computation.
    4. Collect the expert outputs.
    5. Restore the original token order.

    EP performance depends not only on expert computation speed but also on routing balance and inter-device communication efficiency. If a small number of experts are selected disproportionately often, their devices become hotspots while other cards remain underutilized.

    Monitor token counts per expert, device utilization, communication wait time, and overflow conditions. Where necessary, adjust routing load-balancing policies or batching behavior rather than simply increasing the number of parallel devices.

    3.3 Combining TP and EP

    TP and EP can be combined, but doing so creates a more complex device mapping. Shared layers may use one partitioning arrangement, while expert placement follows another. The combined layout must be designed around both the model implementation and the server topology.

    A general rule is to keep parallel dimensions with frequent synchronization within high-bandwidth interconnect domains. Expert placement should also minimize cross-node transfers where data exchange is substantial.

    More cards do not automatically produce a better parallel configuration.

    4. Planning Eight-Card 96 GB and 72 GB Configurations

    4.1 Eight 96 GB Cards

    This configuration offers more capacity per card and in aggregate. It can accommodate a larger share of core model weights, more runtime cache, or additional headroom for longer contexts and higher concurrency.

    Capacity does not eliminate topology constraints. Uneven expert placement can still cause one card to reach its memory limit first. Weak communication links can also produce poor throughput or latency even when the model fits.

    Key planning priorities include:

    • Avoiding unnecessary weight replicas.
    • Reserving a defined memory budget for the KV cache.
    • Assessing whether frequently accessed conditional memory should remain in device memory.
    • Using process affinity to reduce cross-socket access.
    • Validating actual peak usage through staged load testing.

    4.2 Eight 72 GB Cards

    With less headroom per card, this configuration is more sensitive to weight partitioning, quantization choices, and cache management. If static model allocations approach aggregate memory capacity, increasing context length or concurrency can quickly exhaust runtime memory.

    A more conservative deployment approach typically includes:

    • Using inference-appropriate mixed precision or low-bit weights.
    • Placing part of the conditional memory in host memory.
    • Limiting initial context length and concurrency.
    • Using dynamic batching with an explicit upper limit.
    • Reserving headroom for communication buffers and temporary tensors.
    • Validating a single request before gradually increasing concurrency.

    Eight 72 GB cards are not inherently unsuitable for large-model deployment. They require stricter capacity boundaries, particularly to prevent static weights from consuming all available device memory.

    5. Host Memory, NUMA, and PCIe Topology

    When conditional memory or some weights reside in host memory, the memory layout of a dual-socket server directly affects performance. Ideally, memory attached to each processor should provide a short access path to the accelerators that processor serves, minimizing remote-memory access.

    Before deployment, check:

    • Which processor or NUMA node each accelerator connects to.
    • Whether memory modules are populated evenly across both nodes.
    • Whether additional bridges sit between devices and processors.
    • Whether inference processes are bound to the appropriate CPU node.
    • Whether data-loading threads have affinity with their target devices.
    • Whether cross-node copying or frequent page migration occurs.

    If conditional memory is accessed frequently, host-memory bandwidth can become a bottleneck. Diagnose this using cache hit rates, link throughput, and request latency—not accelerator utilization alone.

    6. A Deployment Workflow from Capacity Assessment to Production Acceptance

    Step 1: Define the Service Targets

    Distinguish between internal question answering, coding assistance, long-document analysis, and public API services. These workloads have different requirements for time to first token, sustained generation speed, context length, and concurrency.

    Step 2: Build a Static Resource Budget

    Record core weights, conditional memory, runtime workspace, communication buffers, and safety margins. Estimate allocations for each card rather than only calculating an aggregate total.

    Step 3: Decide Where Data Will Reside

    Specify which data remains in device memory, which resides in host memory, and which uses a tiered cache. Evaluate access frequency and migration costs.

    Step 4: Design the Parallel Mapping

    Choose TP, EP, or a combination based on layer structure, expert count, device topology, and communication bandwidth.

    Step 5: Run Staged Load Tests

    Test the following workloads in sequence:

    1. A single request with a short context.
    2. A single request with a long context.
    3. Low concurrency.
    4. High concurrency.
    5. Mixed requests.

    Record peak device-memory usage, communication wait time, time to first token, generation speed, and error rates.

    Step 6: Set Operating Limits

    Establish explicit limits for maximum context length, concurrency, batch size, and cache usage. These boundaries help prevent production traffic from exceeding the system’s designed capacity.

    7. Common Mistakes and How to Avoid Them

    Mistake 1: Looking Only at Parameter Count

    Parameter count alone does not capture precision or additional memory overhead.

    Better approach: Account separately for weight formats, scale metadata, temporary tensors, and communication buffers.

    Mistake 2: Treating Active Parameters as the Required Loaded Parameters

    Active parameters describe the computation path for a particular token. They do not represent the complete model’s storage requirements.

    Better approach: Plan how the full weight set will be stored and accessed, even when only a subset participates in each computation.

    Mistake 3: Assuming Host-Memory Offloading Has No Cost

    Offloading shifts resource demands rather than removing them.

    Better approach: Evaluate host-memory bandwidth, NUMA placement, link latency, and caching strategy.

    Mistake 4: Maximizing Parallelism Without Measuring Its Effects

    A higher parallel degree may reduce per-card pressure while increasing synchronization and data exchange.

    Better approach: Choose the configuration using end-to-end latency and throughput measurements.

    Mistake 5: Testing Only Whether the Model Starts

    Successful startup is only the first deployment milestone.

    Better approach: Validate long contexts, rising concurrency, unusually demanding requests, and resource stability during sustained operation.

    Conclusion

    Deploying a very large MoE model on eight accelerators is a systems-engineering task. Device-memory capacity defines the feasibility boundary. Weight and conditional-memory placement determine the memory architecture. TP and EP shape computation and communication, while CPU placement, host memory, PCIe links, and device topology determine whether the design works reliably in practice.

    A sustainable local inference system requires these decisions to align with the actual service workload. Combining model structure, per-device resource budgets, parallel mapping, and tested operating limits produces a deployment that can run reliably, support future expansion, and maintain clear performance boundaries.