GPU-Free Trillion-Parameter LLM Inference with Persistent Memory: A Practical Tuning Guide
This article examines how to run trillion-parameter-scale large language models without a GPU by combining server CPUs, large-capacity DRAM, and persistent memory. It explains the three core memory constraints—capacity, bandwidth, and latency—that dominate GPU-free inference, compares the criteria for selecting persistent memory, and shows how App Direct versus DAX-disabled page-cache strategies affect token-generation speed. Using a reproducible reference configuration (about 2.8 trillion parameters, 1-bit and 3-bit quantization, 512 GB DRAM, 2 TB persistent memory, Intel Optane PMem-class memory, Linux, xfs/ext4), it quantifies expected throughput, outlines a chunked on-demand dequantization approach, lists common performance bottlenecks, and provides applicability boundaries plus a pre-deployment checklist.
Introduction: When the Bottleneck Moves from Compute to Memory
When people discuss trillion-parameter-scale large models, their first instinct is usually to ask whether GPU compute is sufficient. But for this class of models, the question that must be answered first is not “how fast can it compute” but “can the weights fit, and can memory keep them fed.” Model weights must reside fully or in chunks in addressable memory before inference can happen. The core of a GPU-free inference solution, therefore, is not to replace the GPU but to build a working inference pipeline using server CPUs, large-capacity memory, and persistent memory in the absence of high-speed VRAM.
It is worth stressing that if “running a trillion-parameter model without a GPU” is to be written up as reproducible practice, it is not enough to say “successfully loaded and ran.” Readers genuinely need verifiable conditions: the model name or parameter count, quantization bit-width, DRAM capacity, persistent-memory capacity, CPU model, memory bandwidth, operating system, filesystem, DAX status, experiment commands, and logs. This article provides a reproducible reference configuration: a model of roughly 2.8 trillion parameters supporting 1-bit and 3-bit quantization; a multi-socket, multi-core CPU server; 512 GB of DRAM; 2 TB of persistent memory; Intel Optane PMem-class persistent memory as the example product; Linux as the operating system; xfs or ext4 as the filesystem; and a comparison of two modes—App Direct and DAX disabled. If the original experiment has no public link, a complete reproduction record should still be provided, including the hardware inventory, mount parameters, test commands, token-speed statistics script, and logs.
1. Memory Constraints: Capacity, Bandwidth, and Latency Are All Required
Large-model inference looks like matrix computation on the surface, but in practice it is highly dependent on memory access. Generating every token requires repeatedly reading weights, activations, and intermediate state. If the memory system cannot keep up, no number of CPU cores will help—they simply wait for data.
Take a 2.8-trillion-parameter model as an example. Even with 1-bit quantization, the theoretical weight size is about 350 GB; with 3-bit quantization, it is about 1.05 TB. A real system must also account for quantization scale factors, block structure, metadata, runtime dequantization cache, KV Cache, and OS page-cache overhead. Real deployments therefore usually need to reserve additional space.
GPU-free inference faces three types of constraints:
- Capacity constraint: Model weights, runtime cache, and system reserve must all fit simultaneously. When capacity is insufficient, the model either cannot load or pages constantly, causing performance to collapse.
- Bandwidth constraint: Every token generated requires reading a large amount of weights from memory. Memory bandwidth sets a hard ceiling on token-generation speed.
- Latency constraint: Random access, cross-NUMA access, and slow-medium access all accumulate into stalls. Persistent memory, though faster than ordinary SSDs, still cannot be equated with DRAM.
This is also why GPU-free solutions can only prioritize offline batch processing, asynchronous generation, and cost-sensitive scenarios. They are better suited to “getting it running and continuously producing results” than to online interactive dialogue.
2. Choosing Persistent Memory for GPU-Free Large Models
The value of persistent memory lies in the fact that it offers larger capacity than ordinary memory while being closer to memory semantics than traditional SSDs. It is neither a plain disk nor ordinary DRAM, but a tier that sits between the two. For weights that cannot fit in DRAM, persistent memory offers the possibility of using TB-scale weights “as if they were memory.”
When choosing persistent memory, you cannot look at capacity alone; you should also consider:
- Whether it supports App Direct mode;
- Whether it provides filesystem DAX capability;
- Whether the CPU memory-controller channel count is sufficient;
- Whether the NUMA topology is reasonable;
- Whether drivers and firmware are stable;
- Whether the filesystem correctly exposes byte-addressability.
If the model weights are large and the access pattern is relatively sequential, persistent memory can serve as the weight storehouse; if you want to improve token-generation speed, you must introduce DRAM as a cache layer. In other words, persistent memory is responsible for “fitting it in,” while DRAM is responsible for “running it”—the two must be designed to work together.
3. App Direct vs. DAX Disabled: Cache Strategy Determines the Experience
The working mode of persistent memory significantly affects inference speed. There are two common approaches: one is App Direct, letting the application access persistent memory directly; the other is disabling DAX, letting the OS page cache intervene and cache hot weights into DRAM.
The differences between media and modes can be understood with the table below:
| Mode / Medium | Capacity | Access latency | Effective bandwidth | Advantages | Risks | Use case |
|---|---|---|---|---|---|---|
| DRAM | Mainly hundreds of GB | Lowest | Highest | Fastest | High cost, volatile | Hot cache, runtime compute |
| Persistent memory App Direct | Up to TB scale | Higher than DRAM | Higher than SSD | Byte-addressable, direct path | No fast cache layer | Weight residency, sequential reads |
| Persistent memory + page cache | Up to TB scale | Near DRAM on cache hit | Near DRAM | Balances capacity and speed | Depends on cache hit rate and free memory | Preferred tuning direction for large-model inference |
| NVMe SSD | Up to TB scale | Clearly higher than memory | Lower | Low cost, large capacity | Slow random access | Cold storage, model distribution |
In App Direct mode, persistent memory and DRAM are two separate spaces, and the application reads and writes persistent memory directly. This approach has a short access path but no automatic cache layer. For large-model inference, adjacent token generations often reuse similar weight blocks; if every access goes directly to slow persistent memory, performance is constrained.
After disabling DAX, the system page cache automatically caches frequently used weight blocks into DRAM. At this point DRAM becomes a front-end cache for persistent memory, and hot weights no longer need to be read from persistent memory every time. In the reference experiment, this mode raised token-generation speed from about 0.85 tokens/sec to about 1.50 tokens/sec—nearly a twofold improvement.
To make such a comparison reproducible, the experiment setup should include: persistent-memory model, DRAM capacity, CPU model, OS version, filesystem type, whether DAX is enabled, driver version, mount parameters, test commands, repetition count, and measurement criteria. It is recommended to repeat at least 3 times, take the median, and note the timing range. For example, specify whether timing starts from the first token or from after model loading completes; whether it includes KV Cache initialization; what the batch size is; and what the input and output lengths are.
The engineering conclusion is clear: in high-memory, slow-medium scenarios, a suitable cache layer often matters more than pursuing the shortest access path.
4. Quantization: Trading Precision for Capacity, Not Necessarily Speed
Quantization compresses high-bit weights into low-bit representations to reduce memory footprint. For trillion-parameter models, quantization is almost a necessity. 1-bit quantization has the highest compression ratio and the smallest weight size; 3-bit quantization has higher precision but a larger model size.
In the reference configuration, 1-bit quantization combined with a page-cache strategy keeps token-generation speed at about 0.85 to 1.50 tokens/sec; 3-bit quantization, because its weights are larger, may instead drop to about 0.75 tokens/sec. This result is not surprising. A higher bit-width does not necessarily mean faster, for two reasons:
- Larger weights mean higher memory-read volume and greater memory-access pressure;
- Runtime dequantization introduces extra compute overhead, restoring low-bit weights into the format required for computation.
When implementing low-bit inference, it is not advisable to decompress all weights into memory at once; instead, use a “chunked storage, on-demand dequantization” approach. The conceptual flow is as follows (note that this is not directly runnable code, but a description of the implementation approach):
- Convert the original weights into a low-bit format and store scale factors and chunk metadata;
- Load the model file via memory mapping to avoid copying all weights at once;
- During computation, read only the low-bit data for the current matrix block;
- Dequantize the current block, perform the matrix multiplication, then release the temporary result;
- Keep high-frequency blocks in the cache layer to reduce repeated reads from persistent memory.
Real-world implementations can draw on mature solutions such as GGML/llama.cpp low-bit formats, ONNX Runtime’s quantized matrix operators, and memory mapping plus custom dequantization kernels in PyTorch or C++. The key is not the form of the code, but ensuring that chunk boundaries, scale factors, data alignment, and memory-mapping logic have passed correctness testing.
5. Inference Performance Analysis: What to Do When Token Generation Is Slow
Token-generation speed in GPU-free solutions is usually not ideal. Assume the goal is to generate 50,000 tokens in one run. Converting at different speeds:
- 0.75 tokens/sec: about 18.5 hours;
- 0.85 tokens/sec: about 16.3 hours;
- 1.00 tokens/sec: about 13.9 hours;
- 1.50 tokens/sec: about 9.3 hours.
Therefore, one cannot loosely say “generating 50,000 tokens at about 1 token/sec takes 18.5 hours”—the measurement basis must be consistent. A more rigorous statement is: if outputting 50,000 tokens, with batch size 1, concurrency 1, and timing from the generation of the first token to the end of the last token, then 0.75 tokens/sec corresponds to about 18.5 hours and 1.0 tokens/sec corresponds to about 13.9 hours.
Performance bottlenecks usually appear in the following areas:
- Insufficient memory bandwidth: The model reads a large amount of weights for every token generated, and bandwidth determines the ceiling.
- Low cache hit rate: DRAM does not adequately cache hot weights, causing frequent access to persistent memory.
- Poor NUMA configuration: The CPU accesses memory across nodes, adding latency.
- Quantization block too large or too small: Blocks that are too large waste memory, while blocks that are too small increase scheduling and dequantization overhead.
- Unreasonable batch size and concurrency: Too large a batch may crowd out cache, while too small a batch cannot improve throughput.
- Wrong filesystem or DAX configuration: An improper mount method may bypass the intended cache path.
When troubleshooting, you can observe memory-bandwidth utilization, page-cache hit rate, NUMA access statistics, CPU idle rate, persistent-memory read volume, and token-speed fluctuations. If token speed is significantly lower than the theoretical estimate, first check whether the page cache is still insufficient after disabling DAX, or whether DRAM capacity is too small to cover high-frequency weight blocks.
6. Applicability Boundaries and Pre-Deployment Checklist
The GPU-free-plus-persistent-memory approach is suitable for the following scenarios:
- Model weights exceed ordinary DRAM capacity, but the business genuinely needs to use a large model;
- Tasks can be processed offline in batches and do not require millisecond-level response;
- The setup is cost-sensitive and wants to reuse server hardware rather than buy expensive accelerator cards;
- Use cases such as research reproduction, data generation, asynchronous content production, and evaluation inference.
If the business requires online real-time dialogue, high concurrency, and low latency, then GPU or other acceleration solutions should be prioritized.
Before going live, it is recommended to check the following:
- Capacity estimation: Whether parameter count, quantization bit-width, KV Cache, page cache, and system reserve are all accounted for;
- Bandwidth estimation: Estimate the required memory bandwidth based on the target token speed;
- Quantization verification: Confirm that the low-bit format can be correctly dequantized in the target framework;
- Cache verification: Confirm that the DRAM cache can cover high-frequency weight blocks;
- Monitoring metrics: Collect token speed, memory usage, page-cache hit rate, and NUMA statistics;
- Data backup: Both persistent memory and weight files should have a backup mechanism;
- Canary release: First validate correctness with small-scale output, then expand the task;
- Rollback plan: Retain the previous quantization configuration, cache strategy, and model-file version.
It should be noted that improper persistent-memory configuration can affect performance and may also introduce data-persistence risk. Enabling or disabling caching, changing filesystem mount parameters, and switching DAX modes should all be validated in a test environment. If using general cloud capabilities—for example, object storage for weight distribution, a container platform for task orchestration, and a monitoring service for metrics observation—these are merely examples of general capabilities and do not constitute a specific vendor’s certification, nor should they be understood as requiring binding to any one platform. On-premises deployments can achieve the same through file storage, a container runtime, and monitoring tools.
Conclusion
The significance of running a trillion-parameter large model without a GPU lies not in proving that GPUs are useless, but in revealing one fact: when the model is large enough, memory capacity and memory-access efficiency often become the deciding factors before peak compute does. Persistent memory provides capacity, quantization compresses size, and caching strategy improves effective bandwidth—together they form a viable path in compute-constrained environments. What really matters is not blindly pursuing “getting it running,” but clearly explaining bottleneck identification, parameter configuration, performance measurement basis, and risk boundaries.
