LLM inference built for Intel Arc Pro B70 Battlemage GPUs.
GRIMOIRE is a native inference engine written in C++ with SYCL and Level Zero. It is being developed to run and optimize large language models directly on Intel Battlemage hardware, with a focus on the Arc Pro B70.
The aim is straightforward: make high-performance local LLM inference possible on this hardware, using kernels and memory paths designed for the GPU instead of relying on a general-purpose inference stack.
Project status: Experimental. GRIMOIRE is actively developed, but it is not yet a stable, production-ready release. Expect incomplete features, changing model support, and performance or compatibility issues. Ready-to-use Docker images are on the Releases page. Run a model below lists every model with its Hugging Face download, launch flags and measured speed.
main is the current code. Two-GPU tensor parallel, Intel oneDNN for the prompt GEMMs and the Qwen3.8-Flash-Next two-card speed-ups were merged into main on 2026-10-28 (before, they were on the
dual-1022/onednn-1025branches) and are in release v1.10.0. GGUF support joined main on 2026-10-29 (it was onfeature/gguf-battlemage) and is in release v1.10.1; v1.10.2 includes the native GGUF decode and prompt speed-ups and MTP on GGUF; v1.10.3 adds three opt-in speed modes and changes no default; v1.10.4 (2026-11-05) makes MXFP4 speculative decoding faster (Qwen3.8-27B MXFP4 + MTP: +26% for one user), lets 4-bit models use the overlapped two-GPU prompt path (Qwen3.8-27B GPTQ on two B70s: pp4096 1,733 -> 3,093), halves the two-GPU decode exchange, and keeps Flash-Next fast on a busy machine (details). v1.10.6 (2026-11-13) makes speculative decoding serve several users at once on one and two cards: Swift-1.5 Qwen3.8-27B GPTQ-Int4 on two B70s scores 133.6 in BetterBench against vLLM's 131.0 on the same machine and wins at 1, 2, 4 and 8 users; it also runs Qwen3.8-27B-Uncensored (FP8 as INT8) on two cards with a 262K context (details). v1.10.6's source joined main on 2026-11-15 together with copy drafting and faster long prompts (no release image yet, details). v1.10.8 (2026-11-17) reads prompts faster on one and two cards (one B70 4K: 2,698 tok/s, two B70s 3,480), fixes Qwen3.8 INT8 on one card and speeds up Flash-Next on long prompts (details). v1.10.9 (2026-11-18) makes Qwen3.8-Flash-Next write much faster at long context (two B70s, after a 60K prompt: 31 -> 46 tok/s), loads Flash-Next 4-bit on two cards and speeds up one-card speculative decoding (details). v1.10.10 adds opt-in pooled KV for supported single-GPU profiles and reduces Flash-Next MTP verification time on two cards (benchmark results). v1.10.11 (2026-11-24) adds an OpenAI-compatible server for Inkling 2 Mini on one or two Arc Pro B70s: 250.8 tok/s on a code answer with MTP, 5,557 tok/s reading a 32K prompt (details). v1.10.12 (2026-11-25) gives it a 262,144-token context on two B70s and makes decode with a long context much faster (87.8 tok/s after a 216K-token prompt, was 14.3). v1.10.13 (2026-11-25) makes Qwen3.8-27B DFlash2 faster (two B70s, BetterBench 136.6 -> 142.8). v1.10.14 (2026-11-26) drafts Inkling 2 Mini with the DFlash2 drafter: BetterBench on two B70s 141.8 -> 173.5, 304 tok/s on a code answer (details).
v1.10.14 (2026-11-26) = v1.10.13 + the Inkling 2 Mini server drafting with incoai/Inkling-2-Mini-DFlash2 (a block-diffusion drafter with a candidate selector) instead of the model's own DSpark head. Put the drafter next to the model and it is used automatically; output stays exact. Built for the Arc Pro B70 (G31) and the Arc Pro B60 / Arc B580 (G21).
# /path/to/models/Inkling-2-Mini (or Inkling-2-Mini-Uncensored)
# /path/to/models/Inkling-2-Mini-DFlash2 (hf download incoai/Inkling-2-Mini-DFlash2 --local-dir ...)
docker run -d --name grimoire-inkling --stop-timeout 60 \
--device /dev/dri/renderD128 --device /dev/dri/renderD129 \
-v /path/to/models:/models:ro -e INK_MODEL=/models/Inkling-2-Mini -p 6911:6911 \
-e INK_CTX=262144 --entrypoint grimoire-inkling grimoire-b70:v1.10.14
| two Arc Pro B70, Inkling-2-Mini-Uncensored | DSpark (v1.10.12) | DFlash2 (v1.10.14) |
|---|---|---|
| BetterBench quick (temperature 0.7, top-p 0.95, top-k 20), weighted decode, measured on the images | 141.8 tok/s | 173.5 tok/s |
| same, the engine's own count: tokens per step | 2.90 | 3.62 |
| greedy, code answer / chat answer (384 tokens) | 251 / 137 tok/s | 304 / 236 tok/s |
| one B70, greedy, code answer / chat answer | 177 / 88 tok/s | 213 / 149 tok/s |
| memory per card at a 262,144-token context | 30.3 GiB | 27.0 GiB |
INK_DFLASH2=<dir> names the drafter folder, INK_DFLASH2=0 keeps DSpark. Prompt speed is unchanged (BetterBench
2K / 8K: 2,870 / 3,609 tok/s). Details: docs/history/HANDOFF-2026-11-26-DFLASH2.md.
v1.10.11 = v1.10.10 + a server for Inkling 2 Mini with an OpenAI-compatible API (/v1/chat/completions, streaming,
thinking as reasoning_content) on one or two Arc Pro B70s. Built for the Arc Pro B70 (G31) and the Arc Pro B60 /
Arc B580 (G21); every other model runs as in v1.10.10.
docker run -d --name grimoire-inkling --stop-timeout 60 \
--device /dev/dri/renderD128 --device /dev/dri/renderD129 \
-v /path/to/Inkling-2-Mini:/model:ro -p 6911:6911 \
-e INK_CTX=262144 --entrypoint grimoire-inkling grimoire-b70:v1.10.12
| two Arc Pro B70, Inkling-2-Mini-Uncensored (measured on the v1.10.11 image) | |
|---|---|
| decode with MTP, code answer (no thinking, temperature 0) | 250.8 tok/s (6.08 tokens / step) |
| reading a prompt, pipeline mode, 16K / 32K | 5,484 / 5,557 tok/s |
| BetterBench quick (temperature 0.7, top-p 0.95, top-k 20), weighted decode | 134.1 tok/s (v1.10.12: 141.8) |
| BetterBench prefill 2K / 8K, TTFT p50 | 2,864 / 3,604 tok/s, 162 ms |
| v1.10.12, 262K context: decode after a 27.8K / 110.7K / 216.4K-token prompt | 129.2 / 131.5 / 87.8 tok/s |
BetterBench answers start with long thinking (the template's default effort is 0.9), where the drafter is right
~2.9 tokens per step instead of ~6.1 on a direct code answer; that is the difference between the two decode numbers.
Requests are served one at a time. Memory: one or two B70 (32 GB) fit; two B60 need INK_NO_EPREP=1 (half the
experts on each card, not tested here); a B580 (12 GB) is too small for this model. Settings, sampling and the
engine's other modes: release notes,
docs/inkling2-mini.md.
- Pooled KV on one B70. Set
GRIMOIRE_KV_POOL=1on supported single-GPU profiles. Qwen3.8-27B INT8 at eight concurrent requests delivered 55.3 → 150.7 tok/s combined and reduced median time to first token from 8.40 to 2.90 seconds. This used 512-token prompts and a configured context limit of 24,576 tokens. Tensor-parallel profiles use fixed slots. - Flash-Next INT8 on two B70s. Plain decode improved 1.4–3.6% across matched 4K, 16K, 32K and 64K prompts. In the separate 512-input / 512-output MTP K3 test, decode rose from 48.4 to 58.1 tok/s, while prefill fell from 577 to 523 tok/s.
- Expert placement. With pooled KV on one B70, the Radiance-derived placement policy improved Flash-Next INT8 decode by 19–21% at 4K–32K. The existing single-GPU conditional default stays enabled when pinned RAM is available. Two-GPU placement stays off by default.
- Long-context check. Swift INT4 served a fresh 128K pooled prompt on one B70 with
GRIMOIRE_PREFILL_CHUNK=4096. The prior run with default chunks failed allocation after the shorter tests.
Matched comparisons, settings, and raw llama-benchy reports
Every number on this page was measured on one machine:
| Part | What we use |
|---|---|
| Host | Beelink GTi15 Ultra mini PC, Intel Core Ultra 9 285H (16 cores: 6 P + 8 E + 2 LP-E), 96 GB DDR5-5600, Unraid (Linux 6.18), Docker |
| GPU 0 | Intel Arc Pro B70, 32 GB, on the Beelink EX Pro dock: PCIe Gen4 x8 |
| GPU 1 | Intel Arc Pro B70, 32 GB, on an M.2-to-OCuLink adapter with a PCIe redriver: PCIe Gen4 x4 (a passive adapter made the card drop off the bus under load; the redriver fixed it) |
| Power | each GPU on its own supply: GPU 0 550 W, GPU 1 750 W since 2026-11-12 (GPU 1's earlier drops under load came from its old 550 W supply); GRIMOIRE runs the cards at their own firmware limit (no governor) |
| GPU-to-GPU | no peer-to-peer: Linux does not allow PCIe P2P between these two root ports on this CPU, so every byte between the cards goes through host memory |
| Software | oneAPI 2026.1, Intel GPU driver 26.27 (Level Zero 1.15.39122), Intel oneDNN 3.13.4 for the prompt GEMMs, one GRIMOIRE process per GPU; the v1.10.x images ship oneAPI 2026.2, driver 26.35 and oneDNN 3.14 (checked 2026-10-28: same answers, same speed) |
| Benchmark | llama-benchy 0.4.0 through GRIMOIRE's OpenAI-compatible server, one user unless noted, greedy decoding |
This is a small desktop with one card on a x4 link, not a workstation with two x16 slots. Two-GPU results on a board with full-width slots should be better, not worse.
Prompt = prefill tokens/s; decode = generated tokens/s for one user (llama-benchy tg128).
| Model | Weights | Prompt | Decode, 1 user | Decode, 8 users |
|---|---|---|---|---|
| Qwen3.8-27B + MTP | GPTQ-Int4 with MTP head, GRIMOIRE_MTP_K=6, GRIMOIRE_MTP_DRAFT_VOCAB=65536 |
1,979 (pp4096) | 69.6 (66-70; 113-126 on code) | 197.9 |
| Qwen3.8-27B, plain | FP8 release, quantized to MXFP4 at load | ~2,050 (pp4096, v1.7) | 33.1 (v1.7) | 162.2 (v1.7) |
| Ornith-1.5-35B-A3B | BF16 / FP8 / NVFP4 release, MXFP4 at load | 6,529 (pp512), 9,430 (pp4096) | 193.7 | 461.3 |
| Qwen3.8-Flash-Next | NVFP4; 112 of 512 experts per layer in VRAM, the rest in pinned RAM | -- | 22 (v1.8.x, one 128-token request) | -- |
| Model | Weights | Mode | pp2048 | pp4096 | pp8192 | Decode, 1 user |
|---|---|---|---|---|---|---|
| Qwen3.8-27B | FP8 | tensor parallel | -- | 3,530 | 3,315 | 29.5 (8 users: 165 total) |
| Qwen3.8-27B + MTP | FP8 | tensor parallel, GRIMOIRE_MTP=1 |
-- | 3,528 | 3,319 | 56.5 (88.2 on code; 4 users: 95.0 total, 8 users: 161.9) |
| Qwen3.8-27B + DFlash2 | FP8 + z-lab/Qwen3.8-27B-DFlash2 | tensor parallel | -- | 3,334 | 3,232 | 59.3 (126 on code) |
| Ornith-1.5-35B-A3B | FP8 | pipeline 20 / 20 layers | 6,886 | -- | -- | 111 |
| Qwen3.8-Flash-Next | NVFP4; 170 of 512 experts per layer in VRAM on each card | tensor + expert parallel | 1,292 | 1,474 | -- | 44.6 (42.2 after a 4K prompt) |
4-bit Qwen3.8-27B on two B70s (v1.10.4, measured 2026-11-05) -- these fit one card, and two cards are now faster for a single user and for prompts (tensor parallel, MTP K=6, draft vocabulary 65,536):
| Weights | pp4096 | Decode, 1 user (coding) | Decode, 4 users (total) | One B70 for comparison |
|---|---|---|---|---|
| GPTQ-Int4 + MTP | 3,093 | 88.8 (157.8) | 138.6 | 2,062 / 61.6 (127.8) / 171.9 |
| MXFP4 (GRIMOIRE's conversion) + MTP | 3,106 | 81.2 (160.7) | -- | 2,065 / 75.8 (122.6 with a 4,155-token prompt) / 157.8 |
| FP8 + MTP (checkpoint too big for one card) | 3,444 | 55.6 (93.9) | 102.7 | -- |
Four users still decode faster on one card than on two (the two cards exchange data 128 times per step).
On two cards, MTP serves several users at once since 2026-10-28 (it drafts for up to 2 of them;
with more, the step is a plain batched one): 1 / 2 / 4 / 8 users = 56.5 / 62.9 / 95.0 / 161.9
tok/s in total. DFlash2 still serves one request at a time on two cards. Since 2026-10-29 the
MTP head drafts for all users in one pass (main): with 2 / 4 / 8 users speculating, +10% / +2% /
+16% on two cards and +14% at 4 users on one card (llama-benchy), answers identical to drafting
one user at a time (GRIMOIRE_MTP_BATCH_DRAFT=0).
Run the official FP8 checkpoint with --proj int8 (since v1.10.1; the older v1.10.0 image
runs INT8 slower, use --proj fp8 with that one): it is closer to
the original model -- top-1 agreement with the BF16 original 98.0% against 94.9% with --proj fp8
(accuracy check) -- at the same speed. Two cards, tensor
parallel, GRIMOIRE_MTP=1, same build back to back:
| Qwen3.8-27B-FP8 checkpoint, two B70s + MTP | pp4096 | tg128, 1 user | tg128, 4 users (total) | top-1 |
|---|---|---|---|---|
--proj int8 |
3,566 | 53.6 | 96.2 | 98.0% |
--proj fp8 |
3,522 | 53.5 | 96.6 | 94.9% |
(FP8 checkpoints store one scale per 128 x 128 block; GRIMOIRE keeps one scale per row, so
--proj fp8 rounds every weight a second time. INT8 with a row scale keeps more of the file.)
Same machine, same llama-benchy test, Qwen3.8-27B-FP8 on both cards without MTP: vLLM (XPU build) 1,400 tok/s prompt (pp4096) and 21 tok/s decode, using 56 GB of VRAM; GRIMOIRE 3,530 and 29.5 (56.2 with MTP). Correctness: on a 2,153-token coding prompt, every tensor-parallel speed-up above gives exactly the same answer, character for character, as the code before it, and every two-GPU answer to that prompt passes its unit tests.
Ornith-1.5-35B-A3B, the official Q4_K_M GGUF; accuracy = mean KL divergence against the BF16
model on WikiText-2 (lower is better).
| Engine and mode | Prompt (pp4096) | Decode | KLD |
|---|---|---|---|
GRIMOIRE, native GGUF kernels (--proj native) |
5,886 (CLI) | 132 | 0.064 |
GRIMOIRE, GGUF converted to MXFP4 at load (--proj mxfp4) |
9,682 | 172 | 0.216 |
| llama.cpp SYCL, same file | 1,959 | 104 | 0.061 |
| llama.cpp Vulkan, same file | 1,833 | 50 | -- |
Qwen3.8-27B, Unsloth's UD-Q4_K_XL GGUF (measured 2026-10-29 on main, one B70; decode = CLI, 128
tokens after a short coding prompt; accuracy = top-1 agreement with the BF16 model's next token over
256 positions of text, tools/bench/accuracy):
| Engine and mode | Prompt (pp4096) | Decode | Top-1 vs BF16 |
|---|---|---|---|
GRIMOIRE native + MTP (--proj native, GRIMOIRE_MTP=1, K=6, draft vocabulary 65,536) |
2,015 | 71.6 | 94.5% (same tokens as without MTP) |
GRIMOIRE native (--proj native) |
2,015 | 28.0 | 94.5% |
GRIMOIRE, converted to MXFP4 at load (--proj mxfp4) |
2,097 | 33.3 | 87.5% |
The same day's steps on this file: native decode 9.0 -> 28.0 tok/s (vector kernels for every K-quant
and IQ4 block type), prompts 1,701 -> 2,015 tok/s (streaming dequant + the fused SwiGLU GEMM), MTP from
the file's own nextn head 28.0 -> 71.6 tok/s (a DPAS kernel that checks up to 16 drafted tokens for
about the cost of one). The BF16 GGUF gives token-identical output to the safetensors release;
UD-IQ4_XS, UD-IQ2_XXS, Q4_0 and Q8_0 files load and generate correctly (Q8_0 as --proj int8: 99.2%
top-1). Qwen3.8-Flash-Next GGUF: not supported yet.
Built for the Arc Pro B70 and the Arc Pro B60 / Arc B580; measured on this machine's two Arc Pro B70s with the
release image's own binaries, llama-benchy 0.4.0 (--no-cache), reading = prompt tokens per second, writing = tg128
after a prompt of that length (MTP on for Qwen3.8, off for Flash-Next):
| Model | GPUs | Reading | Writing |
|---|---|---|---|
Qwen3.8-Flash-Next NVFP4, --proj int8 (4K / 16K / 32K / 60K) |
2, tensor + expert parallel | 1,564 / 1,379 / 1,294 / 1,351 | 48.3 / 48.7 / 47.0 / 46.2 |
Qwen3.8-Flash-Next NVFP4, --proj int4 (4K / 32K / 60K) |
2, tensor + expert parallel | 1,350 / 1,642 / 1,376 | 53.5 / 50.0 / 49.0 |
| Swift-1.5 Qwen3.8-27B GPTQ-Int4 (4K / 32K) | 2, tensor parallel | 3,498 / 3,024 | 143 / 134 |
| Swift-1.5 Qwen3.8-27B GPTQ-Int4 (512 / 4K tokens; 4 / 8 users = total) | 1 | 2,656 (4K) | 110 / 100; 4 users 240-246, 8 users 312-329 |
Swift-1.5 Qwen3.8-27B GPTQ-Int4, 32K tokens before the request (--depth 32768) |
1 | -- | 84 |
Against v1.10.8 on the same machine: Flash-Next 8-bit writing after 4K / 16K / 32K / 60K 35 / 42 / 37 / 31 -> 48 / 49 / 47 / 46; Flash-Next 4-bit did not load on two cards; two-card Qwen3.8 writing after 4K 118 -> 143. Flash-Next reading here is the first run after a reboot (the n-gram table read from disk); warm, the same build reads 32K / 60K at 1,638 / 1,368.
What v1.10.9 changes:
- Flash-Next decode: the sparse (QSA) attention reads only the selected key blocks, all 16 lanes of a block at once (it walked every key of the context: 1.15 ms a layer at 60K tokens, now a few tens of microseconds); the indexer's block selection adds its histogram once per sub-group; the n-gram (PLE) table rows of a token are read in parallel.
- Flash-Next prompts: the indexer's block scoring computes a whole block per lane (an 8,192-row chunk at 24-32K tokens: 1.18 s -> 0.22 s).
- Flash-Next: the n-gram table's background copy into RAM is off by default (
GRIMOIRE_PLE_RAM=1turns it on): while it ran, two-card Flash-Next wrote ~30 tok/s instead of ~50. Flash-Next--proj int4now loads on two cards. - Flash-Next MTP (
GRIMOIRE_MTP=1 GRIMOIRE_MTP_K=2, still opt-in): the verify rows use the same sparse attention; code and edit answers 50-80% faster, prose 5-15% slower; give the head room with ~12 fewer experts a layer in VRAM (e.g.GRIMOIRE_EXPERT_VRAM_PER_LAYER=164instead of 170). - Qwen3.8 one card: the 4-bit speculative verify GEMMs split their work by interleaved blocks (verify step ~4% faster).
- DFlash: GPTQ / AutoRound drafters load (for example
urakozz/Qwen3.8-27B-DFlash2-W4A16-g64-AutoRound). - Opt-in, for testing: INT8 keys in the KV cache (
GRIMOIRE_KV_K8=1) and int8 prompt attention (GRIMOIRE_FLASH_I8=1).
Validation, the image's own binaries: the model suite (tools/regress_all_g0.sh, gpu0) gives text identical to
v1.10.8 in 22 of 23 Qwen3.8 / Flash-Next cases; the 23rd, Flash-Next with a 6K-token document, rewords its first
sentence ("shared a very long passage" / "pasted a very long excerpt"; the block scoring adds in another order).
Copy / edit texts are identical on one and two cards; on one card, long free answers (review, essay, story) change
after 900-5,400 characters (the verify GEMMs' summation order). The 30K-token document test on two cards reads in
10.2 s, again in 0.02 s, next turn 0.17 s, text identical to before. Results and scripts:
tools/bench/pp1117/RESULTS-2026-11-18.md.
Built for the Arc Pro B70 and the Arc Pro B60 / Arc B580; measured on this machine's two Arc Pro B70s with the
release image's own binaries, llama-benchy 0.4.0 (--no-cache), reading = prompt tokens per second, writing = tg128
after a prompt of that length (MTP on for Qwen3.8, off for Flash-Next):
| Model | GPUs | Reading 4K / 16K / 32K / 64K / 128K | Writing after 4K / 16K / 32K / 64K / 128K |
|---|---|---|---|
| Swift-1.5 Qwen3.8-27B GPTQ-Int4 | 1 | 2,698 / 2,571 / 2,331 / 1,908 / 1,402 | 109 / 99 / 85 / 72 / 64 |
| Swift-1.5 Qwen3.8-27B GPTQ-Int4 | 2, tensor parallel | 3,480 / 3,412 / 3,183 / 2,620 / 1,945 | 118 / 120 / 103 / 113 / 109 |
Qwen3.8-27B-Uncensored (FP8 as --proj int8), 262K context |
2, tensor parallel | 3,628 / 3,266 / 2,960 / 2,466 / 1,895 | 74 / 84 / 92 / 84 / 57 |
Qwen3.8-27B-Uncensored (FP8 as --proj int8), 40K context |
1 | 1,796 / 1,628 / 1,447 | 75 / 45 / 54 |
Qwen3.8-Flash-Next NVFP4, --proj int8 (4K / 16K / 32K / 60K) |
2, tensor + expert parallel | 629 / 1,683 / 1,492 / 1,259 | 35 / 42 / 37 / 31 |
Qwen3.8-Flash-Next NVFP4, --proj int4 (4K / 16K / 32K) |
1 | 773 / 996 / 899 | 46 / 38 / 35 |
Against v1.10.7 on the same machine: one B70 4K reading 1,992 -> 2,698, two B70s 3,071 -> 3,480, the Uncensored INT8 two-card setup 3,449 -> 3,628; Flash-Next writing after 16K / 32K / 60K 35.8 / 27.2 / 19.9 -> 42 / 37 / 31.
What v1.10.8 changes:
- INT4 prompts as int8 x int8 in the Hadamard-128 domain by default (
GRIMOIRE_I4A8=0= the bf16 GEMM), from 1,536 rows; the SwiGLU of the gate/up GEMM as oneDNN post-ops; on two cards the FFN's per-layer weight copy is the rotated int8 one. INT8 weights can take the same path withGRIMOIRE_I8A8=1(opt-in). - The prompt cache's head snapshot is taken after the whole prompt, with its logits: a prompt is read in one piece again (v1.10.7 read a 4K prompt as 4,032 + 65 rows), and the same prompt again starts in 0.03 s.
- Several new users at once are admitted in one prefill again with the prompt cache on (one B70, 8 users x 512 tokens: reading 1,103 -> 2,632 tok/s).
- One conversation slot with an MTP head takes the step path with copy drafting (
GRIMOIRE_ONE_SLOT_STEPS=0= the old path): the Uncensored INT8 two-card setup atGRIMOIRE_SEQ_SLOTS=1copies / edits at 460-604 tok/s (was 150). - Flash-Next: its sparse (QSA) attention skips the blocks the indexer did not select, in decode, verify and prompt (same results), and its top-k pick runs on all lanes.
- Fixed: Qwen3.8 with
--proj int8on ONE card answered garbage to prompts of 32-64 tokens (since 2026-11-14, also in v1.10.7; the small-row GEMMs read a stale fp32 input). The same bug fed one-card INT4 prompts of 32-64 tokens a stale DeltaNet gate input, so some short-prompt answers on one card change in v1.10.8.
Validation, the image's own binaries: the model suite (tools/regress_all_g0.sh, gpu0) gives text identical to
v1.10.7 in all 23 Qwen3.8 / Flash-Next cases; copy / edit texts identical on one and two cards; the 30K-document test
(first time / again / next turn) one B70 17.2 / 0.03 / 0.17 s, Uncensored INT8 two B70s 10.0 / 0.03 / 0.15 s, repeats
word for word; one-card INT8 answers "Paris". Not working: Flash-Next with --proj int4 on two cards does not load
(never in a release). Results and scripts: tools/bench/pp1117/.
Built for the Arc Pro B70 and the Arc Pro B60 / Arc B580; measured on this machine's two Arc Pro B70s (gpu0 on PCIe Gen4 x8, gpu1 on Gen4 x4).
Prompt cache, on by default. When the same long prompt comes again, or an agent sends its next turn (the
conversation so far plus a new message), GRIMOIRE continues from what it already read instead of reading everything
again. GRIMOIRE_PREFIX_CACHE=0 turns it off. Each conversation slot keeps the state at the end of its last answer and
at a point 64 tokens before the end of its last long prompt (taken by grimoire-server for prompts of 1,088 tokens or
more; the one-shot CLI does not take it).
Swift-1.5 Qwen3.8-27B GPTQ-Int4 + MTP (K=6), two B70s, tensor parallel, --ctx 136000, GRIMOIRE_SEQ_SLOTS=8 (7 fit),
the b70-cookbook probe-battery.py unchanged. vLLM = the cookbook's
published numbers (intel/llm-scaler-vllm 0.31.0-b1, the same checkpoint, two B70s, tensor parallel 2, MTP 6, FP8 KV,
131,072 context, measured on its author's machine, not this one). The script's "131K" prompt is 104.9K tokens, its
"32K" prompt 26.2K.
| Two B70s | GRIMOIRE, cache off | GRIMOIRE v1.10.7 | vLLM (cookbook) |
|---|---|---|---|
| Same 105K-token prompt again: time to first token | 54.4 s | 0.39 s | 2.4 s |
| Same 26K-token prompt again: time to first token | 10.0 s | 0.18 s | -- |
| 105K-token prompt, first time | 54.6 s | 45.5 s* | 87 s |
| Decode after the repeated prompt, 1.7K / 6.6K / 26K / 105K | 132 / 125 / 137 / 93 | 127 / 126 / 115 / 92 | 123 / 118 / 132 / 78 |
| Decode, short prompt, 256 / 1024 / 2048 / 4096 tokens out | 111.5 / 104.7 / 99.4 / 97.6 | 110.4 / 104.1 / 99.2 / 97.5 | 110.5 / 101.9 / 95.8 / 96.6 |
| 8 users x 512 tokens, total tok/s | 268 | 276 | 321 |
| Greedy correctness probe | 9/10 | 9/10 | 9/10 (same miss) |
* The script's prompts share their opening text, so the 105K prompt continues from the 26K prompt's saved state.
A 30,070-token document plus a question, then the same request again, then the next turn (document + answer + a new question); greedy, 160-token answers, time to first token:
| First time | Same request again | Next turn | |
|---|---|---|---|
| One B70, Swift INT4, 4 slots | 19.5 s | 0.22 s | 0.17 s |
| Two B70s, Swift INT4, tensor parallel, 4 slots | 11.3 s | 0.23 s | 0.16 s |
Two B70s, Qwen3.8-27B-Uncensored (FP8 as --proj int8), 1 slot, 262,144 context |
10.2 s | 0.20 s | 0.15 s |
The repeated request answers word for word as the first. A first answer to a long prompt can differ in late words from
the same request with GRIMOIRE_PREFIX_CACHE=0 (the server reads such a prompt in two pieces), as a different prompt
chunk size can. llama-benchy 0.4.0 on the Uncensored INT8 two-card setup above: pp4096 3,445-3,449 (v1.10.6: 3,401),
tg32 / tg256 after 4,096 tokens 80.0 / 78.1, coherence passed.
Also in v1.10.7:
- Copy drafting, the key-major K cache and prompt-attention teams (below).
- Long context: a team kernel for verify passes at 32K tokens and more, and copy verifies in 8-row pieces. One B70, 61K-token prompt: 1 user copy 403 -> 500 tok/s, 4 users copy 397 -> 724.
- After a cache hit the MTP head keeps its context (without this, decode after a hit was up to 20% slower).
- Fixed:
GRIMOIRE_MTP_EXACT_VERIFY=1with the key-major K cache (failed on main since 2026-11-15). - Qwen3.8-Flash-Next: the prompt cache does not apply to it (its QSA and PLE state are not saved); it runs as before.
Validation, the image's own binaries: the model suite (tools/regress_all_g0.sh, gpu0) for every Qwen3.8 and
Flash-Next case gives identical text with the cache on and off (23 / 23); against the suite's 2026-11-06 run 18 are
identical and 5 reworded (the plain 160-token decode gives the same text in the released v1.10.6 image). Served: the
three tables above, copy drafting on one B70 (1 user 558-756 tok/s, 4 users 740-816), Qwen3.8-Flash-Next on two B70s.
Results and scripts: tools/bench/prefix1116/.
Copy drafting (prompt lookup) next to MTP: when the reply repeats text already in the conversation (code being
edited, a document being rewritten), GRIMOIRE proposes up to 63 tokens from the earlier copy and checks them in the
same verify pass as the MTP drafts (up to 64 rows a pass). New text is drafted by MTP as before. Off with
GRIMOIRE_COPY=0. Also: the FP8 K cache is stored key-major (long-context attention reads were scattered), prompt
attention runs in 4-thread teams, and the INT8 / FP8 output head no longer runs one GEMV per verify row past 8 rows.
Bench: tools/bench/copy1115/copybench1114.py, greedy, thinking off, total
tok/s while every user decodes; copy / edit = 4 prompts (copy code, copy prose, rename, add docstrings). Main = 55a9eea
built for the B70. "Before" = the same branch on 2026-11-14 with GRIMOIRE_COPY=0 (v1.10.6 speed); rows marked
(11-14) are that day's build with copies on, before the key-major cache, prompt-attention teams and 32 / 64-row verify.
Swift-1.5 Qwen3.8-27B GPTQ-Int4 + MTP (K=6), one B70:
| Before | Main | |
|---|---|---|
| 1 user, copy / edit | 161-163 (1,536 tokens) | 646-687 (512 tokens) |
| 4 users, copy / edit (1,024 tokens each) | 305-316 | 748-828 |
| 4 users, new text: code / review / essay | 283 / 234 / 210 | 286 / 235 / 209 |
| 8 users, copy / edit | -- | 751-779 |
| 8 users, new text: code / review / essay | 308 / 264 / 283 (11-14, 16 verify rows) | 431 / 347 / 321 |
| 61K-token prompt: time to first token (1 user) | 51.1 s (11-14) | 41.9 s |
| 61K-token prompt: 4 users copy / write (total) | 265 / 99.1 (11-14) | 397 / 127 |
Qwen3.8-27B-Uncensored (FP8 checkpoint as --proj int8), two B70s, tensor parallel, MTP K=6, 1,024 tokens each:
| Copies off (11-14) | Main | |
|---|---|---|
| 1 user, copy / edit | 150-152 | 462-605 |
| 4 users, copy / edit | 183-186 | 590-637 |
| 8 users, copy / edit | 188-191 | 610-629 |
| 4 users, new text: code / review / essay | 159 / 139 / 119 | 253 / 220 / 191 |
| 8 users, new text: code / review / essay | 184 / 175 / 172 | 379 / 326 / 285 |
| 1 user, new text: code / review / essay | 102 / 86 / 61 | 102 / 76 / 64 |
Copy and edit answers are identical with copies on and off. New text keeps its speed; at near-ties a different
verify shape can pick a different greedy token, so some new-text answers differ word for word. Results and run
scripts: tools/bench/copy1115/.
Built for the Arc Pro B70 and the Arc Pro B60 / Arc B580; measured on two Arc Pro B70s (this machine).
Swift-1.5 Qwen3.8-27B GPTQ-Int4 + MTP (K=6, draft vocabulary 65,536). BetterBench, same corpus and settings for both engines, both on two B70s; vLLM = intel/llm-scaler-vllm 0.31.0-b1, tensor parallel 2, in its own container:
| Two B70s | Weighted | 1 / 2 / 4 / 8 users (tok/s) | Prompt 2K / 8K | First token |
|---|---|---|---|---|
| GRIMOIRE v1.10.6, tensor parallel | 133.6 | 123.0 / 174.8 / 240.5 / 276.5 | 1,573 / 2,951 | 168 ms |
| vLLM, tensor parallel | 131.0 | 117.8 / 173.3 / 223.2 / 266.2 | 957 / 957 | 173 ms |
llama-benchy 0.4.0, same checkpoint, total tg128 after a 4,096-token prompt:
| Setup | pp4096 | tg128 total, 1 / 2 / 4 / 8 users |
|---|---|---|
| Two B70s, tensor parallel | 3,071 | 130.5 / 195.8 / 288.6 / 344.3 |
| One B70 | 1,839 | 99.7 / 146.9 / 234.0 / 254.2 |
The two Swift tables were measured with the same source (db25416) built for the B70 only.
Qwen3.8-27B-Uncensored (FP8 checkpoint loaded as --proj int8), two B70s, tensor parallel, MTP K=6,
one conversation slot, 262,144-token context, llama-benchy 0.4.0, the v1.10.6 release image:
| pp4096 | tg128 | pp16384 | tg128 after 16K |
|---|---|---|---|
| 3,401 | 74.7 | 2,965 | 63.3 |
What v1.10.6 changes:
- MTP drafts for up to 8 users at once; a verify pass holds at most 16 rows (
GRIMOIRE_SPEC_ROWS); two users draft 5 tokens deep (GRIMOIRE_SPEC_DEPTHS, default15,5). - Sampled requests (temperature > 0) are admitted together, so several users get their first token sooner.
- INT4 prompts up to 160 rows run in 32-row INT4 pieces (about half the time to first token on short prompts);
opt-in
GRIMOIRE_I4A8=1uses 8-bit activations for long INT4 prompts (+14-22% prefill, lossy). - Two cards: BAR receive on by default again; INT4 split plans for 7-row and 9-16-row verify passes.
- Verify-path kernels: norm 15.5 -> 4.8 us a call, no residual traffic on dense models, DeltaNet reads the next row ahead (same results bit for bit).
- Server: seeded top-k / top-p sampling with exact sampled MTP correction, clean stop on SIGTERM.
MTP decode speed moves with the text (how many drafted tokens are accepted), so one-user tg128 varies by several tok/s between runs.
The release image's own binaries on one Arc Pro B70, llama-benchy 0.4.0, pp4096 / tg128, v1.10.3 -> v1.10.4, same machine and test. Concurrent decode is the total across the stated number of users. Qwen uses eight sequence slots, MTP K=6 and a draft vocabulary of 65,536; Ornith uses eight slots without MTP.
| Checkpoint and mode | Prompt, 1 user | Decode, 1 user | Concurrent decode, total | Coding decode |
|---|---|---|---|---|
| Qwen3.8-27B GPTQ-Int4 + MTP | 2,062 -> 2,061 | 61.6 -> 74.3 | 171.9 -> 177.2 (4 users) | 127.8 -> 127.9 |
| Qwen3.8-27B UD-Q4_K_XL, native + MTP | 1,969 -> 1,967 | 56.2 -> 58.1 | 143.8 -> 141.1 (4 users) | 95.5 -> 98.8 |
| Ornith Q4_K_M, native | 7,130 -> 7,254 | 155.2 -> 155.0 | 133.8 -> 362.7 (8 users) | -- |
| Ornith Q4_K_M, converted to MXFP4 | 8,525 -> 8,624 | 174.8 -> 175.1 | 377.7 -> 389.2 (8 users) | -- |
| Ornith safetensors, MXFP4 | 8,633 -> 8,547 | 174.8 -> 175.1 | 377.1 -> 388.4 (8 users) | -- |
| Qwen3.8-Flash-Next NVFP4 (new row) | pp512 181.1 | 24.35 | -- | -- |
One-user tg128 cells are two-run samples (MTP acceptance varies with the text); the coding probe is the steadier measure. Every row passed the coherence check, both Qwen rows passed 2/2 coding and 8/8 concurrent coding answers, and Flash-Next's fixed answers equal the same binaries' host run.
What v1.10.4 changes (each has a switch back to the v1.10.3 behaviour):
| Change | Measured | Switch |
|---|---|---|
| MXFP4 MTP verify and batched decode: a faster exact dequant, a 128-register kernel for up to 8 rows, new split plans | Qwen3.8-27B MXFP4 + MTP, one B70: coding decode 101.6 -> 122.6 tok/s (4K prompt), tg128 one user +26%; kernels 13-30% faster per call | GRIMOIRE_MX_SMALLM_256=1 (up to 8 rows) |
| Two GPUs: 4-bit FFN weights (GPTQ / INT4, MXFP4, GGUF) on the overlapped prompt path | Qwen3.8-27B GPTQ + MTP on two B70s: pp4096 1,733 -> 3,093 | GRIMOIRE_TP_WAVE_4BIT=0 |
| Two GPUs: bf16 partials in the decode / verify exchange, each card adds its peer's partial | Qwen3.8-27B-FP8 + MTP on two B70s: coding 83.1 -> 93.9 tok/s, 4 users 98.0 -> 102.7, answers identical with the peer step on or off | GRIMOIRE_TP_SMALL_BF16=0, GRIMOIRE_TP_SMALL_PEER=0 |
| CPU-expert pool no longer waits for workers that are off their core; one card's decode thread stays free | Flash-Next served with 4 busy processes: 2.55 -> 16.81 tok/s, same answers | GRIMOIRE_CPU_PIN_CALLER=1 (the pin) |
| Native GGUF experts grouped for 2-16 rows by default (v1.10.3's opt-in) | Ornith Q4_K_M, 8 users: 133.8 -> 361.7 tok/s total | GRIMOIRE_MOE_NATIVE_SMALLM=0 |
| Tiered experts: default VRAM budget at most 60% of the card | a 12 GB B580 / 24 GB B60 no longer asks for 16 GB of experts; a B70 keeps 16 GB | GRIMOIRE_EXPERT_VRAM_GB |
Speculative decoding now sums in a different order, so a few generated texts change wording where two tokens were
nearly tied (44-case regression: 38 identical, 6 reworded and still correct). Two-GPU Flash-Next text also depends on the expert placement it has learned
(GRIMOIRE_EXPERT_HITS keeps counting), so it is not reproducible across server starts; from the same placement,
v1.10.4 with fp32 partials gives v1.10.3's answers exactly. Detailed results.
The release image's own binaries on one Arc Pro B70, llama-benchy 0.4.0, pp4096 / tg128. Each cell is v1.10.2 (measured 2026-10-31) -> v1.10.3, same machine and test. Concurrent decode is the total across the stated number of users. Qwen uses eight sequence slots, MTP K=6 and a draft vocabulary of 65,536; Ornith uses eight slots without MTP. These HTTP measurements differ from the short-prompt CLI measurements above.
| Checkpoint and mode | Prompt, 1 user | Decode, 1 user | Concurrent decode, total | Coding decode |
|---|---|---|---|---|
| Qwen3.8-27B GPTQ-Int4 + MTP | 2,020 -> 2,062 | 67.1 -> 61.6 | 180.5 -> 171.9 (4 users) | 127.9 -> 127.8 |
| Qwen3.8-27B UD-Q4_K_XL, native + MTP | 1,973 -> 1,969 | 59.4 -> 56.2 | 141.6 -> 143.8 (4 users) | 96.2 -> 95.5 |
| Ornith Q4_K_M, native | 7,259 -> 7,130 | 155.2 -> 155.2 | 133.8 -> 133.8 (8 users) | -- |
| Ornith Q4_K_M, converted to MXFP4 | 8,753 -> 8,525 | 175.1 -> 174.8 | 378.4 -> 377.7 (8 users) | -- |
| Ornith safetensors, MXFP4 | 8,804 -> 8,633 | 174.7 -> 174.8 | 378.9 -> 377.1 (8 users) | -- |
v1.10.3 changes no default: a 44-run regression on its source gave the same answers as before. The one-user tg128 figures for Qwen are two-run samples whose ranges overlap (GPTQ 61.6 +/- 3.9 against 67.1 +/- 2.8, GGUF 56.2 +/- 4.9 against 59.4 +/- 8.6); the coding probe, a fixed 2,153-token prompt that generates until the answer finishes, is unchanged. Both Qwen modes passed two coding answers and eight concurrent coding answers, and each row passed the benchmark's coherence check. MTP acceptance and throughput vary with the prompt.
Three opt-in modes in v1.10.3, all off by default:
Add to docker run |
Measured on one B70 | Limit |
|---|---|---|
-e GRIMOIRE_MOE_NATIVE_SMALLM=1 |
Ornith Q4_K_M native, 8 users: 133.8 -> 359.3 tok/s total; 1 user 155.2 -> 156.0 | native GGUF experts, 2-16 rows; concurrent coding 6/8, and the same prompts fail when run alone |
-e GRIMOIRE_MTP_GPU_DRAFT=1 |
Qwen3.8-27B GPTQ-Int4 + MTP, 4 users: 171.9 -> 183.2 tok/s total | run-to-run ranges overlap; not a firm speed claim |
-e GRIMOIRE_ONEDNN_W8A8=3 |
Qwen3.8-27B-FP8 as --proj int8, pp4096: 2,072 -> 2,457 tok/s |
8-bit activations in the widest prompt projections: top-1 vs BF16 98.4% -> 97.7% on a limited text sample |
The native expert batching passes an independent numerical oracle (32 cases); its concurrent answers are not token-identical to the default, so treat it as a throughput option. Detailed results.
curl -LO https://github.com/doopeworld/GRIMOIRE/releases/download/v1.10.14/grimoire-b70-v1.10.14.tar.gz
docker load < grimoire-b70-v1.10.14.tar.gz # -> grimoire-b70:v1.10.14
docker tag grimoire-b70:v1.10.14 grimoire-b70:latest # the commands below use :latest
v1.10.14 (above) drafts Inkling 2 Mini with DFlash2 (BetterBench on
two B70s 141.8 -> 173.5). v1.10.13 makes Qwen3.8-27B DFlash2 faster (drafter attention, draft trees).
v1.10.12 (above) runs the Inkling 2 Mini server with a 262K context on two B70s.
v1.10.11 (above) adds the Inkling 2 Mini server to v1.10.10 (pooled KV, faster
Flash-Next MTP on two cards).
v1.10.9 (above) makes Qwen3.8-Flash-Next write much faster at long context (two B70s,
60K: 31 -> 46 tok/s) and read faster on long prompts, loads Flash-Next 4-bit on two cards and makes one-card Qwen3.8
speculative decoding ~4% faster.
v1.10.8 (above) makes prompts faster on one and two cards, fixes INT8 on one card and
speeds up Flash-Next on long prompts. v1.10.7 (above) turns the prompt cache on and adds copy drafting and the long-context
work. v1.10.6 (above) adds the multi-user speculative decoding work to everything v1.10.4
has and ships oneDNN 3.13.4 with oneAPI 2026.2 and GPU driver 26.35. v1.10.4 (above) keeps v1.10.3's three opt-in speed modes
(v1.10.3 table); native GGUF expert grouping is now on by default. Like v1.10.2 it includes native GGUF decode
and prompt speed-ups and MTP from the GGUF file's own head, runs on the Arc Pro B70 and the Arc Pro
B60 / Arc B580, serves MTP to several users on two GPUs, reads GGUF files, runs the FP8 checkpoint
as fast INT8 (--proj int8), and ships oneAPI 2026.2, GPU driver 26.35 and oneDNN 3.14 (see the
release notes).
All releases are on the Releases page. You can also
build the image yourself: docker build -t grimoire-b70 .
Built from main, the same image runs on the Arc Pro B70 and on the Arc Pro B60 / Arc B580
(Battlemage G21; the kernels are tuned on the B70, and we have not measured a B60 ourselves). At start
it prints KV cache: N slots x --ctx M, X GiB on this card: when GRIMOIRE_SEQ_SLOTS conversations
at --ctx do not fit the card, it holds fewer at once (the others wait for a free one) and says why.
Every number in this README was measured with a checkpoint from the table below. Download the Hugging Face repository into a folder, for example:
hf download Qwen/Qwen3.8-27B-FP8 --local-dir /path/to/models/Qwen3.8-27B-FP8
ls -l /dev/dri/by-path/ # the B70 is the pci-<its PCI address>-render entry, e.g. renderD128
The number can change after a reboot, so check again after every reboot.
docker run -d --name grimoire --init --stop-timeout 300 \
--device /dev/dri/renderD128 \
-v /path/to/models:/models -p 8000:8000 \
-e GRIMOIRE_SEQ_SLOTS=8 \
grimoire-b70:latest \
server --model /models/Qwen3.8-27B-FP8 --proj mxfp4 --ctx 16384 --port 8000
Only three things change from one model to another: the --model folder, --proj, and the extra
flags in the table. The server is OpenAI-compatible at http://<host>:8000/v1.
v1.9.0 only: MTP with GRIMOIRE_SEQ_SLOTS=1 can skip or repeat chunks of an answer
(reproduced on Qwen3.8 and Ornith). Fixed in v1.10.0; with v1.9.0, keep GRIMOIRE_SEQ_SLOTS
at 2 or more, or disable MTP.
--initand--stop-timeout 300are required: killing a container with GPU work in flight can drop the card off the PCI bus until a power cycle.-e GRIMOIRE_SEQ_SLOTS=8lets up to 8 requests decode together. Without it the server answers one request at a time.--ctxis reserved for every slot, so keep it as small as you need. On Qwen3.8-27B with 8 slots,--ctx 32000takes 8.4 GB of KV cache and leaves room for only ~1,500 prompt tokens per prefill pass (longer prompts are split, which is slower);--ctx 16384leaves ~5,900. The server prints the figure at startup:prefill chunk up to N tokens per call.- Decoding is greedy (leave
temperatureout or send 0).stop,logprobsandresponse_formatare not supported yet; requests that use them get HTTP 400. - Tool calling (OpenAI
tools/tool_choice, since v1.8.2) works on Qwen3.8-27B (and its fine-tunes), Ornith-1.5-35B-A3B, Agnes-3.0-Flash and Qwen3.8-Flash-Next: the prompt is rendered byte-for-byte as the checkpoint's own chat template, and the model's<tool_call>blocks come back astool_calls(finish_reason: "tool_calls", streamed or not). Qwen3.6-35B-A3B's newer template and the K2 and Muse templates are not supported yet: a request withtoolsgets HTTP 400 there. - Thinking models answer with their reasoning in
reasoning_contentand the answer incontent(chat_template_kwargs: {"enable_thinking": false}turns thinking off). - A long prompt that arrives while other requests are decoding is processed in chunks of 1,024
tokens with the others' decoding in between (
GRIMOIRE_INTERLEAVE_CHUNK, 0 = off): the others pause for ~0.6 s at a time instead of ~2 s for a 4K prompt.
Measured on one Arc Pro B70 with llama-benchy 0.4.0, release v1.8 for the first row, v1.7 / v1.7.1
otherwise unless marked (v1.6 = not re-measured; the code paths for that row did not change). Decode = generated tokens/s; "8 users" is
the total over 8 concurrent requests with -e GRIMOIRE_SEQ_SLOTS=8; prompt = prefill tokens/s at one
user.
| Model | Download from Hugging Face | --proj |
Extra flags | Decode, 1 user | Decode, 8 users | Prompt |
|---|---|---|---|---|---|---|
| Qwen3.8-27B + MTP | SergiioB/Qwen3.8-27B-GPTQ-Int4-sym-G128-MTP-BF16 | int4 |
-e GRIMOIRE_MTP=1, --ctx 16384 |
54 - 72 | 187 a | 2,070 (pp4096) |
| Qwen3.8-27B, plain | same | int4 |
34.8 b | 145.3 b | 870 (pp512) | |
| Qwen3.8-27B + DFlash2 | Qwen/Qwen3.8-27B-FP8 and the draft z-lab/Qwen3.8-27B-DFlash2 | mxfp4 |
--dflash-model /models/Qwen3.8-27B-DFlash2 (server argument; measured without GRIMOIRE_SEQ_SLOTS) |
57.1 | -- | 1,294 (pp512) |
| Qwen3.8-27B + MTP | Qwen/Qwen3.8-27B-FP8 | mxfp4 |
-e GRIMOIRE_MTP=1 |
48.5 (v1.7, 3 drafts) | -- | 1,415 (pp512) |
| Qwen3.8-27B, plain | Qwen/Qwen3.8-27B-FP8 or the BF16 Qwen/Qwen3.8-27B | mxfp4 |
33.1 | 162.2 | 1,412 (pp512), ~2,050 (pp4096) | |
| Ornith-1.5-35B-A3B | ornith-ai/Ornith-1.5-35B-A3B (BF16), -FP8 or -NVFP4 | mxfp4 |
193 | 460 - 466 | 7,000 - 7,400 (pp512) | |
| Ornith-1.5-35B-A3B, GPTQ | SergiioB/Ornith-1.5-35B-A3B-GPTQ-Int4-sym-G128-MTP-BF16-MixedCal-v2 | int4 |
100 (v1.6) | 122 (v1.6) | 308 (v1.6) | |
| Qwen3.6-35B-A3B, GPTQ | palmfuture/Qwen3.6-35B-A3B-GPTQ-Int4 | int4 |
100 (v1.6) | 122 (v1.6) | 322 (v1.6) | |
| Muse-Glimmer-30B | dudeman2512/Muse-Glimmer-30B-INT4-W4A16 | int4 |
leave out GRIMOIRE_SEQ_SLOTS |
26.9 | -- | 702 (pp512) |
| Muse-Glimmer-30B | olka-fi/Muse-Glimmer-30B-MXFP4 | mxfp4 |
leave out GRIMOIRE_SEQ_SLOTS |
24.8 (v1.6) | -- | |
| Agnes-3.0-Flash | Agnes-AI/Agnes-3.0-Flash | mxfp4 |
--ctx 16384 |
28 c | ||
| K2-Horizon-MoVA-36B-A4B | IFM/K2-Horizon-MoVA-36B-A4B | mxfp4 |
-e GRIMOIRE_SEQ_SLOTS=4, --ctx 16384 (every K2 layer keeps a KV cache, so 4 slots) |
66.8 | 83.4 (4 users) | 919 (pp512) |
| Qwen3.8-Flash-Next | nvidia/Qwen3.8-Flash-Next-NVFP4 | bf16 |
-e GRIMOIRE_EXPERT_VRAM_PER_LAYER=112, optionally -e GRIMOIRE_PLE_FILE=/models/grimoire-ple/flash-next-ple.bin (made by tools/ple_flatten.py) and -e GRIMOIRE_EXPERT_HITS=/models/grimoire-ple/flash-next.hits, --ctx 65536; see FLASH-NEXT-TIERED.md |
22 c (too large for one B70: experts in VRAM + pinned RAM, ~50 GB free RAM needed) | ||
| Ornith-1.5-35B-A3B on two B70s | ornith-ai/Ornith-1.5-35B-A3B-FP8 | fp8 |
two GPUs, see Two GPUs | 77 c |
a Release v1.8 image, MTP with GRIMOIRE_SEQ_SLOTS=8, --ctx 16384, total tok/s at 1 / 2 / 4 /
8 users: pp512/tg128 53.9 / 87.9 / 121.7 / 187.4; pp4096/tg128 55.2 / 78.9 / 107.9 / 149.0. Every
llama-benchy run draws different text from its book and MTP's gain depends on the text: four runs
at 1 user gave 54 - 72 tok/s after pp512 and 55 - 64 after pp4096. MTP drafts while at most 4
requests are active (GRIMOIRE_SPEC_MAX_SEQS) and switches to plain batched decoding above that.
b Measured on bjonor/Swift-1.5-Qwen3.8-27B-GPTQ-Int4-sym-G128-MTP-BF16,
a Qwen3.8-27B fine-tune in exactly the same format (same kernels, same speed).
c v1.8 - v1.8.2, one 128-token request through the server (not llama-benchy).
Fine-tunes in the same format work the same way (--proj int4, MTP flags as above). Tested:
bjonor/Swift-1.5-Qwen3.8-27B-GPTQ-Int4-sym-G128-MTP-BF16
(MTP 51.3 tok/s) and
greglechin/Swift-1.5-Qwen3.8-27B-Uncensored-GPTQ-Int4-sym-G128-MTP-BF16
(MTP 47.2 tok/s, CLI).
Speculative decoding (MTP / DFlash2).
- MTP uses the checkpoint's own multi-token-prediction head, so there is nothing extra to
download: add
-e GRIMOIRE_MTP=1. The head drafts 4 tokens per step (GRIMOIRE_MTP_K, default 4; v1.8 at 1 user, tg128 after pp512 / pp4096: K=3 61.9 / 56.0, K=4 63.5 / 69.6, K=5 66.2 / 65.0 tok/s). The head proposes tokens and the target verifies them. Fast verification uses different arithmetic from single-token decode and can change greedy answers through rounding.GRIMOIRE_MTP_HEAD_FMT=bf16keeps a converted draft head in BF16; saved head formats are preserved. - DFlash2 is a separate draft model: download it next to the checkpoint and add
--dflash-model /models/<draft folder>afterserver. - Today both are faster than plain decoding on Qwen3.8-27B only. On Ornith they are not faster yet, so leave them off there.
GRIMOIRE_MTP_GPU_DRAFT=1 is an experimental option for single-GPU batched MTP (in the image since v1.10.3).
Draft depths keep their proposed IDs on the device and use one final proposal readback.
The paired test preserved all 38 responses, including 28 uneven token budgets; coding passed
10/10 in each mode. Measured two/four-user rates changed from 96/179 to 106/184 tok/s, with
overlapping variance. It defaults off; single-user drafting and TP/PP keep their existing paths.
DFlash2 also works with the native Qwen UD-Q4_K_XL GGUF target: coding 10/10 and coherence pass, but tg128 was slower than native MTP (51.6 vs 59.4 tok/s for one user, 73.2 vs 141.6 total for four). The existing exact-verification option matched the 64-token reference fixture; this does not establish universal token parity. Measurements and limits.
Prefill (prompt) speed on INT4. Since v1.8 GPTQ / INT4 checkpoints use the same fast prefill path as MXFP4: 2,069 - 2,078 tok/s at 4,096 tokens on Qwen3.8-27B GPTQ-Int4 (v1.7.1: 1,731).
Optional INT8 prompt arithmetic (in the image since v1.10.3). GRIMOIRE_ONEDNN_W8A8 quantizes activation
rows for existing INT8 weights; it defaults to 0 (BF16 activations). Mode 1 selects all eligible
projections, 2 selects large projections, and 3 selects wide outputs while retaining BF16
activations for narrow outputs. Decode and verify batches below 32 rows are unchanged.
On Qwen FP8 loaded with --proj int8, mode 1 increased pp4096 from 2,077 to 2,909 tok/s, while
256-prefix top-1 agreement with the BF16 original fell from 98.4% to 93.8%. Modes 2/3 measured
95.7%/97.7% agreement. These are lossy options, not fidelity-preserving defaults. Selection uses
each rank's local matrix shape, so conservative modes may select nothing after TP sharding.
See the accuracy and speed table before choosing a mode.
The image's multi mode runs one server rank per GPU in the same container; only the first rank
serves HTTP. Each GPU stays in its own process and exchanges data through host memory, so it works
on boards without GPU-to-GPU P2P. Two layouts:
multi TP(tensor parallel): both cards work on every token, each holding half of every layer. Use it for dense models such as Qwen3.8-27B-FP8 with--proj int8(~3,500 tok/s prompt, 29.5 decode for one user, 165 total for 8 users; withGRIMOIRE_MTP=156.5 for one user, 88 on code, 162 total for 8 users) and for Qwen3.8-Flash-Next (tensor + expert parallel, see below).multi PP(pipeline parallel): each card holds a block of layers. Use it for MoE models such as Ornith-1.5-35B-A3B-FP8.
Map exactly the render nodes you want, in order, and set ZE_AFFINITY_MASK to match:
docker run -d --name grimoire-dual --init --stop-timeout 300 --ipc=host --shm-size=10g \
--device /dev/dri/renderD128 --device /dev/dri/renderD131 \
-v /dev/dri/by-path:/dev/dri/by-path:ro -v /path/to/models:/models -p 8000:8000 \
-e ZE_AFFINITY_MASK=0,1 -e GRIMOIRE_MULTI_GPUS=2 -e GRIMOIRE_PP_SPLIT=20 \
-e GRIMOIRE_SEQ_SLOTS=8 -e GRIMOIRE_DEFER_MOE_GATHER=1 \
-e GRIMOIRE_BF16_QKV=1 -e GRIMOIRE_BF16_DN_QKV=1 \
grimoire-b70:latest \
multi --model /models/Ornith-1.5-35B-A3B-FP8 --proj fp8 --ctx 32000 --port 8000
GRIMOIRE_PP_SPLIT is the number of layers the first GPU keeps (Ornith has 40, Qwen3.8-Flash-Next
48). For tensor parallel, replace multi --model ... with multi TP --model /models/Qwen3.8-27B-FP8 --proj int8 ... and leave out GRIMOIRE_PP_SPLIT (fast INT8 since v1.10.1; with the older
v1.10.0 image keep --proj fp8). Use two GPUs only for checkpoints that do not fit
one card -- a model that fits runs faster on one GPU.
Qwen3.8-Flash-Next on two cards: multi TP with --proj bf16 --ctx 65536,
GRIMOIRE_EXPERT_VRAM_PER_LAYER=170 (experts per layer kept in each card's VRAM), GRIMOIRE_PLE_FILE= (the flattened
n-gram table, made by tools/ple_flatten.py) and GRIMOIRE_EXPERT_HITS= (routing counts: GRIMOIRE
updates this file as it serves, and the most-used experts go to VRAM at the next start). The experts
that stay outside VRAM take ~20 GB of pinned host RAM; the n-gram table (51 GB) is copied into RAM in
the background when there is room (GRIMOIRE_PLE_RAM=0 keeps reading it from disk).
Some older results and commit notes name Ornith-1.5-35B-A3B-MXFP4-GRIMOIRE or
Qwen3.8-27B-MXFP4-GRIMOIRE. These are not on Hugging Face: they are pre-converted copies
made on the developer's machine with GRIMOIRE's offline converter (tools/b70_compile_model.cpp)
from the official BF16 releases (ornith-ai/Ornith-1.5-35B-A3B,
Qwen/Qwen3.8-27B). You do not need them: loading the
BF16 (or FP8 / NVFP4) release with --proj mxfp4 quantizes to the same MXFP4 format at startup
and runs at the same speed (measured: 193 tok/s on Ornith from the FP8 and NVFP4 releases and
from the converted copy). The converted copy only starts faster.
GRIMOIRE reads GGUF files itself: its own parser and decoders, no llama.cpp inside. Merged into main on 2026-10-29: the BF16 Ornith GGUF still gives exactly the same tokens as the safetensors release (4 of 4 prompts), and the Q4_K_M / UD-Q4_K_XL files answer correctly.
- Load a bare
.ggufpath (split files too): the tokenizer and chat template come from the file. - All 35 ggml tensor types are decoded, bit-exact against the reference implementation.
--proj nativekeeps the K-quant and IQ4_XS blocks as they are and runs them in GRIMOIRE's kernels (on Ornith Q4_K_M: llama.cpp-level accuracy);--proj mxfp4converts the weights to MXFP4 at load (fastest, less accurate).- Validated on real Hugging Face files: Ornith-1.5-35B-A3B (official GGUF, BF16 and Q4_K_M), Qwen3.8-27B (Unsloth BF16 and five quants, from Q8_0 down to IQ2_XXS), gemma-4-12B.
- MTP works from the file's own MTP head (the
nextnblock;GRIMOIRE_MTP=1): Qwen3.8-27B UD-Q4_K_XL 28.0 -> 71.6 tok/s on one B70 with exactly the same tokens. Files without the head (Unsloth's UD-IQ1_S / UD-IQ2_XXS) refuseGRIMOIRE_MTP. Ornith's MoE MTP head on GGUF was tested on 2026-10-30: the answer matched plain decoding, but MTP was slower (94.5 vs 179.8 tok/s, CLI), so leave it off. DFlash on GGUF is not tested yet. - Qwen3.8-Flash-Next GGUF needs the RAM expert tiering and is not supported yet.
Results are in Results at a glance.
Most inference tooling and performance guidance is centered on other GPU platforms. Battlemage owners need an engine that treats Intel hardware as a first-class target and makes its real performance measurable.
GRIMOIRE began as a ground-up inference project for the Arc Pro B70. Building the engine directly exposed important details that a port or a high-level wrapper could hide: how the GPU represents quantized weights, where attention kernels can go wrong, how to keep decode bound by useful memory traffic, and what multi-GPU communication actually costs on this setup.
The project exists to turn those findings into working inference code, reproducible checks, and practical performance improvements for Battlemage users.
- Running supported large language models locally on Intel Arc Pro B70 GPUs.
- Exploring native C++ / SYCL / Level Zero kernels for model inference.
- Measuring prefill and token-generation performance on real hardware.
- Improving single-GPU execution and developing multi-GPU paths for models that need more memory.
- Checking changes against a growing set of model and checkpoint combinations.
GRIMOIRE is a hardware-focused inference engine, not a hosted model service. Model compatibility and performance depend on the architecture, weight format, configuration, and hardware available.
- C++ inference engine
- SYCL GPU programming
- Level Zero device runtime
- Intel Battlemage, with the Arc Pro B70 as the primary target
- Custom GPU work for operations such as attention, matrix multiplication, quantized weight handling, and mixture-of-experts layers
The project aims to keep inference native to the target hardware and does not use vLLM, PyTorch, or OpenVINO as its inference backend.
These are results recorded in the linked project commits on the developer's Arc Pro B70 system. They are examples from specific models and test runs, not universal performance guarantees.
| Workload | Recorded result | Context |
|---|---|---|
| Ornith-1.5-35B-A3B token generation | 198.6 tokens/s | Single B70, command-line run, 256 generated tokens; model: the MXFP4 conversion of ornith-ai/Ornith-1.5-35B-A3B (see Run a model). Through the HTTP server with llama-benchy: 193 tokens/s. Commit |
| Ornith-1.5-35B-A3B prefill | 10,030–10,165 tokens/s | Two-GPU pipeline-parallel run, 5,987-token prompt, same model. Output matched the single-B70 run for the checked text. Commit |
| Qwen3.8-27B GPTQ-Int4 with MTP | 54–72 tokens/s, prefill 2,070 tokens/s | Single B70, one user, llama-benchy through the HTTP server, release v1.8 (plain decoding: 33–35); 187 tokens/s total at 8 users. Exact checkpoint and flags in Run a model. Release v1.8 |
| TP decode communication batching | 59.3–60.0 tokens/s | Recorded TP run after combining independent projection gathers; see the commit for the setup and comparison. Commit |
The two-GPU figures demonstrate an actively developed path. Tensor and pipeline parallelism are intended for models that need multiple GPUs for capacity; they are not automatically faster for a model that already fits on one card.
Results change as kernels and test coverage evolve. The commit links include the measurements, validation notes, and limitations for each change. The latest model-zoo audit reports 27 confirmed working model/checkpoint combinations in the local regression sweep, with additional formats and configurations correctly identified as out of scope. Latest audit
Everything below is validated end-to-end — loaded, generating coherent text, checked against a reference where one exists — on one Intel Arc Pro B70, by the project's own regression suite. That suite runs after every change that touches shared decode, prefill, attention, or MoE code, not as a one-time check.
| Model | Formats | Role | Notes |
|---|---|---|---|
| Ornith-1.5-35B-A3B | MXFP4, NVFP4, FP8, GPTQ-Int4, INT4 (AutoRound W4A16), bf16 source | target | 35B MoE, 256 experts / top-8. 198.6 tok/s decode, 10,030–10,165 tok/s prefill (2×B70), both above |
| Ornith-1.5-35B-A3B-DFlash2 | MXFP4 | speculative draft | for Ornith-1.5-35B-A3B |
| Qwen3.8-27B | MXFP4 (two independent conversions), NVFP4, FP8, W4A16, GPTQ-Int4, INT4 (AutoRound), bf16 source | target | reference point for the vLLM/OpenVINO int4-ov baseline this project compares against |
| Qwen3.8-27B + native MTP head | GPTQ-Int4 (BF16 head), FP8 | target | multi-token prediction, faster than plain decoding since v1.7 |
| Qwen3.8-27B fine-tunes: Swift-1.5, Swift-1.5 Uncensored | GPTQ-Int4 + BF16 MTP head | target | same format as Qwen3.8-27B GPTQ-Int4 |
| Qwen3.8-27B-DFlash2 | MXFP4 | speculative draft | for Qwen3.8-27B (z-lab/Qwen3.8-27B-DFlash2); faster than plain decoding since v1.7 |
| Qwen3.6-35B-A3B-GPTQ-Int4 | GPTQ-Int4 | target | 35B MoE |
| Qwen3.6-35B-A3B-DFlash | bf16 | speculative draft | for its own GPTQ-Int4 target |
| Qwen3.5-35B-A3B-DFlash | bf16 | speculative draft | for Ornith, which shares its base architecture |
| Qwen3.8-Flash-Next | NVFP4 | target | too large for one B70's VRAM; tiered across VRAM, system RAM, and SSD |
| Muse-Glimmer-30B | INT4 (W4A16), GPTQ-INT4, MXFP4 | target | hybrid sliding-window / full attention |
| K2-Horizon-MoVA-36B-A4B | MXFP4 (quantized on load from its bf16 release) | target | 36B MoE, its own architecture rather than a Qwen3.5-MoE derivative |
| Agnes-3.0-Flash | MXFP4 | target | |
| Inkling 2 Mini | as published (NVFP4 / MXFP8 experts, BF16 dense) + its DSpark MTP drafter | target | one or two B70; own engine and OpenAI server (grimoire-inkling, v1.10.11) |
All seven weight formats (BF16, FP8 E4M3/E5M2, INT8, INT4, MXFP8, MXFP4) run through one decode path shared by every model above and by the host-side tests.
Tensor-parallel and pipeline-parallel both run correctly across two B70s. They exist for checkpoints whose own footprint doesn't fit one card's VRAM (Qwen3.8-27B in FP8, Ornith in FP8, Qwen3.8-Flash-Next); a model that fits a single B70 runs fastest there.
GGUF files of Ornith-1.5-35B-A3B and Qwen3.8-27B load directly (see GGUF support).
Speculative decoding is faster than plain decoding on Qwen3.8-27B since v1.7 (MTP ~1.5x, DFlash2 ~1.7x for one user). On the other models it is not faster yet, so leave it off there.
GRIMOIRE is under active development. Model support, build requirements, and performance may change as the engine evolves. Benchmarks should be read with their linked commit notes, which record the model, test conditions, correctness checks, and known trade-offs.
