Deploying a 2.8T Mixture-of-Experts Model: Memory, Storage, and Whether 8 GPUs Are Enough

    This article explains whether a 2.8-trillion-parameter Mixture-of-Experts model can run on eight GPUs. It covers weight size and precision, storage planning, memory limits, KV cache estimation, and the criteria for deciding between self-hosting and using a cloud service.

    Bottom Line First

    Based on the publisher’s released weights, the 1.56TB of weights cannot fit entirely on eight 80GB GPUs or eight 141GB GPUs. Eight 80GB GPUs provide about 640GB of total memory, and eight 141GB GPUs provide about 1,128GB. Both totals are below the size of the weights alone, before counting the KV cache and the memory needed by the serving framework. You therefore need one of three options: add more nodes, offload some experts to host memory or SSD, or load the weights at lower precision. Each option reduces throughput or increases latency. Before self-hosting, confirm your target concurrency, context length, and acceptable latency, then choose the hardware size.

    1. Look at Total and Active Parameters Separately

    According to the publisher, the model has about 2.8 trillion total parameters and uses a Mixture-of-Experts (MoE) architecture. Each token activates only part of these parameters. Public information says about 104B parameters are activated per token. The model includes 896 expert modules. For each token, the router selects 16 experts, and 2 shared experts always take part in computation. These figures come from public disclosures and depend on the specific model configuration version. If the version differs, the numbers may change, so check the official configuration files.

    Total parameters determine how much knowledge the model can store. Active parameters determine the compute required for each inference step. Low compute does not mean low deployment cost. Routing decisions cannot be known in advance, so the system usually needs many expert weights available at any time. Memory and storage must therefore be sized for the total parameter count.

    2. Precision and Storage Budget for 1.56TB of Weights

    The weight files total about 1.56TB. First, determine the precision they use. If 2.8 trillion parameters were stored in FP16 or BF16, each parameter would take 2 bytes, for about 5.6TB in total. Dividing 1.56TB by 2.8 trillion parameters gives about 0.56 bytes, or about 4.5 bits per parameter on average. This indicates the published weights use low-bit quantization or mixed precision. Check the quantization configuration file for specifics.

    Estimate storage with this formula:

    1. Required storage ≈ published weight size
    2. + converted weight size (if quantization or format conversion is needed)
    3. + temporary files (reserve 10% to 20% of the original size)
    4. + indexes, caches, and compiled artifacts

    Storage needs for common scenarios:

    Scenario Storage needed Notes
    Download and load directly About 1.56TB plus headroom, 2TB recommended Suitable for deployments without format conversion
    Convert to another format Both copies exist at once, 3.2TB or more in total Reserve 3.5TB to 4TB
    Temporary files 10% to 20% of the original size, about 156GB to 312GB Used during download and conversion
    Indexes, caches, and compiled artifacts Depends on the inference framework Reserve separately, not on the same volume as the weights

    Storage media also affects load time. The weights are split across dozens of shard files, and loading reads several files in parallel. Hard disk drives handle random reads poorly, so parallel reads queue up and loading slows noticeably. High-speed NVMe SSDs suit this workload better. In enterprise environments, download and verify the files on one machine first, then distribute them over the internal network to the inference nodes. This prevents each node from consuming external bandwidth separately.

    3. Memory Floor: Are Eight GPUs Enough?

    The publisher’s deployment guidance mentions at least eight high-memory accelerator cards. Check that claim against the weight size. Using 1.56TB = 1,560GB (decimal units), the minimum memory needed for the weights alone is:

    • 80GB per card: 1,560 ÷ 80 ≈ 19.5, so at least 20 cards;
    • 141GB per card: 1,560 ÷ 141 ≈ 11.1, so at least 12 cards.

    Eight 80GB cards total about 640GB, and eight 141GB cards total about 1,128GB. Neither configuration can hold all the weights. Usable memory is also below the rated capacity, because drivers, frameworks, and communication libraries use part of it. The card counts above are therefore theoretical minimums, and the real number needed is higher.

    Running on eight cards usually requires one or more of the following: offloading some experts to host memory or SSD, loading at lower precision, or loading only some of the experts. Each of these reduces throughput or increases latency. If “8 GPUs” refers to one node in a multi-node cluster, state the total node count and the parallelism strategy as well. Otherwise, the conclusion cannot be verified.

    4. How to Calculate KV Cache for Long Contexts

    Beyond the weights, inference must store a KV cache for each request. The KV cache grows linearly with context length and the number of concurrent requests. Longer contexts and higher concurrency use more memory.

    Estimate it with this formula:

    1. KV cache bytes ≈ 2 × layers × KV heads × head_dim × sequence length × batch × bytes per element

    The factor of 2 accounts for storing both keys and values. The example below uses assumed values: 60 layers, 8 KV heads, a head_dim of 128, a sequence length of 32,768 (about 32K), a batch size of 4, and an FP16 cache at 2 bytes per element.

    • KV cache per token: 2 × 60 × 8 × 128 × 2 bytes = 245,760 bytes, about 0.25MB;
    • One 32K request: 245,760 × 32,768 ≈ 8.05GB;
    • Four concurrent requests: 8.05GB × 4 ≈ 32.2GB.

    These numbers only illustrate the method. They do not reflect this model’s actual configuration. If the model uses grouped-query attention (GQA) or multi-head latent attention (MLA), the KV head count and cache format will differ. Use the layer count, KV head count, and head_dim from the model configuration file.

    The KV cache adds to the memory floor from the previous section. Even on eight cards, where the weights are spread across enough devices, each card still needs room for the KV cache and activations. If context length or concurrency exceeds that reserve, the inference service runs out of memory and crashes.

    5. Individuals Versus Enterprises

    Individual readers generally should not self-host inference for a model this size. The 1.56TB of weights requires multiple high-memory accelerators, and the cost of hardware, power, data center space, and operations far exceeds what most individual use can justify. To use the model’s capabilities, calling a cloud service or choosing a smaller model is usually more economical.

    Enterprises should check the following before deciding to self-host:

    1. Card and node count: Based on target concurrency, context length, and parallelism strategy, calculate how many nodes are needed. Do not stop at whether a single node can start.
    2. Storage capacity and bandwidth: Reserve capacity according to the budget table above, and test how fast the NVMe drives read shards in parallel.
    3. Throughput and latency: After quantization or expert offloading, test time to first token and tokens per second with real business traffic. Theoretical figures are not enough.
    4. Distribution and verification cost: Confirm how files will be distributed internally, and estimate the staff effort needed for checksum verification and version management.
    5. Operations capability: Confirm the team can handle common failures such as out-of-memory errors and shard loading failures.

    Enterprises can set the following stop conditions. If any one of them applies, pause the self-hosting plan:

    • At the target concurrency, time to first token or throughput cannot meet business requirements, and the budget for adding nodes is not acceptable;
    • The quantization configuration differs from the official release, or file verification fails, so no usable weight version can be confirmed;
    • Latency jitter after expert offloading is significant enough to affect the stability of core business;
    • The deployment works only as a single-node demo, with no verifiable multi-node scaling plan.

    6. Service Stability and Risks

    Self-hosted inference services face these risks:

    • Out-of-memory (OOM) errors: When context length or concurrency exceeds the reserve, the service fails outright. Set maximum context length and concurrency limits, and return clear errors when requests exceed them.
    • Latency jitter: Offloading experts to memory or SSD causes frequent swapping, which produces latency fluctuations. Monitor the offload hit rate and wait time separately.
    • Shard loading failures: With many shards, one corrupted file can cause the whole load to fail. Verify hashes before distribution, and support resumable downloads.
    • Version and quantization mismatch: Nodes running different weights or configurations produce inconsistent outputs. Pin version numbers and record hashes of the configuration files.
    • Rollback: Before an upgrade, keep the previous weights and deployment configuration so you can switch back quickly if problems appear.
    • Monitoring: Track at least memory usage, KV cache usage, queue length, time to first token, and error rate, and set alert thresholds.

    Assess these risks before purchasing hardware. Once the hardware size is set, put monitoring and rollback plans in place item by item. That is what keeps the service stable after launch.