Deploying Massive MoE Models Locally: A VRAM and Storage Sizing Guide
Before deploying a 2.8T-parameter MoE model, run the numbers first. This guide breaks down weight file sizes, storage and network requirements, VRAM math, communication overhead, and engineering trade-offs like quantization, parallelism, and offloading—ending with a practical pre-launch checklist for on-premises and cloud deployments.
Introduction: Do the VRAM Math Before You Deploy
Open weights give more teams access to a 2.8T-parameter MoE large model. According to the source material, the released weight files total roughly 1.56TB, and running the model locally is said to require at least 8 high-end GPUs. Without checking these figures item by item, it is easy to arrive at a flawed deployment plan. This article first aligns on unit conventions, then covers weight file size, storage and networking, VRAM, communication, and engineering optimizations, and closes with a pre-launch checklist.
Architecture: Total Parameters vs. Active Parameters
For an MoE model, the total parameter count determines the weight file links to weight size, whileClasses… wait—## Architecture: Total Parameters vs. Active Parameters
For an MoE model, the total parameter count determines the size of the weights, while the number of activated parameters determines the compute per token.吕… Let me redo this cleanly.—-### Architecture: Total Parameters vs. Active Parameters
For an MoE model, the total parameter count determines the size of the weights, while the active parameter count determines per-token compute. According to the source material, the model has roughly 2.8T total parameters and activates about 104B parameters per inference pass. Sparse activation reduces per-token compute cost, but it does not reduce the number of weights that must be stored.
The source also provides these structural details: 896 routed experts, with each token routed to 16 of them, plus 2 shared experts that are always active; 93 layers in total; and a 100K context window. These values come from the source description; this article has not verified the official configuration files or model card. If official configs differ, treat the official ones as authoritative.
Weight File Size: What 1.56TB Tells Us
Stored in BF16, each parameter takes Bottom of Form cmap…—-### Weight File Size: What 1.56TB Tells Us
Stored in BF16, each parameter takes 2 bytes, so 2.8T parameters would require about 5.6TB. The released weight files are about 1.56TB; converting in decimal, that averages roughly 4.5 bits per parameter (1.56×10¹² bytes × 8 ÷ 2.8×10¹² parameters). This liberal…—-Stored in BF16, each parameter takes 2 bytes, so 2.8T parameters would need about 5.6TB. The debug…忽略以上草稿,正式输出如下。 Stored in BF16, each parameter takes 2 bytes, so 2.8T parameters would require about 5.6TB. The released weight files are around 1.56TB; using decimal conversion, this averages roughly 4.5 bits per parameter (1.56×10¹² bytes × 8 ÷ 2.8×10¹² parameters). This indicates that the released weights are not stored entirely in BF16—more likely they use mixed precision or a quantized format. The exact format used for each layer and expert type should be checked against official documentation.
Note that the file size, the VRAM footprint after loading, and the VRAM used by the KV cache and activations during inference are three different numbers. A file size smaller than full BF16 does not mean VRAM requirements shrink proportionally.
VRAM Sizing: What “8 GPUs Minimum” Actually Requires
The table below is estimated for 80GB GPUs and counts only the weights themselves—no KV cache, activations, or just… (continue) no KV cache, activations, or framework overhead.
| Weight Precision | Estimated Weight Size | 8×80GB (640GB total) | Minimum GPU Count for Weights Only | Use Case |
|---|---|---|---|---|
| BF16 | ~5.6TB | Not feasible | ~70 GPUs | Multi-node, multi-GPU; serves as the accuracy baseline |
| INT8/FP8 | ~2.8TB | Not feasible | ~35 GPUs | Large-scale clusters |
| Released files (~4.5-bit average) | ~1.56TB | Not feasible | ~20 GPUs | Multi-node, or combined with CPU RAM / SSD offloading |
| INT4 (theoretical) | ~1.4TB | Not feasible | ~18 GPUs | Requires thorough quantization evaluation |
Even with 8 GPUs of 141GB or 192GB each—about 1128GB or 1536GB total—capacity still falls short of 1.56TB. Therefore, 8 GPUs alone cannot hold the model’s weights. The “8 GPUs minimum” claim only holds under one of two conditions:
- Part of the weights resides in CPU RAM or on NVMe SSDs and is paged into VRAM on demand during inference.
- Lower-precision weights are used, with the corresponding accuracy loss accepted.
Both approaches reduce throughput or increase latency. Whether they are viable must be judged by actual benchmarks.
Hardware Bottlenecks: Storage, VRAM, and Communication
Storage and networking. Download time for a執… Download time for a 1.56TB file depends on bandwidth. On a 1Gbps link (~125MB/s), the transfer takes roughly 3.5 hours under ideal conditions; on a 10Gbps link, about 21 minutes. This excludes time for checksums, retries, and decompression.
VRAM and offloading. Once weights are offloaded to CPU RAM or SSD, data must move across PCIe. PCIe 5.0 x16 has a theoretical one-way bandwidth of about 64GB/s, and real-world usable bandwidth is lower. If expert weights are swapped in and out frequently, inference speed drops noticeably.
Communication. MoE’s dynamic routing requires All-to-All communication to dispatch tokens to experts on different GPUs. Within a node, NVLink is preferred; across nodes, performance is constrained by network bandwidth and latency. The more widely experts are distributed, the higher the communication volume.
Cloud Deployment: What to Verify Before You Start
Public cloud platforms such as Baidu AI’)}}”>
… Public cloud platforms such as Baidu AI Cloud can shorten the time to acquire resources and distribute files. Before deploying, confirm the following item by item:- Object Storage (BOS): Hosts the weight files. Confirm region, capacity, read throughput limits, and billing for cross-region traffic.
- Container Service (CCE): Schedules GPU nodes. Confirm availability and quotas for the node types you need, and verify that driver and CUDA versions match your inference framework.
- Parallel File Storage (CPFS): Provides shared mounting of weights across nodes. Confirm capacity, throughput specs, and billing, and validate cold-start read speeds with multi-node stress tests.
- Logging and monitoring: Collect GPU utilization, VRAM usage, network traffic, and node health. Set alert thresholds based on your own SLA.
You will also need IAM permissions, VPC network configuration, an inference image, and a budget cap. Cloud platforms reduce procurement lead time, but they do not automatically solve VRAM shortages—those must still be addressed through parallelism, quantization, or offloading.
Engineering Optimization: Trade-offs Among Quantization, Parallelism, and Offloading
1. Quantization and compression
INT8 weights are roughly half the size of BF16, and INT4 about a quarter. However, the KV cache and activations do not shrink along with the weights(redundant)—-INT8 weights are roughly half the size of BF16, and INT4 about a quarter. But the KV cache and activations do not shrink along with the weights and must be sized separately. Before quantizing, prepare a representative calibration dataset; after quantizing, benchmark against the BF16 baseline on your target tasks.
MoE models support mixed precision: keep shared and high-frequency experts at higher precision, and low-frequency experts at lower precision. The risk is that low-frequency experts often handle long-tail tasks—minor languages, specialized domains—where accuracy degradation may be more pronounced. Evaluation should therefore be grouped by task category rather than relying on overall average scores alone.
2. Inference frameworks and parallelism strategies
Frameworks such as vLLM and DeepSpeed-MII vary in their MoE support and compatible model versions. Before launch, confirm that the target model is on the framework’s supported list, and document the specific combination of tensor parallelism (TP), expert parallelism (EP), and pipeline parallelism (PP). PagedAttention can reduce KV cache memory fragmentation, but it does not reduce weight footprint.
3. NVMe SSD offloading
Offloading schemes load expert weights from SSD into VRAM on demand, prefetching experts likely to be needed for upcoming tokens while computing the current one. This lowers VRAM requirements, but every miss means waiting on I/O, so the effective speed depends heavily on expert access patterns.
Pre-Launch Checklist
- Confirm the official weight formats and actual file sizes against the official model card or configuration.
- Verify total VRAM against the weights plus KV cache, activations, and framework overhead odd… plus KV cache, activations, and framework overhead.
- Measure download and load times under your real network and storage conditions.
- Benchmark quantized weights against the BF16 baseline by task category, not just aggregate scores.
- Confirm framework support for the model, and lock in the TP/EP/PP configuration.
- Set up GPU, memory, network, and node health monitoring with alert thresholds aligned to your SLA.
Run the numbers first, verify with real measurements second—only then commit to a deployment plan.
