Running a Trillion-Parameter LLM Without a GPU: A Memory-Based Approach
This article examines a hardware enthusiast's attempt to run a 2.8-trillion-parameter large language model on a machine without a discrete GPU, using a server CPU and discontinued high-capacity persistent memory. It explains why capacity and memory bandwidth, rather than compute, are the real bottlenecks at this scale, how App Direct mode and DAX settings affect throughput, and what a minimal reproducible setup looks like. Readers will find practical tuning notes on NUMA affinity, context length, and quantization, plus an interpretation of the reported 0.85, 1.50, and 0.75 tokens-per-second results and guidance on where this approach fits.
1. The Real Bottleneck Is Not Compute
A hardware enthusiast built a setup at home that is worth discussing: on a machine with no discrete GPU, relying only on a server processor and discontinued high-capacity persistent memory, they ran a large language model with roughly 2.8 trillion parameters. The result is interesting not because it is fast, but because it exposes the constraints of large-model inference very clearly.
The common assumption is that running a large model means buying a GPU. But once the parameter count reaches the trillion scale, the question quickly shifts from “is there enough compute?” to “can the parameters even fit?” Using a typical low-bit quantization estimate, 1-bit quantization costs about 1 bit per parameter, putting the theoretical floor for 2.8 trillion parameters at around 350GB; 3-bit quantization comes to roughly 1.05TB. That is far beyond any conventional single-machine memory configuration, and far beyond consumer GPU VRAM. So the first threshold for whether the model can run at all is address space and capacity, not floating-point operations per second.
The second widely underestimated constraint is memory bandwidth. In GPU-free inference, generating each token theoretically requires moving the weight data associated with the activations through memory once. If effective bandwidth is tens of GB per second and the weights to be read are on the order of hundreds of GB, the number of tokens generated per second is a hard ceiling set by bandwidth. This also explains why throughput in this attempt was only around zero-point-something to one-point-something tokens per second: it is not a poor implementation, but a direct consequence of physical limits.
2. Key Enabling Technology: Persistent Memory and App Direct Mode
This kind of experiment relies on memory expansion based on non-volatile storage media. It comes in the same form as server memory modules, is inserted into memory slots, and is addressed directly by the memory controller, with per-module capacity reaching hundreds of GB. That makes it possible to assemble TB-scale “addressable memory” at relatively low cost. The original attempt used App Direct mode, in which the system presents DRAM and persistent memory as two separate address spaces, and software explicitly decides which side data lives on.
The point of this mode is to hand “caching policy” back to the application. The alternative is Memory Mode, where persistent memory appears to software as one larger block of memory and DRAM automatically acts as its cache. The trade-off can be summarized as:
- App Direct: the most control. It suits placing large, read-only, sequentially accessed data such as weights on persistent memory, and keeping the KV cache and temporary tensors in DRAM; the cost is that you need explicit data-placement logic.
- Memory Mode: the least rework, but the hit rate depends on access locality. When weights are read in a full-scan pattern, the hit rate is limited and jitter is more noticeable.
One interesting detail from the original attempt: after disabling direct access (DAX), throughput rose from about 0.85 tokens/s to about 1.50 tokens/s. A reasonable explanation is that with DAX off, the access path goes through the kernel page cache, so frequently used pages stay resident in DRAM, forming an “OS-level cache” that lowers the repeated-read cost of hot data. The takeaway: in bandwidth-constrained scenarios, the gain from cache hit rate often outweighs the gain from instruction-level optimization.
3. Software Stack and a Minimal Reproducible Validation Path
On the inference side, a general open-source inference framework is enough; the core is making memory mapping and the quantization format line up correctly. A minimal validation flow:
- First confirm the environment is correct on a small model, including memory mapping, thread pinning, and NUMA affinity.
- Use an intermediate model with a controllable parameter size to verify the quantization format and token output correctness.
- Then scale up to the target model, recording load time, resident memory, throughput, and time-to-first-token in stages.
Illustrative startup parameters (to convey the idea only, not a specific tool interface):
# Thread and memory binding examplenumactl --cpunodebind=0 --membind=0 \./infer --model model.gguf \--threads 32 \--ctx-size 4096 \--no-mmap # Disable memory mapping to force the explicit read path for comparing cache behavior
Three tuning lessons are worth keeping:
- Prioritize NUMA affinity. Cross-node access lowers effective bandwidth further; pinning threads and memory to the same node is the most reliably beneficial step.
- Context length is a multiplier. The KV cache grows linearly with context, so cutting context from 32K to 4K often recovers more throughput than switching quantization schemes.
- Evaluate quantization bit width and quality together. The difference between 1-bit and 3-bit is not only speed; output quality degradation is amplified on long-chain reasoning tasks, so paired evaluation on a business sample set is necessary.
4. Interpreting the Results: What 0.85, 1.50, and 0.75 Tokens/s Mean
Putting the three data points together yields a clear chain of conclusions:
| Configuration | Throughput | Main change |
|---|---|---|
| 1-bit quantization + App Direct + DAX | ≈0.85 tokens/s | Weights resident in persistent memory, full scan |
| 1-bit quantization with DAX off | ≈1.50 tokens/s | Page cache keeps hot data resident in DRAM |
| 3-bit quantization | ≈0.75 tokens/s | Larger data volume, higher bandwidth pressure |
3-bit being slower shows that in this configuration the bottleneck is entirely bandwidth rather than compute; generating 50,000 tokens takes about 18.5 hours, which also means this kind of setup is only suitable for offline batch processing, feasibility validation, and algorithm research, not any interactive scenario.
5. Engineering Takeaways and Cloud Deployment Suggestions
The biggest value of this practice is turning the “memory wall” from an abstract concept into measurable numbers. For enterprises, the transferable practices are:
- Tiered hosting. Put TB-scale parameters on low-cost, high-capacity media, and hot data and the KV cache in high-bandwidth memory; plan capacity by hit rate rather than peak bandwidth.
- Move evaluation earlier. Before any quantization scheme goes live, record both quality metrics and throughput on a fixed sample set to avoid “it runs but is unusable.”
- Combine resources on demand in the cloud. For quick validation, you can use a cloud platform’s container service to request high-memory instance specs, use object storage to hold model files, and use monitoring and alerting to continuously collect throughput and memory hit data, releasing resources once validation is done to avoid long-term hardware investment for a one-off experiment. Baidu AI Cloud is typically used in such scenarios for elastic compute and storage combinations.
- Define the applicability boundary. Interactive services should go to accelerator cards or dedicated inference services; memory-based hosting is better suited to latency-insensitive tasks such as offline summarization, batch annotation, and data synthesis.
In short, running a trillion-parameter model without a GPU proves the feasibility of the capacity-expansion path and also marks its performance ceiling: it is a stepping stone for research and for probing the cost floor, not a general-purpose production solution.
