Resource Planning for Local Deployment of Large Models on 8 GPUs: A Practical Breakdown

    This article breaks down resource planning for deploying large language models locally on a single 8-GPU server. It explains why total VRAM capacity alone is not a sufficient constraint, and how to budget four layers of resources: backbone weights, conditional memory (Engram) access space, KV Cache, and runtime plus communication buffers. It also covers how tensor parallelism (TP) and expert parallelism (EP) divide the workload, the impact of hosting conditional memory in host RAM, a server integration checklist, and deployment recommendations for three common workload types. The key takeaway is that 8 GPUs define a resource boundary, not a resource guarantee.

    1. The Core Pitfall in Deployment Planning: Treating Total VRAM as the Only Constraint

    When bringing ultra-large Mixture-of-Experts (MoE) models on-premises, a common mistake is to run a simple division—total parameters ÷ per-GPU VRAM × number of GPUs—confirm the capacity is sufficient, and assume the plan is viable. A capacity check is a necessary condition, not a sufficient one. What actually determines whether the service can be delivered reliably comes down to three things: whether the weights are balanced across GPUs, whether cross-GPU communication is supported by the topology, and whether runtime memory stays under control as context length and concurrency scale up.

    The first concept to clarify is activated parameters. For a certain class of ultra-large MoE models, the backbone can reach around half a trillion parameters, along with roughly 200 billion “conditional memory” (Engram) parameters. During the prefill stage, activated parameters per token are under roughly ten billion; during the decode stage, they are slightly above ten billion due to different execution paths. Activated parameters describe the size of the sub-network that actually flows through a single forward pass. They affect compute and some bandwidth overhead, but they absolutely do not mean you only need to provision VRAM based on the activated volume. All weights, the conditional memory access space, the KV Cache, and the runtime workspace must all be resident simultaneously or be quickly accessible.

    2. Layered Planning for Four Resource Categories

    Breaking the resource budget of a single 8-GPU machine into four layers is key to avoiding runaway planning.

    1. Backbone weights: Resident in VRAM, this is the main focus of capacity planning. Under mixed-precision loading, a reference magnitude is a VRAM budget in the hundreds of GB (a planning reference value of around 614GB has appeared in public configurations); the actual figure varies with quantization method, loading strategy, and framework implementation.
    2. Conditional memory access space: If hosted in host memory, it does not consume VRAM, but it translates into pressure on CPU memory capacity and bandwidth.
    3. KV Cache: Grows roughly linearly with context length and concurrency, and is the item most easily underestimated in long-context and high-concurrency scenarios. When planning, estimate the peak based on “maximum context × target concurrency” rather than average request length.
    4. Runtime workspace and communication buffers: Includes temporary operator tensors, sampling and scheduling overhead, and cross-GPU send/receive buffers. This portion is usually reserved as a percentage of remaining VRAM; insufficient headroom shows up directly as OOM or a sharp drop in throughput.

    A sample budget calculation can be written as:

    1. Per-GPU VRAM requirement ≈ backbone weight shard
    2. + expert shard (if experts reside in VRAM)
    3. + KV Cache peak / number of GPUs
    4. + runtime and communication buffer reserve
    5. Constraint: per-GPU VRAM requirement ≤ per-GPU nominal capacity × safety factor (0.85~0.9 recommended)

    Taking two per-GPU capacity tiers of 96GB and 72GB, each with 8 GPUs, as an example: the former totals around 768GB, the latter around 576GB. The latter still has room under a “light load” configuration of backbone weights plus runtime only, but once you add long-context KV Cache or keep some experts resident in VRAM, the headroom narrows quickly. Therefore the 72GB tier is better suited to internal assistant workloads with shorter contexts and controlled concurrency; only the 96GB tier has the space to handle longer contexts and higher concurrency.

    3. Parallelism Strategy: Dividing Labor Between Tensor and Expert Parallelism

    Tensor Parallelism (TP) splits the compute tensors within a single layer across multiple GPUs, reducing per-GPU weight and compute pressure. It suits regular workloads like large matrix multiplications; the cost is cross-GPU synchronization at every layer, making it sensitive to inter-GPU interconnect bandwidth. Expert Parallelism (EP) targets the MoE structure by placing different experts on different devices. Since each token activates only a few experts, routing results and cross-GPU data exchange become the key performance variables; when the load is imbalanced, you get “some GPUs busy, some GPUs idle.”

    A common engineering approach is: when intra-node interconnect conditions are good, use TP for the backbone and attention parts and EP for the expert layers; the combined values must match the inference framework, model implementation, and server topology simultaneously. Too large a TP value with insufficient interconnect bandwidth amplifies communication time to the point of masking compute gains; too large an EP value with skewed routing distribution causes a double waste of VRAM and compute.

    4. Side Effects of Hosting Conditional Memory in Host RAM

    Placing conditional memory in host memory frees up VRAM to serve backbone weights and the runtime cache more, a common way to increase effective per-GPU capacity. But this is not “cost disappearing”—it is cost shifting: the evaluation scope expands to total CPU memory capacity and available bandwidth, NUMA node distribution, PCIe access paths, and caching and prefetch strategies. Cross-NUMA access adds an extra hop to every memory read, which accumulates into noticeable tail latency under high concurrency.

    5. Verification Checklist for the Server Integration Stage

    • Memory slot distribution and available capacity per socket under a dual-socket CPU setup; confirm memory is not concentrated on a single NUMA node;
    • PCIe slot assignment of GPUs relative to NICs and NVMe; avoid cross-root-complex communication;
    • CPU/GPU affinity binding for the inference process, combined with huge pages and a reasonable thread count;
    • The actual topology and available bandwidth of the inter-GPU interconnect, not just nominal specs.
    1. # Affinity binding example (adjust parameters per environment)
    2. numactl --cpunodebind=0 --membind=0 <inference process launch command>

    6. Deployment Recommendations for Three Workload Types

    Enterprise internal AI assistants typically have moderate concurrency and longer contexts, so prioritize KV Cache and memory bandwidth; R&D assistance workloads have fragmented, bursty requests and need more runtime buffer and queuing strategy; model API services must balance throughput against tail latency, and if necessary stabilize service quality by limiting maximum context, tiering concurrency, and using unified monitoring and alerting. If using cloud resources, you can combine general capabilities such as container platforms, object storage, log services, and monitoring/alerting to build elastic scaling and observability.

    The conclusion is straightforward: 8 GPUs are a resource boundary, not a resource guarantee. Only by calculating the four-layer budget of weights, conditional memory, cache, and runtime clearly, and aligning TP/EP with the real topology, can you achieve predictable latency and throughput with the same number of GPUs.