Running Trillion-Parameter LLM Inference Without a GPU: A Persistent Memory Approach
This article examines a home-lab experiment that loaded and ran a model with roughly 2.8 trillion parameters on a machine with no discrete GPU, using large-capacity persistent memory on a server platform. It breaks down why GPU memory cannot hold such models, how persistent memory fits between memory and storage, the trade-offs between application direct access and cache mode, the role of extreme low-bit quantization, and how to interpret throughput of just over one token per second. It closes with capacity planning, tiered weight placement, and observability recommendations for engineers facing capacity-bound inference.
1. Background: A “No-GPU” Inference Experiment
A recent community post described a home-lab record: a hobbyist loaded and ran a large language model with roughly 2.8 trillion parameters on a machine with no discrete GPU, relying on the large-capacity persistent memory of a server platform. The record was not a rigorous benchmark but rather a feasibility check. Still, it touches a core tension in deploying large models today: model size is growing far faster than the memory capacity of a single accelerator.
The platform in the original record can be abstracted as follows: a multi-core server processor, large-capacity persistent memory modules, persistent memory exposed to software as a separate address space for direct application access, a general-purpose open-source inference framework on the software side, and weights quantized to an extremely low bit width before loading. The measured generation speed was under two tokens per second—“it runs, but it is not usable interactively.”
Note that this article does not repeat any specific hardware model or software name. Instead, it abstracts the attempt into a general question: when GPU memory cannot hold a model, can a memory tier with larger capacity but lower bandwidth carry the weights and complete inference at an acceptable cost?
2. Why GPU Memory Falls Short: The Capacity Math for Trillion-Parameter Models
The dominant cost in the inference stage is reading weights. Using a common 16-bit floating-point representation, each parameter takes about 2 bytes, so a one-trillion-parameter model needs nearly 2TB for weights alone; even with 8-bit quantization, the figure is around 1TB. Memory on consumer or data-center accelerators typically ranges from tens of gigabytes to just over a hundred gigabytes. Even with multi-GPU parallelism, carrying such a model requires extremely expensive interconnects and topology design.
That leaves three common routes:
- Scale GPU memory horizontally: multiple GPUs and machines, using tensor parallelism and pipeline parallelism over high-speed interconnects. The advantage is high bandwidth; the drawbacks are cost and engineering complexity.
- Compress the model vertically: weight quantization, structured pruning, low-rank decomposition to shrink the model into GPU memory. The drawbacks are accuracy loss and implementation complexity.
- Tier weight storage: place cold or infrequently used weights on media with larger capacity and lower cost, keeping hot data in high-bandwidth memory. This is the idea behind the experiment.
The key insight behind the third route is that memory access during autoregressive decoding has clear temporal locality: attention and a few high-frequency layers are visited repeatedly, while many feed-forward layer weights are read only once per forward pass. A tiered structure of “large-capacity low-bandwidth media plus small-capacity high-bandwidth cache” can therefore trade bandwidth for capacity in theory.
3. Key Techniques
3.1 Where Persistent Memory Fits: Between Memory and Storage
Persistent memory technologies are built on non-volatile media and offer byte-addressability, allowing reads and writes with memory semantics rather than going through the full block-device and file-system stack. Their capacity density is higher than that of conventional memory modules, and random read latency is lower than flash, but sequential and random bandwidth is significantly below high-bandwidth memory. This defines its sensible role in model inference: a weight warehouse, not a compute data path.
3.2 Two Exposure Modes: Application Direct Access and Cache Mode
The original attempt used application direct access mode, in which high-bandwidth memory and persistent memory appear to software as two separate address spaces, and the program decides which tier holds each piece of data. Another common approach is cache mode, which presents persistent memory as a transparent extension of high-bandwidth memory, with migration handled by hardware and firmware.
The trade-off is clear:
- Direct access mode: maximum control, but the framework or runtime must explicitly support per-layer weight placement, and tuning has a high barrier.
- Cache mode: transparent to software, but the hit rate depends on the access pattern and jitter is harder to localize.
One easily overlooked detail: in direct access mode, disabling the direct-access mapping feature lets common data stay more in the high-bandwidth memory cache, and measured generation speed rose from about 0.85 tokens per second to about 1.50 tokens per second. This shows that cache hit rate, not peak media bandwidth, is the first variable determining throughput.
3.3 Extreme Low-Bit Quantization: Shrinking Capacity Enough to Load
Fitting a trillion parameters into limited capacity makes weight quantization almost mandatory. The size difference between 1-bit and 3-bit quantization is several-fold: at 1 bit, model data can be compressed to roughly one-sixteenth of the original 16-bit representation, and at 3 bits to about one-sixth. In the original record, the 3-bit configuration reached only 0.75 tokens per second, and generating 50,000 tokens took about 18.5 hours—clearly slower than the 1-bit configuration.
The reasons are multiple. Lower bit widths reduce capacity pressure but introduce more complex unpacking and dequantization computation; on low-bandwidth media, computation can become the new bottleneck instead. Meanwhile, the accuracy impact of low bit widths needs validation on a separate evaluation set—being able to run is not enough.
3.4 Execution Characteristics of the Inference Framework
General-purpose inference frameworks typically organize the forward pass at layer granularity, with weights mapped into the address space read-only. In a tiered-storage scenario, the framework needs three capabilities: specifying the residency tier per layer or per block, supporting streamed weight loading, and avoiding repeated read amplification. The illustrative configuration logic can be expressed as:
model:weight_placement: [hot_layers -> dram, cold_layers -> pmem]quantization: 1bitcache:enable_direct_access: false # let hot data hit the high-bandwidth cache moreblock_size: 64MBruntime:threads: physical_coresbatch: 1mmap: true
The point of this pseudo-config is not the syntax but three tunable knobs: placement policy, quantization bit width, and cache/mapping switches. When tuning in practice, fix the other variables, sweep one at a time, and record two metrics: time to first token and steady-state throughput.
4. Performance Profile: How to Read “Just Over One Token per Second”
For interactive applications, 1 to 2 tokens per second means waiting a dozen seconds for a single sentence—completely unusable. But for another class of scenarios, this order of magnitude is not meaningless:
- Offline batch processing: long-document summarization, bulk extraction, corpus cleaning, where throughput matters more than latency.
- Interruptible jobs: generating 50,000 tokens takes about 18.5 hours, and if the job can resume from a checkpoint, the cost is manageable.
- Feasibility validation: verifying model loading, quantization correctness, and the prompt pipeline in environments without accelerators.
When evaluating this kind of setup, record at least four metrics: time to first token, steady-state token throughput, energy per token, and the throughput decay curve under long context. Looking only at peak bandwidth or parameter count leads to wrong conclusions.
5. Engineering Recommendations
- Plan capacity first: estimate weight size as “parameter count × bytes per parameter × redundancy factor,” then add KV cache and runtime overhead, and confirm the media has headroom.
- Tier, do not push everything down: keep high-frequency layers and the embedding table in high-bandwidth memory and push cold layers down; this is usually more stable than a global cache mode.
- Match quantization bit width to the medium: on low-bandwidth media, too low a bit width can let unpacking overhead cancel out the capacity gain, so measure the inflection point on the target hardware.
- Concurrency and batching strategy: single-request decoding is clearly constrained by memory bandwidth, and a moderately larger batch size can improve media utilization but raises time to first token.
- Prioritize observability: bring media hit rates, the distribution of per-step latency, and thermal and throttling events into monitoring, and use logs and alerts to locate the source of jitter.
- Cloud alternative path: if a large-capacity persistent memory platform is not available locally, evaluate general-purpose compute instances in the cloud, object storage and message queues from a container platform for data and job orchestration, and a monitoring and alerting service to track long-running jobs, avoiding a one-off hardware investment.
6. Conclusion
The value of this “trillion-parameter model without a GPU” attempt lies not in speed but in confirming a clear engineering boundary: when capacity is the primary constraint, tiered memory plus extreme low-bit quantization can get a model running; but when bandwidth is the primary constraint, any media-level optimization brings only a few-fold improvement and cannot replace a high-bandwidth compute path.
The practical takeaway for developers is to identify the bottleneck type before choosing a design: for a capacity bottleneck, prioritize quantization and tiering; for a bandwidth bottleneck, prioritize parallelism and cache-hit optimization; for a latency bottleneck, go back to model size and batching strategy itself. Measuring these three bottleneck types separately is what prevents repeated tuning at the wrong layer.
