Every version of the inference engine from the Inkling 2 Mini for Inkling 2 Mini experiment: Inkling 2 Mini, running in ELLIS, writes a task-specific inference engine for itself, for one workload (read a codebase locally and answer questions about it: small batch, long input, short output), against the latest llama.cpp.
The write-up: https://ellis-x.github.io/post-inkling2-engine.html
Each branch is one session's final engine. A session starts from an earlier one, so each branch is committed on
top of its parent's branch and git log <branch> walks that version's lineage. The best engine is s027
(1.49× llama.cpp: first token 889 ms vs 1,755 ms, 57 vs 51 tokens/s); s030 re-measured the same default engine
at 1.495×. Rejected sessions failed the hidden evaluation's quality gates or produced no score.
| Branch | Started from | Score vs llama.cpp | What the session did |
|---|---|---|---|
s000 |
— | — | The stub: an empty engine skeleton, the contract and the dev tools |
s001 |
s000 | 1.028× | First engine, on MLX |
s002 |
s001 | 1.197× | A flat, compiled decode loop |
s003 |
s002 | 1.259× | Fused Metal kernels |
s004 |
s003 | 1.269× | Explored levers, kept none new |
s005 |
s002 | 1.255× | Fused attention projections |
s006 |
s003 | 1.276× | Argmax inside the graph |
s007 |
s004 | 1.281× | Smaller KV cache |
s008 |
s007 | 1.297× | Short-conv kernel in prefill |
s009 |
s005 | 1.276× | Fused depthwise conv |
s010 |
s009 | 1.282× | Kernel launch fix |
s011 |
s000 | rejected | A llama.cpp-based engine: no score |
s012 |
s000 | 1.236× | Start over from the stub |
s013 |
s008 | 1.278× | Prompt-lookup decoding: too few drafts |
s014 |
s008 | 1.303× | Decode kernels, small gain |
s015 |
s014 | 1.329× | Faster prefill: compiled gates |
s016 |
s012 | 1.381× | s015's kernels on s012's line |
s017 |
s016 | rejected (1.450×, failed a quality gate) | 4-bit lm_head: fails the quality gate |
s018 |
s016 | 1.380× | Fixed NVFP4 kernel flips a token: left out |
s019 |
s016 | rejected | A draft model, DFlash2: no result |
s020 |
s016 | 1.392× | DFlash2 drafts work, but are not faster |
s021 |
s020 | 1.387× | A byte-floor table: 10.5 ms per token |
s022 |
s020 | 1.384× | 8-bit attention: faster, but MMLU drops |
s023 |
s022 | rejected (1.450×, failed a quality gate) | 8-bit everywhere: fails the hidden quality gate |
s024 |
s022 | 1.394× | A drift test puts 8-bit on layers 18-23 only |
s025 |
s024 | 1.393× | Prefill profiled; a dead write removed |
s026 |
s025 | 1.486× | A pipelined decode loop |
s027 |
s026 | 1.494× best | The first-token fix |
s028 |
s027 | 1.479× | Warm-up compile: no change |
s029 |
s027 | 1.484× | The DSpark drafter, re-measured |
s030 |
s029 | 1.495× | Multi-row verify is 85% exact: speculation dropped |
s031 |
s030 | 1.463× | A ported MoE kernel: +1%, left off |
s032 |
s031 | 1.481× | NAX prefill attention: below the bar |
s033 |
s032 | 1.469× | Measured: the prefill is GPU-bound |
Scores are the geometric mean of the decode-speed and first-token-latency speedups over llama.cpp on the same
machine, from the hidden evaluation. Each branch has the agent's own notes in NOTES.md. Benchmark and evaluation
data (the speed prompt, MMLU questions, tokenised perplexity windows), debug dumps, build outputs and a few debug
scripts that hard-coded the speed prompt's opening tokens are not included. engine/vendor/ holds vendored copies of mlx-lm, mlx-vlm and llama.cpp under their own licenses.
This branch (main) is the stub every line started from.