Massive LLM Inference Without a GPU: Persistent Memory Feasibility and Limits
Large language models are scaling beyond what a single GPU can hold, but persistent memory offers a CPU-only path for some experiments. This article reviews a community test that used Intel Optane persistent memory and App Direct mode to run a very large quantized model, breaks down the reported token rates, explains why DRAM page caching changes performance, and analyzes the bandwidth constraints that define where this approach is practical.
Why Look Beyond the GPU
Large language models have moved from hundreds of billions to trillions of parameters. Normal inference relies on GPUs with very large memory, which individual developers often cannot assemble. The weights alone consume enormous space. For a dense model with 2.8 trillion parameters, even 1-bit quantization leaves roughly 350GB of weights (2.8 × 10^12 bits ÷ 8). That exceeds a single GPU and most home machines.
Recently, a hardware enthusiast shared an experiment in a community: no discrete GPU—just a server-class CPU and discontinued high-capacity persistent memory—was used to load and run a very large model. It was slow and far from practical, but it clearly demonstrated a path that substitutes memory for GPU memory. It is worth examining in detail.
The original report did not disclose the model name, quantization format, or test parameters. The token rates below should be treated as useful observations, not as a reproducible benchmark.
Persistent Memory: Large Capacity and Byte-Addressable Access
The key component is persistent memory (PMem). Using the Intel Optane persistent memory 200 series as an example, it is based on 3D XPoint media and is non-volatile, with performance between DRAM and NAND flash.
- Capacity: common modules are 128GB, 256GB, and 512GB, far above ordinary DRAM modules.
- Access: byte-addressable, so the program does not need to go through a block-device layer as with SSDs.
- Cost: price per unit of capacity is clearly lower than DRAM, making it practical for a large memory pool.
These features match the needs of large-model inference: the weights fit and the CPU can read them relatively directly. However, PMem read bandwidth is still much lower than DRAM, and even lower than GPU memory.
Platform and Hardware Checklist
The 200 series targets second- and third-generation Intel Xeon Scalable platforms. Exact compatibility depends on the motherboard and CPU support list. The original experiment used a 40-core third-generation Xeon. Used prices for this class of platform have fallen, making it the main source of low-cost experimental hardware.
Before trying to reproduce it, record:
- CPU model, core count, and memory-channel count.
- Number of PMem modules, per-module capacity, and total capacity.
- DRAM capacity.
- Motherboard/BIOS support for PMem and the mode settings used.
- OS kernel version and PMem management tooling (for example, ndctl).
- File system type and mount options used for the model files.
App Direct Mode vs. Memory Mode
PMem has two common operating modes, and the choice directly affects performance optimization.
| Item | App Direct Mode | Memory Mode |
|---|---|---|
| Address space | DRAM and PMem are exposed to the system separately | The system sees one large memory pool, with DRAM acting as its cache |
| Data placement | The application can decide whether data sits in DRAM or PMem | Placement is handled transparently by hardware; the application cannot intervene |
| Software changes | The inference framework needs to work with PMem placement | No software changes are required |
| Optimization room | Larger; can design caching for hot data | Smaller |
| Typical use case | Controlled inference experiments | Compatibility-first general use |
The original experiment used App Direct mode. Its advantage is that inference software can decide which data is kept in DRAM and which stays in PMem. For a workload dominated by weight reads, this control is worth more than the transparent memory-mode approach.
Quantization and Caching: Reading the Speed Numbers
The original report contains three data points that need to be read separately:
- 1-bit quantization, no DRAM page cache: ~0.85 tokens/s.
- 1-bit quantization, file system DAX disabled so reads go through the page cache: ~1.50 tokens/s.
- 3-bit quantization: ~0.75 tokens/s; generating 50,000 tokens takes about 18.5 hours.
The first two numbers show that DRAM read caching works. With file system DAX disabled, model files are read through the OS page cache. Hot weight pages remain in DRAM, so repeated access no longer goes through the slower medium every time.
There is an important distinction here. When a file system is mounted with DAX, mmap accesses PMem directly and bypasses the page cache. After removing the DAX mount option, data goes through the page cache. The exact behavior depends on the distribution, kernel version, and how the inference framework reads files, so it must be verified in your own environment.
The third data point shows the effect of higher quantization precision: more bits per weight means more bytes per generated token, so the speed drops.
One number, however, is hard to reconcile. If a 2.8 trillion parameter model is dense, 1-bit weights are about 350GB, and each generated token would have to read all of those weights. At 0.85 tokens/s, that would require about 300GB/s of sustained effective bandwidth. That is far above what a few persistent memory modules in a home server can provide. Therefore, this speed is only plausible for a sparse-activation model such as a mixture-of-experts (MoE) architecture, where each token reads only a small subset of expert weights. The model name and activation parameters are exactly the missing information that would make the report more useful.
Performance Bottleneck: Read Volume and Bandwidth
CPU inference speed can be approximated as:
tokens/s ≈ effective read bandwidth ÷ bytes read per token
The bytes read per token include the weights used for computation and additional overhead such as the KV cache. A dense model reads all weights on every token. An MoE model reads only the activated experts and shared layers.
As a hypothetical example, if a 1-bit model needs about 35GB per token and the effective bandwidth is 30GB/s, the theoretical speed is about 0.86 tokens/s. If precision is raised from 1-bit to 3-bit, the read volume roughly triples, so the speed ceiling drops to about one-third. This is an estimate, not a measured number.
From a memory-system perspective, there are three bottleneck layers:
- Media bandwidth: PMem read bandwidth is far below DRAM and even farther below GPU memory. It sets the upper bound.
- Access pattern: During inference, weights are read layer by layer. Whether DRAM caching can hit repeated hot pages determines how much extra bandwidth is needed.
- Compute: A 40-core CPU is capable of low-precision matrix operations. On very large models, memory time usually dominates compute time.
This is why 1-bit quantization plus DRAM caching produced the best result: it reduces the amount of data read per token and increases the effective bandwidth available for that data.
