Running a 2.8-Trillion-Parameter Model Without a GPU Using Persistent Memory
A home-lab experiment shows how CPU inference, persistent memory, and low-bit quantization can accommodate a 2.8-trillion-parameter model without GPU memory. This article examines the reported performance, memory hierarchy, caching trade-offs, and engineering considerations, explaining why the approach is more relevant to capacity-constrained research and offline generation than high-throughput serving.
1. Experiment Background: Replacing GPU Memory with a Capacity Tier
A technology community enthusiast recently shared a home-lab experiment running a 2.8-trillion-parameter model on a server without a GPU, using discontinued, nonvolatile, byte-addressable persistent memory. The goal was not production-grade throughput. Instead, the experiment explored whether a large memory hierarchy and CPU inference could make a model run when its size far exceeded conventional GPU memory capacity.
According to the public description, the system combined a 40-core server CPU, high-capacity persistent memory, and a lightweight CPU inference framework. Tests covered 1-bit and 3-bit quantization, as well as two memory-access configurations: exposing persistent memory directly to software as a separate byte-addressable space, and disabling direct access so frequently used data could benefit from DRAM caching.
The results were far from fast. Initial generation with 1-bit quantization reached approximately 0.85 tokens per second, increasing to 1.50 tokens per second after the caching configuration changed. The 3-bit configuration achieved roughly 0.75 tokens per second, putting a 50,000-token generation at about 18.5 hours.
The significance lies less in speed than in the trade-offs among memory capacity, bandwidth, and caching. For developers and engineering teams, this is a boundary test: when a model cannot fit in GPU memory, can persistent memory supply capacity, CPUs supply compute, and quantization reduce the storage requirement?
2. Why GPU-Free Inference Is Possible: Separating Capacity from Compute
GPUs combine highly parallel computation with high-bandwidth device memory, but their memory capacity is limited. Even under aggressive quantization, a 2.8-trillion-parameter model requires hundreds of gigabytes to terabytes for its weights.
A rough estimate is:
Weight storage in bytes ≈ parameter count × bits per parameter / 82.8 trillion parameters × 1 bit / 8 ≈ 350 GB2.8 trillion parameters × 3 bits / 8 ≈ 1.05 TB2.8 trillion parameters × 8 bits / 8 ≈ 2.8 TB
These figures exclude runtime caches, intermediate activations, page tables, framework overhead, and alignment overhead. Even at 1 bit per parameter, the weights alone occupy hundreds of gigabytes; at 3 bits, they exceed 1 TB.
Conventional GPU memory configurations struggle to accommodate that footprint. High-capacity persistent memory offers byte-addressable access with memory-like semantics, while DRAM can cache frequently accessed data.
The approach works by separating responsibilities:
- CPU: Executes inference operations.
- Persistent memory: Provides the capacity needed to hold the model.
- DRAM: Caches frequently accessed data.
The cost is substantially lower throughput. CPU execution capabilities, memory bandwidth, persistent-memory latency, quantization decoding overhead, and page management can all become bottlenecks.
This makes the architecture more relevant to offline batch work, research, low-concurrency question answering, and extreme-capacity scenarios than to high-concurrency online services.
3. Understanding the Architecture: Three Tiers and Two Quantization Levels
The experimental setup can be understood as three functional tiers.
- Persistent-memory capacity tier: Stores the complete quantized weights. It is large, nonvolatile, and byte-addressable, but generally has higher access latency and lower bandwidth than DRAM.
- DRAM cache tier: Holds frequently accessed weight pages, commonly used attention-related data, and framework runtime structures, reducing repeated access to persistent memory.
- CPU compute tier: Performs matrix-vector multiplication, normalization, activation functions, and quantization decoding. Performance depends on core count, cache hierarchy, NUMA affinity, and memory bandwidth.
Direct Access Versus DRAM Caching
The experiment compared two access configurations.
The first exposed persistent memory directly to software as an independent byte-addressable space, reducing additional copying. This offers a shorter access path, but accesses not served by faster caches remain exposed to persistent-memory latency.
The second disabled direct access and allowed frequently used data to benefit from DRAM caching. Although this introduces cache management, it can improve locality for repeatedly accessed data.
The reported increase from approximately 0.85 to 1.50 tokens per second suggests that, in this configuration, caching benefits outweighed the advantage of a shorter access path. It does not establish that the same improvement will occur with every model or memory configuration.
1-Bit Versus 3-Bit Quantization
The 1-bit configuration compressed weights aggressively, reducing both capacity requirements and pressure on memory bandwidth. However, extreme quantization involves numerical approximation and decoding work, with potential consequences for model quality and computational overhead.
The 3-bit configuration required more storage and could potentially preserve better accuracy, but it achieved only about 0.75 tokens per second in the reported test. Increasing the bit width raises storage traffic and can also increase decoding costs.
Extreme quantization is therefore not a free performance improvement. It is an engineering trade-off among capacity, accuracy, and throughput.
The following illustrative configuration expresses the tiering concept only; it is not tied to a specific implementation:
storage:capacity_layer: persistent_memorycache_layer: dramaccess_mode: byte_addressable_directquantization:weight_bits: 1runtime:cpu_threads: 40cache_policy: page_aware_hotness
4. Interpreting the Performance Results
The three reported measurements are best considered together:
| Scenario | Quantization | Reported generation speed | Engineering interpretation |
|---|---|---|---|
| Initial direct-access test | 1-bit | Approximately 0.85 tokens/s | Sufficient capacity to run the model, with persistent-memory access remaining a performance constraint |
| Direct access disabled; DRAM caching enabled | 1-bit | Approximately 1.50 tokens/s | Better cache locality improved throughput |
| Higher-bit quantization test | 3-bit | Approximately 0.75 tokens/s | Larger storage requirements and decoding costs constrained throughput further |
Even 1.50 tokens per second is not suitable for high-concurrency interactive service, though it can support offline generation. At 0.75 tokens per second, generating 50,000 tokens takes approximately 18.5 hours.
That places this approach in the category of long-running, capacity-intensive workloads with limited real-time requirements. If exposed through an online service, it would call for batching, request queues, timeout controls, and asynchronous result delivery rather than a long-lived synchronous interface.
Generation speed also depends on output length, batch size, context length, cache hit rate, and CPU scheduling:
- Short and long contexts can produce substantially different memory-access patterns.
- Batching may improve throughput while increasing memory use.
- Cross-node NUMA traffic can significantly reduce performance.
The reported figures should therefore be treated as order-of-magnitude reference points, not as production service-level commitments.
5. Engineering Checklist: From Runnable to Manageable
Teams attempting to reproduce or improve a similar architecture should prioritize the following areas.
1. Plan Capacity Before Tuning Performance
Estimate total memory needs from parameter count, quantization width, alignment overhead, and runtime requirements. Reserve 20–30% headroom to reduce the risk of paging pressure and thrashing.
2. Use Quantization Selectively
Very low-bit quantization may be appropriate when capacity is the overriding constraint, but model quality must be evaluated. For accuracy-sensitive workloads, mixed quantization can retain higher precision in critical layers.
3. Identify Cache Hotspots
Measure access frequency and page hit rates. Prioritize frequently accessed layers, embedding tables, or commonly used attention-related data for DRAM residency where the implementation allows it.
4. Tune NUMA Placement and Thread Affinity
Keep compute threads close to the relevant persistent memory and DRAM to reduce cross-node traffic. Do not assume that using one thread per core is optimal; choose thread counts based on memory-bandwidth testing.
5. Use Batching and Asynchronous Execution
Offline workloads can use queues, segmented generation, and checkpoint-and-resume workflows. Online interfaces should return a job ID asynchronously rather than keep connections open for long-running requests.
6. Monitor Memory Behavior, Not Just Tokens per Second
Track cache hit rates, page faults, memory-bandwidth utilization, CPU utilization, context switches, and tail latency. Token throughput alone does not explain where the system is spending time.
7. Run Task-Level Accuracy Regression Tests
After aggressive quantization, evaluate factual consistency, long-form coherence, and instruction following. Perplexity alone is not enough to establish that the model remains useful for the intended task.
For cloud-based experiments, a generic resource-management setup can use object storage for quantized weights and evaluation datasets, a container platform to orchestrate CPU instances, and monitoring and alerting for memory behavior and task queues. Actual performance still depends on instance specifications, the available memory hierarchy, and the model implementation.
6. Applicability and Conclusions
The central lesson is that running an extremely large model does not necessarily require adding more GPUs. Persistent memory can provide a high-capacity, nonvolatile, byte-addressable storage tier; CPUs can execute inference; and quantization can reduce the weight footprint.
Together, these components can overcome a GPU-memory capacity constraint. The trade-offs are low throughput, substantial tuning effort, and sensitivity to caching behavior. This is not a suitable substitute for GPU-based high-concurrency inference.
A more realistic role is research validation, offline generation, low-concurrency specialist tasks, and feasibility testing in capacity-constrained environments. It is also a useful case study in memory-hierarchy design.
Before considering production use, engineering teams should complete capacity estimates, memory-bandwidth tests, quantization accuracy regressions, and tail-latency evaluations. GPUs remain advantageous for high-throughput online serving. When the requirement is to keep an entire model resident and response time is secondary, persistent-memory inference offers a capacity-expansion approach worth investigating.
