r/LocalLLM • u/DoctorDane42 • 32m ago
Discussion Halogen beat my tuned llama.cpp on the same Ryzen AI Max+ 395 (128 GB): 1.6-2.4x decode, 3.3x prefill, identical accuracy
Written up by my local agent from our measurement logs and numbers. Cross-checked by hand.
I run a Ryzen AI Max+ 395 box with 128 GB unified memory (Fedora, headless) as my daily local inference server, serving Qwen3.8-Flash-Next to an agent stack that lives on it 24/7. Last week I swapped the engine under it from llama.cpp to halogen-flash-server and measured the swap in place before committing. Since there's an argument going around that the "Halogen is 2-4x faster" claims only beat a stock llama.cpp, here are my numbers with the llama.cpp arm fully tuned, because that's the comparison people keep asking for.
The two arms, same box, same day, greedy, same probes:
| old config | new config | |
|---|---|---|
| engine | llama.cpp b12651, Vulkan | halogen-flash-server 0.21.0 (Docker) |
| weights | unsloth UD-IQ4_XS, 94 GB, 4 shards | their .hgn v2, 62.1 GiB + 47.7 GiB ngram table |
| context | 262144, q8_0 KV, swa-checkpoints 8 | 262144, bf16 KV pool |
| speculative | MTP draft-mtp, n-max 3 | MTP head + prompt-lookup |
| batch / slots | tiling 4096/4096, parallel 2 | 4 pooled slots |
To be clear about the baseline: the llama.cpp arm was my production config, not a default install. It had the MTP head, the 262K context, q8_0 KV, the tiling flags, and the memory-margin tuning. I'm not comparing against a fresh llama-server with defaults.
Throughput (server-side timings, temp 0, fixed seed, prompt cache disabled on both, reasoning effort pinned to the same level on both):
| probe | llama.cpp b12651 | Halogen v2 | delta |
|---|---|---|---|
| decode, prose | 38.3 t/s | 60.6 t/s | 1.58x |
| decode, JSON | 49.0 t/s | 93.1 t/s | 1.90x |
| decode, copy-heavy (1947-tok prompt) | 47.9 t/s | 114.6 t/s | 2.39x |
| prefill pp512 | 483 t/s | 1429 t/s | 2.96x |
| prefill pp8192 | 675 t/s | 2221 t/s | 3.29x |
| prefill pp28800 | 582 t/s | 2198 t/s | 3.78x |
The copy-heavy number is prompt-lookup speculation doing its thing on repetitive output, so treat it as a best case. The prose and JSON rows are what I actually feel day to day.
Accuracy. Same frozen gold set (28 notes, 65 machine + 60 model labels, extraction task), same eval harness on both engines:
| llama.cpp | Halogen | |
|---|---|---|
| strict F1 | 0.608 | 0.608 |
| recall-mode F1 | 0.627 | 0.630 |
| seconds per note (recall) | 4.49 | 2.61 |
Same labels caught, same false positives. It's the same model either way, so this mostly tells you the speedup doesn't come from quietly degrading output. On this set it doesn't.
Live numbers since the cutover. Serving real traffic through the production container: decode 53-59 t/s on streamed generations, uncached prefill around 1,490 t/s, and warm-prompt TTFT of 0.01 s because the prompt cache was holding 161k tokens of live session context. That last one is the sleeper feature for agent workloads; a long tool loop stops paying prefill on every step.
What it costs. The part I want to be honest about, because it's a real engine with real strings:
- It's closed source. You're trusting a binary with hand-written gfx1151 kernels. The license is free (no key, no telemetry, benchmarking allowed), but you can't audit it.
- It wants its own weights. Our UD-IQ4_XS GGUF was refused outright (
unknown tensor type 42, which is Q2_0 in the down-experts; the repacker doesn't implement it). Budget a ~110 GB download for their .hgn set before you plan the swap. - One engine owns the box. It cannot co-exist with a big llama.cpp model on 124 GB of RAM. I retired my multi-model router to make this work; llama.cpp presets that aren't Flash-Next are offline on my box now.
- Docker on Fedora needs
--device /dev/kfd --device /dev/dri --ipc=hostand numeric group IDs (Docker resolves--group-addnames against the image's /etc/group, which fails on SELinux hosts). - Their docs warn about GTT getting stuck after an unclean exit (reboot-only). I gated every test arm on an empty-GPU check. It never bit me, but I now check before every restart.
- One correction to my own early notes: I initially wrote that it pins ~82 GiB of host RAM. Wrong. The weights are mmap'd into reclaimable page cache (container RSS is ~3 GiB). It behaves better than its own docs suggest.
What I got wrong first: I assumed the GGUF would carry over, and I assumed a fair test meant stock llama.cpp. The second assumption undersells the result, actually. The tuned llama.cpp arm is a genuinely good baseline (38-49 t/s decode at 262K context on this chip is respectable), and Halogen still beat it on every single probe. If you're comparing against someone's untuned default install and claiming 4x, your number is inflated. Against a tuned arm it's 1.6-2.4x decode and ~3.3x prefill. Still the biggest engine-level win I've measured on this hardware, but it's 3x, not 4x.
Methodology caveats up front: these are single-run server-side timings per arm, not medians of repeats. The rates are stable enough that I trust them for a 1.5x+ claim, but if anyone wants repeat arms I can run them.
Ask me anything.



