Running a 2.8-Trillion-Parameter MoE Model on CPU with Persistent Memory

    This article explains how a 2.8-trillion-parameter Mixture of Experts (MoE) model was reportedly run on a server without a discrete GPU, using persistent memory for capacity. It covers sparse activation, 1-bit quantization and the minimum memory footprint, the trade-offs between Memory Mode and App Direct, hardware supply risks, and where this approach fits, mainly offline batch and non-real-time workloads.

    Introduction

    Large language model inference usually depends on the memory bandwidth and memory capacity of high-end GPUs. When a model reaches hundreds of billions or even trillions of parameters, its weights can exceed the total VRAM of a multi-GPU machine, even at very low bit-widths. Recently, a developer ran a mixture-of-experts (MoE) model with 2.8 trillion parameters on an older server without a discrete graphics card. Under specific conditions, this result shows that general-purpose processors paired with large-capacity persistent memory can complete large model inference.

    This approach targets low-cost validation, offline batch processing, and non-real-time tasks. It does not replace GPU-based services for online conversation. This article covers sparse activation, quantization, memory hardware, software implementation, and the scope of suitability, and provides formulas that readers can use to estimate requirements themselves.

    1. MoE Sparse Activation: Reducing Compute per Token

    An MoE model consists of multiple expert sub-networks. For each token, a routing network selects a small number of experts based on the input features. The remaining experts stay inactive. As a result, the total parameter count determines storage requirements, while the number of parameters actively used for a single inference step determines compute requirements.

    According to public reports, the model has about 2.8 trillion total parameters, with about 104 billion parameters activated per token. The activation ratio is about 3.7%. This gap is the basis for making the approach feasible. Each token requires computation on only about 104 billion parameters, far less than a dense model of the same size, so a general-purpose processor can plausibly support token-by-token generation. Routing also moves data between experts, so actual latency does not equal the theoretical compute load divided by processing power.

    These figures come from secondhand public reporting. The model name, measurement method, and statistical basis have not been verified. For model selection, refer to the technical report from the model publisher.

    2. 1-bit Quantization and the Memory Floor

    All weights must reside in addressable memory so the routing network can access any expert at any time. Stored as 16-bit floating-point numbers, 2.8 trillion parameters require about 5.6 TB, far more than the memory of a typical server. With 1-bit quantization, the theoretical size of the weights alone is:

    2.8×10^12 parameters × 1 bit ÷ 8 ÷ 10^9 ≈ 350 GB

    This is the lower bound for the weights alone. Quantization scales, the unquantized embedding layers, normalization layers, and routing parameters all take additional space. For actual deployment, use the real size of the model files.

    Also, 1-bit quantization differs from the BitNet approach. BitNet b1.58 uses ternary weights, which require about 1.58 bits per parameter. If a model uses another quantization format, adjust the size estimate accordingly.

    3. Persistent Memory: Trading Performance for Capacity

    A single persistent memory (PMem) module can reach hundreds of gigabytes. When a server fills multiple memory channels with these modules, it can form a memory pool at the terabyte scale. Persistent memory once cost less per unit of capacity than DRAM of the same size, which is one of the main economic reasons for this approach.

    In terms of performance, persistent memory has higher read latency and noticeably lower bandwidth than DRAM. It cannot serve as a direct replacement for DRAM. Two usage modes need to be distinguished:

    • Memory Mode: The hardware uses DRAM as a cache, and the operating system sees one large block of volatile memory. Applications need no changes. However, when hot data misses the cache, latency rises significantly.
    • App Direct: The operating system exposes persistent memory as persistent storage, and applications access it through the file system. This usually requires DAX (Direct Access) support to bypass the page cache and access memory directly.

    Supply risk also needs evaluation. Intel announced the discontinuation of its Optane persistent memory product line in 2022, and these products are now end-of-life. Before building a new system, confirm the procurement channel, spare parts, and support period. Alternatives include adding more DRAM channels, using NVMe SSDs with memory mapping, or choosing a smaller model.

    The non-volatile nature of persistent memory also creates data management issues. Model files survive reboots, but the in-memory state during inference is not inherently reliable. Production environments need a separate backup and verification process, and they must determine which data is lost during a power failure.

    4. Key Software Implementation Points

    1. Loading Model Weights with Memory Mapping

    For model files that are hundreds of gigabytes in size,