arcint logo: an arc over a small neural network

# arcint An inference server for Intel Arc Pro B70 and B60 (Battlemage): OpenAI-compatible endpoints for a short list of models. The 32 GB B70 serves the 512-expert Qwen3.8-Flash-Next at its full 262,144-token context with an expert cache in host RAM (decode 53.8 / 34.9 / 24.6 / 15.9 t/s at 4k / 65k / 131k / 261k tokens; the needle found at 104k). The 24 GB B60 serves the dense Qwen3.8-27B and, since 1.8.0, Thinking Machines' Inkling 2 Mini. Since 1.1.0 arcint also does text-to-image: Z-Image Turbo, Qwen-Image (lettering, German included), FLUX.2 klein with image editing, and an ESRGAN upscaler; since 1.2.0 voice and vision: image input to the chat endpoint, speech to text, and German text to speech that clones enrolled voices. The Arc A770 is retired: the hardware is no longer available, so no release gate runs on it after 1.7.0. Its numbers in this file are historical (last measured with 1.7.0); its last recorded state is [docs/a770-reference.md](docs/a770-reference.md). arcint runs GGUF files through libllama (llama.cpp at a pinned commit) with ggml's OpenCL backend and a published series of Intel kernels ([contrib/llama.cpp/patches](contrib/llama.cpp/patches)): K-quant and i-quant matrix products on the XMX units, the gated delta-net, decode and prompt attention, quantized KV, an expert cache for mixture-of-experts models larger than the card. Around it arcint owns the serving layer: the HTTP surface, chat templates, tool calls and reasoning, the sampler, named lanes, speculative decoding with the model's own MTP head, and context checkpoints so a follow-up or an edited message resumes instead of re-reading the conversation. Images come from [stable-diffusion.cpp](https://github.com/leejet/stable-diffusion.cpp)'s own `sd-server`, built against the same patched ggml tree, so the diffusion transformer runs on the same Intel kernels; two patches of the series were written for it (0057, a fused RoPE; 0058, the q8_0 GEMM on the XMX units), two more for the 1.1.1 models (0059, the 3D convolution of Qwen-Image's VAE; 0060, the upscaler's leaky ReLU). It is its own package and unit, `arcint-imggen` ([contrib/sdcpp](contrib/sdcpp), [docs/imggen.md](docs/imggen.md)). Voice and vision (1.2.0, [docs/speech-service.md](docs/speech-service.md), [docs/milestone-1.2.0.md](docs/milestone-1.2.0.md)) are three on-demand units on the B60. Image input and speech synthesis run in arcint's own binary through llama.cpp's `libmtmd`: OpenAI `image_url` parts on `/v1/chat/completions` with a multimodal projector (`--mmproj`), and `/v1/audio/speech` with Qwen3-TTS (`--tts`), whose voices are enrolled on the server: the API names a voice and never takes a reference recording. Speech to text is [whisper.cpp](https://github.com/ggml-org/whisper.cpp)'s own server built against the same patched ggml, its own package `arcint-stt` ([contrib/whisper](contrib/whisper)). For mixture-of-experts serving beyond the card's memory arcint follows the expert engines [Strata](https://github.com/Niko1221/Strata) and [FreeToken](https://github.com/FlashML-org/FreeToken) ([docs/campaigns/research-reference-audit.md](docs/campaigns/research-reference-audit.md)). [DESIGN.md](DESIGN.md) is the architecture, the rules and the state of play; [llm.txt](llm.txt) the machine-readable summary; [docs/llama-engine.md](docs/llama-engine.md) the engine's record, mechanism by mechanism. [docs/concepts.md](docs/concepts.md) the concept catalogue: the engine ideas for Intel Arc inference by mechanism, with the measured effect, the code location and what was tried and not adopted. **History.** Until 0.7.12 arcint also had an OpenVINO engine, on a patched OpenVINO runtime. Its first design wrote SYCL off as broken under the xe driver; that came from a note about runtimes older than the xe transition and was wrong (see "Why not just use ..." below). The engine was retired in 0.8.0; its design and record are at the tag [`openvino-history`](https://github.com/marfrit/arcint/tree/openvino-history) ([docs/history.md](docs/history.md)). ## arcint measured the llama-bench way The A770 rows in this section and the next are historical (card retired, last measured with release 1.7.0); the B60 rows are current. llama.cpp's community GPU tables ([Vulkan](https://github.com/ggml-org/llama.cpp/discussions/10879), [SYCL](https://github.com/ggml-org/llama.cpp/discussions/23313)) compare cards on one file, Llama 2 7B at Q4_0: every layer on the card, 512 tokens of prefill (pp512), 128 tokens of decode (tg128), 5 repetitions. [tools/llama_scoreboard.py](tools/llama_scoreboard.py) gives arcint the same run, and it refuses a file with another sha256. | Card | Engine | Flash attention | pp512 t/s | tg128 t/s | |---|---|---|---|---| | Arc A770 16 GB (retired, 1.7.0) | **arcint's series, llama-bench** | on | **2816.12 ± 2.12** | **70.60 ± 0.03** | | | **arcint, served** | on | **2611.39 ± 1.09** | **70.45 ± 0.03** | | | SYCL fp16, here | on | 1457.24 ± 4.00 | 73.66 ± 0.02 | | | SYCL fp16, here | off | 1876.79 ± 10.29 | 68.72 ± 0.02 | | | SYCL fp32, here | on | 771.97 ± 1.75 | 73.06 ± 0.03 | | | SYCL fp32, here | off | 859.88 ± 1.66 | 68.71 ± 0.05 | | | Vulkan, here | on | 1123.84 ± 2.00 | 46.90 ± 0.01 | | | Vulkan, here | off | 1089.27 ± 1.17 | 46.11 ± 0.01 | | Arc Pro B60 24 GB | **arcint's series, llama-bench** | on | **4413.44 ± 7.98** | **81.86 ± 0.14** | | | **arcint, served** | on | **3986.35 ± 3.09** | **80.72 ± 0.01** | | | SYCL fp16, here | on | 933.23 ± 0.42 | 84.32 ± 0.08 | | | SYCL fp16, here | off | 1891.17 ± 2.77 | 79.98 ± 0.13 | | | SYCL fp32, here | on | 668.42 ± 0.11 | 84.30 ± 0.08 | | | SYCL fp32, here | off | 572.10 ± 0.16 | 80.22 ± 0.14 | | | Vulkan, here | on | 726.81 ± 0.38 | 68.06 ± 0.01 | | | Vulkan, here | off | 729.87 ± 0.70 | 65.25 ± 0.01 | The arcint rows are `measured-here` on 1.5.3 (2026-11-06, f16 KV, MTP off, the A770's GT clock pinned at 2000 MHz): llama-bench itself built on arcint's llama.cpp series, and arcint's own server through the tool above. The rows marked "here" are `measured-here` too: stock llama-bench at the same llama.cpp pin (3e4dfa8, no arcint patches), oneAPI 2026.1.1, Level Zero V2, the same card, host and clock. The Vulkan rows are stock llama.cpp at master 45b6604b2 on Mesa 25.0.7 (the pin within 0.5 %); the A770's Vulkan decode is below the 53 t/s reported in the Vulkan thread on another host, and its clock here was held at 2000 MHz. The series' prefill rows are int8 DPAS on this weight type, patch 0099: a mean KL of 0.00105 nats against the CPU reference over whole chunks, 0.00043 one token a ubatch, 8 fact questions right. Against stock SYCL's best prefill (fp16 without flash attention), the series leads by 50 % on the A770 (historical) and 133 % on the B60. Against its best decode (fp16 with flash attention), it trails by 4.2 % and 2.9 %. SYCL's legacy Level Zero adapter is a little faster at decode on the B60 (85.96 t/s, a 5.0 % gap) and slower on the A770 (58.93 t/s, historical). Other cards are in the threads: an Arc Pro B70 under Vulkan reports 4570.29 / 112.89, and no B70 row is measured here. **IPEX-LLM**, Intel's fork, reports higher rows in the same threads, so it was run here too (`measured-here`, the newest published wheel, 2.7.0b20260110, in a container on the same host, xe). Its prefill: 2825.67 on the B60 and 2603.55 on the A770 (historical), at a mean KL of 0.016 nats against the CPU reference, inside the answer-level bar; it led the series' 1.5.2 rows, and pricing that lead found patch 0099. Its decode, on this host: the B60 without flash attention decodes at 80.54 with right answers, while with flash attention (B60) or on the A770 at all, one-token decode came out wrong: KL 6.7 nats or infinite, wrong or gibberish answers, whatever the t/s says. Other builds and machines may differ. It also refuses the hybrid models arcint serves (`unknown model architecture`). What was learned from it: [research-concept-mining/ipex-llm](docs/campaigns/research-concept-mining/ipex-llm/README.md) (on the `qfndev` branch). **The same run, not the same program.** arcint serves the rows through its own path (HTTP, slot, sampler), which is what a client gets. A warm-up prefill and generation go uncounted. Each prefill is a new prompt of 512 random token ids and a run the prompt cache helped is refused. Each generation starts from one token and runs 128 tokens greedy with `ignore_eos`. The rates come from the engine's `/metrics` counters around each request, so HTTP time is not in them, and a request that stopped short is refused. The context is 4,096 tokens where llama-bench uses prompt + generation, 640 here; arcint's row is the same at both (1952.47 / 63.59 and 1954.62 / 63.57, before patch 0097). Serving costs a flat 14-17 ms a request against llama-bench on the same series (at 512, 1,024 and 4,096 tokens, both files below), and decode nothing. python3 tools/llama_scoreboard.py --arcint /usr/bin/arcint \ --model llama-2-7b.Q4_0.gguf --card "Arc Pro B60=24 GB=GPU.0" **What moved the rows.** Two patches. Dense Q4_0 is a type none of the served models use, and it ran on upstream's float kernels: patch 0096 puts it on the Intel integer-dot matvec and the XMX GEMM. Decode attention then cost more than the dense product it replaces at small depth: one sub-group walked 128 keys a split at any depth, and patch 0097 makes the split follow the KV's length. | Card | pp512 start -> 0096 | tg128 start -> 0096 -> 0097 | |---|---|---| | Arc A770 (retired, 1.7.0) | 362.73 -> 1956.15 (5.4x) | 39.48 -> 63.56 -> 70.22 (+78 %) | | Arc Pro B60 | 425.57 -> 2332.94 (5.5x) | 76.24 -> 75.77 -> 80.70 (+6 %) | 0097 reaches served models too: the production KV (q8_0:q4_0) on Llama 2 goes 54.89 -> 66.06 on the A770 (historical) and 68.63 -> 78.87 on the B60, and the coder's numbers are under "Numbers by release". The answers held: on both cards the mean KL against a CPU reference over 16 x 512 tokens is 0.00043 nats with each patch on and off, and all 8 fact questions come back right in every arm. **The coder's own file on the A770** (historical, the card is retired; `measured-here`, llama-bench shape, f16 KV, MTP off, 3 repetitions, before 0097; flash attention on, off in brackets): | Engine | pp512 t/s | tg128 t/s | |---|---|---| | arcint, served | 1144.74 ± 5.84 | 54.25 ± 0.01 | | llama-bench on arcint's OpenCL series | 1461.22 ± 4.77 (1433.00) | 54.65 ± 0.02 (58.98) | | stock SYCL fp32 | 696.06 ± 3.74 (692.11) | 55.30 ± 0.02 (57.42) | | stock SYCL fp16 | 493.41 ± 1.36 (492.50) | 54.70 ± 0.06 (57.40) | The series prefills this file at 2.1x stock SYCL. With 0097 the series under llama-bench decodes it at 58.65 with flash attention. The served row's prefill includes the context checkpoint that lets a follow-up resume instead of re-reading: 66-76 ms each, one or two a prompt, on hybrid models only, flat in the prompt's length (445 ms at 512 tokens with it, 369 without; 3,129 and 2,992 at 4,096). So 512 tokens overstate it: at 41k the served coder prefills at 784 t/s. Which SYCL build is faster also depends on the file. **Other files on the B60** (`--any-model`, `measured-here`, f16 KV, MTP off): | File | arcint, served | stock SYCL fp16, flash attention | stock SYCL fp16, without | |---|---|---|---| | Qwen3.6-35B-A3B Q4_K_M | 2331.85 ± 29.54 / 84.94 ± 0.16 | 1334.12 ± 3.59 / 83.41 ± 0.12 | 1330.41 ± 5.50 / 83.40 ± 0.10 | | Qwen3.8-27B Q4_K_M | 843.70 ± 5.02 / 19.90 ± 0.04 | 613.93 ± 0.11 / 20.82 ± 0.01 | 638.73 ± 0.35 / 20.83 ± 0.01 | Each row is the same file on the same card (3 repetitions). arcint leads the 35B on both numbers and the 27B on prefill, and trails the 27B's decode by 4.4 %. The services run faster than this on decode: MTP is off here, and on 1.5.1 the agent decodes 48.4 t/s with it (CHANGELOG). ## Loop guard for small models Small and mixture-of-experts coder models sometimes think themselves into a loop: the same line, or the same check with one number changed, comes back inside the think block until the token cap, and the turn ends without an answer. 1.2.3 adds a loop guard, **off by default** (`--loop-guard off|detect|nudge|slap|ladder`, the request field `loop_guard`; `/props` reports it under `sampler_defaults.loop_guard`). 1.2.4 adds the door rung, `door` and `ladder-nodoor` with it. **The ladder.** The detector reads only the reasoning, one line at a time (a line ends at a newline; it is stripped, and only lines longer than 20 characters count). Over the newest 200 such lines (`--loop-guard-window`) it keeps the share of lines that repeat an earlier one, either word for word or nearly: a character-3-gram Jaccard of at least 0.8 against one of the last 400 distinct lines (`--loop-guard-match near`, the default; `exact` counts identical lines only). At a share of 0.8 (`--loop-guard-threshold`) the loop is detected, once per crossing, with hysteresis at 0.7. Then, rung by rung: - **nudge**: one fixed sentence ("I am repeating myself. I will decide now and write the final answer.") goes into the reasoning as if the model had written it, once; - **slap**: if 40 more counted lines (`--loop-guard-grace`) still loop, the think block's closer is forced as the next token, by its token id, and the model answers; - **abort**: if the answer itself loops after a slap, the turn ends with `finish_reason` `loop`. The request field switches the guard for that request even where the operator left the flag off, as `think_eog_mask` and `tool_grammar` do, so a client can opt in. The nudge's tokens count as generated ones, so a presence or repetition penalty treats them as the model's own words for the rest of the turn. With speculative decoding a forced token ends the verify walk at its position and the drafts behind it are dropped. The response carries a `loop_guard` object (detections, nudges, slaps, aborts) when the ladder moved, and the decode line in the log counts the same. **The door rung (1.2.4).** Before the nudge, a model that has decided but cannot stop can close the block itself. At detection the sampler masks the vocabulary's multi-newline tokens: every id whose decoded piece consists only of newline characters and has two or more of them, while the think block is open; the single-newline token stays legal. Nothing is injected and no token is forced: the model draws normally and closes by its own draw, or the ladder goes on. The order is detect → door → nudge → slap → abort: the door opens at detection, stays open through the nudge and the slap, and is gone when the block closes. `--loop-guard door` is the mask alone (never nudge or slap), `ladder` includes the door, `ladder-nodoor` is 1.2.3's ladder exactly (the nudge at detection, no mask), so one binary can compare both; `--loop-guard-door-grace` (default 20) is the counted lines after detection before the nudge, and `/props` reports it. Once the door is open the ladder counts lines, not the share — the nudge at the door grace and the slap at its own grace whatever the repeat share — so a share that dips below the threshold without a close cannot run the turn to the token cap, and a `door`-mode mask that never gets a close lifts itself after the door and slap graces so the turn goes on as with the switch off. After a turn in which the door opened, the answer is watched too, so a looping answer ends the turn on `loop` from a clean detector window at the block's close, and restating a line or two of the reasoning once stays normal. While the door is open and the block is open, the turn-ending ids are also masked (never the closer, and not under `ignore_eos`), so the model cannot end the turn inside the open block, and `door_eog_masked` counts the draws that removed one. The response's `loop_guard` object counts `self_closes` (the block closed by the model's own draw while the mask was open, not by a slap) and `door_masked` (draws at which the mask was active and a masked token sat in the row's candidate set). **The door on the card** (`measured-here`, October 2026, the coder at its model card's thinking settings, seed 1, 64k-token cap). On the 9 tasks that had hit the cap in the screening, with the door in the ladder all 7 looping runs ended fully correct; all 7 closed by the model's own draw, 5 by the door alone within seconds of opening and 2 after the nudge, and no forced token was needed in the whole round. The same set without the door needed the slap 4 times. **How it was tested** (`measured-here`, October 2026). The coder (Qwen3.6-27B-A3B, then on the A770, now retired) was given 30 competitive-programming tasks published after its training cutoff, AtCoder Beginner Contest 475 to 480, problems A to E. Each answer was compiled and judged in a sandbox without network against an independent reference solution plus brute-force and generated tests. The coder ran at its model card's thinking settings with a 64k-token cap. First a screening without the guard, then the guard on the tasks that hit the cap, then the guard on the tasks that did not (the false-positive run). The line rule was chosen offline beforehand, over 42 recorded reasoning texts: exact matching missed a loop that counts upward in words, and masking the numbers instead put a clean enumeration over the threshold, so near matching it is. - **Screening:** 19 tasks fully correct, 2 answered partly wrong, 9 ended at the cap without an answer: 8 of them in a loop, 1 in long but genuine thinking. Loops hit easy tasks as well as hard ones. - **The guard on the 9 cap runs:** all 9 end fully correct. 4 loops closed after the nudge alone, 4 needed the slap, and 1 task did not loop on that run. - **The false-positive run:** all 21 other tasks, 19 fully correct. One wrong answer had no guard event (the coder varies from run to run; it was correct in the screening). Two of these tasks looped this time, and the guard caught both: the nudge fixed one; on the other the answer after the slap looped as well (its code comments re-checked one contradiction again and again), and the abort ended the turn without a program, where the screening, without the guard, had answered partly wrong. An earlier build triggered twice on code drafts written out several times (short indented lines passed the length bar unstripped); stripping the lines first fixed both. **What it does not heal.** The guard ends loops; it does not make a wrong algorithm right. An answer given after a full reasoning is set by that reasoning: re-sampling only the answers of the two partly wrong tasks (ten seeds in each of three sampling rows) gave one of them right 30 of 30 times, its reasoning was right and the screening's miss was bad luck in the answer, and the other wrong 30 of 30 times in the same way, because the algorithm in its reasoning was wrong. Of the two kinds of loop, "done but cannot stop" (the model has decided and keeps confirming it) and "stuck" (one sub-question asked again and again), the stuck kind gets an answer only because the close is forced, and not always: when the answer loops too, the abort ends it cleanly with `finish_reason` `loop`, but it does not produce a program. And it is a small-model tool: the dense Qwen3.8-27B agent did not loop on any of the 11 tasks the coder failed, and answered all 11 correctly. One observation from the probes: in a done-but-cannot-stop loop the model would close the think block with near certainty after a single newline, but keeps choosing a double newline instead, and the loop goes on; in a stuck loop it never comes close to closing. Prior art: vLLM's ThinkingLoopBreaker (token-cycle detection, then the reasoning end forced) is an open pull request; llama.cpp's issue for a line-based detector went stale. ## Models | service | model | served file | card | context | |---|---|---|---|---| | agent | Qwen3.8-27B (`qwen35`, dense, 64 layers, MTP layer) | Q4_K_M GGUF | Arc Pro B60 | 245,760 tokens, q8_0:q4_0 KV, MTP 5 | | coder (historical) | Qwen3.6-27B-A3B-Coder (`qwen35moe`, 184 experts, MTP layer) | a searched per-layer quant mix (14.6 GB) | Arc A770, retired; last run with 1.7.0 | 98,304 tokens, q8_0:q4_0 KV, MTP 4 | | Flash-Next | Qwen3.8-Flash-Next (`qwen4exp`, 125B-A6B, 512 experts, n-gram table) | ISTA-DASLab's IQ3_S GGUF since 2026-10-20 (IQ3_XXS and IQ2_XS as the faster options) through an expert cache: the hot experts in VRAM, the rest in host RAM, read over the link or computed on the CPU; its MTP layer from the checkpoint | Arc Pro B60 + host RAM, on demand | 131,072 tokens, q8_0 KV, MTP 3 | | Inkling | Inkling 2 Mini (26.4B total / 3.4B active MoE) | IQ4_NL GGUF from ggml-org's conversion | Arc Pro B60 | see "Inkling 2 Mini" below | | writer | Cydonia 24B v4.3 (Mistral Small 3.2, `llama`) | imatrix Q4_K_M | Arc Pro B60, on demand | 98,304 tokens, q8_0 KV | | images | Z-Image Turbo (6B DiT) with the Qwen3-4B-Instruct-2507 encoder and the FLUX autoencoder | Q8_0 GGUFs, `ae.safetensors` | Arc Pro B60, on demand | 1024x1024, 8 steps | | images, lettering | Qwen-Image (20B MMDiT) with the Qwen2.5-VL-7B encoder and the Wan VAE | Q4_K_M GGUFs | Arc Pro B60, on demand | 1024x1024, 20 steps | | images, editing | FLUX.2 klein 4B with the Qwen3-4B encoder and its own VAE; ESRGAN 4x on every image unit | Q8_0 GGUFs | Arc Pro B60, on demand | 1024x1024, 4 steps; `/v1/images/edits` | | vision | Qwen2.5-VL-7B-Instruct (`qwen2vl`) with its vision projector | Q4_K_M GGUF + Q8_0 mmproj | Arc Pro B60, on demand | 32,768 tokens, q8_0:q4_0 KV; `image_url` data URIs | | speech out | Qwen3-TTS-12Hz-1.7B-Base (`qwen3tts`) with its audio-generation projector (speaker encoder, code predictor, acoustic decoder) | Q8_0 GGUF + Q8_0 mmproj with the code head and embedding at f16 | backbone on the Arc Pro B60, the projector on the CPU; on demand | German; enrolled voices only | | speech in | Whisper large-v3-turbo (whisper.cpp) | whisper.cpp's `.bin` | Arc Pro B60, on demand | German first; `/v1/audio/transcriptions` | The engine admits these architectures (`qwen35`, `qwen35moe`, `qwen4exp`, `llama` at the Mistral Small 24B and Llama 2 7B geometries, `qwen2vl` for vision, `gemma4` at the E4B geometry, `granite` at the 8B geometry, `dory` at the 1.0-4B geometry, `inkling2_loop` at the Inkling 2 Mini geometry (24 physical blocks x 2304, 24/8 heads), and under `--tts` `qwen3tts`) and refuses others at load, an untested size of an admitted architecture included. Gemma 4 E4B and Granite 4.2 8B were admitted 2026-11-06 from their files' metadata and templates (`code`); Dory1.0-4B (a looped nGPT, with `--llama-dory-loops` and `--llama-dory-kv`; since then also the opt-in `--llama-dory-max-loops`, a loop count per request) on 2026-11-07; Inkling 2 Mini on 2026-11-22, served on the B60 (DESIGN §2). Flash-Next's other files are on-demand options on the same endpoint: IQ2_XS, faster and less exact, and UD-Q3_K_XL, inside the KL bar once the host has the RAM for its bank (DESIGN §7.2). ## Inkling 2 Mini (1.8.0) Thinking Machines' Inkling 2 Mini is a mixture-of-experts model with 26.4B parameters in total and 3.4B active per token. Its core is 12 blocks run three times, attention carries a relative-position bias, and the context is 1M tokens. arcint serves the GGUF from ggml-org's conversion; IQ4_NL weights are used here. It runs on the Arc Pro B60 with flash attention that carries the model's relative bias and sinks inside the OpenCL kernels. `measured-here`, one Arc Pro B60 at a 165 W power cap (the B70 row: one Arc Pro B70 at 220 W), IQ4_NL weights, llama-bench, two repetitions. pp512 is a prompt of 512 tokens, tg128 is 128 generated tokens, measured at a context depth of 0, 4,096 and 32,768 tokens. | Engine | pp512 t/s at depth 0 / 4,096 / 32,768 | tg128 t/s at depth 0 / 4,096 / 32,768 | |---|---|---| | arcint 1.8.0 (OpenCL), flash attention on, B60 | 429.1 / 397.4 / 337.5 | 36.6 / 33.7 / 29.9 | | arcint 1.8.0 (OpenCL), flash attention on, B70 (220 W cap) | 671.9 / 640.6 / 561.4 | 45.3 / 41.6 / 39.0 | | arcint at first light (the port and the flash-attention bias, before the speed work) | 183.9 / 177.5 / 164.1 | 24.0 / 22.6 / 20.8 | | mainline llama.cpp, Vulkan backend, same tool and card | 33.3 / 32.3 / 30.1 | 8.3 / 10.1 / 10.2 | The llama-bench rows run with window-sized sliding-window caches (llama-bench sets `swa_full = false`); the 1.8.0 server keeps the full-size cache, which lets the sliding-window layers attend over every cached key, so its decode at depth is lower: after a 15,790-token prompt on the B60, 20.5 t/s with q8_0 KV and 24.3 with f16 (`measured-here`), against the bench's 30.4 / 31.9 at 16,384. Window-sized caches with checkpoints for prefix reuse are 1.8.1 work. The B70 gives the same answers (mean KL against the CPU reference identical to the B60's, the acceptance task 10/10 at effort low) and is 57-66 % faster on the prompt, 23-30 % on generation: Inkling's decode is bound by the number of small kernel launches more than by memory bandwidth. Against Vulkan on the B60, arcint is 11-13x faster on the prompt and 2.9-4.4x on generation. The speed work after first light: small copy kernels for the model's tiny concatenations (0147), the depth mix as one stack (0148), the strided sigmoid (0149) that keeps the expert activation on the card instead of one CPU round trip per expert layer, and the expert activation as one fused op (0150). With q8_0 KV the needle is found at 64,000 and 120,000 tokens (the B70 at 131,072 cells); the mean KL against the CPU reference at 32,768 tokens is 0.006. Answers: the acceptance task (a Lua CSV parser to RFC 4180, scored by executing the candidate code) passes 10/10 at reasoning effort low and at medium; the capital of France comes back as Paris; tool calls work. The model's reasoning depth is set with `reasoning_effort`; its chat template ignores `enable_thinking`. ## Numbers by release The A770 and coder figures below are historical (card retired, last measured with 1.7.0 or earlier); the B60 figures were measured on the B60. Patch 0097 against the deployed build (2026-11-05, `measured-here`, one window): the coder (A770, historical) on its deployed flags, MTP on, 12 answers a run, 74.65 -> 82.78 t/s (+10.9 %), a verify step 26.2 -> 24.1 ms, draft acceptance 72.9 -> 71.9 %; the release A/B's decode 53.70 / 51.50 / 47.40 -> 58.70 / 59.65 / 55.90; the task at 10/10 three times. The agent is equal, 47.71 -> 47.76 t/s, because its verify rows take another kernel; the needle right at 254,970 tokens in 725 s, peak 24,190 of 24,480 MiB; prefill, the writer and the vision service unchanged, with the same answers. Flash-Next's A/B is red on its variance rule, accepted (operator, 2026-11-05): 32.97 -> 33.33 t/s with a spread of 10.8 % against 5.5 %: its answers differ in every run, and draft acceptance moved between 64 and 74 % with them. The night ladder of 2026-11-05 (`measured-here`, the build 31e021e4, 1.5.0 + patches 0095 and 0096 + the reasoning-effort rework, alternated with 1.5.0's binary in one window): the agent's prefill +1.6 % at 55k (707.2 t/s) and +1.1 % at 138k (500.0), same answers; the needle right at 254,970 tokens in 725 s, peak 24,133 of 24,480 MiB; Flash-Next passes at 537.7 t/s prefill and 32.67 t/s decode; the coder (A770, historical) 783.9 t/s at 41k (+0.8 %) and the task at 10/10 three times; the writer's decode +4.9 %, the vision service's +7.4 %. One cell of that ladder is red and accepted (operator, 2026-11-05): the coder's `decode-b`, 53.75 -> 51.50 t/s. Patch 0095 computes the KV rotations as a Walsh-Hadamard transform, which moves their rounding. That answer's text moved with it and drew fewer accepted drafts (39.2 -> 33.7 %) while its verify step got faster (34.7 -> 32.5 ms); `decode-a` and `decode-c` gained 2.3 and 2.6 %. Over 12 answers a run, two rounds an arm, with the patch off and on: the coder 72.0 -> 74.9 t/s (+4.0 %), acceptance 72.30 -> 72.35 %; the agent 46.3 -> 47.5 t/s (+2.7 %), acceptance 47.1 -> 46.7 %. KL against a CPU reference stays inside the answer-level bar: 0.0049 -> 0.0041 nats in prefill, 0.00686 -> 0.00687 in decode. 1.2.2 and 1.2.3 (2026-10-23/24, `measured-here`, the pre-tag packages): coder, agent and Flash-Next equal to the previous release in the same-window A/B with the new switches off; the acceptance task 5/5 at 10/10 greedy on the coder and the agent, and the coder with its 1.2.3 flags (loop guard, non-thinking row) 30/30 at 10/10 at temperature 0.7. 1.2.1 (2026-10-20, `measured-here`, the pre-tag package, the B60): Flash-Next IQ3_XXS decodes 38.1 t/s on six answers (1.2.0: 33.9), prefill 622 t/s at 20k, KL 0.217 against Q8_0, the answers right; the other services as below. 1.2.0's release check (2026-10-19, `measured-here`, the pre-tag packages, `docs/milestone-1.2.0.md` §9.11): the agent and the coder alternated with 1.1.1's binary are equal to it (709.4 / 498.9 t/s at 55k / 138k on the B60; 51.1 / 47.6 / 44.1 t/s decode and 725 t/s at 41k on the A770, historical), with the same answers byte for byte and the task at 10/10 and 9/10. The new services on the B60: vision 9/9 on the content check; speech out at 1.12× real time (182.96 s of audio in 163.84 s) with a round-trip word error rate of 0.026 on 46 German sentences; speech in at a word error rate of 0.055 on 12 FLEURS German clips, equal to the CPU. 1.1.0's pre-tag check (2026-10-18): the release package with each unit's flags, alternated with 1.0.0's binary in one window (two runs each, Flash-Next three), the model on the NVMe, `measured-here` on the named card; the IQ2_XS row is 0.8.0's. "task" is the acceptance task: a Lua CSV parser to RFC 4180, ten named cases, the candidate code executed, one point per case, at temperature 0. | service | card | prefill | decode | answers | |---|---|---|---|---| | agent | B60 | 708.7 t/s at 54,895 tokens, 498.5 at 138,028 | not in this check (38.9 / 25.6 / 16.6 / 13.5 t/s at 4k / 55k / 130k / 200k, 2026-10-16, the DFlash2 campaign's MTP 5 arm at 212,992 ctx) | the needle at 138k; task 10/10 | | coder | A770 (retired, historical) | 724.3 t/s at 40,841 tokens | 51.1 / 47.5 / 44.0 t/s on three 300-token answers | the needle; task 9/10 | | Flash-Next, IQ3_XXS | B60 + 28.7 GiB host bank | 617.2 t/s at 20,045 tokens (asked right after the capital) | 35.2-35.4 t/s | the needle | | images, Z-Image Turbo | B60 | | 1024x1024, 8 steps: 2.14 s a step, the VAE 6.12 s, ~23.4 s a request (1.1.1-1 package, 2026-10-23); was 6.3 s / ~23.5 s on 2026-10-18; 512x512: 0.48 s a step | the image gate against a CPU reference: 42.6 dB | | Flash-Next, IQ2_XS option | B60 + 20.3 GiB host bank | 665.6 t/s, the same protocol | 42.3 t/s | the needle | Every speed is equal to 1.0.0's in the same window or faster (the release gate, `tests/acceptance/ab.py`): the agent's and Flash-Next's prefill gained 1-4 % from patch 0058, which runs their MTP heads' Q8_0 weights on the XMX units in the prompt pass. sd.cpp's own Vulkan backend on the same card takes 7.64 s a 1024² step; the dev host drifts by up to 0.3 % on prefill and 1 % on decode over a day, so numbers from different windows differ by that much. Strata's own engine (its SYCL port) on the same B60: 620 t/s at the 20k needle and 37.8 t/s decode on its own request, where arcint decodes 43.8-44.0 (`measured-here`, 2026-10-14/15). Quality: KL against a Q8_0 or CPU reference, 16 x 512 tokens. The agent's q8_0:q4_0 KV 0.0057 nats; the coder's searched quant (A770, historical) 0.0237, inside the answer-level bar against its Q4_K_M; Flash-Next IQ3_XXS 0.218 nats, top-1 89.7 % (IQ2_XS 0.294, 87.1 %), an accepted shortfall (UD-Q3_K_XL: 0.100, 93.3 %). ## Building C++20, CMake >= 3.20, no network at build time (`third_party/` holds cpp-httplib, nlohmann/json and minja). The device-free build serves the HTTP surface from a stub and is what the unit tests run against: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release cmake --build build ctest --test-dir build --output-on-failure -L unit ./build/arcint --stub --port 8090 -v A serving build needs a llama.cpp tree at the pinned commit (`3e4dfa8`) with `contrib/llama.cpp/patches` applied, and the OpenCL headers and ICD loader: /contrib/llama.cpp/apply-series.sh cmake -S . -B build-ll -DARCINT_LLAMA=ON -DARCINT_LLAMA_DIR= \ -DCMAKE_BUILD_TYPE=Release -DGGML_OPENCL_USE_ADRENO_KERNELS=OFF \ -DARCINT_GIT_SHA=$(git rev-parse --short=12 HEAD) cmake --build build-ll -j"$(nproc)" Pass `-DARCINT_GIT_SHA` whenever the tree has no `.git`; without it `--version` and `/props` report `unknown`. `-DARCINT_WERROR=ON` is the warning-clean build CI uses. [DEVELOPMENT.md](DEVELOPMENT.md) has the test ladder. A build that should serve TLS adds `-DARCINT_TLS=ON` (it finds and links OpenSSL) and takes `--tls-cert`/`--tls-key`. The default build refuses those flags and links no OpenSSL, so the Debian package's dependencies do not change. **The GPU runtime on a fresh host.** Debian trixie ships no Intel compute runtime in any component; install Intel's release `.deb`s from [intel/compute-runtime](https://github.com/intel/compute-runtime/releases) with the IGC and gmmlib versions its release notes name, plus `ocl-icd`. Every number here was measured on compute-runtime 26.27.39122.11 with IGC 2.38.2, under the xe kernel driver. **Packaging.** `contrib/packaging/arcint/build-deb.sh` builds the Debian package from the release tarball and the llama.cpp pin, with ggml-cpu built native (and checked for AVX2); `contrib/packaging/arcint-imggen/build-deb.sh` builds the image service's package (`arcint-sd-server`, `arcint-sd-cli`) from the same tarball, the pin and stable-diffusion.cpp's tarball at `f0aac52`. **Containers:** `docker/Dockerfile.arcint` and `.github/workflows/build-toolbox.yml`; see [docs/docker.md](docs/docker.md). ## Running arcint --engine llama --gguf Qwen3.8-27B-Q4_K_M.gguf --device GPU.0 \ --host 0.0.0.0 --port 8087 --served-model-name qwen3.8-agent \ --n-ctx 245760 --llama-kv q8_0:q4_0 --llama-mtp 5 --queue-timeout 30 `--device GPU.N` is the N-th GPU in OpenCL's enumeration, or a substring of the device name. The units in [contrib/systemd](contrib/systemd) carry each service's production flags, Flash-Next's expert cache included ([docs/llama-engine.md](docs/llama-engine.md), "Flash-Next"). - A prompt longer than the context is refused with HTTP 400 and the numbers; arcint never truncates or shifts a conversation (DESIGN §3.8). - Named lanes (`--served-model-name A,B --lane-ctx CA,CB`) serve two names with their own contexts from one copy of the weights; the request's `model` field picks the lane. - Speculative decoding drafts with the model's own MTP head. A DFlash2 drafter is opt-in (`--llama-dflash-gguf`, [docs/llama-engine.md](docs/llama-engine.md)): on the dense agent it is faster on short code answers, slower on prose and at every measured depth (-8 % at 4k to -36 % at 200k), it costs VRAM, and at 212,992 tokens its acceptance task scored 0/10 (MTP 10/10, not attributed), so the agent's unit keeps MTP. - One process holds its card's VRAM for its whole lifetime: whatever else was serving that card has to stop first. - **No authentication by default, permissive CORS, no TLS.** `--api-key` (or `--api-key-file PATH`) adds a bearer token on every route but `/health` (GET/HEAD only) — `/props`, `/metrics` and `/slots` included, an unknown path too, and the check runs before the request body is read. A 401 names the scheme (`WWW-Authenticate: Bearer`); a CORS preflight (an OPTIONS with `Access-Control-Request-Method`) is answered without the key. An empty or newline-only key file, a key with a control character or DEL, or one that starts or ends with a space is a boot error; a group- or world-readable key file warns. The server keeps only the key's sha256 digest in its long-lived state. `--api-key` is visible to local users in `ps`, so deployments use `--api-key-file`. `/health` stays open and reveals the served model id. A `-DARCINT_TLS=ON` build adds `--tls-cert`/`--tls-key`. Built for a LAN or a reverse proxy. - **Request ids.** Every response carries `X-Request-Id`: the caller's value when it is 1..128 characters of `[A-Za-z0-9._:-]`, otherwise a generated `req-` plus 16 lowercase hex characters. A value that is not usable is replaced, never refused, and never echoed or logged. The same id appears as `rid=` on arcint's log lines for that request — the http line, the refusals, the prefill/decode summary and its abort — so a gateway's line and arcint's line for one request can be matched. Request and response bodies, the Responses objects and `/metrics` are unchanged. - `--metrics` serves `GET /metrics` in the Prometheus text format (request, token, prefill/decode, cache-hit, draft counters and per-lane queue/slot gauges); a request with `arcint: {timings: true}` gets the per-response timings back on Chat Completions and Responses. - `--slots` serves `GET /slots`: one entry per slot with `id`, `lane`, `n_ctx`, `is_processing`, `n_cache` (the KV cells that slot's sequence holds) and, for a busy slot, `id_task` — the `X-Request-Id` of the request it is serving. State only, never content: llama-server's `/slots` also dumps the prompt (detokenized), the generated text and the sampling parameters of what runs, and arcint serves other people's prompts, so this route names none of those. Off by default (without the flag the route does not exist), behind `--api-key` like every other route, and `/props` lists it only when it is served. - `chat_template_kwargs.preserve_thinking` (Chat Completions) and `arcint.preserve_thinking` (Responses) keep every assistant turn's thinking, not only the turns after the last user query, so a steering message does not drop a running tool loop's reasoning; absent renders exactly as before. `chat_template_kwargs` is a passthrough to the template (llama-server's dialect): `enable_thinking` and `preserve_thinking` are type-checked, every other key reaches the template unchanged and is not refused. `--chat-template-kwarg KEY=VALUE` (repeatable) sets a unit default for any key: VALUE is JSON when it parses as JSON (`true`, `3`, `"text"`), else the bare text is a string; `null`, a reserved context name (`messages`, `tools`, `bos_token`, ...), a non-boolean `preserve_thinking` and a repeated key fail at startup. `reasoning_effort=LEVEL` (none, off, minimal, low, medium, high, xhigh) is a level, not a passthrough value: a request that states its own, by the top-level `reasoning_effort`, the Responses `reasoning.effort` or `chat_template_kwargs.reasoning_effort`, keeps it; the default goes through the mapping a request's level gets, and for a request that states neither a level nor the thinking switch it also sets the switch: `none` and `off` turn thinking off, every other level turns it on (on a template that does not think by default, a non-off unit level therefore makes every silent request a thinking turn, as a request's own top-level `reasoning_effort` or Responses `reasoning.effort` does; a level a request sends inside `chat_template_kwargs` sets no switch). It must agree with `enable_thinking=BOOL` when both are given (a start failure otherwise). `/v1/responses` has no `chat_template_kwargs` field, so a Responses client cannot turn a unit default off. **Token mode:** a gateway that renders the prompt itself must apply `/props` `chat_template_kwargs_default` when a default names a key the template reads (the same holds for the thinking default, `enable_thinking`), or its prompt hash differs from the engine's and the turn answers 409. A `reasoning_effort` default is not a raw kwarg: the engine applies it as the request's own top-level `reasoning_effort` when the request states no level by any route (top-level `reasoning_effort`, Responses `reasoning.effort`, or the kwarg), so it goes through the template's level mapping and sets the thinking switch; the gateway must apply it the same way, as a top-level level, or its prompt hash differs and the turn answers 409. `/props` `chat_template_kwargs_default` lists the level as configured, not as mapped. A request that carries the key keeps its own value (`false` included); the defaults apply on every route that prepares a chat turn (chat, Responses, the chat form of `/tokenize`) and `/props` `chat_template_kwargs_default` lists them. `chat_template_kwargs.force_nonempty_content: true` (a request's, or the unit default) is acted on by the server, as vLLM's Nemotron-V3 reasoning parser does (NVIDIA's Dory1.0-4B card asks agents to send it; the model's template ignores the name): non-streaming, an empty or blank answer after the reasoning split takes the reasoning text as the content (the tool-call parse then sees it, and no `reasoning_content` is sent for it); streaming, a think block that never closed sends the whole reasoning text once as a `content` delta before the final chunk (the reasoning deltas stay); the stream does not tool-parse the promoted text, as the reference's stream does not, so call markup the model wrote inside a thinking block that was cut stays text and is never a `tool_calls` delta. Reasoning that is blank (empty or ASCII whitespace only) is never promoted, on any path; a non-ASCII space such as U+00A0 counts as text, where the reference's `str.strip()` reads it as blank. Only the JSON boolean `true` triggers, and a unit default of `force_nonempty_content` must be `true` or `false` (anything else fails at start). Chat and Responses routes; the Responses stream in token mode is exempt. `/props`' `chat_template_caps` reports `supports_preserve_reasoning` (the template renders reasoning_content at all) and `supports_preserve_thinking` (it reads the switch). - `--chat-template-file PATH` replaces the GGUF's embedded chat template with the jinja text of PATH, as llama.cpp's flag of the same name: the rendering, the capability scan (`/props` `chat_template_caps`) and the renderer material all read the file. It is read and parsed at start; a missing, empty or unparsable file stops the start, and there is no fallback to the embedded template. `chat_template_caps.template_source` is `gguf`, `file` or `chatml-fallback`. Not with `--stub`. - `POST /tokenize` and `POST /detokenize` are llama-server-compatible: `/tokenize` takes `{content, add_special?, with_pieces?, model?}` and returns `{tokens}` (or `{id, piece}` objects with `with_pieces`; a piece that is not valid UTF-8 on its own is its array of byte values). `content` must be a string: llama-server's mixed array of strings and token ids is a 400 here. With a chat or Responses body it returns `{tokens, count}`, the prompt tokens the same request would decode, counted through the request's own prepare path; an image part is refused (the projector counts tokens this route does not run). `/detokenize` takes `{tokens}` and returns `{content}`, special tokens as text. Both are behind the same key as every other route. A prompt the lane would refuse is refused by `/tokenize` too, with the count in the error body's `prompt_tokens`; llama-server's `parse_special` is accepted and ignored (specials are always parsed), and a count over a continuation does not evict the referenced stored response — it is a lookup, so it refreshes that entry's LRU rank like any other read. ## Scope - **Models**: the table above. Other architectures are refused at load. - **Cards**: the Intel Arc Pro B70 (32 GB, Xe2, BMG-G31) and B60 (24 GB, Xe2, BMG-G21), under the xe kernel driver; `--device B70` / `--device B60` pick a card by name. One card per process, or two by layers for one model (`--llama-layer-split`, DESIGN §3.10). The Arc A770 (16 GiB, Xe-HPG, Alchemist) is **retired** (hardware no longer available): it was gated through 1.7.0, and nothing runs on it now. Its paths stay in the series untested; its numbers are historical, last measured with 1.7.0 ([docs/a770-reference.md](docs/a770-reference.md)). - **Images**: text-to-image and editing through `arcint-imggen` (sd.cpp's `sd-server`, a separate binary and process): Z-Image Turbo, Qwen-Image and FLUX.2 klein, one unit each, one at a time on the card ([docs/imggen-service.md](docs/imggen-service.md)). - **Not goals**: a web UI or dashboard (console and HTTP JSON only), a model zoo, training or quantization tooling, multimodal input (images in), Windows. ## Why not just use … - **llama.cpp's own server** on Arc: its OpenCL backend is tuned for Adreno (the dense 27B prefilled 71 t/s and decoded 10.3 t/s on the B60, against 695 and the MTP decode above with the series). That is the backend arcint builds on: it carries its kernels as patches against upstream and keeps llama.cpp's model code, its KV and its checkpoint mechanism. - **SYCL** works under the xe driver on both cards, and llama.cpp's SYCL backend is under active development upstream. It is a real alternative: on Llama 2 it decodes 4-5 % faster than arcint's series on both cards (the A770 figure historical), and it decodes the 27B 4.4 % faster on the B60, while the series leads prefill on both (10.5 % and 31 %) and prefills the coder's file at 2.1x (the tables above). `measured-here` (2026-11-05, A770 historical): on the A770, USM `memcpy` verified up to 3 GiB and a kernel, through Level Zero V2, legacy Level Zero and OpenCL; on both cards, llama-bench on V2 and the legacy adapter; the answers right (KL 0.00043 nats against the CPU reference, the 8 fact questions); no wedge. Strata's SYCL engine ran through Level Zero on the B60 too (2026-10-06), the numbers under "Numbers by release". One trap on Debian trixie: oneAPI 2026.1 segfaults in every SYCL program with the distribution's Level Zero loader (`libze1` 1.20.6), and loader 1.34 fixes it (`measured-here`). - **Vulkan** depends on the card. On the A770 (historical) and the B60 it trails SYCL and the series here (the table above, Mesa 25.0.7, and on the B60 126 / 7.8 t/s on the dense 27B at 1k against SYCL's 249 / 14.2, 2026-09-07, `measured-here`); a B70 reports 4570.29 / 112.89. On Inkling 2 Mini, arcint is 11-13x faster than Vulkan on the prompt and 2.9-4.4x on generation, same card (see "Inkling 2 Mini"). - **OpenVINO**: arcint's first engine (0.1-0.7.12). Its GPU plugin emits good Xe code, but the services needed an IR export per model and a GPU-plugin patch series on a pinned nightly, and the libllama engine overtook it on every service (DESIGN §6). - **vLLM** has an Intel path: Intel's `llm-scaler-vllm` image and `vllm-xpu-kernels`, one of arcint's design references. Reported on a B70 for the dense 27B (`paper`, not run here on these cards): stock, MTP off, 26.4 t/s decode and about 1,670 t/s prefill at 8k and 1,173 at 110k (arcint on the B60: 707 at 55k, 500 at 138k); with EXL3 weights and MTP, 63-91 t/s decode. arcint serves GGUF files and has an expert cache for models larger than the card. [CHANGELOG.md](CHANGELOG.md) lists what each release changed and what it depends on.