Running Trillion-Parameter LLM Inference Without a GPU: A Memory-Centric Approach
This article examines how a server with no discrete GPU can load and run a 2.8-trillion-parameter model using large-capacity persistent memory and a multi-core CPU. It explains why memory capacity, bandwidth, and access patterns—not GPU compute—become the real constraints at trillion-parameter scale, then covers hardware components, capacity estimation, App Direct versus caching modes, quantization trade-offs, a practical tuning checklist, and the boundaries where cloud-based inference is the better option.
Running Trillion-Parameter LLM Inference Without a GPU: A Memory-Centric Approach
The Technical Problem Behind the Headlines
A recent community experiment deserves attention from engineers: a hobbyist loaded and ran a 2.8-trillion-parameter language model on a server with no discrete GPU at all, relying only on large-capacity persistent memory and a multi-core processor. Generation ran at just over one token per second, but the setup confirmed an engineering fact that is easy to overlook—large model inference is not inherently GPU-bound. The real constraint is where the data lives and how fast it can be fed to the compute units.
The popularity of this case comes from three converging trends. First, parameter counts have entered the trillions, making VRAM capacity a hard ceiling. Second, non-volatile storage media now offer a middle ground between bandwidth and capacity. Third, inference frameworks have begun supporting memory mapping and on-demand loading, which makes “models larger than RAM” possible. Setting aside the specific products involved, this article abstracts the experiment into a general methodology for GPU-free large model inference.
Why the GPU Is No Longer the Only Option
Conventional wisdom holds that large model inference requires a GPU for three reasons: high parallelism, high VRAM bandwidth, and mature operator libraries. At trillion-parameter scale, that logic reverses.
The first issue is the capacity wall. Even with 1-bit quantization, 2.8 trillion parameters put the theoretical floor in the hundreds of gigabytes, while consumer GPUs typically offer less than 32GB of VRAM. Multi-GPU setups add communication overhead and topology complexity. A server platform, by contrast, can combine standard memory slots with persistent memory expansion to provide several terabytes of addressable space in a single machine.
The second issue is cost structure. GPU-based capacity scales linearly or worse with size, whereas memory expansion has a clear price advantage in the used or end-of-life hardware market—particularly for validation and offline batch workloads.
The third issue is the nature of memory access. During autoregressive decoding, every generated token requires reading the full set of model weights, so the system is thoroughly memory-bandwidth-bound rather than compute-bound. Most of the GPU’s floating-point capacity sits idle; throughput is determined by how many bytes can be moved per second.
Hardware Components and Key Parameters
A reproducible GPU-free inference platform typically includes:
- Processor: A multi-core server CPU with ample memory channels. Core count is not critical, but memory controller performance and channel count are.
- Main memory (volatile): Holds hot data caches and runtime tensors. A capacity of 5%–15% of the model size is recommended.
- Persistent memory (non-volatile): Installed in DIMM form, offering large capacity, byte-addressability, and data persistence across power loss. This is the main home for cold weights.
- Storage and boot drive: Holds model files and the operating system; not part of the inference hot path.
- Software stack: An inference runtime that supports memory-mapped loading and mixed-precision dequantization.
The capacity estimation logic is roughly as follows (pseudocode, expressing the idea only):
model_bytes ≈ params × bits_per_param / 8required_addressable = model_bytes × 1.1 # reserve for KV Cache and temporary buffersdram_ratio = clamp(0.05, 0.15, hot_layer_bytes / model_bytes)
Note that the KV Cache grows linearly with context length. Long-context scenarios need additional headroom, or you end up in the awkward position of fitting the weights but failing to run inference.
Memory Access Patterns Decide the Outcome
The most valuable finding in the experiment is how much the access pattern affects performance. Persistent memory is typically exposed in one of two ways:
- App Direct mode: Volatile and persistent memory appear to software as two separate address spaces. Data is not migrated implicitly, and the programmer decides the placement policy.
- Caching mode: Persistent memory acts as a backing store for volatile memory, hot data resides in DRAM automatically, programming stays transparent, and capacity utilization drops.
Measured results show pure App Direct delivering roughly 0.85 tokens per second initially. Disabling the direct-access feature so that frequently accessed data automatically benefits from the DRAM cache raised throughput to about 1.50 tokens per second—nearly double. This indicates that weight access during decoding has clear locality and temporal clustering, and even a small improvement in cache hit rate can significantly improve end-to-end throughput.
The engineering takeaway: do not assume everything should run on the fastest medium. Build a tiered placement strategy—put attention layers, embedding layers, and the most recent few layers in volatile memory, place the later feed-forward layers on persistent memory, and reach them on demand through memory mapping in the inference framework.
Quantization Precision Versus Throughput
Another set of numbers matters just as much: the 3-bit quantized version reached only about 0.75 tokens per second, requiring roughly 18.5 hours to generate 50,000 tokens, while 1-bit quantization combined with data compression reached 0.85 tokens per second. The counterintuitive conclusion is that lowering the number of quantization bits does not necessarily improve throughput linearly, because dequantization overhead, memory access granularity, and kernel implementation efficiency offset one another.
Practical recommendations:
- Prefer quantization formats that are memory-access friendly and block-aligned; avoid fine-grained random access.
- Use higher precision for hot layers to keep output quality stable, and aggressive quantization for cold layers to shrink the footprint.
- Evaluate with a fixed prompt set and record both time-to-first-token and steady-state throughput, rather than looking at a single metric.
A Practical Tuning Checklist
- Measure bandwidth before discussing the model: Run a simple streaming-read benchmark to get sustained memory bandwidth, divide by the model size in bytes, and you have the theoretical token ceiling.
- Bind memory channels: Populate symmetric channels fully so a single channel does not become the bottleneck.
- Enable huge pages and prefetching: Reduce address translation overhead and improve sequential read efficiency.
- Control context length: Longer contexts mean a larger KV Cache and more pronounced throughput decay.
- Separate batch processing from streaming output: Offline batch jobs can tolerate low throughput; interactive scenarios should move to cloud inference.
- Set up monitoring: Use general-purpose monitoring, alerting, and logging services to collect throughput, cache hit rates, and temperature and power data, closing the tuning loop.
Applicability Limits and the Cloud Alternative
Be clear-eyed about the experience: 1–2 tokens per second suits technical validation, offline summarization, and dataset construction—tasks that do not demand real-time response. It cannot support production-grade interaction. If a workload needs stable low latency, the more sensible choice is general-purpose cloud compute: elastically spin up inference services through a container platform, host model files in object storage, use a message queue to smooth request spikes, and build observability with logging and monitoring. General compute and storage offerings from cloud providers such as Baidu AI Cloud can be combined as needed, removing the operational burden of running a large-capacity memory platform yourself.
Conclusion
The real value of this community experiment is not the novelty of running a trillion-parameter model on discontinued memory. It is that the experiment puts the first principles of large model inference back on the table: throughput is determined by bandwidth and access patterns, capacity is solved by tiered storage, and precision is balanced through quantization strategy. Understanding these three points leads to more rational architectural trade-offs, whether you build a memory platform yourself or deploy elastically in the cloud.
