Running a Trillion-Parameter Model Without a GPU: Persistent Memory in Practice
This article documents an experiment that loaded and ran a model with roughly 2.8 trillion parameters using only a general-purpose CPU and a persistent memory platform, with no discrete GPU. It explains what persistent memory is, compares App Direct mode with disabling DAX, shows how 1-bit and 3-bit quantization affected throughput, and uses a simple latency model to explain why memory bandwidth and capacity—not compute—become the bottleneck. It closes with a reusable checklist for capacity estimation, mode testing, quantization A/B testing, batch-oriented workloads, and observability.
1. Background: An Extreme Test Without an Accelerator
A developer working in a home lab pulled off a fairly representative experiment: with no discrete GPU, relying only on a general-purpose processor and a persistent memory platform, they loaded and ran a large language model with roughly 2.8 trillion parameters. The point was not simply that it ran. The experiment pushed a long-neglected question to the front: when VRAM capacity cannot hold the model weights at all, can the memory and storage layers serve as a fallback, and at what cost?
To be clear, attempts like this are still experimental. Generation speed is far from a usable experience. The value is that it provides a real order-of-magnitude reference, moving “memory-constrained inference” from conceptual discussion to quantifiable engineering judgment.
2. The 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, typically developed jointly by processor vendors and storage vendors. Its physical form is close to a server memory module: it plugs directly into a DIMM slot and is managed by the memory controller, so it supports byte-level addressing. It also retains data across power loss, and its capacity density is significantly higher than that of same-generation DRAM.
Common capacity tiers include 128GB, 256GB, and 512GB, aimed mainly at particular generations of server processor platforms. For LLM inference, the significance is straightforward: module by module, it raises total usable memory from a few hundred GB to the multi-terabyte range, at a cost far below an equivalent amount of DRAM.
3. Two Addressing Modes: The Trade-off Between App Direct and DAX
Persistent memory typically offers two working modes, and understanding the difference is a prerequisite for reproducing this experiment:
- App Direct mode: DRAM and persistent memory appear to software as two separate data spaces. Model weights live in the persistent memory region, while DRAM is left for the runtime and hot data. Memory management is cleaner, but the application must explicitly be aware of both spaces.
- Disabling DAX (direct access): the persistent memory region degrades into a storage layer covered by a DRAM cache, so frequently used data can hit in cache. In this experiment, that adjustment raised generation speed from roughly 0.85 tokens per second to roughly 1.50 tokens per second.
The engineering lesson is clear. DAX shortens the access path and removes copy overhead, which suits large, sequential, one-pass reads. Cache mode uses a small amount of fast DRAM to hold the hot set, which suits inference with strong locality. Neither is inherently better; the question is whether the mode matches the model’s access pattern.
4. Quantization and Compression: Fitting Weights Into Limited Memory
Even at half precision, a trillion-parameter model is far larger than a conventional memory configuration, so quantization is unavoidable. The experiment used two compression levels, 1-bit and 3-bit:
- 1-bit quantization with cache optimization: initial generation speed around 0.85 tokens per second, around 1.50 tokens per second after optimization.
- 3-bit quantization: only about 0.75 tokens per second, with 50,000 tokens taking roughly 18.5 hours to generate.
Counterintuitively, the higher bit width did not deliver higher throughput. The reason is that the low-bit approach strikes a better balance among weight size, memory bandwidth consumption, and dequantization overhead: smaller weights mean less data to move per forward pass, and memory bandwidth is often the real bottleneck in this scenario. Quantization is not a case of “more aggressive is better”; it requires empirical trade-offs among accuracy loss, bandwidth consumption, and compute overhead.
5. Locating the Bottleneck: Why No GPU Means Slower
In an inference path without an accelerator, matrix operations fall mainly on the general-purpose processor, which has low compute density and limited parallelism. A trillion-parameter model traverses massive weights at every step, so the bottleneck shifts quickly from compute to memory bandwidth and capacity. Roughly:
per-step latency ≈ bytes of weights to move / effective memory bandwidth + compute and dequantization overhead
This explains three things. First, lowering the bit width directly shrinks the numerator. Second, raising effective bandwidth (cache hits, sensible channel population) beats adding cores. Third, any design that adds data copies scales latency linearly. In practice, also pay attention to symmetric memory channel population, matching processor and memory generations, and affinity binding between runtime threads and memory access.
6. A Reusable Engineering Checklist
To reproduce a similar experiment in a resource-constrained environment, proceed in this order:
- Estimate capacity before performance: estimate weight size from parameter count and bit width, reserve room for the runtime and context cache, and confirm the total memory requirement is feasible.
- Benchmark bandwidth and modes first: test both the separate-data-space mode and the cache-covered mode, using a fixed prompt and a fixed output length for comparison.
- A/B the quantization levels: cover at least two bit widths, recording throughput, time to first token, and output quality rather than choosing by intuition.
- Treat long jobs as batch processing: at low throughput, design tasks as offline batches instead of interactive chat.
- Build observability: use general monitoring, alerting, and logging services to collect throughput, memory usage, and temperature and power, forming a baseline for continuous optimization.
In the cloud, this kind of need usually does not require building your own hardware. General-purpose compute instances, object storage, and container platforms can be combined on demand, treating capacity and bandwidth as elastic resources rather than one-time capital assets.
7. Conclusion
The real conclusion is not that a trillion-parameter model can run without a GPU. It is that in capacity-constrained scenarios, the combination of storage tier, addressing mode, and quantization strategy often determines success more than simply adding compute. For developers, the reliable path under extreme resource constraints is to first build a quantitative model of capacity and bandwidth, then calibrate it with small, incremental measurements.
