Repository navigation
ArcAngel v1.2.0
Released 2026-12-04.
Qwen4-35B-A3B joins Inkling 2 Mini, and Inkling 2 Mini is much faster. Arc B580 (12 GB), the default recipes,
through the server; llama.cpp (Vulkan) on the same card, model and quant.
Qwen4-35B-A3B (UD-Q2_K_XL, 96k context, 8-bit K/V; llama.cpp with its experts of 16 layers in system RAM, the least
that loads, no drafting):
| ArcAngel v1.2 | llama.cpp | |
|---|---|---|
| Short answer | 83 tok/s | 23 tok/s (3.5x) |
| New code | 107 tok/s | 23 tok/s (4.6x) |
| Rewriting a file | 148 tok/s | 23 tok/s (6.5x) |
| New code after 4k / 30k / 90k of source | 77 / 73 / 70 tok/s | 22 at 4k; 1.8 at 30k |
| Prompt reading at 4k / 30k / 90k | 1,306 / 1,292 / 1,258 tok/s | 307 at 4k; 38 at 30k |
Inkling 2 Mini (UD-Q2_K_XL, 96k context, 4-bit K/V, DFlash2; llama.cpp with its DSpark draft model):
| v1.1 | ArcAngel v1.2 | llama.cpp | |
|---|---|---|---|
| New code | ~90 tok/s | 135 tok/s | 33-38 tok/s (~3.8x) |
| Rewriting a file | ~140 tok/s | 272 tok/s | |
| New code after 4k / 30k / 90k of source | 75 / 71 / 52 | 117 / 95 / 78 tok/s | ~18 at 30k (5.3x); 90k does not fit |
| Prompt reading at 4k / 90k (drafter loaded) | 984 / 705 | 1,616 / 1,268 tok/s | ~225 at 4k (7.2x); 90k does not fit |
| Prompt reading, peak (8k, more free VRAM) | ~1,000 | ~2,500 tok/s |
- Qwen4-35B-A3B (Qwen), a second model with its own engine: 256 experts (8 a token, 3B active), Gated DeltaNet
and sparse attention, a built-in MTP block that ArcAngel drafts with../install.sh --model qwen4, API model
qwen4-35b-a3b, natively or in Docker../install.shasks which model to install (on cards with a Qwen4 recipe;
-ykeeps Inkling 2 Mini).- The experts live in pinned system RAM with a hot-expert cache on the card that the GPU manages itself (admitted
on a miss, copied inside the expert kernel), so every card runs both recipes: Q2 (UD-Q2_K_XL, the fastest)
and Q4 (UD-Q4_K_XL, better quality; B580: 49 / 52 / 68 tok/s short / code / edit, ~1,040 tok/s prompts).
96k context on the B580, 64k on the B570, up to 1M on the Pro cards (cards-qwen4.tsv). The B580 recipes are
tested; the rest are sized from each card's memory. - A fused decode path (several layers' small steps in one kernel, token counts fixed at compile time, the LM head
in a planar Q6_K layout), GPU argmax, and MTP plus copy drafting checked four tokens at a time. - 8-bit or 4-bit K/V cache (
--kv-bits): 8-bit where the card can spare it, 4-bit where it cannot. Accuracy
against llama.cpp (mean KL): Q2 0.013, Q4 0.009; the quantized caches within ~0.003. - Long prompts borrow the cache's last slots for their scratch while they run, so the cache is larger for decode;
prompt chunks of 2048 tokens where the cache holds 64+ experts a layer; the indexer's scoring on oneMKL. - Needs 32 GB of system RAM for Q2 and 48 GB for Q4 (the 11.5 GB n-gram table shared by both wants to stay in the
page cache). Lunar Lake has no Qwen4 recipe yet.
- The experts live in pinned system RAM with a hot-expert cache on the card that the GPU manages itself (admitted
- Inkling 2 Mini: prompt reading up to ~2,500 tok/s, from ~1,000 in v1.1 (B580, an 8k prompt): the prompt path's
matrix multiplies on the matrix units through oneMKL, experts grouped across chunks, a new attention kernel, and
every prompt buffer planned at start-up. In the server's default setup (96k context with the DFlash2 drafter
loaded) 4k prompts read at 1,616 tok/s (984 in v1.1) and 90k at 1,268 (705); with more VRAM free (a smaller
context, no drafter, or a larger card) it reaches ~2,500. Details below. - Inkling 2 Mini: generation ~1.5x faster: new code ~90 -> 135 tok/s, a file rewrite ~140 -> 272, new code
after 90k of source 52 -> 78. Plain decode is ~20% faster (int8 dot products on the packed instruction) and
speculative decoding gains more (a learned check policy, 16-token checks, attention and the LM head of checks on
the matrix units). Details below. - README, installer, server and the repository description describe the engine, not one model; the README lists each
model with its performance and recipes.
Everything since v1.1.0, in detail:
-
Speculative decoding faster (B580, UD-Q2_K_XL, server at temperature 0): edits 227 -> ~265 tok/s, code
~150 -> ~160, an 87k-token prompt 63-72 -> 73-86; replayed greedy traces: code 141 -> ~170, prose 131 -> ~154.- The DFlash2 check-size policy learns how often its confidence bins are accepted while serving (the fitted
table is the prior), and its step / check costs are today's: the old defaults priced a check of 8 at 53 ms
(now ~27), so it almost never drafted 7 tokens. - Checks of up to 16 tokens on the fast path (longer ones took the prompt path: 270+ ms for 12). A copy draft that
was kept whole earns a 15-token draft next (ink_max_checktells the server the limit). - A check's full attention on the matrix units for checks of 8 and 16 (80k context: a check of 8 49 -> 39 ms),
the 16-token checks also for the sliding-window layers, with chunks that grow with depth so their partials fit
in the prompt pool. Sliding-window checks read V from local memory; the striped P.V no longer uses local float
atomics. - Decode attention with the 4-bit cache reads each V row once for the three query heads (80k: 4.6 -> 3.4 ms a
step). - The LM head of checks of 4 and 8, and of DFlash2 drafts, on the matrix units (check of 8: 1.23 -> 0.80 ms).
- The check buffers are part of the start-up memory plan.
- The DFlash2 check-size policy learns how often its confidence bins are accepted while serving (the fitted
-
Prompt reading with the drafter loaded faster (B580, UD-Q2_K_XL, 96k context, the server's setup; v1.1 read
4k / 90k prompts at 984 / 705 tok/s): 8k 1,214 -> 1,873 tok/s, 32k 1,354 -> 1,743, 86k 784 -> 1,379 (110 -> 62 s).
With a small context and no drafter 8k prompts still read at ~2,500 (1024-token chunks in groups of 8).- Prompt attention runs a new kernel where each sub-group owns its 8 query rows end to end: the softmax in registers
on the matrix units' results, 40 query tokens per work-group instead of 16 (each key read and unpacked from the
4-bit cache 2.5x less often), double-buffered K/V tiles. An 86k prompt's attention 41 -> 30 s. It no longer needs
the packed fp16 key window (67 MB at 1024-token chunks: room for larger groups).INK_FA2=1uses it only past
16k keys,INK_FA2=0not at all. - The automatic prompt chunk is chosen by a time-per-token model fitted to measurements; the previous score picked
256-token chunks whenever a little more VRAM was free (1,214 tok/s at 8k against 1,546 for 512). - One VRAM safety margin, 384 MB (
INK_MARGIN_MB), for the engine's plan and every load check: the engine kept
512 MB and the drafter another 512 MB of its own, so the drafter's load could fail on a desktop's normal swings.
The server reserves exactly the drafter's needs (360 MB) while the engine plans. Lowest free VRAM through a
server run: 352 MB (was 453). - The drafter gets the features of the prompt's last 1,088 tokens (was 2,112,
INK_TAP_HORIZON): the chunks
before them read grouped. Drafting is as good (code after a 29k prompt, a file edit), an 8k prompt 9% faster. - The prompt's last chunks, which feed the drafter, are read grouped too (the drafter's features of a group
collected side by side, the drafter fed once the group is done): an 8k prompt 1,692 -> 1,873 tok/s. - The memory plan's allowance for decode buffers is 16 MB (64 before; ~7 MB are allocated).
- Prompt attention runs a new kernel where each sub-group owns its 8 query rows end to end: the softmax in registers
-
Long prompts with DFlash2 ~25% faster: loading the drafter turned off the grouped (visit-major) prompt path for
the whole prompt, though the drafter only needs the last ~2k tokens' features. The chunks before them now take the
grouped path (B580, 96k context, an 86k prompt: 110 -> 83 s). -
Docker: apt retries downloads (a Launchpad PPA outage failed the nightly image build with exit code 100).
-
Fix: on two cards, DFlash2 no longer fails to load at large contexts (192k on two B580s, issue #15). The
speculative checks' command graphs, and the check buffers they need, were built when the engine loaded, before
the drafter, in VRAM the start-up planning did not count. They are now built before the first check, after the
drafter; if they no longer fit, checks are submitted directly (asINK_TP_VGRAPH=0does). -
Fix: the release image did not build since the int8 dot-product change (the SPIR-V extension flag needs a target
per device when the build compiles for several). -
Prompt reading ~2.5x faster (B580, UD-Q2_K_XL, an 8k prompt in
bench-prefill: ~1,000 -> ~2,500 tok/s; ~2,700
with more free VRAM). The prompt path's matrix multiplies now go through oneMKL's SYCL BLAS: weights unpacked to
fp16 and multiplied on the matrix units by the library, experts one at a time. Chunks of 2048 tokens run each
layer's experts for a group of chunks together (twice the tokens per expert, weights unpacked once a group); the
group size follows the free VRAM. On by default when oneMKL is found at build time: the installer offers to
install it (intel-oneapi-mkl-syclon Arch,intel-oneapi-mkl-sycl-develfrom Intel's repository on
Debian/Ubuntu/Fedora, ~2 GB on disk); without it ArcAngel builds as before.-DINK_MKL=OFFbuilds without it;
INK_DQ=0/INK_DQE=0/INK_VGROUP=1turn its parts off at run time. The Docker image includes it (the
four libraries ArcAngel loads, 176 MB): same prompt speed as a native build (B580, 8k prompt: 2,483 tok/s).
Server defaults (96k context, 4-bit KV): 1,038 -> 2,048 tok/s. -
Prompt memory planned at start-up: every prompt buffer (including the attention bias table and packed K/V
window, which were allocated on the first prompt and never counted) is sized and allocated when the engine
starts, so a setup that loads runs every prompt at the same speed and cannot run out of VRAM mid-request. The
automatic prompt chunk prefers a smaller chunk with oneMKL over a larger one without it;INK_MEM=1prints
the plan. On two cards no visit-major memory is planned (it does not run there). -
Offload: prompt reading ~3.3x faster (B580, UD-Q4_K_XL with the single-pass layers' experts in system RAM,
96k context: 8k prompt 653 -> 2,144 tok/s). The offloaded experts now go through the oneMKL path too, read by
its unpack kernels straight from system RAM, once per group of chunks. The group's scratch shares the hot-expert
cache's VRAM while a prompt is read (the cache is refilled after it, as before), so the cache keeps 13 experts a
layer of the 16 it had (the rest goes to the prompt buffers every prompt needs). -
Decode ~20% faster (B580, UD-Q2_K_XL: 69.7 -> 84 tok/s at short context, 78.7 at 8k) and speculative
checks ~30% cheaper (8 tokens 41 -> 29 ms): int8 dot products now compile to the packed instruction (the SYCL
helper they used unpacked every operand byte by byte), the codebook tables are staged in local memory for the
expert gate-up, the LM head and IQ3_XXS rows run on int8, the MXFP4 layer is converted exactly to NVFP4 at load,
and the depth mix, top-k and a few small steps were rewritten or fused. Same results (llama.cpp reference KL
unchanged). -
Arc 130V (Lunar Lake), and Lunar Lake laptops with 16 GB: the 130V and 140V share a PCI ID and both come
with 16 or 32 GB of memory, so the installer picks the recipe by memory (16 GB: UD-Q2_K_XL at 32k, or UD-IQ1_S at
64k) and names the GPU from the CPU (Core Ultra 5 2xxV: 130V). Same build as the 140V (lnl_m); not yet run on
a 130V or a 16 GB machine. -
Decode no longer slows down with the context size you allocate: attention launched work for every 256-key
slice of the whole cache, not just the filled part (the command graph is recorded once), and the step that
combines the slices read them all. Empty slices now write nothing and the combine stops at the last token.
B580, 96k context: decode step 15.3 -> 14.8 ms and a check of 8 tokens 41.7 -> 39.6 ms, now the same as at 8k.
Arc Pro B70 at 512k (issue #13): code 104.9 -> 119.5 tok/s on one card; two cards 132.1 -> 154.3 at 512k and
119.7 -> 154.8 at 1M (1M was 9-10% slower than 512k; now the same). -
Two cards: speculative checks run as recorded command-graph segments between the exchanges, like decode
(they were submitted kernel by kernel);INK_TP_VGRAPH=0goes back.INK_TP_TIME=1prints where a step's time
goes (each card's GPU, waiting for the other card), andINK_TP_SPIN=1polls instead of sleeping. On two B70s
(issue #13) the graphed checks halve the exchange cost (~1.75 us an exchange, 0.8% of a step); spinning gains
nothing there and stays off. -
Prompt chunk 2048 by default on big chips (>= 32 Xe-cores, the Pro B70): +4.5% prompt reading on two B70s; the
other cards keep 1024 (no gain on a B580).ARCANGEL_CHUNKin arcangel.env sets it (issue #13). -
Fix:
ARCANGEL_DEVICEin arcangel.env was ignored (server/run.shdid not export it) (issue #13). -
Installer: with
--no-deps, missing packages now come with the command that installs them (e.g. Ubuntu 26.04
withoutpython3-venv); Ninja is suggested when missing. Ubuntu 26.04 added to the tested list (issue #13).