Running a Trillion-Parameter Model Without a GPU: An Engineering Practice

    This article examines a community-reported setup that loaded and ran a 2.8-trillion-parameter MoE model on an older multi-core server with no discrete GPU, using persistent memory as directly addressable memory. It explains the memory capacity, memory, and bandwidth walls behind LLM inference, compares Memory Mode with Direct Access, shows why 1-bit and 3-bit quantization delivered similar throughput, and provides a model for estimating weight size and throughput along with practical deployment recommendations.

    1. The Setup: A Trillion-Parameter Model on a Server With No GPU

    A practice case circulating in the community is worth revisiting: an older multi-core server with no discrete GPU installed successfully loaded and ran a mixture-of-experts (MoE) model with roughly 2.8 trillion total parameters. Instead of relying on VRAM capacity, it used persistent memory as directly addressable memory space.

    Here are the model’s key specifications:

    • About 2.8 trillion total parameters, a typical sparse-activation architecture;
    • Roughly 104 billion parameters activated per token, about 3.7% of the total;
    • A nominal context window of about 1.04 million tokens;
    • Hardware: a single 40-core third-generation scalable server processor, paired with high-capacity persistent memory modules of up to 512GB each;
    • Inference framework: a general-purpose open-source inference runtime, with persistent memory configured in direct access mode;
    • Measured throughput: about 0.85 token/s with 1-bit quantization, about 1.5 token/s with direct access disabled, and about 0.75 token/s with 3-bit quantization.

    To put that in perspective: generating a few hundred words takes several minutes, and producing 50,000 tokens takes about 18.5 hours. This is not a usable production configuration, but it proves one thing: the barrier to very large model inference is shifting from “can you afford the accelerators” to “can you do the systems engineering for memory and bandwidth.”

    2. Why It Runs Without a GPU: Repricing Three Walls

    The bottleneck in LLM inference has never been raw compute alone, but the sequential constraints of three walls.

    The first is the VRAM wall. The traditional path requires fitting all weights into device-local memory, and insufficient capacity means outright failure. The second is the memory wall. Even with weights placed in host memory, capacity and the number of memory channels form a hard limit, and a typical desktop platform fully populated with memory modules often still falls short by an order of magnitude. The third is the bandwidth wall. The first two walls decide whether the model “fits”; the third decides “how fast it runs.”

    The value of persistent memory is that it reprices the first two walls at once: it provides hundreds of gigabytes to terabytes of capacity per module in a byte-addressable form, at a capacity cost far below that of DRAM of the same size, and programs can read and write it directly through memory pointers without reworking the software stack. The cost is concentrated on the third wall: its read bandwidth is significantly lower than that of mainstream memory, so “it fits” turns into “it reads slowly.”

    One common misconception needs clearing up here: the MoE architecture does not get around the capacity problem. Sparse activation reduces the compute per token and the scale of weights that must be read, but all expert weights still have to stay resident in addressable space; otherwise, expert switching introduces unacceptable swap-in and swap-out overhead. The capacity problem remains; it is just spread across a cheaper memory medium.

    3. The Real Difference Between the Two Modes: Direct Access vs Memory Mode

    Persistent memory has two typical modes of use, and understanding the difference is key to whether this kind of setup works at all.

    Memory Mode disguises persistent memory as ordinary memory, with the system scheduling the DRAM and persistent memory hierarchy in the background and the program unaware of it. Its problem is that the scheduling policy is designed for general workloads and is not friendly to a behavior like LLM inference, which reads weights sequentially in large blocks; it is prone to hit-rate fluctuations and unpredictable latency spikes.

    Direct Access mode exposes persistent memory as a byte-addressable persistent memory region, and the program accesses it through explicit read and write instructions, bypassing the kernel page cache and the block device layer. A sketch of the configuration approach is below (for logical illustration only; refer to the documentation of the runtime in use for the actual interfaces):

    1. # Logical illustration: mount persistent memory as a direct access device
    2. ndctl create-namespace -m fsdax -a 0
    3. mount -o dax /dev/pmem0 /mnt/pmem
    4. # Enable direct access on the inference runtime side (parameter names depend on the actual version)
    5. runtime --model /mnt/pmem/model.mmap \
    6. --threads 40 \
    7. --direct-access on

    With direct access disabled, throughput rose from 0.85 to 1.5 token/s. This counterintuitive result shows that, under this workload, the overhead introduced by the extra explicit access path exceeded the cache-transfer cost it saved. The engineering conclusion is clear: benchmark both modes and do not choose based on intuition.

    4. The Nonlinear Relationship Between Quantization Precision and Throughput

    The measured gap between 1-bit and 3-bit was only 0.85 versus 0.75 token/s, which seems like “trade precision for speed” failing. The reason is that the bottleneck has moved: when weight reads are limited by medium bandwidth, the benefit of reducing bytes per parameter is partly offset by the extra compute cost of unpacking and dequantization, and CPU-side compute was not the weak point to begin with.

    Practical recommendations:

    • Run end-to-end evaluations primarily in the 1-bit to 4-bit range rather than looking at a single benchmark point;
    • Track both first-token latency and steady-state throughput; the former determines interactive experience, the latter determines batch processing cost;
    • For precision-sensitive tasks, validate quality loss after quantization with a small evaluation set, and avoid “it runs but the answers are wrong.”

    5. How to Estimate Throughput

    The most reusable part of this setup is its capacity and speed estimation model:

    1. Weight size ≈ total parameters × bytes per parameter
    2. Theoretical ceiling ≈ memory read bandwidth ÷ bytes read per token
    3. Actual throughput ≈ theoretical ceiling × efficiency factor (usually well below 1)

    Take 2.8 trillion parameters with 1-bit quantization as an example: the weight size is on the order of about 350GB, which requires high-capacity persistent memory to hold; and the effective bandwidth corresponding to the measured 0.85 token/s is far below the medium’s nominal bandwidth, showing that the efficiency factor is dragged down by unpacking overhead, thread scheduling, and memory access locality together. The optimization directions follow from this: improve thread affinity, enable huge pages, and keep hot data in the higher-bandwidth tier as much as possible.

    6. Recommendations for Putting It into Practice

    To reproduce a similar validation in your own environment, proceed in this order:

    1. Do the capacity math first, and confirm the margin between weight size and total addressable memory;
    2. Use a medium-sized model to get the pipeline working end to end, and verify quantization format and runtime compatibility;
    3. Benchmark the two access modes separately, recording first-token latency and steady-state throughput;
    4. When validating in the cloud, you can round out the engineering loop with general-purpose capabilities: use object storage to hold model weights, a container platform to pin down the runtime environment, monitoring and alerting to track throughput and failure rate for long-running tasks, and a logging service to retain evaluation records;
    5. Baidu AI Cloud is typically used in these scenarios to provide elastic compute along with supporting storage and monitoring capabilities, making it easier to turn a one-off validation into a reusable evaluation pipeline.

    7. Conclusion

    The significance of running a trillion-parameter model without a GPU is not that it replaces accelerators, but that it reveals the cost structure of very large model inference: capacity can be traded for a cheaper medium, while bandwidth and efficiency can only be squeezed out through systems engineering. The practical takeaway for developers is that building the ability to quantitatively estimate capacity and bandwidth first, and then deciding on hardware and quantization strategy, gets closer to the essence of the problem than blindly piling on accelerators.