Running Huge Language Models Without a GPU: Balancing Memory Capacity and Bandwidth

    A server without a discrete GPU can load an extremely large language model, but practical usability depends on two constraints: whether system memory can hold the model weights and runtime caches, and whether effective memory bandwidth can deliver an acceptable generation speed. This article explains the capacity and bandwidth trade-offs, memory configuration choices, suitable use cases, and the risks of building such a system with discontinued persistent-memory hardware.

    The Bottom Line

    A server without a discrete GPU can load an extremely large language model. Whether it is practical depends mainly on two factors:

    1. Whether available system memory can hold the model weights and runtime caches.
    2. Whether effective memory bandwidth can support an acceptable generation speed.

    This approach is suitable for low-concurrency workloads, offline batch processing, and research validation. It is generally not suitable for high-throughput online services.

    1. Test Background

    According to publicly shared information from a technical community, one developer attempted to run a reportedly 2.8-trillion-parameter large language model on a server without a discrete GPU.

    The system used non-volatile memory modules that could retain data after power loss rather than ordinary DRAM. These modules were once promoted for large-memory server deployments, but the relevant products have since been discontinued. Intel Optane persistent memory is a common example.

    The original report provided limited hardware details. The processor was described as a 40-core, third-generation server-class product, but the exact model was not disclosed. The memory modules had capacities of 128 GB, 256 GB, or 512 GB per module, although the actual configuration was not specified.

    The calculations in this article use only the information that was made public. No assumptions are made about undisclosed hardware or software details. All figures are estimates. Actual hardware selection should be based on the original report and on measurements from the target system.

    2. Capacity: Model Weights Are Only the Lower Bound

    During inference, model weights must fit into memory that the system can access. Weight size can be estimated as follows:

    1. Weight size (bytes) = Number of parameters × Bits per parameter ÷ 8

    For a 2.8-trillion-parameter model, the approximate weight sizes at different quantization levels are:

    Precision Weight size Description
    16-bit Approximately 5.6 TB Unquantized half-precision weights
    8-bit Approximately 2.8 TB Common higher-precision quantization
    4-bit Approximately 1.4 TB A common compromise between size and quality
    3-bit Approximately 1.05 TB One of the configurations mentioned in the original report
    1-bit Approximately 0.35 TB One of the configurations mentioned in the original report; quality loss is typically more significant

    These figures represent the weights only. They do not include metadata or alignment padding, so actual memory consumption is usually somewhat higher.

    Other components also consume memory:

    • KV cache: Stores key-value vectors for the context. Its size increases with context length, the number of concurrent requests, and the number of model layers. With long contexts or multiple concurrent requests, it can become much larger than expected.
    • Activations and temporary buffers: Intermediate results generated during inference.
    • Framework and runtime overhead: Memory used by the inference engine and supporting runtime components.

    A rough estimate of total memory requirements is:

    1. Total requirement ≈ Weight size
    2. + KV cache
    3. + Activations and temporary buffers
    4. + Framework overhead
    5. + Safety margin

    The appropriate safety margin must be determined through testing.

    Weights can remain resident in memory, or they can be read on demand through paging or memory mapping with mmap. The latter approach may allow the model to load successfully, but page faults on each access can significantly reduce performance.

    Being able to load a model does not mean that it is practical to use.

    3. Bandwidth Determines Generation Speed

    During text generation, the model computes one token at a time. For a dense model, generating one token typically requires reading the entire set of weights once. For a mixture-of-experts (MoE) model, only a subset of experts is activated for each token, so the amount of data that must be read can be much smaller.

    A rough performance estimate is:

    1. Tokens per second ≈ Effective memory bandwidth
    2. ÷ Bytes read per token
    3. × Efficiency factor

    Effective bandwidth is the read bandwidth that the system can achieve in practice, which is usually lower than the advertised specification. The efficiency factor accounts for computation, scheduling, and non-contiguous memory access, and must be measured on the actual system.

    Consider a dense model as an example. With 4-bit quantization, generating each token might require reading approximately 1.4 TB of data. Even with an effective bandwidth of 100 GB/s, the theoretical upper bound would be only about 0.07 tokens per second. That means each generated token could require more than ten seconds in this simplified worst-case estimate.

    An MoE model can behave very differently. Suppose each token activates approximately 40 billion parameters. At 4-bit quantization, the amount of data read per token would be roughly 20 GB. At 100 GB/s, the theoretical upper bound would be about 5 tokens per second. After applying the efficiency factor, the actual result would be lower.

    The figures of 40 billion active parameters and 100 GB/s are illustrative assumptions only. They do not represent the actual test results from the reported system.

    Persistent memory generally has significantly lower read bandwidth and higher access latency than DRAM on the same platform. Its write performance is also lower. DRAM performance data cannot be applied directly to persistent memory.

    4. Direct Access and Cache Configuration

    The same hardware can deliver very different performance depending on how it is configured. The following factors should be checked during system selection:

    • Operating mode: Persistent memory commonly supports two usage models. In App Direct mode, the operating system and applications use the persistent memory as persistent memory or as a file system. In Memory Mode, DRAM acts as a cache while persistent memory provides additional capacity. These modes make different trade-offs in latency, bandwidth, and capacity, so the choice should match the workload.
    • Page cache and mmap: When data is read on demand, page-cache hit rates have a major effect on performance. If the weight file is much larger than available memory, frequent page faults can cause a substantial slowdown.
    • NUMA and CPU affinity: A 40-core platform is often divided into multiple NUMA nodes. Accessing memory across nodes increases latency and can reduce available bandwidth. The inference process should be pinned to cores located near the memory it uses.
    • Prefetching and access order: Sequential reads are more likely to approach the hardware bandwidth limit than random reads. The way an inference engine lays out model weights affects this behavior.
    • Batch size and concurrency: Batching can improve throughput, but it also increases KV-cache usage and may increase the waiting time for individual requests. Concurrency should be selected according to the target latency.

    5. Suitable Use Cases and Limitations

    This approach can be suitable for:

    • Offline batch processing
    • Long-form tasks that are not sensitive to latency
    • Model evaluation
    • Research and proof-of-concept validation
    • Low-concurrency internal testing

    It is generally unsuitable for:

    • Online services that require stable, low latency
    • High-concurrency APIs
    • Workflows that frequently switch models or require rapid iteration

    6. Procurement and Operational Risks

    1. Procurement risk for discontinued hardware

    The supply source, aging condition, and compatibility of second-hand persistent-memory modules may be difficult to verify. Before purchasing, confirm support for the specific module with the motherboard, processor generation, and BIOS. The platform must explicitly support the selected hardware.

    2. Power and cooling

    Large-capacity memory modules and multi-socket servers can consume substantial power under full load. Rack power delivery and cooling capacity should be evaluated before deployment.

    3. Data security

    Model weights and user data may remain in persistent memory. Because the data can survive a power loss, the system requires appropriate plans for encryption, secure cleanup, and access control.

    4. Quality validation

    The 1-bit and 3-bit figures describe storage size, not model quality. Quantization-related quality loss must be evaluated on the target benchmark or validation set. Bit width alone is not enough to determine whether a model will be usable.

    5. Licensing

    Before using a model, confirm that its license permits the intended use.