Eight-GPU Large Model Deployment: Parallelism Strategies and Resource Planning

    This article explains how to plan local deployment of large models, especially MoE models, on eight-GPU servers. It covers separating activated parameters from full weight storage, budgeting GPU and host memory, accounting for KV cache and runtime workspace, evaluating GPU interconnect and NUMA topology, choosing TP and EP, placing conditional memory in host memory, and validating capacity with staged load tests.

    1. Separate Model Size from Inference Compute

    MoE (Mixture-of-Experts) models route each input token and invoke only a subset of experts for computation. Therefore, “how many parameters are activated per token” mainly describes the parameter scale involved in a single computation. It does not directly represent the storage requirement of the full model.

    When planning a local deployment, you must separate the number of parameters involved in computation from the model weights that must be stored or accessed. Even if a MoE model activates only a small number of experts per token, the system may still need to hold a large number of expert weights and bear the costs of routing, data exchange, and cache management. Estimating VRAM only from activated parameters can easily lead to a configuration conclusion that cannot be deployed in practice.

    For a large-scale MoE model, the model may contain tens of billions to hundreds of billions of parameters in the backbone and conditional memory, and the per-token activation scale differs between the Prefill and Decode phases. Specific values should be based on the model configuration and the actual loading format. The planning principle is to first confirm where the full weights will reside, then estimate the compute and cache overhead of each phase.

    2. Account for GPU Memory and Host Memory Together

    Deployment resources usually consist of four parts:

    1. Model backbone weights: attention layers, shared networks, and other non-expert parameters.
    2. Expert weights and conditional memory: confirm whether they reside in GPU memory, host memory, or a tiered cache.
    3. KV cache: stores key-value states produced by context computation. Its size is affected by context length, concurrent requests, model layers, and data precision.
    4. Runtime workspace: operator temporary buffers, communication buffers, activations, memory fragmentation, and framework overhead.

    Weight occupancy can be roughly estimated with the following formula:

    Weight space ≈ number of parameters × bytes per parameter

    For example, if a weight format below full precision is used, the storage required per parameter decreases. However, actual deployment must also include quantization metadata, alignment, and temporary copies during loading. This formula is suitable for an initial screening exercise and should not be treated as a final VRAM commitment.

    KV cache should be estimated separately. Longer contexts and higher concurrency usually lead to larger cache occupancy. If all VRAM is allocated to weights, the service may start with short inputs but still fail to run stably under long contexts or concurrent requests because the cache grows. Resource planning should therefore leave explicit headroom and use the target workload for stress testing.

    3. Eight GPUs Are Not a Single Unified Pool of Memory

    The total VRAM of eight GPUs is only a simple sum of capacity ceilings. It does not mean that any GPU can access data on another GPU at no cost. How weights are partitioned, how experts are distributed, whether compute is balanced across GPUs, and the interconnect bandwidth and topology between devices all affect effective capacity and actual efficiency.

    Before deployment, check:

    • The actual available VRAM per GPU and system reservations;
    • GPU interconnect type, link bandwidth, and communication paths;
    • PCIe slots and motherboard topology to avoid unreasonable connection paths for critical devices;
    • CPU sockets, memory channels, and the NUMA affinity of GPUs;
    • Affinity settings for inference processes, data loading threads, and devices.

    If certain experts or layers are concentrated on a small number of devices, local VRAM shortages or load imbalance may occur even when total VRAM is sufficient. Conversely, over-partitioning can reduce per-GPU weight pressure but may increase communication frequency and overall latency. A deployment plan must evaluate capacity, communication, and load balance together.

    4. TP and EP Solve Different Partitioning Problems

    Tensor Parallelism

    TP (Tensor Parallelism) distributes tensor computations within some layers across multiple GPUs. It is suitable when the parameters or computation of a single layer are too large for one GPU. By partitioning weights and computation, TP can reduce the burden on each GPU, but it usually requires synchronization and data aggregation within or across layers.

    Higher TP parallelism is not always better. A higher degree of parallelism may relieve per-GPU VRAM pressure, but it also increases the number of devices participating in communication and synchronization overhead. If interconnect bandwidth is insufficient, communication time may offset the gains from parallel computation. Selection should consider per-GPU VRAM, model layer structure, communication topology, and inference framework implementation.

    Expert Parallelism

    EP (Expert Parallelism) targets the expert networks in MoE and places different experts on different GPUs. After routing, tokens are sent to the corresponding experts for computation, and the results are aggregated. EP can distribute model weights along the expert dimension, but it also makes routing quality and cross-GPU exchange critical factors.

    When multiple requests concentrate on a few experts, expert load imbalance may occur. When tokens are routed to remote devices, cross-device communication is also introduced. Therefore, the effectiveness of EP depends not only on the total number of experts but also on routing distribution, batch size, device mapping, and network topology.

    Combining TP and EP

    TP and EP can be applied to different model structures, but the combination depends on model implementation and inference framework support. In practice, first address per-GPU capacity constraints, then evaluate the communication cost introduced by parallel partitioning. After that, validate latency, throughput, and VRAM headroom with real requests rather than selecting a configuration solely based on theoretical parallelism.

    5. Conditional Memory Placement and Host-Side Bottlenecks

    Placing some conditional memory or weights in host memory can free up GPU VRAM, but it only changes where the data resides; it does not eliminate access cost. If the inference process frequently reads data from the host side, the PCIe path, memory bandwidth, and cache hit rate may become performance bottlenecks.

    Therefore, when using host memory to hold part of the model data, also verify:

    • Whether host memory capacity covers model data, system processes, and file cache;
    • Whether memory channels are fully utilized and whether memory on dual-socket servers is balanced across NUMA nodes;
    • Whether the data access path between GPUs and CPU memory is reasonable;
    • Whether hot data can be effectively cached and whether cache space crowds out other runtime resources;
    • Whether inference processes and data loading threads are bound to appropriate CPU and memory nodes.

    Host-memory approaches especially require testing under the target workload. If the main focus is short context and low concurrency, the performance bottleneck may be completely different from that of a long-context, high-concurrency service. A single startup test cannot replace a full evaluation.

    6. Evaluating Eight-GPU Configurations with Different VRAM Tiers

    For eight-GPU servers with higher per-GPU VRAM, deployment usually has more room for weight residency and KV cache scheduling, reducing the need to offload some data. However, you still need to check whether inter-GPU communication matches the model’s parallelism strategy and whether there is enough cache headroom for long-context scenarios.

    Eight-GPU configurations with relatively limited per-GPU VRAM require stricter division among weights, cache, and workspace. Evaluate finer-grained model partitioning, applicable weight quantization methods, and the feasibility of placing some data in host memory. Note that quantization may change accuracy, and host-memory offloading may increase data access latency. Both should be validated through task quality and service performance tests.

    Regardless of the configuration, proceed in the order of “runnable first, stable second, optimized last”: first confirm that the model can be fully loaded, then verify that VRAM overflow does not occur under the target context and concurrency, and finally optimize the parallel layout and communication parameters. Untested theoretical capacity should not be treated directly as production capacity.

    7. Validation Workflow from Estimation to Launch

    Step 1: Collect model and service boundaries. Record parameter composition, weight format, maximum context length, target concurrency, Prefill and Decode workloads, and the acceptable response latency range.

    Step 2: Build a capacity budget. Estimate backbone weights, experts or conditional memory, KV cache, and runtime space separately. For data that may reside in host memory, calculate memory capacity, bandwidth, and access path requirements separately.

    Step 3: Verify server topology. Check GPU interconnects, PCIe connections, CPU and memory NUMA relationships, and plan device mapping. Do not draw conclusions only from GPU count or total VRAM.

    Step 4: Load gradually and observe. Record VRAM usage per GPU, memory peaks at each phase, communication waits, and CPU utilization. If resources are concentrated on a small number of devices, investigate partitioning and mapping before simply increasing parallelism.

    Step 5: Stress test with the target workload. Test short requests, high concurrency, long context, and mixed requests separately. Observe first-token latency, generation-phase latency, throughput, VRAM peaks, and error rate. Also run sustained tests to check cache growth, memory fragmentation, and load fluctuation.

    Conclusion

    Deploying a large model on eight GPUs is fundamentally systems engineering involving weight residency, expert distribution, cache growth, and device communication. Activated parameters only help explain the compute path; they cannot replace a complete storage budget. Total VRAM also does not mean that devices can share resources uniformly. Only by evaluating model structure, TP/EP partitioning, host memory, NUMA topology, and target service load within one framework can you produce a deployment plan that is runnable, verifiable, and has room to scale.