Running a 2.8T-Parameter LLM Without a GPU: Memory-Bound Inference in Practice

    This article examines a home-lab approach to running a 2.8 trillion-parameter open-source model on a multi-core server CPU with discontinued persistent memory and no accelerator cards. It explains why inference throughput is limited by memory rather than compute, documents the hardware and software configuration, reviews measured token-generation rates, analyzes DAX and page-cache effects, and outlines reusable methods for low-bit quantization, NUMA binding, troubleshooting, and cloud alternatives. The measurements are presented as reference values rather than benchmarks, and the article identifies the conditions that must be re-measured for reproduction.

    In recent years, the parameter scale of large language models has continued to grow. Models with hundreds of billions or even trillions of parameters typically require multiple high-end GPUs to run, and procurement and operating costs make them difficult for many individual developers and small teams to try. A home-lab practice offers another route: using discontinued persistent memory and a multi-core server CPU to run a 2.8 trillion-parameter open-source model on a machine without accelerator cards. This article breaks down the principles, tuning methods, and applicable boundaries of this route, and explains which numbers can be used as references and which conditions need to be measured again.

    1. Inference Speed Is Limited by Memory, Not Compute

    When generating each token, the model must read the weights and complete matrix operations. The processor often waits for data during this process, so throughput depends more on data read speed, namely memory bandwidth and capacity.

    Capacity is the first threshold. Taking 2.8 trillion parameters as an example, the weight volume at different precisions is as follows:

    • FP16 precision: about 5.6 TB;
    • 3-bit quantization: about 1.05 TB;
    • 2-bit quantization: about 700 GB;
    • 1-bit quantization theoretical value: about 350 GB.

    Actual quantized files also contain metadata such as scaling factors, so the file size will be slightly larger than the theoretical value. The memory ceiling of consumer platforms is usually between 128 GB and 256 GB, and ordinary memory modules alone cannot hold these weights.

    One caveat needs attention here. If the model uses a mixture-of-experts (MoE) architecture, only a subset of experts is activated for each token, and the actual amount of data read is much smaller than the total parameter count. The original experiment did not disclose model architecture details, so the capacity estimates above should be understood as worst-case scenarios.

    2. Hardware and Software Configuration

    The experiment used a 40-core third-generation scalable server processor. A CPU with a large core count can use vector instructions such as AVX-512 to accelerate low-bit matrix operations.

    The original experiment did not disclose all hardware models, memory module configurations, and software versions. For reproduction, it is advisable to record at least the following information:

    • CPU model, core count, and memory channel count;
    • Number of persistent memory modules, per-module capacity, and operating mode;
    • Ratio of DRAM to persistent memory;
    • Operating system and kernel version;
    • Inference engine name and version, as well as the source and format of the quantized file;
    • Launch parameters, including thread count, context length, and whether memory mapping is enabled.

    Persistent memory has two operating modes. In Memory Mode, DRAM acts as a cache for persistent memory, and the system sees one large memory pool. It is simple to use, but cache hit behavior is difficult to control. In App Direct Mode, DRAM and persistent memory are two independent address spaces, and the program can decide where data is placed. This experiment used the latter.

    Procurement risk needs to be evaluated in advance. Persistent memory products have been discontinued, and the price and availability of second-hand parts fluctuate considerably. Some batches may lack warranty coverage. Teams planning long-term use should first confirm the source of spare parts. Optional alternatives include:

    • Large-capacity DDR5 server memory: mature compatibility, with single-machine capacity reaching several TB, but higher cost;
    • CXL memory expansion modules: can increase capacity, but the ecosystem is still developing, and motherboard and operating system support need to be confirmed;
    • Cloud large-memory instances: pay-as-you-go, suitable for short-term validation, with long-term costs requiring separate calculation.

    For the inference engine, a commonly used community C/C++ inference implementation such as llama.cpp can be selected. These engines support multiple low-bit quantization formats and support memory-mapped loading of weights. An example launch command is as follows:

    ./llama-cli -m model-q1.gguf -t 40 -c 2048 -n 256 -p "test prompt"

    Here, -t specifies the thread count. It is recommended to set it to the number of physical cores to avoid hyperthreading contending with inference threads for resources. -c specifies the context length, and -n specifies the number of tokens to generate. If you need to compare whether memory mapping is used, add --no-mmap and run again.

    3. Measured Results and Interpretation

    Quantization scheme Generation speed Notes
    1-bit quantization (DAX off) About 1.50 tokens/s Fastest configuration in this experiment
    1-bit quantization (DAX on) About 0.85 tokens/s Slower than the configuration with DAX off
    3-bit quantization About 0.75 tokens/s Higher precision, but slower

    The numbers in the table are the measurement results given by the original experiment. The original experiment did not fully disclose prompt length, generation length, batch size, thread count, NUMA binding, and page-cache warm-up state, so these numbers should be used as reference values and not directly treated as benchmark comparisons. For reproduction, all the above conditions need to be recorded, and measurements should be repeated and averaged.

    With DAX off, speed increased by about 76%. DAX allows programs to bypass the page cache and directly read and write persistent memory. In this experiment, with DAX off, frequently read weights could be retained in DRAM by the operating system’s page cache, effectively providing an automatic cache layer. For inference workloads that repeatedly read the same set of weights, the benefit of cache hits exceeded the overhead saved by bypassing the kernel. This conclusion depends on kernel version, filesystem, and memory capacity, and must be revalidated on another machine.

    3-bit being slower than 1-bit is the conclusion of this experiment, not a universal rule. Low-bit weights need to be dequantized before computation. The higher the bit width, the greater the number of bytes read each time and the amount of dequantization computation. On a platform limited by memory bandwidth, the impact of read volume is more obvious. If the dequantization implementation is more efficient, or memory bandwidth is wider, the gap may shrink or even reverse.

    Practical significance of the speed. At 1.5 tokens/s, generating 50,000 tokens takes about 9.3 hours. The 18.5 hours in the original text corresponds to 0.75 tokens/s, the speed of the 3-bit configuration. This shows that the approach is not suitable for interactive dialogue, but can be used for the following scenarios:

    • Overnight offline batch text processing;
    • Model capability validation and academic research;
    • Small-scale data annotation, evaluation set generation, and other tasks with low real-time requirements.

    4. Reusable Methodology

    1. Calculate the capacity budget first. Weight volume is approximately equal to parameter count multiplied by quantization bit width, then divided by 8. For 2.8 trillion parameters with 2-bit quantization, the weights are about 700 GB. In addition to weights, reserve headroom for KV cache, the operating system, and other processes. Do not treat weight volume directly as the required memory.

    2. Try extremely low-bit quantization first. In bandwidth-limited scenarios, 1-bit to 2-bit quantization is a prerequisite for running very large models in limited memory. Key layers can retain a higher bit width, namely mixed quantization. The effect of mixed quantization needs to be validated with a checklist:

    Check item Record
    Layer name Name of each module
    Bit width Quantization bit width used for that layer
    Accuracy metric Change in perplexity or benchmark task score
    1. Make good use of operating system cache. Do not disable the page cache simply because of the intuition that “bypassing the kernel is faster.” For repeated-read workloads, the page cache is often the simplest and most effective acceleration layer. When comparing, measure both configurations separately.

    2. Batch rather than interactive. Design tasks as asynchronous batch-processing pipelines, trading time for cost.

    3. Pay attention to NUMA and thread binding. On multi-socket CPU platforms, inference threads should be on the same node as the memory holding the weights; otherwise, cross-node access increases latency. The following command can be used for binding:

    numactl --cpunodebind=0 --membind=0 ./llama-cli -m model-q1.gguf -t <physical cores per node>

    5. Common Troubleshooting

    • Insufficient memory: the process is killed by the system, or an error occurs when loading weights. First check the quantized file size against available memory, then check whether other processes are occupying memory.
    • Cross-node access: speed is unstable, and monitoring shows a high proportion of remote memory access. Bind the node with numactl and measure again.
    • Page cache eviction: the second run of the same model is noticeably slower than the first. Check whether background tasks are occupying cache, or whether memory is insufficient to retain hot weights.
    • DAX misconfiguration: speed is abnormal after enabling DAX. Confirm that the filesystem is mounted in DAX mode, and confirm that the kernel and persistent memory driver versions support this mode.

    6. Cloud Alternative

    For teams without large-memory physical machines, cloud large-memory instances are a viable option. A common approach is to choose an instance specification equipped with several TB of memory, store quantized model weights in object storage, orchestrate inference tasks with a container platform, and track memory and CPU levels with a monitoring service. The entire workflow is pay-as-you-go, with no upfront hardware investment.

    Cloud instance prices and specifications vary by region and time. Before making a decision, use the provider’s official pricing to estimate the total cost of one complete batch run, then compare it with the depreciation and electricity costs of self-built hardware.

    7. Conclusion

    The value of this practice lies in lowering the validation barrier. With low-bit quantization and large memory, individual developers and small teams can run trillion-parameter-class models at controllable cost and test their capabilities. It cannot replace interactive GPU services. Before deciding to invest in hardware, it is advisable to first test your own tasks with small-scale batch processing and confirm that speed, accuracy, and cost are all acceptable.