Local Deployment of Trillion-Parameter LLMs: VRAM and Cost Requirements

    This article examines the memory and cost requirements for locally deploying a 2.8-trillion-parameter MoE model. It explains why VRAM scales with total parameters rather than activated parameters, estimates a 4-bit weight floor of roughly 1.5TB, reviews practical runtime overheads, and compares three deployment tiers ranging from low-throughput heterogeneous inference to multi-node clusters and cloud rental. It also outlines key techniques for reducing memory use and improving efficiency.

    1. Why Local Deployment of Trillion-Parameter Models Is So Difficult

    First, let us clarify the premise: the model discussed here has about 2.8 trillion total parameters and uses a Mixture of Experts (MoE) architecture. It contains hundreds of expert networks, and each token activates only a small subset of them. Many people see an activation ratio of less than 2% and assume that VRAM can be reduced by 98%. This is one of the most common misconceptions.

    Key conclusion: in an MoE architecture, VRAM usage is calculated based on the total parameter count. The activation ratio affects compute consumption, not storage requirements.

    The reason is simple: during inference, the router dynamically decides which experts each token goes to, but you cannot predict which experts the next token will activate. Therefore, all expert weights must remain resident in storage. This is like a hospital with 896 departments: although each patient visits only one department, all departments must remain open.

    2. Precise Estimate of the VRAM Lower Bound

    1. The Quantization Format Sets the Floor

    Modern large-model training commonly uses quantization-aware training (QAT), where weights are designed for low-precision formats from the later stages of training. As a result, deploying directly in a low-precision format does not cause obvious quality loss. Under the industry-standard microscaling floating point (MX) format specification, 4-bit weights require one 8-bit shared scaling factor for every 32 elements, giving an actual average of about 4.25 bits per parameter.

    Estimation process:

    • Theoretical lower bound: 2.8T × 4 bit ÷ 8 ≈ 1400 GB
    • Including scale overhead: 2.8T × 4.25 bit ÷ 8 ≈ 1487.5 GB

    This roughly 1500GB figure is only the “bare weights.” Actual deployment must also add:

    1. Non-quantized tensors: some layers, such as embeddings and routers, usually remain in high precision;
    2. Metadata and alignment overhead: extra space introduced by block-based management;
    3. Runtime workspace: activation buffers and temporary tensors;
    4. KV Cache: in long-context scenarios, this grows linearly with concurrency and sequence length and may reach hundreds of GB.

    Overall, the actual requirement for a full deployment will be noticeably higher than 1.5TB.

    2. Horizontal Comparison for Intuition

    For reference, a mainstream 671B-class MoE model requires about 685GB for its main parameters alone at 8-bit floating point. Even with 4-bit weight quantization and activation quantization, it still needs about 400GB to barely run on eight flagship accelerators with 640GB of total VRAM. The 2.8-trillion-parameter model discussed in this article is more than four times that size, so the order-of-magnitude gap is clear.

    For models of this class, the official recommendation is to use very large communication-domain nodes composed of dozens of accelerators. The reason is that large-scale MoE inference is extremely sensitive to All-to-All communication: experts are distributed across multiple cards, and after each token completes routing, its activations must be moved to the card hosting the target expert for computation and then sent back. If inter-card bandwidth is insufficient, communication time will directly consume the compute advantage. High-bandwidth interconnect, such as NVLink-level links, matters because it places the entire expert pool within the same low-latency communication domain.

    3. Three Deployment Tiers and Cost Magnitudes

    Tier 1: It Runs, Speed Is Not Sensitive

    The only goal is to fit nearly 1500GB of weights into addressable storage and let the model emit tokens, even if throughput is only single-digit tokens per second.

    The most typical approach is GPU + CPU heterogeneous inference:

    • The attention part is compute-intensive and memory-access-heavy, so it stays on the GPU;
    • The sparse experts, which account for most of the storage, are offloaded to CPU memory and hosted by a large-memory server, usually with more than 1TB.

    Configuration reference: one consumer or professional GPU + 1–2TB server memory + a multi-socket CPU platform. Hardware cost is about RMB 100,000–200,000. The tradeoff is extremely low throughput, making it suitable only for validation and experiments.

    Tier 2: Full Model on a Single Machine, Targeting Usable Throughput

    Putting all weights into the high-bandwidth VRAM of a single 8-GPU server is almost impossible because it requires more than 1500GB. Therefore, the realistic path is multi-machine, multi-card deployment, or waiting for hardware with higher per-card VRAM capacity. With a multi-machine approach, eight 8-GPU servers, for a total of 64 accelerators, plus supporting network equipment including high-speed lossless interconnect, typically pushes the overall investment into the tens of millions of RMB range.

    Tier 3: On-Demand Cloud Rental

    For most teams, a more practical option is to rent cloud GPU capacity. Based on the hourly price of a mainstream 8-GPU server, the monthly cost of a full deployment node is roughly tens of thousands of RMB. To reach production-grade concurrency, multiple nodes are often needed, and costs scale linearly. At this point, the key comparison points are billing granularity, elastic scaling capability, and the optimization level of the inference framework.

    4. Key Techniques for Reducing Cost and Improving Efficiency

    1. Quantization selection: choose 4-bit weight formats wherever precision allows. This is the most direct lever for reducing the VRAM floor;
    2. KV Cache optimization: use MLA-style multi-head latent compression, PagedAttention-style paging management, and prefix cache reuse to significantly reduce long-context overhead;
    3. Expert parallelism and communication optimization: design expert distribution reasonably and overlap computation with communication;
    4. Speculative decoding: use a small model to draft and a large model to verify, improving per-request generation speed;
    5. Evaluate whether the full model is really necessary: if task complexity is not high, a distilled version or a smaller model may meet 90% of the need at 1% of the cost. This is the highest-value step in deployment decisions.

    5. Summary

    The core arithmetic for local deployment of a trillion-parameter MoE model is straightforward: VRAM is calculated by total parameters; at 4-bit, the weight floor is about 1.5TB, and actual requirements are higher. “Getting it to run” costs about RMB 100,000–200,000, while “running it well” enters the tens-of-millions-of-RMB range. Cloud rental is the rational choice for most teams. Before starting, clarify the real business requirements for latency and concurrency to avoid paying for throughput you will not use.