Running a 2.8T-Parameter MoE Model Without a GPU: Cold-Storage Inference with Persistent Memory
This article reviews a home-lab experiment that runs a roughly 2.8-trillion-parameter mixture-of-experts model on a CPU-only platform using discontinued persistent memory. It explains the hardware characteristics, App Direct configuration, quantization and CPU inference setup, measured token/s results, bottlenecks, and practical lessons for tiered-storage inference and cloud-equivalent deployments.
1. Background: An Alternative Approach to the VRAM Bottleneck
Large language models continue to grow in parameter count, with models reaching hundreds of billions or even trillions of parameters. Even after compression, their weight files often reach hundreds of GB or the TB level. The traditional approach relies on pooling VRAM across multiple high-end GPUs, which is expensive and highly unfriendly to individual developers. This has led to another idea in the community: since model inference is essentially massive sequential reads and sparse activation, can large-capacity, low-cost non-volatile memory hold the weights and let the CPU complete inference on its own?
Recently, a technical enthusiast shared a home-lab experiment: on a platform with no GPU at all, the enthusiast successfully ran a mixture-of-experts (MoE) model with about 2.8 trillion total parameters. The core hardware for this attempt was a persistent memory product that had been discontinued for years. It is based on 3D XPoint-class non-volatile storage technology and combines access latency close to DRAM with per-module capacity far above DRAM.
2. Key Hardware: Why Persistent Memory Can Handle Trillion-Parameter Models
2.1 Technical Characteristics
Persistent memory is a class of non-volatile storage media located on the memory bus, positioned between DRAM and SSD:
- Capacity advantage: A single module can provide 128GB, 256GB, or even 512GB, far exceeding conventional DRAM DIMMs.
- Latency characteristics: Access latency is higher than DRAM but much lower than NVMe SSD, making it suitable for carrying massive weight data that is read-heavy and write-light.
- Non-volatility: Data is retained after power loss, so model weights can remain resident in memory and avoid reload time on each run.
2.2 Platform Requirements
The approach is designed for specific server-class processor platforms. The experimenter used a 40-core third-generation Xeon-class processor with multi-channel memory controllers. For MoE models, although the total parameter count is huge, only a small subset of expert networks is actually activated per token. This naturally supports a tiering strategy: cold data on slower media, hot data through high-speed cache.
3. Memory Mode and Inference Framework Configuration
3.1 App Direct Mode
The experiment used App Direct mode: DRAM and persistent memory are presented to the operating system and upper-layer software as two independent address spaces at the same time. Compared with Memory Mode, which uses persistent memory as a volatile extension of DRAM, App Direct mode can fully use its large capacity and non-volatile properties, making it better suited to holding complete model weights.
3.2 Inference Software
On the inference side, the experiment used a common community CPU inference framework, in principle consistent with mainstream llama.cpp-style solutions. It used aggressive 1-bit and 3-bit quantization schemes to compress the model to a size that persistent memory could hold.
4. Measured Performance: Bottlenecks and Room for Tuning
The measured results clearly show the potential and limitations of this type of approach:
| Configuration | Generation speed |
|---|---|
| 1-bit quantization, default direct read | About 0.85 token/s |
| 1-bit quantization, DAX direct access disabled | About 1.50 token/s |
| 3-bit quantization, DAX direct access disabled | About 0.75 token/s |
Several key observations:
Disabling DAX direct access was faster. Direct Access (DAX) bypasses the page cache and reads persistent memory byte by byte. When it is disabled, frequently accessed weight blocks are handled by the DRAM page cache, forming a de facto two-level cache. The hot path approaches DRAM speed, while the cold path falls back to persistent memory, and overall throughput improves significantly.
The quantization-width paradox. Intuitively, 3-bit precision should be higher and therefore faster, but the larger data volume means more bytes must be moved for each expert activation. In a memory-bandwidth-limited scenario, data movement rather than computation becomes the bottleneck, so the speed is actually lower than with the 1-bit approach.
Practicality boundary. At 0.75 token/s, generating 50,000 tokens takes about 18.5 hours. This is suitable only for offline batch processing or experimental validation, not for interactive conversation.
5. Lessons and Applicable Scenarios
Although this experiment is enthusiast-grade, it reveals several lessons valuable for engineering practice:
- Tiered storage is a viable path for CPU inference: For MoE architectures, placing full weights on high-capacity slow media and relying on cache to handle hot experts is an effective way to go beyond VRAM capacity.
- Memory bandwidth determines the upper limit: In CPU inference, data movement costs are often higher than computation itself. Quantization bit-width selection should be based on measured bandwidth rather than simply pursuing precision.
- Cloud-equivalent approach: Teams without specialized hardware can use general-purpose compute instances from cloud platforms, combined with tiered loading from object storage and local cache disk warm-up, to achieve a similar low-cost inference result for large models.
6. Conclusion
Using discontinued persistent memory to run a trillion-parameter model is less a practical solution than a vivid validation of the claim that large-model inference is essentially an I/O problem. As inference frameworks continue to optimize tiered caching and expert prefetching, the space for low-cost operation of very large models will open further. For resource-constrained developers, understanding this tiered-storage approach is more valuable than replicating the specific configuration.
