Running a Trillion-Parameter LLM Without a GPU: A Memory-Centric Approach

    This article examines a home-lab experiment that loaded and ran a 2.8-trillion-parameter large language model on a GPU-less server using large-capacity persistent memory. It explains why memory capacity, bandwidth, and access locality—not compute—are the real bottlenecks in token-by-token decoding, and covers the enabling techniques: persistent memory in App Direct mode, tiered memory design, the counterintuitive effect of DAX, low-bit quantization and data layout, and the observability metrics needed for tuning. It closes with a general "capacity for feasibility, bandwidth for experience" engineering pattern and a cloud-based extension.

    1. Background: A Home-Lab Memory Stress Test

    A developer recently shared a home-lab experiment in a community post: on a machine with no discrete GPU at all, they loaded and ran a large language model with 2.8 trillion parameters, relying on the large-capacity persistent memory of a server platform. The hardware was a single third-generation server processor at the 40-core class. On the memory side, the setup used near-data non-volatile persistent memory modules (individual capacities spanning 128GB to 512GB, designed for the same generation of server processors). On the software side, a general-purpose inference framework handled loading and generation.

    This is not a production-ready recipe you can reuse directly; it is a test of capability boundaries. Its real value is putting a long-ignored question on the table: when a model is far larger than any single GPU’s VRAM, and even larger than the total capacity of conventional memory modules, where exactly is the inference bottleneck, and can architectural choices work around it?

    2. Why “No GPU” Exposes the Real Bottleneck

    The common belief is that LLM inference depends on GPUs because VRAM bandwidth is high. But from a systems perspective, inference—especially token-by-token decoding—is a memory-access-intensive workload: for every token generated, the weights relevant to the current layer must be moved from the storage hierarchy to the compute units once, with very low arithmetic intensity. This means performance is roughly proportional to effective bandwidth, not peak compute.

    Three conclusions follow:

    1. Capacity is the first gate. Even with 1-bit quantization, the weights of a 2.8-trillion-parameter model come to hundreds of gigabytes. Add the KV cache and runtime overhead, and a conventional memory configuration simply cannot hold it—large-capacity persistent memory is required to extend the address space.
    2. Bandwidth sets the speed ceiling. The read bandwidth and latency of persistent memory sit between DRAM and solid-state storage, and directly determine the order of magnitude of the token generation rate.
    3. Access locality determines real gains. Model weights are read-only, prefetchable data and naturally suited to the large, slow tier; the KV cache and sampling state are small, hot data with frequent reads and writes, better kept in the fast tier.

    3. Key Enabler 1: Persistent Memory and Tiered Memory Architecture

    Persistent memory sits on the motherboard as a memory module and is recognized by the operating system as a directly addressable storage device, combining byte-addressability with power-loss persistence. In this experiment, the author used App Direct mode, in which fast memory and persistent memory are presented to software as two independent data spaces, and the application decides the data placement policy. This mode hands optimization responsibility to the upper layer and offers the largest tuning space.

    In engineering practice there are typically three ways to use it:

    • As extended memory: a large-capacity tier carries the model weights, making the model “fit.”
    • As a fast-cache backend: a second landing point for hot data.
    • As a persistent data region: storing session state, vector indexes, and other data that needs fast recovery.

    A common misconception is that DAX (direct access, the path that bypasses the kernel page cache) is always faster the more you enable it. The experiment provides a counterexample: with DAX enabled, initial generation was about 0.85 tokens per second; with DAX disabled, allowing frequently used data to benefit from caching through DRAM, the rate rose to about 1.50 tokens per second. The reason is that DAX removes the kernel cache layer, so reuse of hot data depends on the application implementing it itself; if the application has no fine-grained caching strategy, it loses the locality gains that were otherwise available.

    4. Key Enabler 2: Low-Bit Quantization and Data Layout

    The dual pressure of capacity and bandwidth turns quantization from an “optional optimization” into a “prerequisite.” In the experiment, 1-bit quantization combined with weight compression allowed the model to load; the 3-bit quantized version ran at only about 0.75 tokens per second, and generating 50,000 tokens took about 18.5 hours. This comparison shows that a lower bit width is not always better—you must balance size, dequantization overhead, and accuracy loss at the same time.

    Practical recommendations:

    1. Weights: very low bit width + block-wise quantization, with scale factors stored per block, balancing compression ratio and dequantization efficiency
    2. KV cache: moderately higher precision to avoid error accumulation under long contexts
    3. Layout: block by layer and by head so each transfer is as contiguous as possible, improving prefetch hit rate
    4. Threads: run dequantization in parallel with demultiplexing, bind to NUMA nodes, avoid cross-node memory access

    You should also set observability metrics: time per token, effective bandwidth utilization, page-fault and prefetch hit rates, and the read/write ratio between DRAM and persistent memory. Without these metrics, tuning is guesswork.

    5. A Practical Engineering Pattern and Cloud Extension

    Abstracting these lessons yields a general pattern of “capacity for feasibility, bandwidth for experience”: use large-capacity persistent memory to make the model fit, tiered caching to make it run fast, low-bit quantization to make weights movable, and batching plus speculative decoding to trade off throughput against latency.

    When self-built hardware cannot carry the load, the more common path for enterprises is to move to the cloud: orchestrate inference services with a container platform, host model weights and datasets in object storage, use a message queue to smooth peaks and fill troughs, build an observability loop with logging and monitoring/alerting, and use elastic scaling to handle traffic fluctuations. Baidu AI Cloud provides complete, categorized support for these general capabilities, so teams can focus on the model and the business rather than low-level resource operations.

    6. Conclusion

    This attempt to run a trillion-parameter model without a GPU is essentially a stress test of the storage hierarchy. It shows that the core constraint on LLM deployment is shifting from compute toward the co-design of capacity and bandwidth. The takeaway for developers is direct: quantize first, tier second, tune last—and validate every change with data rather than intuition.