This article also exists in French: read the French version.
One level down: #007.3 The processor: AVX-512, AVX2 and SME

In short
- On the Ryzen 9 9900X, at 512 tokens, Herbert
--q4reads the prompt 1.27 times faster than OVH's q5_k_m. Without AVX-512, its reading is 25 to 35% slower than its default.- On the Ryzen 7 5700G, which only has AVX2, Herbert reads prompts 1.4 to 1.5 times faster up to 2,048 tokens, and the gap narrows to ×1.07 at 32,640. In decoding, memory is what limits both engines.
- On the M5, SME2 speeds up 16-bit prompt reading by up to 1.64 times, with no significant difference on the tool test. The option stays off by default.
This is a technical companion to #007 Herbert against OVH's engines, on their own model, published the same evening. It gives Herbert's measurements on the processor against OVH's version of Llama.cpp, with and without AVX-512, then the first trials of SME2 on Apple's M5. The checks follow the rule from #007.1.
The processor: AVX-512, AVX2 and SME
On an x86 processor, there are no matrix circuits, only vector instructions: 16 32-bit numbers per instruction in AVX-512, 8 in AVX2. Herbert emits its kernels at startup according to what the processor advertises (the [isa] line of the log).
First, a point of method, which I discovered while measuring for this article. When you ask Herbert for N threads, it reads the prompt on 2 N logical threads: its N threads and their hyperthreading twins. It writes the answer on N. OVH's version takes exactly the number of threads requested. To compare under equal conditions, I therefore give two tables: A, with the same number of real threads on both sides (Herbert restricted by OLALA_WIDE=0); B, with the whole machine on both sides. This Herbert setting does not change the bits: the logits are identical with and without it, for the six settings below. It was the default up to the candidate measured here; given these measurements, it no longer is in the published commit: with --threads N, Herbert uses N threads everywhere, and OLALA_WIDE=1 turns the twins back on. Condition A is therefore the new default, and B the old one.
Ryzen 9 9900X (Zen 5), 512-token prompt, 128 tokens written, command line, published commit (53862d4; measured on 2f36c56, same bits), median of three runs, in tokens per second (prefill / decoding). OVH's version of Llama.cpp in q5_k_m, llama-bench, median of three runs, not interleaved with Herbert.
A, 12 real threads on both sides:
| Instruction set | Herbert --q4 | Herbert 16 bits | OVH's version q5_k_m |
|---|---|---|---|
AVX-512 with vdpbf16ps (default) | 975 / 35.7 | 734 / 15.7 | 765 / 36.6 |
AVX-512 without vdpbf16ps (OLALA_LIN_DP=0) | 905 / 35.7 | 643 / 15.6 | |
AVX2 alone (HERBERT_NO_AVX512=1) | 710 / 35.4 | 480 / 15.7 | 513 / 36.5 |
B, the whole machine on both sides (24 logical threads; Herbert at the old default, --threads 12 with its twins, now OLALA_WIDE=1):
| Instruction set | Herbert --q4 | Herbert 16 bits | OVH's version q5_k_m |
|---|---|---|---|
AVX-512 with vdpbf16ps (default) | 945 / 35.7 | 707 / 15.7 | 736 / 35.0 |
AVX-512 without vdpbf16ps (OLALA_LIN_DP=0) | 899 / 35.7 | 638 / 15.6 | |
AVX2 alone (HERBERT_NO_AVX512=1) | 708 / 35.6 | 477 / 15.8 | 514 / 34.8 |
When reading the prompt, Herbert --q4 runs 1.27 times faster than OVH's version in A, 1.28 times in B; with AVX2 alone, 1.38 times in both cases. Herbert 16 bits reads at 0.96 of OVH's version with AVX-512 and 0.93 with AVX2: it reads twice as many bytes per weight as a q5_k_m. When writing, Herbert's --q4 is on par with OVH's version: 0.98 in A, 1.02 in B.
The hyperthreading twins do not help Herbert on this machine: at 512 tokens, with them, it reads the prompt 3 to 4% slower than with 12 real threads. On the 5700G, they bring at most 3% for a third more processor time: that is why they are no longer the default.
Without AVX-512, prompt reading is 21 to 25% slower than AVX-512 without vdpbf16ps, and 25 to 35% slower than the default. The AVX2 line only forces HERBERT_NO_AVX512=1: that is what the engine does on a machine that only has AVX2. The logits are bit-identical to those obtained when also forcing the other paths. On this bench, the vdpbf16ps instruction speeds up reading by 5 to 14%. Decoding barely moves: memory is what limits it. The six settings give six different md5 fingerprints.
The kernels for Mamba-3 (m_prep, m_out), the rotation (geodesic) and the shift (v_shift) exist in AVX-512 and in AVX2, bit for bit: the AVX2 logits are identical between the restricted 9900X and a Ryzen 7 5700G (Zen 3), which only has AVX2. On this 5700G, with 8 real threads on both sides, Herbert reads prompts 1.4 to 1.5 times faster than OVH's version in its best setting, up to 2,048 tokens. The gap narrows with length: ×1.07 at 32,640. At that size, Herbert writes 2.9 times faster.
Ratio of Herbert to OVH's version of Llama.cpp on the Ryzen 7 5700G, published commit (53862d4; measured on 2f36c56, same bits), Herbert --q4 against OVH's q5_k_m (K/V cache in q8_0, -ctxcp 0), server, one request at a time, median of 3 interleaved runs, spread < 1%.
A, 8 real threads on both sides (Herbert OLALA_WIDE=0 --threads 8, pinned to cores 0 to 7; OVH's version -t 8):
| Length | 327 | 512 | 2,048 | 8,192 | 32,640 |
|---|---|---|---|---|---|
| Prefill Herbert / OVH (tokens/s) | 350 / 244 | 375 / 256 | 370 / 242 | 252 / 191 | 114 / 107 |
| Prefill ratio | ×1.43 | ×1.46 | ×1.53 | ×1.32 | ×1.07 |
| Decoding Herbert / OVH (tokens/s) | 24.6 / 24.4 | 24.4 / 23.5 | 23.1 / 20.3 | 18.5 / 12.7 | 8.7 / 3.0 |
| Decoding ratio | ×1.01 | ×1.04 | ×1.13 | ×1.46 | ×2.92 |
B, 16 logical threads on both sides (Herbert at the old default --threads 8, which reads the prompt on 16 threads and writes on 8, now OLALA_WIDE=1; OVH's version -t 16):
| Length | 327 | 512 | 2,048 | 8,192 | 32,640 |
|---|---|---|---|---|---|
| Prefill Herbert / OVH (tokens/s) | 353 / 227 | 375 / 238 | 377 / 222 | 256 / 179 | 117 / 104 |
| Prefill ratio | ×1.55 | ×1.58 | ×1.70 | ×1.43 | ×1.12 |
| Decoding Herbert / OVH (tokens/s) | 24.6 / 20.1 | 24.5 / 20.7 | 23.2 / 18.4 | 18.4 / 13.4 | 8.7 / 2.5 |
| Decoding ratio | ×1.22 | ×1.19 | ×1.26 | ×1.37 | ×3.48 |
B is more favorable to Herbert because OVH's version slows down there, not because Herbert speeds up: at 16 threads rather than 8, it reads the prompt 2 to 8% slower and writes 9 to 18% slower (except at 8,192, +6%). Herbert itself speeds up by only 0.1 to 2.9% in prefill with its twin threads, and not at all in decoding. B is not symmetric for writing: Herbert writes on 8 threads, OVH's version on 16, which it keeps 100% busy for 600 s out of 602. The processor time of a full series shows it: 3,859 s for Herbert on 8 real threads, 5,949 s with its twin threads, 4,508 s for OVH's version at -t 8 and 9,370 s at -t 16. The thread setting changes no bits: the md5 of the logits are identical with and without the twin threads, at the 6 --q4 and 16-bit points.
The AVX-512 vdpbf16ps instruction multiplies bf16 numbers directly: +4.1% prefill in --q4, +11.0% in 16 bits (measurement from the exploration; the bench on the published commit, above, gives 5 to 14%). It rounds differently, so the bits change: it went through the second check. In 16 bits, it is even closer to the reference. Herbert uses it by default on processors that have it (OLALA_LIN_DP=0 restores the old computation).
In decoding, memory is what limits. Each matrix-vector product of both engines reads at 41 to 45 GB/s, the measured ceiling of the machine (STREAM: 43 GB/s at 12 threads). The difference comes from the bytes read per token: 1,291 MB for Herbert, 1,086 MB for OVH's version, before the November 22 recipe.
Matrix circuits are also arriving in processors. Intel has had AMX on its Xeons since 2023. AMD and Intel are preparing a common extension built on AVX10, expected with Zen 7. Zen 6 already brings new instructions, including f16 computation, but no matrix unit. Apple's M5 has one, SME2, in its processor.
On the M5, Herbert routes the bf16 matrix multiplications of prompt reading through SME2 (the bfmopa instruction), behind the OLALA_LIN_SME option, off by default. Prefill, option on relative to off, medians of 3, M5 idle:
| Format | Threads | 512 | 2,048 | 8,192 |
|---|---|---|---|---|
| bf16 | 10 | ×1.01 | ×1.39 | ×1.43 |
| bf16 | 4 | ×1.17 | ×1.64 | ×1.62 |
--q4 | 10 | ×1.07 | ×1.20 | ×1.21 |
--q4 | 4 | ×1.29 | ×1.26 | ×1.11 |
The dense projections run 2.5 to 3.4 times faster. The experts do not run faster: each call carries only a dozen rows. Four threads do better than ten in bf16, because the SME unit is shared by the cores of the same cluster. In decoding, the difference stays within ±5%, except for two cells (−13% and −8%). The bits change (KL between option off and on: 0.005 in bf16, 0.007 in --q4), so the tool test was needed. On the first 350 questions of BFCL simple_python in bf16, the option off gets 283 right and the option on 276: 25 questions are right only without SME, 18 only with it (McNemar p = 0.36). No significant difference, which does not prove equivalence. The option stays off by default: I have no machine with SME2 on which to check each version by md5.
Logs: 2026-11-20-olala-avx2, 2026-11-20-olala-optim-cpu-prefill, 2026-11-20-olala-cpu-options, 2026-11-21-olala-diag-cpu-decode, 2026-11-24-olala-cpu-sme.
One level down, or several...
- One level down: #000 an inference engine that writes its own code · 03-Oct-2026
- One level down: #001 a compiler for an LLM engine · 11-Oct-2026
- One level down: #002 the same compiler on a GPU · 18-Oct-2026
- One level down: #002.1 follow-up, the Arc in f16 · 02-Nov-2026
- One level down: #003 what CUDA has that Vulkan lacks · 25-Oct-2026
- One level down: #004 the same compiler on Apple's chips · 01-Nov-2026
- One level down: #005 Is Herbert better than Llama.cpp? · 15-Nov-2026
- One level down: #006 I started porting Olala, OVHcloud's model · 22-Nov-2026
- One level down: #007 Herbert against OVH's engines, on their own model · 29-Nov-2026
- One level down: #007.1 The rules: bits, KL, BFCL, and 4 bits · 29-Nov-2026
- One level down: #007.2 Graphics cards, one track at a time · 29-Nov-2026
- One level down: #007.3 The processor: AVX-512, AVX2 and SME · 29-Nov-2026
- One level down: #007.4 The option turned down, then accepted · 29-Nov-2026