Running a Trillion-Parameter LLM Without a GPU: A Persistent Memory Experiment
This article explores how a 2.8-trillion-parameter open-source MoE model was run locally on a machine with no GPU at all, using discontinued persistent memory modules instead of VRAM. It covers the hardware basics of persistent memory, Memory Mode vs. App Direct Mode, DAX configuration, 1-bit and 3-bit quantization trade-offs, benchmark results showing how page caching improved throughput by roughly 76%, and practical lessons for memory-constrained local inference of very large language models.
Running a Trillion-Parameter LLM Without a GPU: A Persistent Memory Experiment
1. Background: When VRAM Can’t Hold the Model
Local inference of large language models has long been constrained by one factor: VRAM capacity. An uncompressed trillion-parameter model, even stored in half precision, requires terabytes of memory — far beyond what any consumer GPU offers. The standard answers are multi-GPU parallelism or layer offloading, but both come with steep hardware costs.
Recently, a hobbyist shared a striking home-lab experiment in the community: running an open-source mixture-of-experts (MoE) model with roughly 2.8 trillion total parameters entirely on a machine with no GPU, using a discontinued non-volatile persistent memory technology. The generation speed was far from smooth, but the experiment proved the viability of substituting cheap, high-capacity memory for VRAM — a technical route worth examining closely.
2. The Core Hardware: What Is Persistent Memory?
Persistent memory is a class of memory product built on non-volatile storage media. Physically it resembles ordinary server DIMMs and plugs directly into motherboard memory slots, but its contents survive power loss. It sits between conventional DRAM and SSDs:
- High capacity: individual modules reach 128GB, 256GB, or even 512GB — far beyond same-generation DRAM DIMMs;
- Intermediate latency: access latency is one to several orders of magnitude higher than DRAM, but far lower than any flash device;
- Lower cost: per gigabyte, it was significantly cheaper than equivalent DRAM.
Such products typically require specific generations of server processor platforms and support multiple operating modes. Since the vendor discontinued the product line, modules are now mainly available second-hand — which actually drove experiment costs down dramatically. This is one of the key reasons the whole project fit a “home lab” budget.
3. Experimental Setup and Operating Modes
The test platform consisted of a 40-core server processor paired with several persistent memory modules, plus some DRAM. On the software side, a mainstream community local-inference runtime executed the model computation.
Persistent memory works with the operating system in two typical modes, and understanding their difference is central to this experiment:
1. Memory Mode
DRAM acts as a transparent cache in front of the persistent memory; the OS only sees the persistent memory’s total capacity. The upside is zero application changes; the downside is uncontrollable caching behavior.
2. App Direct Mode
DRAM and persistent memory are exposed as two separate address spaces, and applications explicitly decide where data lives. This experiment used App Direct Mode, loading the quantized model weights directly onto persistent memory as memory-mapped files.
Within App Direct Mode there is one more critical switch — Direct Access (DAX). With DAX enabled, applications bypass the OS page cache and read/write persistent memory directly. With DAX disabled, I/O goes through the page cache in DRAM, so hot data gets DRAM-level access speed.
4. Quantization: Fitting 2.8 Trillion Parameters Into Memory
Quantization is the first step toward making a massive model feasible. Compressing weights from high-precision floating point to extremely low-bit representations shrinks the storage footprint by more than an order of magnitude. Two quantization levels were tested:
- 1-bit quantization: smallest model size, fits within persistent memory capacity, but with significant accuracy loss;
- 3-bit quantization: noticeably better accuracy, but a larger footprint and more complex decompression computation.
Notably, although an MoE model has an enormous total parameter count, each inference step activates only a small subset of experts. This means inference exhibits a “heavy random reads, concentrated local hotspots” access pattern — activated expert weights are accessed repeatedly, making them ideal candidates for acceleration by the DRAM page cache.
5. Benchmark Results and Key Findings
The measured generation speeds reveal interesting patterns:
| Configuration | Generation Speed |
|---|---|
| 1-bit quantization + DAX enabled | ~0.85 tokens/s |
| 1-bit quantization + DAX disabled (via DRAM page cache) | ~1.50 tokens/s |
| 3-bit quantization + DAX disabled | ~0.75 tokens/s |
Two conclusions stand out:
First, the page cache delivered roughly a 76% performance gain. With DAX disabled, repeatedly accessed expert weights stayed resident in the DRAM page cache, avoiding round trips to the slower medium every time. This confirms the assessment of MoE access patterns — cache friendliness is a major advantage of this architecture under memory constraints.
Second, higher-precision quantization isn’t necessarily slower — but it can be. Although 3-bit quantization involves more data, the extra decompression overhead and a working set too large to benefit from caching actually made it slower in practice. At 0.75 tokens/s, generating 50,000 tokens would take about 18.5 hours — usable only for offline batch-style workloads.
6. Engineering Takeaways and Optimization Directions
Limited in speed as it is, this experiment yields several reusable lessons for low-cost inference:
- Capacity first, bandwidth second: for extremely large models, the primary constraint is “does it fit,” and only then “how fast does it run.” This is precisely where high-capacity, low-cost memory/storage media prove their value.
- Caching beats raw direct access: when DRAM headroom exists, letting the OS page cache (or an application-level cache) absorb hot data usually outperforms cache-bypassing direct access.
- Quantization bit-width needs joint tuning: lower bit-widths save space and bandwidth, but final throughput is determined jointly by decompression overhead and cache hit rates. Measure and compare rather than assume.
- Architecture matters: MoE models are naturally suited to memory-constrained inference; activation sparsity in similar architectures is an effective way to reduce bandwidth requirements.
Further optimization directions include explicitly pinning the most frequently activated expert weights in DRAM (rather than relying on the page cache’s passive policy), using multi-socket platforms to expand memory bandwidth, and amortizing loading costs through batched requests.
7. Conclusion
This experiment demonstrates that “running trillion-parameter models without a GPU” is no fantasy: with high-capacity persistent memory, aggressive weight quantization, and a sensible caching strategy, a consumer-level budget can touch the inference capabilities of frontier-scale models. Although one to two tokens per second is still far from interactive usability, it opens a door for offline text generation, model behavior research, and educational experimentation. For developers who want to explore large models locally, this “trade memory for VRAM” route is worth continued attention and iteration.
