Running a Trillion-Parameter LLM Without a GPU: A Memory-First Architecture

    This article examines a community experiment that loaded and ran a model with roughly 2.8 trillion parameters on a machine with no GPU, using only a server-class CPU and discontinued persistent memory modules. It explains why LLM decoding is bound by memory bandwidth rather than compute, breaks down the three-layer hardware and software stack, and covers extreme low-bit quantization, direct-access versus caching modes, and the tuning sequence that raised throughput from about 0.85 to 1.50 tokens per second. It also outlines where this kind of setup makes sense, where it does not, and why capacity, bandwidth, latency, and cost—not the presence of an accelerator—should drive hardware selection.

    1. Background: An Inference Experiment in a Home Lab

    A recent community case is worth a closer look: a hobbyist loaded and ran a large language model of roughly 2.8 trillion parameters on a machine with no GPU at all, relying only on a server-class processor and discontinued persistent memory modules. The value of the attempt is not speed. It is that the experiment tested a long-standing default assumption—that running a large model requires an accelerator card—and asked whether that assumption actually holds.

    From an engineering standpoint, the experiment pushed the question back to first principles. When a model is far larger than the memory capacity of any single card, inference becomes a matching problem between memory capacity, memory bandwidth, and compute throughput. A GPU is one way to solve part of that problem, not the only way.

    One caveat matters: the persistent memory product line involved has been discontinued. Capacity, batch, and remaining service life on the second-hand and leftover-inventory channels are all opaque, so this type of setup is not production-viable. It is useful only as a sample for technical validation and architecture reasoning.

    2. Why Inference Works Without a GPU

    LLM inference has two phases, and they place very different demands on hardware:

    • Prefill: the entire input is processed at once. This is compute-intensive, matrix multiplication is highly parallel, and accelerators have a clear advantage.
    • Decode: tokens are generated autoregressively one at a time, and every step reads all the weights again. This is memory-bandwidth-intensive.

    In the decode phase, the key relationship for speed simplifies to:

    1. single-stream generation speed (tokens/s) ≈ effective memory bandwidth / weight bytes read per token

    This means that as long as memory capacity can hold the model and memory bandwidth is sufficient, a CPU-only platform can complete inference too—each step simply takes longer. The sub-one-token-per-second rate in the case is a direct result of this formula, not a software misconfiguration.

    3. Hardware and Software Stack Breakdown

    The setup can be abstracted into three layers:

    1. Compute layer: a multi-core server processor with core counts in the dozens, relying on a vector instruction set for matrix operations. More memory channels work in its favor.
    2. Memory layer: conventional DIMMs mixed with persistent memory modules. Persistent memory installs in a form close to that of a regular DIMM, comes in per-module capacities of 128GB, 256GB, 512GB, and similar tiers, is byte-addressable, and retains data across power loss.
    3. Software layer: a general-purpose open-source inference framework that supports multiple low-bit quantization formats and memory-mapped loading.

    Persistent memory has two typical operating modes, and they directly determine performance:

    • Direct access mode: persistent memory and conventional memory are exposed to the operating system as two separate address spaces, so model weights can be read in place with no extra copy overhead.
    • Cache mode: persistent memory is hidden as a backing store for conventional memory, and hot data automatically stays in the smaller but lower-latency conventional memory.

    4. Quantization: The First Hurdle to Fitting the Model

    At 16-bit precision, 2.8 trillion parameters need about 5.6TB of storage, which no single machine can easily hold. The practitioner used extreme low-bit quantization at the 1-bit and 3-bit level to compress the weights into a range that fits in memory.

    The knock-on effects of quantization have to be assessed together:

    • Benefit: storage footprint drops roughly linearly, bytes read per token drop in step, and bandwidth pressure eases.
    • Cost: precision loss accumulates at low bit widths, and long-context inference may show repetition and semantic drift; dequantization also adds compute overhead.
    • Limit: once the capacity bottleneck is relieved, the bottleneck immediately shifts to bandwidth and latency, and the marginal return on pushing bit widths lower decays quickly.

    The more robust engineering approach is mixed precision: keep higher precision in the attention and embedding layers and use low bits in the feed-forward layers, balancing capacity against quality.

    5. Direct Access vs. Cache: The Tuning Logic Behind 0.85 to 1.50

    In the case, disabling direct access and enabling conventional memory as a cache raised speed from about 0.85 tokens/s to about 1.50 tokens/s, while the 3-bit quantization configuration reached only about 0.75 tokens/s, where generating 50,000 tokens takes roughly 18.5 hours.

    These numbers point to two patterns:

    • Locality comes first: every decode step traverses all the weights, but the attention mechanism causes a small set of “hot” weights to be hit repeatedly, so placing them in low-latency memory pays off clearly.
    • More “direct” is not always faster: direct access removes the copy, but it also makes every access bear the write amplification and higher latency of the persistent medium; cache mode trades a small amount of capacity for hit rate.

    A reusable tuning order:

    1. First confirm that the model and runtime genuinely support memory-mapped loading, so the full model is not read into memory and peak usage does not double.
    2. Fix input length and set concurrency to 1 to establish a comparable baseline.
    3. Adjust the hot-data ratio, thread count, and batch size one at a time, changing a single variable per run.
    4. Use a unified logging service or monitoring alerts to collect tokens per second, memory hit behavior, and time to first token, producing a tuning record that can be traced back.
    1. # Pseudocode: single-layer memory placement policy
    2. hot_layers -> conventional memory (low latency)
    3. cold_layers -> persistent memory (large capacity, byte-addressable)
    4. each decode step: hit hot_layers first, fall back to cold_layers on a miss

    6. Where This Type of Setup Fits

    Well-suited scenarios: offline batch inference, long jobs run overnight, workloads where data must stay inside a local data center, one-off analysis tasks that need a very large context, and workloads that are sensitive to the cost of memory capacity but not to latency.

    Not suited for: online chat and real-time interaction, high-concurrency serving, and production traffic that needs a stable service-level commitment. At the throughput in the case, a single request generating 50,000 tokens takes nearly 19 hours, which cannot support any interactive product.

    If an organization wants “large-capacity memory hosting a large model” in the cloud, the usual general path is a container platform or bare-metal instance with a high memory-to-core ratio, paired with object storage for distributing model weights, a message queue for task queuing, and a logging and monitoring stack for observability—rather than depending on discontinued purpose-built hardware.

    7. Conclusion

    The real takeaway from this experiment is that hardware selection for LLM inference should shift from “is there an accelerator card” to “what is the optimal combination of capacity, bandwidth, latency, and cost.” Extreme low-bit quantization solves the fitting problem, memory tiering and caching strategies solve the running problem, and whether it is worth sacrificing interactive experience depends on the real latency requirements of the business. For most teams, treating this kind of experiment as input for architecture reasoning is more valuable than copying it straight into production.