Head-to-head comparison across 6 inference engines (+ autoregressive baselines) measuring real coding throughput across configured context limits (32K / 64K / 128K) and prompt context lengths (1K โ 96K), full 164/164 HumanEval & HumanEval+ coding accuracy, prefix cache reuse, and live Docker SWE agent runs.
| Engine โ | Format & Speculator | HE+ Pass@1 โ | HE Base โ | pi 1.8.0 โ | Coding Decode โ | 32K Decode โ | 96K Decode โ | 96K Prefill โ | 5-Turn Cache โ | RSS (GiB) โ | Phys FP (GiB) โ |
|---|
nanoattention, Splash, oMLX, and mlx-lm run Qwen4-35B-A3B-MLX-4bit (with DFlash2 drafter for the first three); trymirai/uzu runs its own repackaged Qwen4-35B-A3B-M checkpoint with Weaver speculative tree; llama.cpp b13023 runs official ggml-org/Qwen4-35B-A3B-GGUF Q4_K_M + mtp-Q8_0 (and autoregressive no-spec reference) with -fa on -ngl 99 --lazy-mode auto.phys_footprint: Both ps -o rss= (resident host pages) and footprint -p (phys_footprint, dirty/wired Metal/IOSurface + anonymous memory) are reported. Unfaulted Metal/mmap pages behave asymmetrically: nanoattention v0.3.71+memopt keeps CPU RSS near 0.13 GiB while holding 20.0 GiB phys_footprint in GPU buffers; llama.cpp maps clean GGUF pages into CPU RSS (22.9โ35.3 GiB) with low initial phys_footprint (1.63โ9.71 GiB).tools/tool_calls with prefix caching enabled, SHA-256 public test tamper checks, and hidden adversarial unittest grading. Failures on MLX-4bit engines were primarily greedy temp=0 output-length loops (finish_reason=length @ 4096), not tool-protocol failures.cached_tokens == 0 via unique session prefixes, cache_salt (Splash), --no-cache (oMLX), --no-prefix-cache (uzu), cache_prompt: false (llama.cpp), and mx.clear_cache() (mlx-lm).sha256(task_id)[:8]) rather than random UUIDs so output parity vs stock mlx-lm reflects true numerical/speculative equivalence. Note on HumanEval/32: normalized upstream HF _poly typo to official evalplus v0.1.10 oracle (abs(_poly(*inp, candidate(*inp))) <= 1e-4).