TECHNOLOGY

CXL placement for LLMs: keep two offload studies separate

In this article
THE QUICK TAKE

CXL capacity and placement policy are separate benefits; the best result from one model, phase or hardware configuration cannot describe every offloaded workload.

The incoming research record combines two distinct works: Performance Characterization of CXL Memory and Its Use Cases and Analysis and Optimized CXL-Attached Memory Allocation for Long-Context LLM Fine-Tuning. Their platforms, models and experiments differ. Together they motivate workload-aware placement; their measurements should not be presented as one benchmark.

Both concern host memory used with GPU computation. They do not demonstrate a multi-server shared GPU-memory pool. CXL capacity can make an offloaded workload feasible while placement determines which phases pay the additional access cost. That distinction is more useful than describing every extra byte as equivalent to local GPU memory.

The characterization study separates inference phases

The first paper evaluates LLaMA-65B and OPT-66B using FlexGen, with 2048 input and 256 output tokens. Its host inventory includes 196 GB each of local and remote DRAM, plus 128 GB each of CXL and NVMe. The reported equal-capacity comparison uses 324 GB configurations and keeps only 8% of the KV cache on the GPU.

Under that protocol, local DRAM plus CXL delivers overall throughput within 3% of local plus remote DRAM, and exceeds local plus NVMe by 24% for LLaMA and 20% for OPT. However, remote DRAM plus local DRAM has 20% higher prefill throughput than local plus CXL on average. Comparable overall throughput therefore does not imply equivalent prompt processing.

The LLM experiments use an A10 with 24 GB on the paper’s AMD server. The tested CXL path goes through the CPU, and its GPU-facing transfer bandwidth is constrained by the interconnect. This is a concrete explanation of why adding a host-memory device need not increase the bandwidth available to GPU kernels.

Training exposes the optimizer’s placement cost

In the first paper’s ZeRO-Offload experiments, the optimizer executes on the CPU. CXL placement increases the optimizer phase by 2–18% relative to local DRAM. For the GPT2 configuration with an 8B model and batch size 3, that phase accounts for 31% of training time.

Those observations concern the characterization workload, not the second paper’s long-context allocator. They show why a uniform interleave policy can hurt a CPU computation even when capacity improves. A transfer optimization cannot compensate automatically for a different phase now dominating the critical path.

The long-context study adds tensor-level control

The second work proposes a PyTorch extension and allocator that prioritize latency-sensitive tensors in local DRAM while placing more tolerant data in CXL memory. Its tested server uses a Xeon 6780E and H100 PCIe GPUs. Qwen2.5-7B and Mistral NeMo 12B are evaluated with one or two CXL add-in cards and different GPU counts.

The detailed results qualify the abstract’s broad summary. With one GPU and one CXL card, the 7B workload recovers 97–99% of the DRAM-only throughput, but the 12B workload reaches 88–96%. Limited DRAM forces some sensitive data onto CXL. Two cards bring the reported results close to the DRAM baseline by changing available bandwidth and placement options. Do not assign the best small-model percentage to every model and device combination.

Capacity and policy need separate comparisons

A sound reproduction should hold model, context, batch and total usable capacity fixed while changing placement policy. Then evaluate the separate benefit of a larger feasible batch or context. Combining those experiments hides whether an improvement comes from faster access, better allocation or simply avoiding a capacity limit.

The existing guide to NUMA placement supplies topology context, while memory bandwidth and LLM workloads explains why phases respond differently. Record CPU optimizer time, transfer time, prefill and decode or forward/backward work separately. These studies support a precise conclusion: real CXL can extend host capacity usefully, but effective placement and the execution path determine how much of that capacity becomes useful throughput.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles