← all posts
August 29, 2026·Ronald Adonyo· 8 min read

Grouped hnorm on mlx-serve: +41% accepted tokens per round, and a second tenant on the Strix Halo

A change to how mlx-serve groups RMSNorm scales raised speculative-decoding acceptance from 55.6% to 64.7% (+41% accepted tokens per round) on an M2 Ultra, with the HumanEval code suite (N=40) passing on both arms. Plus: an on-demand serve measured at 31.6 tok/s code / 247 prefill@16k running beside the live serve on one Strix Halo.

AImlxApple SiliconSpeculative DecodingStrix HaloBenchmarking
Thin fibres on a wooden bench gathered into two bound groups and twisted into one thick rope that runs off to the right; a chimpanzee ties the cord round the second group and a crested crane at the right looks at the rope, with the lake behind.

Grouping the RMSNorm scales in mlx-serve raised speculative-decoding draft acceptance from 55.6% to 64.7% on an M2 Ultra, which is 41% more accepted tokens per round. Decode throughput rose 4.7–19.3%, depending on model and state. The code suite passed with the change on and off. The patch is now the default in the production serve on that machine.

Background

Speculative decoding uses two models. A small, fast draft model proposes several tokens, and the big model verifies them in one pass. Acceptance is the fraction of proposed tokens the big model keeps. Higher acceptance means fewer wasted verification passes. RMSNorm is the layer that rescales activations, and the patch changes only how its scales are grouped.

How speculative decoding works, and where grouped hnorm helpsSpeculative decodingdraft modelsmall + fastbig modelverifies all at oncekept: 55.6% -> 64.7% of draftsThe patch: grouped RMSNorm scalesbeforeone scale for the whole layer — global reductionafterscales per group — no reduction spans the whole widthfewer waits per token -> drafts verify against fresher state -> more accepted

The numbers

M2 Ultra, A/B, grouped hnorm off vs on

acceptance                55.6%  ->  64.7%
accepted tokens/round       +41%
decode throughput      +4.7% .. +19.3%   (depends on model + state)
code suite (HumanEval N=40)   green on both arms
Draft acceptance55.6%64.7%patch off (upstream bytes)patch on

Method

The patch was staged behind an environment flag, default off (1878d35), so the “off” arm runs the exact upstream code. A single script makes the decision. It locks the GPU so nothing else runs, starts a fresh process 3 times per arm because throughput varies from start to start, runs the code suite on both arms, and promotes the patch only if it is faster with no quality loss. The patch met that bar, and the script made the promotion to the production pack (ee91bed) without a manual flag.

Acceptance is usually treated as a property of the model checkpoint. Here it moved under a runtime change with the checkpoint untouched, so part of it depends on the serve. The quality suite separates better drafting from an easier-to-guess target: a damaged target would accept more drafts and fail the suite. This one passed. The post does not establish why grouping the scales raises acceptance.

Two servers on one chip

The same week, the Strix Halo machine (fedora), which already runs the live fast-brain serve, ran a second, on-demand model server beside it. That server reached 31.6 tok/s decoding code and 247 tok/s prefill at 16k context, measured while the live serve kept running. Both servers share one memory pool, so these are co-tenant numbers, taken under the load a small fleet runs with rather than on an idle box.

the Strix Halo box (Radeon 8060S)GPU + shared LPDDR5X bandwidthone memory poollive fast-brain servealways onon-demand fork serve31.6 tok/s code · 247 prefill@16kboth measured running together — no maintenance window

Two practical points follow for a small fleet. A serving change can be A/B tested on the machine that runs production, and a second model can run beside a live one, provided the numbers are reported as measured with both running.

Reproduction

hardwareM2 Ultra Mac Studio (hnorm A/B) · Strix Halo desktop, Radeon 8060S (co-tenant)
softwaremlx-serve fork (upstream ddalcu/mlx-serve) · patch 1878d35 · production pack ee91bed
protocolGPU locked · 3 process starts per arm · HumanEval N=40 both arms · promote only on win with no quality loss

Full logs and the raw ladder artifacts are kept with the lab's run records.

Corrected 2026-10-10: the summary called this a one-line change with quality unchanged. This post does not give the size of the patch, and the quality check it reports is the HumanEval code suite (N=40) passing on both arms; the summary now says that.

A wide horizon at dusk: layered hills in muted plum and ochre above a lake that holds the last light, a family of crested cranes at the water's edge, an acacia in silhouette and a single bright star above the ridge.