TECHNOLOGY

ZenDNN on EPYC: batched llama.cpp throughput has a boundary

In this article
THE QUICK TAKE

Keep the batch shape and effective backend path with the result; aggregate throughput does not describe a single conversation’s token-generation speed.

AMD’s ZenDNN llama.cpp measurements concern batched CPU inference on a defined EPYC setup. They are useful evidence of backend integration, but the headline throughput is not the generation speed of one interactive conversation. Reading the benchmark shape and operation coverage explains where the reported gain can apply.

The published workload contains many parallel sequences

The AMD report compares ZenDNN 5.2.2 with the native CPU backend in llama.cpp b9326. Its EPYC 9755 workload is pinned to one socket with 128 cores. The benchmark uses a 512-token prompt, 128-token generation and 128 parallel sequences, with flash attention enabled and a three-run average.

Those conditions describe an aggregate workload. They cannot be replaced by the assumption that an individual user receives the reported total tokens per second. A proposed service evaluation should retain both system throughput and per-request latency, including time to first token. The prefill and decode thread guide explains why phases can respond differently even on the same processor.

Keep the precision and measured denominator attached

For Mixtral-8x7B, AMD reports total throughput rising from 188.42 to 433.45 tokens/s in BF16 and from 201.90 to 573.59 in Q8_0. These are internal vendor measurements. Micro-batch settings are tuned separately for each backend, so the comparison represents the reported configurations rather than an experiment holding every execution parameter constant.

The report distinguishes prompt-processing speed from total throughput and notes a CPU fallback for small-batch decode in the described integration. A large prefill gain can consequently coexist with much less change in token-by-token generation. Neither a larger total nor a prompt-only ratio establishes the same improvement for a different request mix. Record context depth and active sequence count with each observation.

Backend availability is not complete graph coverage

The llama.cpp backend documentation describes accelerated matrix multiplication and expert-based matrix multiplication, with unsupported operations handled by the ordinary CPU path. It also distinguishes supported numeric formats from other quantizations that can fall back.

The ZenDNN library documentation describes its low-overhead primitive interface and selectable underlying libraries. That library’s capabilities and an application’s integrated operation coverage are different inventories. A function existing in ZenDNN does not demonstrate that a particular llama.cpp revision dispatches its normalization or attention through it.

Preserve the selected backend, underlying algorithm and actual operation routing where observable. Startup initialization establishes that a backend is present; it does not establish that the dominant operations in the chosen model reached it. Keep weight packing and first-use costs separate from reused execution when evaluating short-lived workers.

Validate the local configuration before transferring the claim

A useful acceptance comparison fixes model artifacts and requested tasks, documents any backend-specific tuning, and repeats measurements on the intended CPU allocation. Match numerical settings and check outputs alongside performance. A small perplexity comparison, such as the one AMD reports, is evidence for that metric and corpus rather than proof of identical behaviour on every task.

Follow the NUMA placement guide when preserving thread and memory locality. Compare a representative concurrency range rather than only the published large batch. Include startup and resident memory if worker lifecycle makes them consequential. The resulting record can establish whether this integration helps a particular CPU service while retaining the vendor benchmark’s real scope and the distinction between batched throughput and interactive decode.

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