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

    This article examines a community experiment that loaded and ran a 2.8-trillion-parameter large language model on a machine with no discrete GPU, using a server CPU and discontinued persistent memory modules. It explains how persistent memory works, the hardware and software setup, and the three prerequisites that made it possible: extreme quantization, tiered data placement with hot/cold separation, and accepting memory bandwidth as the hard limit. Measured throughput ranged from 0.75 to 1.50 tokens/s, showing that the bottleneck is memory access rather than compute. The findings offer reusable engineering lessons for feasibility testing and suggest that production inference still belongs on elastic cloud platforms.

    1. Background: A “No-GPU” Home Lab Experiment

    A developer shared an experiment in a community forum: on a machine with no discrete graphics card at all, relying only on a server processor and discontinued persistent memory modules, they successfully loaded and ran a large language model with roughly 2.8 trillion parameters. What makes this result noteworthy is not how fast it ran, but that it overturned a long-assumed premise—that ultra-large model inference must depend on GPU memory (VRAM).

    To be clear, this was a personal validation effort. The hardware consisted of second-hand or leftover server parts, the software was a general-purpose inference framework, and the output speed was not production-ready. Its value lies in demonstrating a complete technical path: when a model’s size far exceeds the capacity of any single GPU’s VRAM, memory capacity, memory bandwidth, and data layout become the decisive factors.

    2. Technical Foundation: What Persistent Memory Actually Is

    Persistent memory is a class of non-volatile media that sits between traditional DRAM and solid-state storage. It looks like a server memory module and installs in a memory slot, but data survives a power loss. It has three key characteristics:

    • Byte-addressable: the CPU can access it directly by address, without the “read a whole block” overhead of a block device;
    • Non-volatile: data stays resident, eliminating repeated model reloads from disk;
    • High capacity density: a single module typically holds far more than a DRAM module of the same generation, making it suitable for very large datasets.

    On such platforms, it generally operates in one of two modes:

    1. Memory Mode: persistent memory is presented as ordinary memory, DRAM falls back to acting as a cache, and the capacity is transparent to the layer above;
    2. App Direct Mode: DRAM and persistent memory are exposed to software as two separate address spaces, and the program itself decides where data lives.

    This experiment used the latter, which is critical—it means model weights and runtime mutable data were deliberately split into two tiers, and the programmer had to take on the responsibility of “hot/cold separation” personally.

    3. Hardware and Software Configuration (Neutral Description)

    The experimental platform can be abstracted into three components:

    • Compute: a single multi-core server processor (an example is a 40-core, third-generation scalable architecture class CPU), with no discrete GPU; all matrix and vector operations were performed by the CPU;
    • Memory: several large-capacity persistent memory modules that, together with DRAM, form a tiered memory pool;
    • Software: a general-purpose open-source inference framework supporting GGUF-style quantized weight formats and memory-mapped loading.

    The framework’s loading logic can be simplified as follows:

    1. Model file (quantized) --mmap--> persistent memory address space
    2. |
    3. +--> Hot data (KV Cache / frequently used layers) --> DRAM
    4. |
    5. +--> Cold data (remaining weights) --> persistent memory
    6. CPU reads weights layer by layer -> vectorized operator compute -> output token

    There is no step of “stuffing the model into VRAM.” Instead, the CPU fetches data on demand from two address spaces.

    4. Three Prerequisites for Fitting 2.8 Trillion Parameters

    4.1 Extreme Quantization

    Raw FP16 weights occupy roughly parameters × 2 bytes. For 2.8 trillion parameters, that is about 5.6TB—impossible to fit in any memory configuration. The experiment used 1-bit and 3-bit quantization, shrinking the weights to a fraction of the original size and making “it fits” possible. The cost is accuracy loss and additional dequantization overhead.

    4.2 Tiered Placement and Hot/Cold Separation

    In App Direct Mode, weights stay resident in persistent memory while DRAM holds only the frequently accessed portion. Whether DAX (direct access, which bypasses the extra copy through the kernel page cache) is enabled produces two very different memory access paths, and the measured difference was significant.

    4.3 Accepting the Bandwidth Reality

    A CPU has a limited number of memory channels, and its sustained bandwidth is far below that of GPU memory. Every token the model generates theoretically requires reading the relevant weights again, so the speed ceiling is determined by bandwidth, not compute.

    5. Measured Results and Bottleneck Analysis

    • 1-bit quantization + DAX enabled: about 0.85 token/s;
    • 1-bit quantization + DAX disabled, letting DRAM act as the cache: about 1.50 token/s;
    • 3-bit quantization: about 0.75 token/s, with 50,000 tokens taking roughly 18.5 hours to generate.

    These numbers show three things:

    1. The bottleneck is memory access, not compute. Disabling DAX nearly doubled the speed, proving that removing one memory copy is more effective than adding compute power;
    2. Lower quantization bits are not always faster. 3-bit was actually slower, indicating that the software overhead of dequantization and decompression can offset the bandwidth gains;
    3. Throughput and latency must be evaluated separately. 0.85–1.5 token/s is suitable for offline batch processing and completely unsuitable for interactive conversation.

    6. Reusable Engineering Lessons

    • Verify “capacity feasibility” first, then talk about speed: start with a minimal quantized version to confirm it loads and produces tokens;
    • Explicitly placing the KV Cache in DRAM and weights in persistent memory is the most cost-effective layout;
    • Use general-purpose tools such as perf and memory bandwidth monitoring to confirm whether the bottleneck is bandwidth or operator efficiency, avoiding blind parameter tuning;
    • If usable throughput is the goal, elastic cloud resources are still worth considering: running heavy workloads in a containerized inference service, hosting model files in object storage, and tracking latency and error rates with monitoring and alerting is a more robust engineering choice. General-purpose container, storage, and monitoring capabilities from platforms such as Baidu AI Cloud are often used to host and operate this kind of inference service.

    7. Conclusion

    The real takeaway from this experiment is not “you can do without a GPU,” but that the cost structure of large model inference is being taken apart and reassembled. When weight size becomes the primary constraint, the combination of memory medium, data layout, and quantization strategy determines how large a model a machine can run. The practical advice for developers: use local experiments to validate feasibility, and leave production inference to cloud platforms with elastic compute and a complete operations system.