Running Trillion-Parameter LLMs on CPU Only: Persistent Memory in Practice and Its Cooling Challenges
As large language models scale to trillions of parameters, memory capacity has become a major cost barrier. This article examines a hands-on engineering experiment in which a 2.8-trillion-parameter model was deployed on a pure CPU setup using Intel Optane persistent memory instead of expensive DRAM. It covers hardware selection, the App Direct memory mode for tensor placement, the extreme cooling requirements of persistent memory, real-world inference throughput, and the practical scenarios—such as overnight offline batch processing—where this low-cost approach makes sense, along with cloud-based alternatives for enterprise users.
As large language models continue to evolve rapidly, model sizes have quickly climbed into the trillions of parameters. For a 2.8-trillion-parameter model, even with extremely aggressive low-bit quantization, runtime memory consumption still exceeds 610 GB. With memory prices remaining high, building that capacity from conventional DDR4 or DDR5 DRAM would be prohibitively expensive, putting such deployments out of reach for many developers and small-to-mid-sized organizations. Recently, however, a hardware enthusiast demonstrated that it is possible to deploy a model of this scale on a pure CPU setup by using persistent memory—a technology its original manufacturer has strategically abandoned—offering a highly instructive engineering path for running ultra-large models at low cost.
1. Hardware Selection: The Cost Advantage of Persistent Memory
The core idea of this experiment is to replace conventional DRAM with persistent memory to cut costs. A single persistent memory module typically offers 128 GB to 512 GB of capacity, meaning just a handful of modules can easily push total capacity past the 600 GB threshold.
Compared with buying new high-capacity DRAM, decommissioned or second-hand persistent memory modules cost only a fraction of the price per gigabyte. On the compute side, the deployer used a mainstream 40-core x86 enterprise processor. The high core count not only helps with concurrent tasks but also provides ample memory channels, ensuring sufficient bandwidth for the massive data flows between the CPU and persistent memory. This pure-CPU plus large-capacity persistent memory combination completely eliminates the need for high-end professional accelerator cards costing tens of thousands of dollars, bringing the hardware barrier down to a minimum.
2. Deployment Architecture: Tensor Storage Control in App Direct Mode
Persistent memory supports two main operating modes: Memory Mode and App Direct Mode. In this deployment, the developer chose the latter.
App Direct Mode exposes persistent memory as distinct persistent regions rather than simply emulating volatile DRAM. The advantage is that it gives upper-layer software much more precise control. In LLM inference, different tensors have different latency sensitivities: frequently accessed activations require extremely low latency, while the bulk of model weights can tolerate somewhat higher latency. With App Direct Mode, the developer can implement custom logic to place compute-intensive data in regular DRAM while storing the hundreds of gigabytes of model weights in persistent memory. This fine-grained data placement strategy maximizes the use of the low-cost storage medium without starving the compute pipeline.
3. Physical Challenges: Extreme Cooling Requirements from High Power Draw
While persistent memory offers clear advantages in capacity and cost, its physical characteristics introduce engineering challenges that cannot be ignored. Under full read/write load, these modules consume significant power and generate a correspondingly large amount of heat.
The deployer strongly emphasizes that active cooling is a hard requirement for this type of setup and must never be omitted. In the test environment, two 12 W high-power blower fans were aimed directly at the memory area. Without this aggressive cooling, the heat released by the persistent memory modules could damage adjacent DRAM modules through conduction and radiation, and in severe cases could even melt the motherboard slots, causing irreversible hardware damage. In other words, while this approach reduces memory procurement costs, it imposes strict requirements on chassis airflow design, motherboard power delivery, and fan configuration, adding complexity to physical machine operations.
4. Inference Performance: Adapting to Extremely Low Throughput
In terms of actual inference performance, constrained by the compute limits of a pure CPU and the relatively lower bandwidth of persistent memory, the system runs extremely slowly.
In 1-bit extreme quantization mode, inference speed reaches only 0.85 tokens per second. When precision is raised to 3-bit quantization for slightly better output quality, speed drops further to 0.75 tokens per second. At that rate, generating a 50,000-token long-form text would require the system to run continuously for more than 13 hours.
This speed is obviously meaningless for latency-sensitive scenarios such as real-time chat or interactive Q&A. However, any technical approach must be judged against its intended use case. For time-insensitive overnight offline batch jobs—large-scale long-text summarization, massive corpus dataset construction, or structured extraction from historical logs—the exceptional cost-efficiency of this solution stands out. Simply queue up the tasks and let the machine produce results slowly but steadily overnight; the overall cost-effectiveness far exceeds renting expensive GPU clusters.
5. Engineering Takeaways and Cloud Alternatives
This extreme deployment combining a pure CPU with persistent memory demonstrates the potential of engineering ingenuity to lower the barrier to running large models, but it also exposes the hassles of physical machine maintenance and obvious performance bottlenecks. For enterprise users who want to balance cost with engineering stability, mature cloud-native architectures are a more practical option.
On general enterprise cloud platforms such as Baidu AI Cloud, developers are spared the complexities of physical cooling and memory-mapping tuning. For deploying ultra-large models, they can leverage the disaggregated compute-and-storage architectures provided by cloud vendors. For example, model weights can be stored in general-purpose object storage and loaded on demand over a high-speed internal network into the GPU or CPU memory of cloud instances at inference time. Alternatively, elastic compute instances with large memory or VRAM capacity can be spun up quickly for batch processing and released immediately afterward, optimizing costs along the time dimension. Combined with logging services and monitoring alerts, enterprises can manage LLM inference pipelines in a standardized way, avoiding business interruptions caused by physical hardware failures.
In summary, getting an ultra-large model to run on persistent memory proves that in offline, low-frequency scenarios, creative hardware assembly combined with extreme quantization can break through steep compute cost barriers. But every technology choice involves trade-offs. While pursuing maximum cost-efficiency, developers must think carefully about how to ensure system stability and business fit—that is the long-term question worth considering.
