Deploying a Trillion-Parameter MoE Model On-Premises: GPU Memory, Compute, and Costs

    A 2.8-trillion-parameter mixture-of-experts model activates only a small fraction of its weights per token, but deploying it still requires substantial memory and careful system design. This article breaks down weight storage, compute and communication bottlenecks, three hardware configurations, and ongoing operating costs for workloads ranging from basic inference testing to concurrent production serving.

    Deploying a large language model locally is often described as downloading weights and running a script. At the trillion-parameter scale, it becomes an engineering problem shaped by quantization, GPU memory, interconnects, and cost.

    Using a mixture-of-experts (MoE) model with 2.8 trillion total parameters as an example, this article examines the hardware needed for different deployment goals, approximate costs, and the assumptions most likely to lead to incorrect estimates.

    The model activates approximately 1.79% of its parameters per token, or about 50.1 billion parameters:

    2.8 trillion × 1.79% ≈ 50.1 billion

    Sparse activation reduces computation per step, but it does not eliminate weight storage requirements. All expert weights still need to reside somewhere. That distinction underpins every configuration discussed below.

    1. Define Your Throughput and Concurrency Targets

    Start with the workload requirements. Depending on the target, the hardware budget can range from hundreds of thousands to tens of millions of Chinese yuan.

    Basic inference: It only needs to run

    This configuration is suitable for technical validation, weight inspection, or offline analysis. Output speed is not a priority; the main requirement is to fit the weights into memory and complete forward passes.

    A common approach is to offload expert layers to system memory and execute their computations on CPUs.

    Responsive single-user inference: At least 25 tokens/s

    A generation rate of 25 tokens/s is roughly comparable to human reading speed. Reaching this target requires GPUs to handle most of the computation, with frequently used experts cached in GPU memory.

    CPU-only execution is insufficient for this target. Multiple high-end accelerators are typically needed.

    Concurrent production serving: 10 streams at at least 25 tokens/s each

    Enterprise serving must maintain per-user throughput while accommodating the KV cache for concurrent requests.

    For the fully GPU-resident approach described here, GPU memory must hold all weights, and device interconnects must handle expert-routing traffic from multiple users. A single multi-GPU server is generally insufficient; a supernode or distributed inference framework is needed.

    2. How Much GPU and System Memory Do You Need?

    Weight size establishes the minimum storage requirement. At FP16 precision, this model occupies approximately 5.6 TB—far beyond the GPU memory capacity of a single server. Quantization is therefore essential for the configurations considered here.

    Weight format Estimated weight size Deployment context
    FP16/BF16 Approximately 5.6 TB Reference baseline; cannot fit in a single server’s GPU memory
    FP8 Approximately 2.8 TB Multi-GPU or supernode deployment
    MXFP4 Approximately 1.4 TB theoretically; about 1.5 TB including scale factors and non-quantized tensors Primary basis for the estimates in this article

    MXFP4 uses four bits per weight, but also requires a scale factor for every 32 weights. Non-quantized tensors and runtime metadata add further overhead.

    Using approximately 1.5 TB as the planning estimate is more prudent than relying on the theoretical 1.4 TB figure. Verify the actual size of the released MXFP4 weight files before selecting hardware.

    Keeping all weights in GPU memory

    With 96 GB accelerators, at least 16 devices are needed, providing approximately 1,536 GB in total. However, that leaves essentially no room for the KV cache or compute workspaces. A practical configuration should therefore use 20 or more devices.

    With 80 GB accelerators, 16 devices provide only about 1,280 GB—not enough for the weights. At least 20 devices are needed to reach approximately 1.6 TB, before allowing additional runtime headroom.

    Heterogeneous offloading

    Expert layers account for more than 90% of this MoE model’s weight storage, but each token accesses only a small subset. Attention layers and shared components can remain on GPUs while expert weights reside in system memory.

    If approximately 90% of the 1.5 TB weight footprint is assigned to CPU-side storage, the expert weights alone occupy about 1.35 TB. The system therefore needs more than 1.5 TB of RAM; 2 TB is recommended to leave space for the operating system and caches.

    This approach can reduce GPU memory requirements to around 200 GB.

    3. Where Do Compute and Communication Become Bottlenecks?

    Theoretical compute requirements are modest

    A rough estimate for the forward-pass computation per token is twice the active parameter count:

    2 × 50.1 billion ≈ 100 billion floating-point operations, or 1 × 10¹¹ FLOPs

    This covers weight-related computation only. It excludes attention costs that grow with context length, KV cache reads and writes, and communication overhead.

    At 25 tokens/s, a single stream requires approximately 2.5 TFLOPS for weight computation. Ten concurrent streams require approximately 25 TFLOPS.

    Modern accelerators have peak compute capabilities well above these figures. In practice, GPU memory bandwidth, communication latency, and scheduling efficiency are often more restrictive than peak FLOPS.

    Bandwidth matters more than peak compute

    Under MXFP4, the active expert weights read for each token amount to roughly 25 GB:

    50.1 billion parameters × 0.5 bytes ≈ 25 GB

    If all these weights must move from system memory to GPUs over PCIe 5.0 x16, the link provides approximately 63 GB/s of theoretical one-way bandwidth. At an assumed effective bandwidth of 50 GB/s, the transfer-limited ceiling is only about 2 tokens/s.

    Frequently used experts therefore need to remain cached in GPU memory, with transfers limited to less frequently used experts.

    If CPUs execute expert computations directly, system memory bandwidth becomes a constraint. At an assumed effective bandwidth of 200–400 GB/s, the bandwidth-only ceiling is roughly 8–16 tokens/s. Actual throughput will be lower.

    All-to-all communication latency

    With expert parallelism, token representations must be sent to the devices hosting the selected experts and returned after computation.

    For illustration, assume:

    • A hidden dimension of 8,192
    • Eight routed experts per token
    • BF16 communication
    • 60 layers

    Dispatch and combine traffic totals approximately 256 KB per layer, or about 15 MB per token across the model.

    That volume is small relative to NVLink bandwidth. However, two all-to-all operations per layer imply approximately 120 synchronization points. If each communication operation has a fixed latency of 20 microseconds, communication latency alone adds about 2.4 milliseconds per token.

    The number of communication operations and their latency can therefore matter more than raw bandwidth.

    Interconnect bandwidth also varies substantially:

    • NVLink: Hundreds of GB/s to as much as 1.8 TB/s per accelerator, depending on generation
    • PCIe 5.0 x16: Approximately 63 GB/s in one direction
    • 400 Gb/s network adapter: Approximately 50 GB/s

    As cross-rack communication increases, a shared NVLink domain or supernode architecture becomes more important.

    4. Three Hardware Configurations

    The following prices are illustrative estimates based on the source article’s market assumptions around November 2026. They are denominated in Chinese yuan (CNY), not global procurement quotes, and exclude taxes, electricity, and operations.

    Switches, optical modules, and rack modifications vary by project. Obtain itemized quotes before purchasing.

    Configuration 1: Experimental deployment — CNY 400,000–600,000

    • Hardware: A dual-socket server with two 64-core CPUs, 2 TB of DDR5 RAM, two 48 GB professional GPUs, and high-capacity NVMe storage
    • Execution strategy: CPUs handle approximately 90% of expert computation; GPUs handle attention and shared components
    • Expected throughput: Approximately 3–8 tokens/s, depending on scheduling efficiency and CPU computation
    • Best suited to: Validating model behavior, rather than running a production service

    Configuration 2: Small studio deployment — CNY 1.3–2 million

    • Hardware: Four 80 GB professional accelerators connected through NVLink or an equivalent high-speed interconnect, at least approximately 2 TB of system RAM, and high-speed storage
    • Execution strategy: The combined 320 GB of GPU memory holds attention layers and frequently used experts. Other experts remain in system memory and are computed on CPUs or transferred on demand
    • Expected throughput: Reaching 25 tokens/s is possible only with a sufficiently high expert-cache hit rate and must be confirmed through benchmarking
    • Limitations: Limited concurrency, with long-context KV caches consuming a substantial share of GPU memory

    This configuration cannot hold all model weights in GPU memory. Full GPU residency requires at least 20 accelerators with 80 GB each, at a substantially higher cost.

    Configuration 3: Enterprise production deployment — CNY 25–40 million

    • Hardware: An eight-node supernode with eight 200 GB accelerators per node, totaling 64 accelerators and approximately 12.8 TB of GPU memory, connected within a shared NVLink domain. Additional CPU servers provide an overflow buffer pool
    • Execution strategy: All weights remain on GPUs, leaving most GPU memory available for KV caches and batching to support concurrent requests
    • Cost components: Accelerators, switches, optical modules, racks, and supporting power and cooling infrastructure. Accelerators are the largest expense and require model-specific, itemized pricing
    • Best suited to: Production services with service-level agreements and high concurrency

    This is the most conservative option for that production scenario, but also the most expensive.

    5. Electricity, Operations, and Inference Software Costs

    Hardware acquisition is only part of the budget. Deployment also creates ongoing expenses.

    Estimating electricity costs

    Use the following formula:

    Annual electricity cost = power (kW) × 8,760 hours × average load factor × PUE × electricity price per kWh

    For a supernode drawing 50 kW at full load, assume:

    • Average load factor: 70%
    • Power usage effectiveness (PUE): 1.3
    • Electricity price: CNY 0.6/kWh

    The estimated annual electricity cost is:

    50 × 8,760 × 0.7 × 1.3 × 0.6 ≈ CNY 240,000

    Use the facility’s actual electricity tariff and workload profile for budgeting.

    Operations staffing

    Multi-GPU and supernode deployments require maintenance of drivers, firmware, networking, and fault recovery.

    Configurations 2 and 3 typically require one or two dedicated engineers. Configuration 1 can generally be maintained on a part-time basis.

    Inference framework engineering

    Distributed inference engines still have incomplete support for models at this scale. Teams may need to invest engineering time in managing GPU memory fragmentation and optimizing communication operators.

    These costs cannot be inferred from hardware prices and should have a separate budget line.

    KV cache quantization

    Changing the KV cache from BF16 to FP8 roughly halves its storage footprint, with a small potential loss in accuracy.

    The reduction in total GPU memory usage depends on how much memory the KV cache occupies. Longer contexts generally make the savings more significant.

    Validate accuracy using your own evaluation dataset before deploying the change.

    6. How to Make the Deployment Decision

    First define throughput and concurrency requirements, then select the smallest configuration that can meet them.

    With a constrained budget, CPU offloading lowers the entry cost, but requires accepting slower generation and evaluating quantization trade-offs. For reliable, highly concurrent serving, a supernode offers greater headroom at a much higher investment, while operating costs vary with workload.

    Future hardware and communication standards may reduce deployment costs. However, the scale of those reductions depends on interface standards, quantization formats, and hardware development; there is no reliable quantitative basis for predicting them here.

    Start with a smaller benchmark environment, measure real performance, and expand based on those results rather than committing to a large fixed-asset purchase upfront.