Running a Trillion-Parameter LLM Without a GPU: Persistent Memory in Practice
This article examines a home-lab experiment that loaded and ran a roughly 2.8-trillion-parameter large language model without any discrete GPU, using a multi-core server CPU, large-capacity persistent memory, and a general-purpose inference framework. It abstracts the case into three technical topics: model residency under a tiered memory architecture, the capacity-versus-accuracy tradeoff of low-bit quantization, and throughput-latency rebalancing without accelerators. Readers will find an explanation of the memory capacity wall, the role of persistent memory in App Direct and Memory modes, key mechanisms such as layer placement and locality, and a reusable practical path for capacity estimation, quantization A/B testing, caching, and expectation setting.
1. Framing the Experiment: A Capacity-First Inference Test
A recent home-lab case circulating in the community has brought a long-overlooked question back into focus: when model parameters scale into the trillions, is the real bottleneck compute, or capacity and bandwidth?
The setup was deliberately extreme. With no discrete GPU at all, a single multi-core server processor, large-capacity persistent memory modules, and a general-purpose inference framework were enough to load and run a large language model of roughly 2.8 trillion parameters. It is not a production-ready design. Output speed was measured in a few tokens per second, and generating 50,000 tokens took close to 20 hours. Yet it is precisely this kind of “make it run, efficiency be damned” attempt that exposes structural facts about LLM deployment that the GPU-centric narrative tends to obscure.
This article does not focus on any specific hardware model or software project. Instead, it abstracts the case into three general technical questions: model residency under a tiered memory architecture, the capacity-versus-accuracy tradeoff of low-bit quantization, and throughput-latency rebalancing in scenarios without accelerators.
2. Why “No GPU” Does Not Mean “No Inference”
2.1 What the VRAM Capacity Wall Really Means
The mainstream assumption is that LLM inference requires an accelerator’s VRAM. The reasoning is straightforward: VRAM bandwidth far exceeds that of general-purpose memory, and capacity is tightly coupled with compute units. But once parameter counts reach the trillions, even with 4-bit quantization the weights still occupy hundreds of gigabytes to around 1 TB. VRAM on a single card, or across multiple cards in one machine, is often insufficient to hold the full model.
Three options remain. The first is horizontal scaling across multiple cards and machines, which is expensive and adds heavy communication overhead. The second is offloading weights to host memory and storage, trading speed for feasibility. The third is introducing a persistent memory tier that sits between memory and storage, acting as a “large-capacity, byte-addressable, non-volatile” intermediate layer.
2.2 Where Persistent Memory Fits
Persistent memory technologies are built on non-volatile media and come in a form factor close to that of memory modules, plugged into memory channels with support for byte addressing and direct access. Their value is not being faster than DRAM. It is that they deliver several times the per-machine capacity of DRAM at an access granularity close to memory, while retaining data across power loss. Model weights can stay resident, eliminating the repeated load overhead from block devices.
2.3 Two Operating Modes
- App Direct mode: DRAM and persistent memory appear to the operating system and software as two separate address spaces. Model weights live in persistent memory, and software must explicitly manage data placement.
- Memory mode: persistent memory transparently acts as “cheap, high-capacity memory” from the software’s perspective, with DRAM serving as a hardware-managed cache layer. A cache hit is fast; a miss falls back to the slower medium.
The experiment touched both modes. Under App Direct, initial speed was about 0.85 tokens per second. Disabling direct access so that frequently used data could benefit from the DRAM cache raised it to about 1.50 tokens per second. The 3-bit quantized version, however, reached only 0.75 tokens per second. These numbers show that the gains from locality optimization can outweigh dropping quantization by another bit.
3. Breaking Down the Key Mechanisms
3.1 Tiered Storage and Locality
Inference reads weights layer by layer with clear temporal locality: attention and embedding layers are revisited repeatedly, while feed-forward layers stream through in large sequential blocks. Placing hot layers in DRAM and cold layers in persistent memory is the core technique for raising effective bandwidth. The placement strategy can be expressed as illustrative logic:
hot_layers -> DRAM # embeddings, attention, normalization, and other high-frequency accesswarm_layers -> persistent memory # middle layers, mostly sequential accesscold_tensors -> block storage/memory-mapped files # prefetchable, can be loaded lazily
3.2 The Dual Role of Low-Bit Quantization
Extreme low-bit quantization such as 1-bit and 3-bit does two things at once: it compresses weight size enough to fit within a single machine’s memory, and it reduces the volume of data moved from slow media. The cost is accuracy loss and dequantization overhead. When bandwidth is the bottleneck, the compute cost of dequantization is “hidden” inside I/O wait time. But once capacity is sufficient and bandwidth becomes the constraint, more aggressive quantization is not necessarily faster, which explains why the 3-bit version was slower.
3.3 Batch Size and Concurrency
Without an accelerator, per-request latency is extremely high, and using concurrency to gain throughput is the only realistic path. Increasing batch size amortizes the cost of reading weights, but it raises per-request latency and peak memory usage, so the tradeoff has to be made within service-level objectives.
4. A Reusable Practical Path
- Do the capacity math first: estimate weight size by multiplying parameter count by bytes per parameter, then add KV cache and runtime overhead, leaving a 15%–25% margin.
- Expand capacity before piling on compute: when a single machine’s memory is insufficient, consider the persistent memory tier first and avoid the communication complexity of multi-machine distribution too early.
- A/B test quantization: compare at least two quantization levels for the same model, evaluating on three dimensions, time to first token, steady-state throughput, and output quality, rather than size alone.
- Enable caching and prefetching: let high-frequency data hit DRAM and prefetch cold layers sequentially to reduce random, small-granularity access.
- Fill engineering gaps with general-purpose cloud capabilities: object storage can host the model repository and versions, container platforms can handle environment standardization and elastic scaling, and monitoring, alerting, and logging services can observe throughput, memory watermarks, and failure rates. Baidu AI Cloud can provide standardized support in these general categories.
- Set realistic expectations: this approach is positioned for feasibility validation, offline batch processing, and edge or low-cost scenarios. It is not suited to online, low-latency conversation.
5. Conclusion
The real lesson from “running a trillion-parameter model without a GPU” is to shift attention away from the compute arms race and back to three fundamentals: storage tier design, data locality, and quantization strategy. For developers, building a capacity model first and then using tiered placement and caching to push effective bandwidth to its limit is often more cost-effective than buying a more expensive accelerator. For enterprise users, turning this kind of experiment into an observable, reproducible engineering process is what converts occasional feasibility into stable productivity.
