This article also exists in French: read the French version.
One level down: #007.4 The option turned down, then accepted

In short
- On the Mac Studio, the MLX form read the prompt 8 to 22% faster, but the answers cut off at 2,048 tokens went from 18 to 31.8 on average over five draws.
- A control that only changes the order of the additions already cuts off 27. Where the answers fork, the top two tokens have almost equal scores.
- With the angles wrapped between minus pi and plus pi, the MLX form cuts off 27.2 answers on average, as many as the control. It has become the default on the Mac.
This is a technical companion to #007 Herbert against OVH's engines, on their own model, published the same evening. The video script, in #007, tells the story of this option on the Mac, with the memory of the ERC32. Here, I give the draws, the control, and the two measurements of the layer 23 angle.
The option turned down, then accepted
Mac Studio M3 Ultra, 16 bits, BFCL simple_python on 400 questions through the server, answers cut off at 2,048 tokens. The baseline and the control give the same bits whatever the block size, so a single draw. The MLX form changes bits with the block size: five draws, blocks of 256, 320, 384, 448, and 512.
| Arm | What changes | Cut off | BFCL /400 |
|---|---|---|---|
| Baseline | nothing | 18 | |
| Control | the order of the scan's additions, alone | 27 | |
| MLX form, angles not wrapped | 30, 29, 31, 32, 37 (average 31.8) | 314, 313, 321, 312, 309 (average 313.8) | |
| MLX form, angles wrapped | 27, 31, 26, 26, 26 (average 27.2) | 324, 314, 317, 317, 316 (average 317.6) |
Between the wrapped and unwrapped forms, no block is significant (the closest: block of 512, p = 0.090). Over the five blocks together, question by question: 42 against 26 cut off, p = 0.068; without the block of 512, p = 0.31. Against the control, no pair is significant.
At the first token where the baseline and the MLX form diverge, the gap between the top two logits ranges from 0.001 to 0.27. Over all the baseline's steps, 1.7% have a gap under 0.05.
Two measurements of the angle, which do not measure the same thing. The Mamba-3 summary rotates by an angle at each token. On layer 23, a single token can rotate it by 26 turns (increment up to 161 radians).
- The first measurement isolates the sum. It starts from the increments as the kernel forms them in 32 bits and compares their sum over 32 tokens, without wrapping, with the same sum done exactly. The drift rises from 0.9 to 1.5 thousandths of a radian on layer 23 and is 0.1 thousandth on layer 1. With a wrap into [−pi, pi] before the sum, it falls back to between 0.15 and 0.37 thousandths. Cost in speed: −0.1%. (
2026-11-23-olala-metal-loops, step 4.) - The second measurement compares the angle with a computation done entirely in 64 bits, increment included. At 8,192 tokens, the error reaches 3.6 hundredths of a radian on layer 23, with the current reduction as with Cody-Waite (2 pi as two constants). This error comes from forming the increment in 32 bits (
softplus,tanh), which the wrap does not touch.
The current reduction already fits in a single fma operation. Since 2 pi rounded to 32 bits is exactly twice pi rounded, it follows exact pi, whereas Cody-Waite follows pi rounded to 32 bits, like a 32-bit computation without wrapping. So Cody-Waite changes the convention without reducing the error. On the tool test, on the default block, it gives 311 against 322 and 33 answers cut off against 26 (p = 0.126 and 0.296). It stays an option, turned off.
Logs: 2026-11-23-olala-impl-metal-m3scan-b, 2026-11-23-olala-metal-loops, 2026-11-23-olala-metal-default, 2026-11-24-olala-metal-007draws.
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