Running a Trillion-Parameter LLM Without a GPU: A Technical Breakdown

    This article analyzes an experiment that ran inference on a 2.8-trillion-parameter large language model using only a 40-core server CPU and persistent memory, with no discrete GPU. It explains how persistent memory works, compares App Direct and Memory Mode, and shows why the real bottleneck is memory bandwidth rather than compute. It also covers the measured impact of 1-bit and 3-bit quantization, a counterintuitive speedup from disabling DAX, a reproducible evaluation checklist, and who this approach actually suits.

    1. Background: An Inference Experiment in a Home Lab

    A developer recently shared a notable experiment with the community: running inference on a large language model with 2.8 trillion parameters on a machine with no discrete GPU at all. The hardware was hardly high-end — a 40-core server-class processor paired with discontinued server persistent memory modules, plus a general-purpose open-source inference framework on the software side.

    The case is worth discussing not because it was fast, but because it exposes the cost structure of large-model inference very clearly: when a model is far larger than any single tier of storage, the performance bottleneck shifts from compute to data movement.

    2. The Technical Foundation: What Persistent Memory Actually Is

    Persistent memory is a class of storage technology that sits between DRAM and flash. It is addressed directly by the memory controller, is byte-addressable, non-volatile, and comes in the form of memory modules plugged into the motherboard. Its typical form factor is a server DIMM, with common capacities of 128GB, 256GB, and 512GB per module, designed for specific generations of server processor platforms.

    Compared with DRAM and flash, its positioning looks roughly like this:

    Dimension DRAM Persistent Memory Flash/SSD
    Access latency Lowest Medium Higher
    Bandwidth Highest Medium Lower
    Capacity per dollar Poor Better Best
    Data persistence Volatile Non-volatile Non-volatile

    The key point: it can be built to very large capacities, but its bandwidth and latency are both worse than DRAM. That means it scores well on “fitting the model” and poorly on “running fast.”

    3. Two Operating Modes: App Direct vs. Memory Mode

    This class of hardware typically offers two ways to be used, and understanding the difference is a prerequisite for reproducing the experiment.

    • Memory Mode: The persistent memory is treated by the hardware and firmware as an extension of DRAM, with DRAM demoted to a cache. It is completely transparent to the operating system and upper-layer software, requiring no code changes.
    • App Direct Mode: DRAM and persistent memory are presented to software as two separate address spaces. The application must explicitly decide which tier data lives in and manage placement and migration itself.

    The experiment used App Direct Mode, which means the model weights were explicitly placed in the persistent memory space and read on demand by the inference framework. The advantage is control; the drawback is that the application owns the correctness of every placement decision.

    4. The Real Bottleneck: A Bandwidth Wall, Not a Compute Wall

    A 40-core server processor is not weak for pure CPU inference, but a trillion-parameter model has extremely low arithmetic intensity — each weight is read once and used for a single multiply-add. Inference speed is then approximated by:

    1. tokens/s ≈ effective memory bandwidth / bytes read per token

    This equation explains everything observed in the experiment:

    1. The model must stay resident in persistent memory, because no single tier of storage can hold it;
    2. Effective bandwidth is bounded by the read/write capability of persistent memory, not the processor’s floating-point peak;
    3. Any technique that reduces “bytes read per token” improves speed almost linearly.

    5. Quantization: Pushing the Byte Count to the Limit

    The experiment used two quantization schemes, 1-bit and 3-bit. Quantization essentially approximates weights with a very low bit width, compressing the volume of weight reads to a fraction of the original precision.

    • 1-bit quantization: The highest compression ratio; combined with data compression, initial generation speed was about 0.85 tokens per second.
    • 3-bit quantization: Retains more precision but was actually slower, at about 0.75 tokens per second, with 50,000 tokens taking roughly 18.5 hours to generate.

    The reason 3-bit is slower is worth noting: a higher bit width means a larger read volume, and dequantization adds extra compute overhead. In a bandwidth-bound scenario, that overhead cannot be hidden.

    Engineering takeaway: In bandwidth-bound inference, the benefit of quantization is not monotonically increasing — you need to measure the inflection point empirically.

    6. Caching Strategy: A Counterintuitive Gain from Disabling DAX

    One interesting result in the experiment: disabling Direct Access (DAX), so that frequently used data could enter the DRAM cache, raised speed from 0.85 tokens per second to 1.50 tokens per second — nearly double.

    The reason is access locality. During large-model inference, attention-related intermediate tensors and some hot weights show clear temporal locality. DAX bypasses the page cache and accesses persistent memory directly, which reduces path overhead but also gives up the opportunity to use DRAM as a cache tier. In a scenario of “extremely tight capacity and extremely scarce bandwidth,” one extra cache tier is worth more than one fewer path hop.

    7. A Reproducible Evaluation Checklist

    To evaluate a similar setup in your own environment, verify in this order:

    1. Capacity accounting: Whether model weights + KV cache + runtime overhead actually fit. The KV cache grows linearly with context length and is easy to overlook.
    2. Bandwidth measurement: Use a streaming read/write benchmark to measure the actual effective bandwidth of the persistent memory rather than trusting nominal figures.
    3. Quantization inflection test: Test tokens/s and output quality tier by tier from 1-bit to 4-bit.
    4. Placement strategy comparison: Test direct access and cached modes separately.
    5. End-to-end metrics: Record time to first token (TTFT) and steady-state throughput; the two are governed by different factors.

    Illustrative inference call logic (pseudocode):

    1. # Pseudocode: illustrates only the logic for data placement and quantization tier selection
    2. model = load_quantized_model(path, bits=1) # weights placed in the persistent memory space
    3. model.enable_dram_cache(hot_tensors=True) # hot data goes through the DRAM cache
    4. for prompt in requests:
    5. t0 = now()
    6. token = model.prefill(prompt) # sensitive to time to first token
    7. while not done(token):
    8. token = model.decode(token) # sensitive to steady-state throughput
    9. log(ttft=now() - t0, tokens_per_sec=...)

    8. Conclusion: Who This Route Is For

    Running a trillion-parameter model without a GPU has no practical value in consumer scenarios — a generation speed of 1 to 2 tokens per second cannot support interactive applications. Its value lies in three points:

    • Validating capacity feasibility: It proves that “fitting” and “running fast” are two separate problems.
    • Pushing hardware cost to the extreme: Using second-hand or discontinued memory to buy capacity suits offline batch processing, model architecture validation, and algorithm debugging.
    • Providing a performance lower-bound reference: It offers real data points for designing capacity-constrained architectures.

    For most teams, a more pragmatic path is tiering: hot data in high-bandwidth memory, cold data pushed down to persistent storage, combined with quantization and batch scheduling. If elasticity and zero operational overhead are required, a combination of general-purpose capabilities such as cloud container platforms, object storage, and monitoring and alerting can be considered, switching between CPUs and accelerators on demand rather than building scarce hardware in one go.