Running a Trillion-Parameter LLM Without a GPU: A Persistent Memory Approach
This article examines an experimental setup that loaded and ran a 2.8-trillion-parameter language model on a machine with no discrete GPU, using only server CPUs and a discontinued large-capacity persistent memory. It explains how persistent memory works, compares App Direct and DRAM cache modes, presents the reported generation speeds, analyzes why memory bandwidth and capacity—not compute—set the limits, and offers practical steps and a generic cloud architecture for reproducing similar tests. The setup is a feasibility experiment only, not production-ready.
1. Background: An Unconventional Home Lab Experiment
A developer recently shared an experiment in a community forum: on a machine with no discrete GPU at all, relying only on server CPUs and a set of discontinued large-capacity persistent memory, they successfully loaded and ran a language model with roughly 2.8 trillion parameters.
What drew attention was not how fast it ran, but that it put a long-overlooked question on the table: when a model far exceeds the capacity of video memory, what actually determines the feasible boundary of inference?
One thing should be stated up front. This kind of attempt is validation-oriented. Output is extremely slow and has no production usability. Its value is that it reveals a technical path different from the mainstream approach: turning a “compute stacking” problem into a “memory capacity and data movement” problem.
2. The Technical Foundation: What Persistent Memory Actually Solves
Persistent memory is a class of non-volatile storage technology that sits between traditional memory and solid-state storage. It typically comes in the form of memory modules inserted into server memory slots and is addressed directly by the processor. It has three key characteristics:
- High capacity density: a single module can reach hundreds of GB, and a dual-socket server can easily expand to several TB of address space;
- Byte-addressable: no need to read and write by sector like a block device; it can be accessed at cache-line granularity;
- Data survives power loss: data remains after power is cut, so it can serve as a persistent data layer.
For extremely large models, the first point is almost decisive. Even with aggressive quantization, a trillion-parameter model’s weights still range from hundreds of GB to around 1 TB. No consumer GPU’s video memory can hold that, and splitting across multiple cards requires high-bandwidth interconnect. Persistent memory offers a route that trades a large address space for feasibility.
3. Two Operating Modes: App Direct and Cache Mode
This type of memory usually provides two typical ways to use it, and understanding the difference is a prerequisite for reproducing the experiment.
1. App Direct Mode
DRAM and persistent memory are presented to the operating system and applications as two separate data spaces. The persistent memory region can be read and written directly by a program through memory mapping, bypassing the kernel block layer. The advantage is low latency and a short path; the drawback is that the program must manage on its own which data lives in which tier.
The mapping logic below is illustrative (pseudocode, expressing the idea only):
// Open the persistent memory device mapping regionint fd = open("/dev/pmem_region0", O_RDWR);void *base = mmap(NULL, region_size, PROT_READ | PROT_WRITE,MAP_SHARED, fd, 0);// Map model weights into the address space by shard, touched on demandshard_t *w = (shard_t *)((char *)base + shard_offset(layer_id));for (int t = 0; t < num_tokens; t++) {vec = matmul(w, input_vec); // weights are fetched on demand by the memory subsystem when missinginput_vec = sample(vec);}
2. Disabling Direct Access and Enabling DRAM as a Cache
Hot data in persistent memory is automatically cached by DRAM, and the program does not need to be aware of the tiering. The cost is extra data movement overhead when the hit rate is low; the benefit is a significant drop in access latency for frequently used weights and the KV cache.
4. Measured Data and Interpretation
The publicly reported data from this experiment is roughly as follows:
| Configuration | Quantization Bit Width | Generation Speed |
|---|---|---|
| Direct access mode | 1-bit | ~0.85 token/s |
| DRAM cache enabled | 1-bit | ~1.50 token/s |
| Direct access mode | 3-bit | ~0.75 token/s |
Three takeaways:
- The cache nearly doubled throughput, indicating the bottleneck is not compute but data supply;
- 3-bit was actually slower, showing that the compute cost of unpacking and dequantization offset the bandwidth savings—more aggressive quantization is not always better;
- Generating 50,000 tokens takes about 18.5 hours, which works out to only a fraction of a token per second, suitable only for functional validation.
5. Bottleneck Analysis: Why It Is Slow and Where
Each step of autoregressive decoding must re-read the weights and cache associated with the already-generated length, making it a classic memory-access-intensive workload. Here, speed is determined by memory bandwidth and latency, not the processor’s peak floating-point performance. It can be further broken down into four layers of bottlenecks:
- Capacity bottleneck: determines “whether it fits,” the prerequisite for feasibility;
- Bandwidth bottleneck: determines “how many weights can be read per second,” the upper limit on speed;
- Quantization overhead: low-bit weights need to be unpacked, which can eat back the bandwidth gains;
- Caching and scheduling: when data locality is poor, any tiering scheme degrades.
6. Practical Recommendations for Reproducibility
To run a similar validation in your own environment, proceed in the following order:
- First estimate the weight size: multiply the parameter count by bytes per parameter, then leave room for the KV cache and runtime overhead;
- Choose a tiering strategy: small models go pure memory, extremely large models go memory mapping with on-demand loading;
- Observe metrics with general monitoring categories: use a log service to record per-step timing, and monitoring and alerting to track memory bandwidth and hit rate;
- Persist model shards: store weight slices in object storage or a file system, and load them in parallel at startup;
- Fix the input and random seed to run repeatable benchmarks and avoid drifting conclusions.
7. A Generic Architecture for Similar Experiments in the Cloud
If you do not want to build your own hardware, you can assemble an equivalent environment from generic cloud capabilities:
- Compute layer: choose a large-memory compute instance, prioritizing memory capacity over accelerators;
- Storage layer: object storage holds model shards, block storage carries the local cache;
- Orchestration layer: a container platform brings up the inference process, making it easy to rebuild the environment repeatedly;
- Observability layer: log service and monitoring and alerting help locate memory-access bottlenecks.
Generic large-memory instances, object storage, and container platforms offered by cloud providers such as Baidu AI Cloud can serve as the foundation for this kind of experiment, but specific specifications and pricing should be based on the official documentation.
8. Conclusion
The real lesson from this experiment is not that “GPUs don’t matter,” but that in ultra-large model inference, capacity determines feasibility, bandwidth determines experience, and quantization and caching determine the balance between the two. For engineering teams, rather than blindly chasing peak compute, it is better to first quantify your own memory-access bottleneck, then decide whether to expand memory, optimize the quantization scheme, or introduce tiered caching.
