Inference engines for local AI¶
Every benchmark row on the Hardware comparison for local AI pages is an engine-plus-config number — the chip is only half of it. This page collects the engine write-ups, the roster, and the one analysis question that matters: when does engine choice actually pay.
When engine choice pays¶
Qwen4's launch week produced the cleanest statement of this rule, with a same-card counter-pair from the Strata megathread: a single R9700 running the model fully VRAM-resident gets the same numbers from stock llama.cpp master (IQ4_NL, 120-130 t/s, 2.3-2.7K prefill) as from the PR-head Strata build (100-130, ~2.7K) — posted, pointedly, as a reply in the Strata thread itself. That doesn't cancel the 2x llama.cpp-vs-bmoe gap on the 3090 or the 2x on the 3060; it locates it. Engine work on these models is expert-streaming scheduling and multi-stream serving — it pays when experts must cross RAM or PCIe, or when many requests share the card, and it pays nothing when one request runs on a card that already holds everything. The vLLM ladder measures the second regime directly: aggregate throughput climbs 120 → 1,100 t/s from one stream to sixteen without MTP, MTP n=1 stretches that to 1,480 by trading the KV pool down (690K → 433K tokens), and MTP n=2 then collapses to 1,003 at sixteen streams because a deeper drafter spends bus bandwidth the streams were using. And the ladder's author states the model's own ceiling: past roughly ten parallel agents, nearly every expert is hot somewhere on the card at once, the box stops behaving like a 3B-active MoE and starts behaving like a dense 35B — the small-activation saving is a single-stream property, and a concurrency plan that ignores it buys a dense-model bill. The full tables are on the Qwen4-35B-A3B page.
Engine roster¶
The engines named in the benchmark tables, one line each. Depth lives in the write-ups below or the linked source.
| Engine | Where it runs | What it is |
|---|---|---|
| llama.cpp | everywhere | the GGUF reference engine; model: qwen4 merged to master on launch day (PR #33626). Its -cmoe/--moe-cache expert offload is the baseline every alternative is measured against |
| Strata | CUDA + HIP, Windows/Linux | expert tiering: hot experts in VRAM, the whole pool in host RAM, n-gram table on SSD; pipeline (layer) split multi-GPU. Its own page carries the measured numbers |
| RustingStrata / sFNX | CUDA | unmerged Rust rewrite / derivative line of Strata — the 80-vs-40 tok/s 3060 pair and the 4x V100S 600-tok/s row |
| Strata EXL3 fork | RDNA3 | runs EXL3 packs instead of GGUF — write-up below |
| Radiance | RDNA4 only | from-scratch C++/HIP server, .rad single-file models — write-up below |
| Paiton | RDNA4 only | vLLM plugin with a native worker and proprietary compiler; proprietary weight formats — write-up below |
| Basalt / Basalt-Ada | Blackwell / community sm_89 port | NVFP4 Strata fork tuned for Blackwell; the Ada port runs the 4070 SUPER report on the Qwen4 page |
| vLLM | CUDA (+ ROCm) | serving engine, tensor-parallel; merged qwen4 support day one — official image, FP8 checkpoint, NVFP4 dequant path on Ampere |
| bigmoeonedge (bmoe) | CUDA + Android | MoE offload engine, day-one Qwen4 from 12 GB phones to 24 GB desktops |
| Nib | RDNA | new RDNA engine, one 7900 XTX report (160 tok/s at 212K) so far |
| MTPLX / oMLX / mlx-serve / Splash | Apple Silicon | the MLX family — table-on-SSD builds and MTP/DFlash drafters dominate the Mac rows; mlx-serve and Splash have write-ups below |
| hipfire / WHIRL / Lucebox | AMD | RDNA-native Rust / C++-HIP / DFlash2-scheduler lines feeding the R9700 rows |
| capy-flash · MegaCapybara · TensorFold · fngine · tqLLM · NInfer/Infernix · SGLang · lean-qwenflash | mostly CUDA | the engine-survey long tail: TP2 NVFP4, hand-written single-model kernels, Zig engine, FP8-dense CPU expert tier, 3-bit TQ quant line, offload engines — numbers live in the 27B and Flash-Next tables |
Engine write-ups¶
Splash¶
One engine worth watching on Apple silicon is Splash (Inco AI) — it builds the engine around the model rather than the other way around: a trained DFlash 2 draft (7 tokens/step, verified in one pass), shape-specialized 4-bit kernels, and a fixed memory plan. Its published 27B numbers are M5 Pro only so far. Beware the widely-circulated "Qwen3.8-27B at 144 tok/s on M5 Max" — that figure is a mix-up with Splash's 143 tok/s for the Qwen3.6-35B-A3B MoE on an M5 Pro (debunk). Splash also has hard floors: M3 or newer, macOS 26.4+, and 36 GB minimum unified memory (48+ recommended) — the memory floor is the cache-resident design, not the weights.
mlx-serve¶
The other engine to watch is mlx-serve (ddalcu/mlx-serve) — a native Zig/Metal inference server with a Swift macOS app, OpenAI and Anthropic API compatible, no Python and no Electron, MIT-licensed. It's a young project (781 commits, date-based versioning) but the engineering is serious and the M5 Ultra numbers are the best Flash-Next decode figures published for that chip: 219 tok/s on the mixed 4-8-bit pack with MTP, 227 aggregate across 4 concurrent streams, and 243-300+ on draftable turns where the reply copies the context. Two things I like about how they measure: every number comes from llmprobe --bench-only (warmup discarded, median of 3), and the release-to-release history table is deliberately single-machine — M4 Max only, because mixing columns across hardware poisons the trend. The v26.10.1 release moved 27B decode +66% on M5 Ultra with byte-identical output verified across 18 models, which is the rarest kind of speedup. It also runs GGUF through its own MLX engine now instead of a llama.cpp fallback, and its agent features (mid-run steering, thinking not replayed into long-session context, all conversation images reaching the model) are aimed squarely at the agentic workloads this whole page is about. Caveats: every published number is self-reported, and the project moves fast enough that main is already 235 commits past the late-September release.
Radiance¶
The AMD answer to the same problem is Radiance (StillDeadcode/radiance, mirrored on GitHub) — a from-scratch C++/HIP inference server with an OpenAI-compatible API, Apache-2.0, where architectures, kernels and quantisers are .so plugins. Its kernel library (libr4d) is hand-written for RDNA4 (gfx1200/gfx1201), and it started life as a patched vLLM fork before the author ditched the Python/PyTorch stack entirely; the Docker image is 423 MB against vLLM's 13+ GB. Models ship as single-file .rad containers — weights, tokeniser, chat template and drafter in one — and the Flash-Next build keeps the trunk int8 (W8A8) with GPTQ 4-bit codebook experts, ten energy-heavy experts kept bf16, plus MTP and vision, 113.6 GiB, served tensor-parallel across two 32 GB cards with the coldest experts streamed from a pinned host pool. The design premise matches the hardware: an R9700 has more compute than its 644 GB/s of GDDR6 can feed, so Radiance spends its effort shrinking bytes per token — int8/4-bit weights, a drafter (DFlash2 on the dense builds, the model's own MTP head on Flash-Next) accepting 3-4 tokens per pass, everything kept on the card's own memory bus instead of crossing PCIe. Level1Techs ran the whole stack on two machines to prove it replicates and measured 137 tok/s single-stream on Flash-Next and 130 on 27B FP8; a Redditor independently moved a dual-R9700 box from llama.cpp on Windows (31 tok/s, driver timeouts) to Radiance on Ubuntu and landed at 140-155 tok/s at 200K context. Caveats: it's a one-author project, RDNA4 kernels are the only device kernels in the tree (other AMD families need a kernel plugin), and every model uses both cards on one port, so you run one at a time.
Paiton¶
Paiton (Eliovp-BV/paiton-vllm-plugin) is the third RDNA4 entrant, and it's a company: ElioVP sells Paiton as a product, with an Apache-2.0 plugin repo and Docker launchers over vLLM and a proprietary compiler underneath. The bet is the opposite of Radiance's — keep the vLLM stack (ROCm 10 / vLLM 0.29 images) and bolt a native RDNA4 worker onto it, rather than ditching the stack. On 2x R9700 it keeps the whole Flash-Next language model resident across the two cards, with the 48.9 GiB n-gram table and other host tables pinned in system RAM — 128 GB minimum for the 3-bit, ~196 GB for the 4-bit profile. The October 24 update is worth reading for the caching numbers: on the native worker with prefix caching, a repeated 200K-token prompt went from 33.62 s to first token down to 0.85 s, a 145K-200K session idle in the RAM tier restored in about 1 s — cache-hit outputs matched cold runs in their tests, and 4-bit keeps MTP speculative decoding on while caching. The decode cost: 207 tok/s with the RAM KV tier on, 233 with --native-kv-tier off, and the 3-bit caching mode runs without MTP at ~100. Caveats: every number is vendor self-reported — though the methods are named and the stats are serious (BetterBench 0.6.0, LocalMaxxing, paired McNemar tests, bootstrap CIs); only the R9700 is qualified, other GPUs untested; the weight formats load in Paiton's runtime only — llama.cpp, Transformers and stock vLLM cannot touch them; their own card flags the 3-bit ending long agent sessions early more often than bf16 (quality data — 4-bit is their recommended coding profile); and they report an unresolved bug where the RAM tier stopped restoring cached sessions during a long heavy-load run, which is precisely the coding-agent scenario the feature exists for. The GSQ-RCO head-to-head in the same post deserves the discount noted in the quality section — they scored a competitor's pack on their own harness.
Strata EXL3 fork¶
Strata EXL3 fork (nasone32/Strata-EXL3-fork, a fork of Strata through Ryutaku's EXL3 integration) is the one to watch if you're on RDNA3 rather than the RDNA4 crowd. It runs Flash-Next from turboderp's plain EXL3 packs instead of GGUF, and the pitch is the quant position, not the engine trick: EXL3 3.05 bpw sits in the quality class of a ~4-bit GGUF while decoding like a 3-bit one — so you get Q4-class quality at Q3-class speeds (the equivalence is the author's approximation; the plain packs carry no published evals, see the quality table). On the dev box (Ryzen 9 7950X, 96 GB, 2x RX 7900 XTX, Linux/HIP gfx1100) the November 12 update measured 87 tok/s at 3.05 bpw and 76.7 at 4.05 across two 512-token runs, +10-24% over the published build, with a single 7900 XTX + CPU-assisted experts (optional in-RAM repack, AVX-512BW required) doing 55-60 on code at 4.05. Prefill is flat at ~1,400-1,500 tok/s. Caveats from the fork's own README, all worth respecting: every number is an individual run, not a median, and continuations differ between the compared builds; only gfx1100 is validated — RDNA4 and every other family is community-testing territory; the peer-GPU + packed-CPU combination has an unresolved output-divergence bug and is refused by default; the MTP drafter isn't bundled, and without it these decode rates are not the expected baseline; MiMo V2.6 Flash is experimental at 25-30 tok/s on only one 2.20 bpw MOPD quant with a 77.4 GiB pinned expert arena. The author's stated goal is merging back upstream.