Local Deployment of Large Models on 8 GPUs: Memory Planning and Resource Allocation

    This article explains why total VRAM is only a starting point for local deployment of large MoE models on 8-GPU servers. It breaks memory requirements into four budgets, compares tensor parallelism and expert parallelism, discusses placing conditional memory in host memory, and offers planning advice for three common use cases.

    1. The Starting Problem: Total VRAM Is Only the Entry Ticket

    When deploying very large Mixture-of-Experts (MoE) models locally, a common mistake is treating the combined nominal VRAM of “8 GPUs” as the feasibility criterion. Consider two 8-GPU configurations: 8×96GB and 8×72GB. The former offers 768GB nominal capacity, the latter 576GB. Both appear able to hold a weight budget around 600GB, yet real deployment results can differ dramatically—even on identical hardware, different configurations can produce several-fold differences in throughput.

    The reason is that VRAM across multiple GPUs consists of multiple independent address spaces, not one unified memory pool. Any cross-GPU data exchange must pass through interconnect links with limited bandwidth, and the topology of those links (fully connected, group-connected, or routed through the host) determines the communication cost. Deployment planning must therefore answer four questions at once: where the weights live, where the conditional memory lives, how much cache budget to reserve, and which communication paths to use.

    2. What the Model Structure Means for Resources: Activated Parameters Are Not Weight Footprint

    This class of model uses an MoE architecture with roughly 552B backbone parameters plus about 196B conditional memory (Engram) parameters. Activated parameters per token are approximately 8B during Prefill and 16B during Decode.

    One concept must be clear: activated parameters describe the subset of parameters that a single token’s forward pass actually flows through. They determine compute demand and part of the memory-access pressure, but they do not determine weight residency requirements. The reason is straightforward—routing is data-dependent, different tokens hit different experts, so all expert weights must be schedulable at any time. Estimating VRAM based on 8B/16B would severely underestimate the requirement.

    A more robust engineering approach is to split the VRAM requirement into four budgets:

    1. Backbone weights: attention, embeddings, shared layers, and routing gates, typically loaded in mixed precision. This is the main body of VRAM usage.
    2. Conditional memory access space: if hosted in host memory, it consumes no VRAM but translates into pressure on CPU memory capacity, bandwidth, and PCIe paths.
    3. KV Cache: grows linearly with context length and concurrency, and is the first killer in long-context scenarios.
    4. Runtime workspace and communication buffers: the framework’s temporary tensors, operator workspaces, and cross-GPU send/receive buffers—often overlooked but very real.

    A public configuration once showed a VRAM budget of about 614GB as a planning reference for a specific loading method. This number should be understood as a reference anchor under a particular implementation, not a universal conclusion; quantization method, conditional memory placement, service concurrency, and context limits will all move it up or down.

    The KV Cache estimate can be expressed with the following illustrative logic (showing order-of-magnitude relationships only, not specific product parameters):

    1. # Illustrative: KV Cache order-of-magnitude estimate
    2. bytes_per_elem = 2 # 2 bytes per element in mixed precision
    3. kv_bytes = (2 * layers * kv_heads * head_dim
    4. * seq_len * batch * bytes_per_elem)
    5. # 2 accounts for both K and V; actual values follow the model config

    Treating seq_len × batch as an adjustable knob makes it clear: doubling the context or doubling concurrency inflates the cache budget proportionally, ultimately squeezing the available weight space.

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

    Tensor Parallelism (TP) splits the compute tensors inside a single layer across multiple GPUs, reducing per-GPU weight and compute burden. It suits structures heavy in large matrix multiplications. The cost is a cross-GPU reduction synchronization at every layer, making it highly sensitive to interconnect bandwidth and latency. TP groups should therefore sit on the highest-bandwidth GPU-to-GPU links, and the group size should not be maxed out blindly.

    Expert Parallelism (EP) targets MoE expert layers by distributing different experts across devices. Since each token activates only a few experts, the actual load is sparse and dynamic: some experts may become hotspots, overloading local devices while others idle. Routing computation, cross-GPU dispatch, and result collection together form the critical path.

    The two can be combined, but their values must match three things: the inference framework implementation, how the model files are sharded, and the server topology. A practical decision order is: first determine the topology’s capability ceiling, then set the TP group, then allocate EP on the remaining dimensions, and reserve means for load rebalancing (such as redundant expert replicas or capacity factor tuning).

    4. Placing Conditional Memory: Moving the Problem from VRAM to the Memory Subsystem

    Placing conditional memory in host memory lets precious VRAM serve more of the backbone weights and runtime cache. But this is not “cost disappearing”—it is cost transfer: the evaluation focus shifts to CPU memory capacity and bandwidth, NUMA node distribution, PCIe access paths, and cache-hit strategy.

    This leads to items easily missed in a server integration checklist:

    • Whether memory modules are symmetrically populated across both CPUs in a dual-socket system, and whether channels per socket are balanced;
    • The affinity between GPUs and CPUs, and whether cross-root-complex access occurs;
    • Core binding and memory locality policies for the inference process;
    • The actual negotiated rate and topology of the interconnect links.

    With the same 8-GPU count, latency and throughput can diverge significantly depending on topology and data placement.

    5. Planning Advice for Three Scenarios

    • Enterprise internal AI assistant: moderate concurrency, longer contexts; prioritize KV Cache and memory locality.
    • R&D assistance applications: frequent interactions with clear bursts; focus on first-token latency and batch scheduling.
    • Model API service: throughput first; carefully set maximum context and concurrency limits to avoid cache contention causing overall degradation.

    If an organization lacks its own data center and operations capability, it can also evaluate the feasibility of general-purpose cloud compute, using elastic resources and mature capabilities such as container platforms, monitoring and alerting, and logging services to reduce operational burden.

    6. Conclusion

    The core of 8-GPU local deployment is not “fitting it in” but “running stably and running full.” Splitting resources into four budgets, binding parallelism strategy to topology, and explicitly accounting for the cost of conditional memory in the memory subsystem are what yield predictable latency and throughput on limited hardware.