TECHNOLOGY

Dual EPYC llama.cpp: achieved bandwidth and socket scaling

In this article
THE QUICK TAKE

Measure achieved memory access and the intended model together, preserving NUMA placement, warmup and separate prefill and decode results.

A dual-socket EPYC owner investigation shows why advertised DDR bandwidth is not a complete predictor of CPU token generation. The practical evidence combines a streaming-memory benchmark with actual llama.cpp runs, then compares socket scaling for different model structures. These observations belong together: splitting them into unrelated hardware rankings would hide the workload-dependent result.

The achieved read rate differs from the theoretical figure

The February 2025 investigation reports dual EPYC 9175F with 16×48 GB DDR5-6400 achieving 753.6 GB/s against a theoretical 819.2, or 91.9%. Dual EPYC 9654 with 24×64 GB DDR5-4800 reaches 679.2 GB/s against 921.6, or 73.6%. The system with the larger theoretical total does not deliver the larger measured read rate.

The LIKWID benchmark documentation describes selectable memory kernels and explicit thread and stream placement. Its reported bandwidth is application-visible data volume, excluding some hidden traffic. A streaming load result therefore characterizes a chosen access pattern and placement; it is not a direct measurement of all traffic generated by an LLM’s complete execution graph.

Token generation and socket scaling remain model-specific

In the owner’s dual-socket results, Llama 3.1 70B F16 reaches 4.30 tokens/s on the Turin system versus 3.97 on Genoa. Mixtral 8×22B Q8_0 reaches 10.58 versus 10.23. The same investigation finds stronger dense-model decode scaling than MoE decode scaling when adding the second socket.

This supports examining matrix sizes, synchronization and memory access as a combined execution problem. It does not isolate one cause: the systems differ in processors, core counts, memory configuration and platform settings, and the models use different representations. An apparent architecture advantage cannot be transferred to every quantization or concurrency level. Preserve both prompt processing and generation rather than summarizing them as an undifferentiated inference score.

Warmup can affect memory placement as well as timing

The investigation uses llama.cpp build 4663 with modified MoE warmup and distinguishes single-socket binding from distributed NUMA execution. Its earlier experiments also show that the order of prompt-processing and generation tests can affect later decode behaviour through the placement of mapped weights. This is historical experimental context, not a statement that current releases retain an identical defect.

A local replication should establish how weights become resident before timing begins. Record process affinity, allocation policy and observed page placement alongside warmup. Repeating a command without resetting the relevant state may measure the previous run’s placement rather than an independent condition. The NUMA placement guide explains why physical topology and allocation policy need explicit treatment.

Use a matched workload to make a capacity decision

A proposed acceptance sequence first measures an appropriate memory access pattern with known placement, then runs the intended model under the same resource allocation. Test socket counts and thread settings without changing model identity, quantization or request shape at the same time. Include repeated runs and preserve dispersion rather than selecting the best observation.

The llama.cpp thread-tuning guide explains the need to tune prefill and decode separately. Add actual serving concurrency if that is the intended use; a token-generation microbenchmark is not a multiuser latency result. This owner case justifies measuring achieved bandwidth and application scaling together, while leaving the winning configuration for another server to a controlled local comparison.

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