Local LLM Deployment on 8 GPUs: Resource Planning and Parallelism Strategies

    This article explains how to plan local inference for ultra-large sparse MoE models on 8-GPU servers. It clarifies why total VRAM alone does not determine feasibility, breaks down the four resource categories that must be sized (backbone weights, conditional memory access space, KV cache, and runtime buffers), and compares tensor parallelism (TP) with expert parallelism (EP). It also covers placing conditional memory in host memory, server topology checks, and a four-step capacity and load-testing methodology. Readers will gain a practical framework for turning deployment selection into measurable engineering decisions.

    1. The Real Constraint in Deployment Selection: Not Total VRAM

    When choosing a local inference setup for an internal enterprise AI assistant, coding assistance, or a model API service, a common mistake is treating the sum of the nominal VRAM across 8 cards as the only feasibility criterion. Practical engineering experience shows that stable deployment depends on at least the following factors: how the backbone weights are partitioned and placed, where the conditional memory (Engram-like structures) resides, how the mixture of experts (MoE) is distributed across devices, which physical links carry inter-device communication, and the target context length and concurrency level.

    This article discusses two typical 8-GPU server configurations: a platform with 96GB of VRAM per card (768GB total) and a platform with 72GB of VRAM per card (576GB total). Note upfront that these two numbers are only capacity limits and do not constitute any performance guarantee.

    2. Model Structure Determines the Resource Profile

    This class of ultra-large sparse models uses an MoE architecture, with about 552B backbone parameters and another roughly 196B conditional memory parameters. During the Prefill stage, it activates about 8B parameters per token; during the Decode stage, about 16B.

    The most easily misread point here is that activated parameters describe the size of the parameter path traversed by a single forward pass, not a lower bound on VRAM usage. Sparse activation reduces compute and bandwidth pressure, but the weights themselves must still reside somewhere—either in VRAM, in host memory, or in a combination of both. Therefore, the inference that “8B activated means 8B of VRAM is enough” is wrong.

    A complete deployment requires planning four categories of resources separately:

    1. Backbone weights: Strongly correlated with parameter count and precision, and the main contributor to VRAM usage.
    2. Conditional memory access space: Depends on the placement strategy and may fall in VRAM, host memory, or a tiered structure.
    3. KV Cache: Grows approximately linearly with context length and concurrency, and is the main variable in long-context scenarios.
    4. Runtime workspace and communication buffers: Includes temporary operator tensors, sampling overhead, and NCCL-like collective communication buffers, which are generally not compressible.

    For mixed-precision loading implementations, public configurations have shown a VRAM budget of about 614GB as a planning reference for a specific loading method. This number should be understood as “an estimated baseline under a certain placement and precision combination.” Once the quantization method, conditional memory location, or service parameters change, actual requirements will drift significantly.

    3. Parallelism Strategies: The Division of Labor Between TP and EP

    Tensor parallelism (TP) horizontally partitions the compute tensors of a single large layer across multiple cards, reducing the weight and compute burden per card. It is suitable for regular large matrix operations such as attention projections and feed-forward layers. The cost is that every layer requires cross-device reduction, with high communication frequency and sensitivity to link bandwidth.

    Expert parallelism (EP) targets the MoE expert networks, assigning different experts as whole units to different devices. Since each token is routed to only a few experts, EP is more efficient in capacity, but it introduces routing computation and cross-card token distribution (all-to-all-like communication). When routing distribution is uneven, some devices become overloaded while others sit idle.

    The two can be combined, but their values must match the inference framework implementation, model structure, and server topology. A practical order of judgment is: first determine the TP lower bound based on VRAM capacity, then decide the EP scale based on link bandwidth and expert load, and finally validate with real business workloads under load testing.

    1. # Illustration: abstract representation of parallelism and placement config (not a specific interface)
    2. parallel:
    3. tensor_parallel_size: 4 # constrained by per-card capacity and layer regularity
    4. expert_parallel_size: 2 # constrained by expert load balance and all-to-all bandwidth
    5. placement:
    6. backbone: gpu_memory
    7. engram: host_memory # trade for more VRAM for weights and cache
    8. runtime:
    9. max_context: 32768
    10. max_concurrency: 16

    4. Placing Conditional Memory in Host Memory: Cost Transfer, Not Elimination

    Some implementations place conditional memory in host memory, letting precious VRAM serve the backbone weights and runtime cache more. On the 72GB per-card platform, this is often a viable solution. But it must be clear that this is a cost transfer, not cost elimination. The evaluation focus then shifts to CPU memory capacity and bandwidth, NUMA node partitioning, PCIe access paths, and cache and prefetch strategies. If the access pattern is random and high-frequency, host memory latency will directly show up in the per-token time of the Decode stage.

    5. Server Integration Checklist: Easily Overlooked Topology Details

    For integration and deployment engineers, beyond the GPU model on the configuration sheet, you should also verify:

    • Memory distribution and NUMA binding under a dual-socket CPU, to avoid cross-node access;
    • The connection relationship between PCIe slots and switch chips, confirming whether GPUs are directly connected or cross a Root Complex;
    • CPU/GPU affinity settings for the inference process, to reduce cross-slot migration;
    • The reserved ratio of VRAM to host memory, leaving headroom for KV Cache peaks.
    1. # Illustration: topology and affinity check approach
    2. # Check inter-GPU links and NUMA affinity
    3. nvidia-smi topo -m
    4. # Check NUMA and memory distribution
    5. numactl --hardware
    6. # Start the inference process bound to a specified NUMA node
    7. numactl --cpunodebind=0 --membind=0 <inference_cmd>

    6. Capacity and Load-Testing Methodology

    A four-step approach is recommended: first, use a minimal context and single concurrency to verify that the weights and conditional memory can be fully loaded; second, gradually increase the context length and observe the KV Cache growth curve and VRAM headroom; third, increase concurrency and observe whether expert routing shows load skew and whether throughput grows linearly with concurrency; fourth, record P50/P95 latency and time-to-first-token to form a capacity baseline.

    7. Conclusion

    The core of 8-GPU local deployment is not “whether VRAM is enough,” but “how resources are tiered, how parallelism is partitioned, and which node the data resides on.” With the same number of 8 cards, different topologies and placement strategies can produce several-fold differences in latency and throughput. Using general computing and container platforms, along with monitoring and alerting capabilities offered by cloud vendors such as Baidu AI Cloud, for baseline validation can help enterprises turn selection from experience-based judgment into measurable engineering decisions.