Running a Trillion-Parameter Model Without a GPU: Persistent Memory Inference in Practice
This article documents a hands-on experiment that loaded and ran a model with roughly 2.8 trillion parameters on a machine with no discrete GPU, using a server-class CPU and discontinued high-capacity persistent memory. It explains how persistent memory works, compares App Direct and Memory Mode, outlines the hardware and software setup, and shows how quantization precision, direct access (DAX), and caching strategy affect throughput. The results quantify the trade-offs among capacity, bandwidth, and caching, and point to the offline and validation scenarios where this approach is worth borrowing.
1. Background: A “No-GPU” Home Lab Experiment
A developer recently shared an experiment in a community post: on a machine with no discrete GPU at all, relying only on a server-class processor and discontinued high-capacity persistent memory, they successfully loaded and ran an ultra-large language model with roughly 2.8 trillion parameters.
The result drew attention not because it “ran smoothly,” but because it exposed the bottleneck in large-model inference very thoroughly: once compute is no longer the only constraint, what actually limits throughput is data movement.
To be clear, this was a personal validation effort, and the output speed is not production-ready. Its value lies in a clean set of comparison data that helps developers understand how capacity, bandwidth, quantization, and caching constrain one another.
2. Technical Foundation: What Persistent Memory Actually Is
Persistent memory is a class of non-volatile storage technology that sits between traditional DRAM and solid-state storage. It is typically addressed directly by the memory controller and installed in server DIMM slots in a form close to that of a memory module. It has three core characteristics:
- Non-volatile: data survives power loss, which can eliminate some load and recovery overhead;
- Byte-addressable: software can access it byte by byte instead of reading in blocks;
- High capacity at relatively low cost: per-module capacity is far higher than same-generation DRAM, making it suitable for holding ultra-large model weights.
These products are mostly built for server platforms and require hardware-level support from both the processor and the motherboard. They have gradually exited mainstream product lines in recent years, so second-hand and surplus inventory channels have become the main source for experimenters.
3. Two Operating Modes: App Direct and Memory Mode
The two common ways of using persistent memory have a major impact on model loading logic.
1) App Direct mode
DRAM and persistent memory appear to the operating system as two separate data spaces. Model weights can be placed explicitly in the persistent memory region, and the program decides the access path itself. The advantage is control and on-demand tiering; the drawback is that an unreasonable access pattern shows up directly in generation speed as latency.
2) Memory Mode
Persistent memory is used by the system as extended memory, with DRAM acting as its cache, transparent to the application above. The advantage is a low adaptation cost; the drawback is that everything depends on the cache hit rate, which is often poor when an ultra-large model scans weights sequentially.
This experiment used the former, and further compared the effect of a direct access (DAX) switch, which is a key point covered later.
4. Hardware and Software Configuration Approach
The core of the test platform can be abstracted into three parts:
- A multi-core server processor: core count sets the ceiling for parallel decoding and batching, while the number of memory channels determines theoretical bandwidth;
- High-capacity persistent memory: used to hold the compressed weight files;
- A general-purpose inference framework: an inference runtime that supports memory-mapped loading, quantization formats, and tiered caching.
On the software side, the common practice is to use an inference framework that supports mmap, so weights enter the address space as mapped files and an attempt to read everything into memory at once—which would overflow—is avoided. The illustrative startup parameter logic is as follows (conveying the idea only, not actual commands):
Inference runtime startup parameters (illustrative)--model <path to the quantized weight file>--quantization-type <1bit | 3bit | ...>--context-length <context length>--threads <number of parallel threads, usually aligned to physical cores>--memory-mapping <enable mapped loading, paging in on demand>--direct-access <whether to bypass the page cache and read persistent memory directly>
5. Key Variable 1: Quantization Precision Determines Whether It Fits
At common precisions, a trillion-scale parameter count can reach several TB in size, so any single-machine memory approach must first solve the “does it fit” problem. Quantization is the only realistic path:
- 1-bit quantization: the highest compression ratio and the smallest weight footprint, with a measured initial generation speed of about 0.85 tokens per second;
- 3-bit quantization: slightly better precision, but a larger footprint and higher bandwidth pressure, with a measured speed of only about 0.75 tokens per second.
This reveals a counterintuitive conclusion: a higher bit width is not necessarily faster. In bandwidth-constrained scenarios, every additional byte read costs time, so the compression ratio often affects throughput more directly than numerical precision does. The cost is degraded output quality, and the acceptable range has to be evaluated on the business side.
6. Key Variable 2: Direct Access and Caching Strategy
The second comparison is highly instructive: turning off direct access (DAX) so that frequently used data can enter the DRAM cache raised generation speed from 0.85 tokens per second to about 1.50 tokens per second, nearly double.
The reason is access locality. When a large model decodes layer by layer, attention-related intermediate tensors and some hot weights are read repeatedly. Forcing every access to bypass the page cache and go straight to persistent memory means paying its relatively higher latency each time. Allowing the cache to intervene trades a small amount of DRAM for a large speedup on repeated accesses.
Practical recommendations:
- Make sure DRAM capacity can cover the hot working set first;
- Use a sequential-access-friendly layout for weight files to reduce random reads;
- Use monitoring to distinguish a capacity bottleneck from a bandwidth bottleneck before deciding which way to scale.
Generating 50,000 tokens with the 3-bit configuration takes about 18.5 hours, a figure that makes it clear this approach suits offline batch processing and feasibility validation, not interactive use.
7. Engineering Takeaways: Which Scenarios Are Worth Borrowing From
- Offline long-form generation: batch workloads that are insensitive to latency and can amortize throughput;
- Large-model runnability validation: verifying weight integrity and the inference pipeline when no accelerator card is available;
- Cost-sensitive archival inference: using high-capacity non-volatile memory to hold cold weights.
For an interactive experience, resources with high-bandwidth VRAM and dedicated acceleration should still carry the load. In the cloud, a common pattern is to keep model weights in object storage, elastically spin up inference instances through a container platform, and use logging and monitoring with alerting to observe throughput and queuing.
8. Conclusion
The real contribution of this experiment is not proving that “large models can run without a GPU,” but quantifying the relative weight of three constraints: capacity determines feasibility, bandwidth determines speed, and caching strategy determines whether bandwidth can be used effectively. For developers, the reusable methodology is to first define the business tolerance boundaries for latency and quality, then choose the quantization precision and memory tier strategy.
