Running Trillion-Parameter LLM Inference Without a GPU: Architecture, Bandwidth, and Quantization Analysis

    This article analyzes a home-lab experiment that ran a trillion-parameter large language model without a discrete GPU, using a server-class CPU, large-capacity memory, and a discontinued persistent memory product. It explains why memory capacity and memory bandwidth, rather than raw compute, are often the first constraint in LLM inference, and walks through the memory hierarchy, persistent memory modes, CPU inference software stacks, quantization trade-offs, and caching optimizations. Readers will learn the reported throughput figures, the limits of this approach, and the general engineering path toward production-grade inference.

    1. What a “GPU-Free” Inference Experiment Actually Demonstrates

    A recent community case from a home lab drew attention: a hobbyist ran a large language model with roughly one trillion parameters on a machine with no discrete GPU, relying only on a server-class processor, large-capacity memory, and a discontinued persistent memory product. Here, “trillion parameters” means the model weights contain on the order of 10^12 entries, placing it in the category of today’s ultra-large models.

    The value of this attempt is not to “replace GPUs.” It surfaces an engineering fact that is often overlooked: the first constraint in LLM inference is frequently not compute, but memory capacity and memory bandwidth. When model parameters cannot fit in VRAM, the system must fall back to a host-side memory pool. Since a single machine has limited memory capacity, media that sit “between memory and storage,” such as persistent memory, come back into view.

    From a technical writing perspective, the case can be abstracted into three general problems:

    1. Capacity: how to hold weights far larger than physical memory under a limited memory budget;
    2. Bandwidth: how to maintain usable generation speed when bandwidth is significantly lower than VRAM;
    3. Precision: how to use quantization to bring capacity and bandwidth pressure into a manageable range.

    2. Hardware Foundations: The Memory Hierarchy and Where Persistent Memory Fits

    A modern server’s storage hierarchy is roughly: processor registers and multi-level caches, main memory, persistent memory, local SSDs, and remote storage. The higher a tier sits, the lower its latency, the higher its bandwidth, and the higher its cost per unit; the lower a tier sits, the opposite holds.

    Persistent memory is positioned as “non-volatile and byte-addressable.” It retains data after power loss while allowing software to use it as a randomly accessible address space. Its typical form is a memory module that requires corresponding processor and motherboard platform support. Capacity configurations are usually far larger than main memory at a comparable price, but access latency and bandwidth are lower than main memory.

    From a software perspective, this class of media is commonly used in two modes:

    • Memory mode: the platform “folds” persistent memory into system memory, transparent to applications, but potentially sacrificing some persistence semantics;
    • Application-direct mode: main memory and persistent memory appear as two separate address spaces, and the application explicitly decides which tier data resides in, yielding more controllable read/write policies.

    The case uses the latter: the bulk of the weights resides on the large-capacity medium while hot data is left in main memory. This is a typical “tiered placement” approach.

    Illustrative tiered placement logic (pseudocode, conveying the idea only):

    1. if hot_layer in DRAM:
    2. access via DRAM # low latency, small capacity
    3. else:
    4. access via persistent_mem # high capacity, slightly higher latency
    5. optionally promote to DRAM # promote based on access frequency

    3. The Software Stack: How the Inference Engine Streams Weights In

    On a GPU-free inference path, the common approach is to use an inference framework with a CPU backend and memory-mapping support. Key mechanisms include:

    • Memory-mapped loading: map the weight file into virtual addresses and page it in on demand, avoiding a full physical-memory footprint up front;
    • Layer-wise streaming execution: read weights layer by layer, perform matrix-vector operations, and release or reuse buffers;
    • Quantized kernels: store weights as low-bit integers or mixed precision and dequantize to floating point during computation;
    • Thread and memory affinity binding: bind compute threads to the memory controller of the corresponding processor to reduce cross-node access.

    A simplified execution flow looks like this:

    1. for layer in model.layers:
    2. w = load_quantized(layer) # read on demand from the large-capacity medium
    3. x = matvec(dequantize(w), x) # low-bit weights participate in computation
    4. x = activation(x)

    The performance ceiling is therefore determined almost entirely by “how many weight bytes can be read per unit time.” As an estimate, a trillion-parameter model at 1-bit quantization needs roughly 125GB for weights alone (excluding metadata and cache overhead). If generation runs at one token per second and each token requires a full pass over the weights, the required effective bandwidth is at least about 125MB per second. That figure is trivial for VRAM but a real burden for host memory and persistent memory.

    4. Quantization: The First Lever for Reducing Capacity and Bandwidth

    Quantization is a general technique for mapping floating-point weights to low-bit representations. Common approaches include:

    • Post-training quantization: convert an existing model directly; low cost, but precision may drop;
    • Quantization-aware training: introduce quantization error during training for more stable precision at higher cost;
    • Mixed precision and group quantization: use different bit widths for different layers or channels and set a scaling factor per group, trading off precision against compression ratio.

    In the case, 1-bit quantization initially ran at about 0.85 tokens per second, while 3-bit quantization ran at about 0.75 tokens per second. This counterintuitive result shows that lower bits do not necessarily mean faster. The reason is that the share of compute and dequantization overhead rises, offsetting the gains from bandwidth savings. In addition, low-bit models typically need more tokens to express the same information, which lengthens end-to-end latency. The engineering conclusion is clear: quantization choices must be evaluated on two metrics, end-to-end per-token latency and output quality, rather than compression ratio alone.

    5. Caching and Direct Access: The Jump from 0.85 to 1.50

    In the case, disabling direct access and letting frequently used data benefit from the main-memory cache raised speed from 0.85 tokens per second to 1.50 tokens per second, nearly doubling it. This confirms the strong locality of inference workloads: the key-value cache in attention, the token embedding table, and the weights of common layers are accessed repeatedly.

    An optimization checklist worth borrowing:

    1. Enable or emulate a cache tier and pin hot data on the low-latency medium;
    2. Set key-value cache capacity and eviction policy sensibly to avoid frequent swapping;
    3. Chunk and prefetch weights so that read order is as sequential as possible;
    4. Bind memory affinity to reduce cross-socket access;
    5. Control concurrency and batch size so bandwidth is not contested by many requests.

    6. Scope and Limits: What This Can and Cannot Do

    This type of setup must be positioned objectively as feasibility validation and low-cost experimentation, not production inference:

    • Extremely low throughput: around one token per second means generating 50,000 tokens takes roughly 18.5 hours, which is unusable for interactive applications;
    • Poor scalability: single-machine memory capacity is a hard ceiling, and further expansion requires multiple nodes and high-speed interconnect;
    • Operational complexity: tiered placement, quantization, and caching policies require manual tuning and lack mature observability tooling;
    • Not truly cheap: server platforms, large-capacity memory, and persistent media are themselves expensive, and the relevant product line has been discontinued, creating supply and compatibility risk.

    7. Engineering Recommendations: A General Path from Experiment to Usability

    If the goal is to make ultra-large-parameter models genuinely usable, the industry commonly combines “general-purpose compute + tiered storage + elastic scheduling”:

    • Compute layer: use accelerator card clusters with high VRAM capacity and high-speed interconnect, or run inference services on a general container platform;
    • Data layer: store model weights in object storage and distribute them with high-speed caching and image repositories to shorten cold starts;
    • Service layer: use container orchestration for elastic scaling and canary releases, with load balancing to handle traffic;
    • Observability layer: integrate logging services, metrics monitoring, and alerting, and build dashboards for time-to-first-token, per-token latency, and VRAM usage;
    • Cost layer: meter by token and manage quotas to prevent long-tail requests from dragging down overall throughput.

    In related practice at Baidu AI Cloud, these capabilities are typically offered as general categories, such as object storage, container platforms, logging services, and monitoring and alerting. Enterprises can use them to build a complete chain from model hosting to elastic inference, rather than pushing a single piece of hardware to its limits.

    8. Conclusion

    The significance of “running a trillion-parameter model without a GPU” is that it puts the real bottleneck of LLMs on the table: the trade-off triangle among capacity, bandwidth, and precision. Persistent memory and tiered placement provide a low-cost validation path, while quantization and caching policies determine how far that path can go. Reaching production still requires returning to the general engineering paradigm of accelerator compute, elastic scheduling, and observability. For developers, the most valuable takeaway is: measure bandwidth and locality first, then optimize; define end-to-end metrics first, then choose a quantization scheme.