Dossier

Inkling 2 Mini on AMD GPUs

From 30 tokens a second on stock llama.cpp to 152 tokens a second and 6,200 prefill on one Radeon AI PRO R9700, after patching seventeen RDNA 4 WMMA kernels in HRX Loom by hand.

On 21 and 22 November 2026 I measured Thinking Machines' Inkling 2 Mini (Apache-2.0, 26.4B total parameters, 3.4B active, looped mixture-of-experts, 1M context, vision) across two AMD machines, a discrete Radeon AI PRO R9700 (32 GiB, RDNA 4, gfx1201, tested singly and in a pair) and a Ryzen AI Max+ 395 Strix Halo system (128 GiB unified memory, RDNA 3.5, gfx1151). On one R9700, stock llama.cpp opened at 29.7 to 31.1 tok/s decode and 116.9 to 261.8 tok/s prefill. Stacking an upstream chunked-mask patch, larger microbatches, and DSpark 3-layer speculative decoding lifted llama.cpp to 41.9 tok/s on code, 53.8 tok/s on reasoning, and 512.2 tok/s prefill at 16.8k context. Moving to HRX Loom 0.3.0 required fixing seventeen RDNA 4 WMMA kernels in its IR by hand, first to clear an AMDGPU/023 JIT failure and then to stop silent numerical corruption in the accumulator layout. Once patched, the same R9700 reached 130.0 tok/s on code, 132.3 tok/s on reasoning, 152.2 tok/s sustained across a 2,048-token code run, and 6,199.8 tok/s prefill at 16.8k context while drawing 1.87 J/tok at the GPU.

Two boundaries sit beside that headline. Layer-splitting a looped model across two R9700 cards over PCIe cut decode to 12.5 to 13.8 tok/s and burned about 11 J/tok because every token crossed the bus six times. And a single 32 GiB R9700 cannot hold a 1M f16 KV cache at all, so full 1M context belongs on Strix Halo's 128 GiB unified memory, where Loom prefills at 1,750.6 tok/s and Vulkan llama.cpp can hold up to eight 1M slots with q4_0 KV.

Method

Hardware, builds, and how the runs were measured

Every number below was measured directly on Linux between 21 and 22 November 2026, using upstream open-source runtimes and public model weights.

PartValue
Discrete GPU1x and 2x AMD Radeon AI PRO R9700 (32 GiB GDDR6 per card, 31.86 GiB usable each, 63.7 GiB combined, RDNA 4 / gfx1201, hosted on PCIe 4.0 x16 root ports at 16.0 GT/s, two hops across the CPU root complex), running ROCm / TheRock for llama.cpp and native libamdf over /dev/kfd for HRX Loom
Unified memory APUAMD Ryzen AI Max+ 395 / Strix Halo (128 GiB unified memory, about 110 GiB usable by the GPU, RDNA 3.5 / gfx1151), running Vulkan RADV for llama.cpp and native libamdf over /dev/kfd for HRX Loom
Runtimesllama.cpp b12614 and b12634 built from upstream source, plus PR #32752 (chunked mask build) and PR #32218 pinned at commit 0a9105d (DSpark speculative decoding); hrx-loom 0.3.0 with loom-fun/unsloth-Inkling-2-Mini-loom
Weights and drafterAtomicChat/Inkling-2-Mini-GGUF AD-Q6_K (23.79 GB, inkling2_loop schema) for llama.cpp; unsloth UD-Q4_K_XL (16.4 GiB, unrolled schema) for HRX Loom; dspark-Inkling-2-Mini-Q8_0.gguf (384 MiB) for speculative decoding
Workloads and powerShort code and reasoning prompts, a 16.8k-token needle retrieval test (exact recall of COBALT-FALCON-7429), a sustained 2,048-token code run, and a 10-step autonomous coding benchmark on the baseline. GPU board power sampled at 4 Hz from Linux hwmon, plus wall power on Strix Halo

vLLM is absent from the table for a simple reason. Its Inkling 2 pull request (#69028, commit ab18334a4) places every operator under vllm/models/inkling2/nvidia/ and binds directly to SM90 and SM120 NVFP4, MXFP8, and TensorRT-LLM CUDA kernels. There is no ROCm or Triton fallback yet, so AMD serving starts with llama.cpp and HRX Loom.

The two engines also consume different GGUF layouts. AtomicChat/Inkling-2-Mini-GGUF keeps the looped inkling2_loop schema that llama.cpp expects, while unsloth's UD-Q4_K_XL (16.4 GiB) unrolls the weights for Loom. On AtomicChat's published calibration checks, AD-Q6_K sits right next to Q8_0 while saving 4 GB of VRAM.

Quant (AtomicChat/Inkling-2-Mini-GGUF)SizeTop-1 matchKLDNotes
Q8_027.74 GB97.7%0.0033Leaves under 4.2 GiB on a 32 GiB card for KV and compute
AD-Q6_K23.79 GB97.6%0.0037Used for all llama.cpp runs; near-Q8_0 quality, 4 GB smaller
AD-Q4_K16.53 GB96.3%0.0080Comparable weight budget to unsloth UD-Q4_K_XL (16.4 GiB)

Architecture

Looped weights double the KV cache and break naive parsers

Inkling 2 Mini has 24 physical layers, with 128 routed experts and top-8 activation. Layers 0 through 5 run once, the middle twelve layers ([6, 18)) loop three times using shared weights steered by rank-64 gated inter-pass controllers, and layers 18 through 23 run once. Each token visits 48 effective layers and touches roughly 5.4B active parameters across the looped passes, even though the single-pass active parameter count is 3.4B.

Only four physical layers use full attention, layers 5, 11, 17, and 23 (8 KV heads, head_dim 128). The remaining 20 physical layers use sliding-window attention with a 1,024-token window and a learned relative-position bias (d_rel=16) in place of RoPE. Because layers 11 and 17 sit inside the 3x loop, each pass maintains its own KV history, giving 1 + 3 + 3 + 1 = 8 logical full-attention KV layers and 40 sliding-window layers.

KV cache precision (8 full-attention layers)Bytes per token1x 256k slot4x 256k slots1x 1M slot
f1632,768 B8.0 GiB32.0 GiB32.0 GiB
q8_017,408 B4.25 GiB17.0 GiB17.0 GiB
q4_09,216 B2.25 GiB9.0 GiB9.0 GiB

Generic GGUF memory calculators miss loop.count=3, count four full-attention layers instead of eight, and understate KV memory by a factor of two. That single factor explains two hard ceilings later in this report. A single 32 GiB R9700 (31.86 GiB usable) cannot even fit the 32.0 GiB of a 1M f16 KV cache before loading weights, and splitting the model across two GPUs forces the middle loop to bounce back and forth across PCIe.

Inkling 2 Mini looped layer execution and 6x PCIe 4.0 boundary crossings24 physical layers execute as 48 effective layers. Layers 0 to 5 have full attention at layer 5, middle layers 6 to 17 loop three times with full attention at layers 11 and 17 on each pass, and layers 18 to 23 have full attention at layer 23, yielding 8 full-attention KV layers. Splitting across two R9700 GPUs inside layers 6 to 17 crosses PCIe 4.0 x16 six times per token.A. 24 physical layers expand to 48 visits and 8 full-attention KV layersLayers 0..55 SWA-1024L5 full KV (1)Middle 12 layers [6..17] looped 3xshared weights · rank-64 inter-pass gatesPass 110 SWA-1024L11, L17 (+2 KV)Pass 210 SWA-1024L11, L17 (+2 KV)Pass 310 SWA-1024L11, L17 (+2 KV)Layers 18..235 SWA-1024L23 full KV (1)Full-attention KV = 1 + (2 x 3) + 1 = 8 layers (f16 32.0 GiB/1M, q8_0 17.0 GiB/1M, q4_0 9.0 GiB/1M)B. Layer-splitting across 2x R9700 crosses PCIe 4.0 x16 six times per tokenGPU 0 (R9700, 28% split)Layers 0..5 + lower [6..17]Sends ~9 KiB activation on every passPCIe 4.0 x166 crossings / tokGPU 1 (R9700, 72% split)Upper [6..17] + Layers 18..2312.5 to 13.8 tok/s (~11 J/tok)
Physical layers against logical execution, and why layer-split stalls on PCIe. Top, 24 physical layers unroll into 48 visits with 8 full-attention KV layers. Bottom, placing a pipeline split inside layers 6 to 17 forces activations across PCIe 4.0 x16 twice per loop pass, six crossings for every generated token.

llama.cpp on one R9700

Chunked masks and DSpark lift llama.cpp on one R9700

Stock llama.cpp b12614 on ROCm with AD-Q6_K, two 128k q8_0 KV slots, and microbatch ub=32 occupied 28.55 GiB of VRAM on one R9700. Short-context decode ran at 29.7 to 31.1 tok/s (29.4 tok/s at 28.4k tokens) and prefill sat between 116.9 and 261.8 tok/s. Before chasing speed, I verified functional output on a 10-step autonomous coding benchmark. The baseline passed 46 of 46 generated tests and 100% of hidden assertions with zero malformed tool calls and an 85 to 86% prefix cache hit rate.

Prefill was stuck at ub=32 because stock llama.cpp materializes Inkling 2's relative-position bias as a dense kq_b buffer of shape n_kv * ubatch * 24 * fp32. At 2x1M and ub=512 that single scratch buffer asks for 150.5 GiB and OOMs; even at ub=16 it hits 45.6 GiB and OOMs.

Moving to llama.cpp b12634 with upstream PR #32752 (chunked mask build) cuts the kq_b workspace by roughly 2.8x. Upstream PR #32740 (compact FlashAttention bias) was narrowed on 22 November 2026 to the GGML CPU contract only, so #32752 is the active win for ROCm and Vulkan. On the ROCm build itself, bundling the target-scoped lib/hipblaslt/library files cleared rocblaslt fallback warnings on gfx1201. With the smaller mask workspace, llama-bench could finally scale ubatch cleanly.

llama-bench on 1x R9700 (AD-Q6_K + PR #32752)ub=32ub=128ub=256ub=512Gain vs 32
pp512 (short prompt prefill)325.9 tok/s678.9 tok/s918.6 tok/s1,227.9 tok/s3.77x
pp2048 at 16k depth303.8 tok/s485.1 tok/s581.2 tok/s580.9 tok/s1.91x

Long-context prefill saturated at ub=256. On the live server (2x128k q8_0, ub=128), prefill at 16.8k doubled to 531.5 tok/s while decode held flat at 29.6 tok/s on code, 30.1 tok/s on reasoning, and 27.6 tok/s at 16.8k context.

The next jump came from Thinking Machines' 3-layer speculative drafter, dspark (configured through mtp_config, distinct from DFlash), paired with dspark-Inkling-2-Mini-Q8_0.gguf (384 MiB). Upstream llama.cpp PR #32218 was rewritten mid-day with a tensor dimension change (200058 against 201024), so I pinned commit 0a9105d to stay compatible with unsloth's drafter file on both ROCm and Vulkan.

1x R9700 llama.cpp (2x128k q8_0, ub=128)CodeReasoning16.8k Prefill16.8k Decode
Plain (#32752)29.6 tok/s30.1 tok/s531.5 tok/s27.6 tok/s
DSpark n_max=341.9 tok/s (+42%, 43.5% acc)53.8 tok/s (+79%, 62.4% acc)512.2 tok/s38.6 tok/s (+40%, 66.1% acc)
DSpark n_max=439.5 tok/s55.6 tok/s (+85%)512 tok/s39.4 tok/s

n_max=3 is the cleaner operating point across mixed code and reasoning. Pushing to n_max=4 gained 1.8 tok/s on reasoning and 0.8 tok/s at 16.8k, but dropped code decode by 2.4 tok/s when acceptance dipped. Under n_max=3, the R9700 averaged 107.8 W (268 W peak), roughly 3.0 to 3.8 J/tok at the GPU. That was the ceiling for llama.cpp on one card. Figure 2 shows those three steps alongside the two patched HRX Loom runs described in Section 6.

Decode throughput on 1x Radeon AI PRO R9700 (top bar code, bottom bar reasoning)

Decode throughput progression on one Radeon AI PRO R9700Decode speed on one R9700 in tokens per second across five stages. llama.cpp baseline 29.7 to 31.1, PR 32752 at ub=128 29.6 code and 30.1 reasoning, DSpark n=3 41.9 code and 53.8 reasoning, patched HRX Loom d=0 98.2 code and 99.0 reasoning, patched HRX Loom d=3 130.0 code, 132.3 reasoning, and 152.2 sustained 2048-token code.04080120160Decode throughput (tok/s)llama.cpp b12614, ub=3229.7 to 31.1 tok/s+ PR #32752, ub=12829.6 / 30.1 tok/s+ DSpark n=3 (PR #32218)41.9 / 53.8 tok/sHRX Loom 0.3.0, d=098.2 / 99.0 tok/sHRX Loom 0.3.0, d=3152.2 sustained(130.0 / 132.3)

Prefill throughput on 1x Radeon AI PRO R9700 (16.8k context except baseline, log scale)

Prefill throughput progression on one Radeon AI PRO R9700 (log scale)Prefill speed on one R9700 on a logarithmic scale. llama.cpp baseline 116.9 to 261.8 tokens per second, PR 32752 at ub=128 531.5 at 16.8k context, DSpark n=3 512.2 at 16.8k, patched HRX Loom d=0 6,162.4 (2.73 s TTFT), patched HRX Loom d=3 6,199.8 (2.72 s TTFT).1003001,0003,00010,000Prefill throughput at 16.8k context (tok/s, log scale)llama.cpp b12614, ub=32117 to 262 tok/s+ PR #32752, ub=128531.5 tok/s+ DSpark n=3 (PR #32218)512.2 tok/sHRX Loom 0.3.0, d=06,162 tok/s (2.73 s TTFT)HRX Loom 0.3.0, d=36,200 tok/s (2.72 s TTFT)
Baseline llama.cppTuned llama.cpp (AD-Q6_K)Patched HRX Loom d=0 (UD-Q4_K_XL)Patched HRX Loom d=3 (DSpark)
Full tuning ladder on one R9700. Stacking #32752 and DSpark lifts llama.cpp from 30 to 54 tok/s and doubles prefill. Switching to patched HRX Loom 0.3.0 pushes sustained decode to 152.2 tok/s and 16.8k prefill to 6,200 tok/s (2.72 s TTFT).

Multi-GPU

Layer-splitting across two R9700s cuts decode in half

To test whether a second 32 GiB card could buy longer context without sacrificing speed, I ran llama.cpp across 2x Radeon AI PRO R9700 (63.7 GiB combined VRAM, hosted on PCIe 4.0 x16 root ports at 16.0 GT/s, two hops across the CPU root complex with P2P enabled, not PCIe 5.0) with 2x512k q8_0 KV, ub=64, and --tensor-split 28,72 -fit off -ngl 999. Every layer landed on GPU at 54.2 GiB total allocation, and 2x1M still OOMed because per-GPU compute buffers pushed total demand to 64 to 65 GiB against 63.7 GiB available.

Decode collapsed to 12.5 to 13.8 tok/s on short prompts and 11.1 tok/s at 16.8k context (296.9 tok/s prefill). Combined GPU power averaged 145.6 W (283 W peak), which works out to roughly 11 J/tok, three to six times worse energy efficiency than a single card. Moving to PCIe 5.0 would not rescue this layout: single-token decode transfers only one hidden-state vector per crossing (2,304 floats, roughly 9 KiB), so the bottleneck is sync and pipeline latency across six sequential handoffs per token while the idle card waits, not raw bus bandwidth.

Do not layer-split looped models over PCIe

Any pipeline cut inside the looped middle block [6, 18) crosses PCIe twice on every loop pass, six bus transfers for every token generated. Multi-GPU serving for Inkling 2 needs tensor parallelism (llama.cpp PR #32751) rather than layer splitting. Until that lands, long-context capacity belongs on unified memory.

Unified memory

Strix Halo holds 1M context, and Loom multiplies prefill by 25

The Ryzen AI Max+ 395 (Strix Halo, 128 GiB unified memory, roughly 110 GiB available to the GPU) trades GDDR6 bandwidth for raw KV headroom. With AD-Q6_K weights taking 23 GiB, the remaining ~87 GiB sets clean 1M-slot ceilings from the 8-layer KV arithmetic above:

Under llama.cpp on Vulkan RADV (AD-Q6_K, 1x1M q4_0 KV, ub=16, 33 to 35 GiB resident), plain decode ran at 28.1 tok/s on short prompts and 16.1 tok/s at 16.8k context, with prefill dragging at 81.9 tok/s. Turning on DSpark n=3 left short code flat at 28.1 tok/s (49.0% accept), nudged reasoning to 29.6 tok/s (50.8% accept), and jumped 16.8k decode by 64% to 26.4 tok/s (52.9% accept), with prefill at 81.3 tok/s. GPU power averaged 114.5 W (120.1 W peak) and wall draw sat around 150 W (157 W peak). Trying n=4 regressed code decode to 18.8 tok/s because Vulkan graph rebuilds ate the extra accepted tokens.

Switching engines on the exact same Strix Halo box changed the picture completely. HRX Loom 0.3.0 runs loom-fun/unsloth-Inkling-2-Mini-loom (UD-Q4_K_XL) over native libamdf and /dev/kfd, bypassing Vulkan and emitting fused RDNA 3.5 kernels.

Strix Halo (gfx1151, 128 GiB)MemoryCodeReasoning16.8k PP16.8k TGGPU W / J/tok
llama.cpp Vulkan, 1x1M q4_0, plain33 to 35 GiB28.1 tok/s28.1 tok/s81.9 tok/s16.1 tok/s
llama.cpp Vulkan, 1x1M q4_0, DSpark n=333 to 35 GiB28.1 tok/s29.6 tok/s81.3 tok/s26.4 tok/s114.5 W (~4.1 J)
HRX Loom 0.3.0, 4x256k, d=0+27 GiB46.3 tok/s46.3 tok/s2,090.9 tok/s38.8 tok/s104.1 W (~2.2 J)
HRX Loom 0.3.0, 4x256k, d=3 (DSpark)+29 GiB59.7 tok/s67.9 tok/s2,066.7 tok/s50.4 tok/s57 to 104 W (~1.65 J)
HRX Loom 0.3.0, 1x1M, d=0+19 GiB elastic42.5 tok/s42.7 tok/s1,750.6 tok/s14.8 tok/s111.8 W (124 W wall)

At 4x256k with DSpark d=3, Loom delivered 59.7 tok/s on code (+29% over d=0), 67.9 tok/s on reasoning (+47%), 50.4 tok/s decode at 16.8k, and 2,066.7 tok/s prefill, 25 times faster than Vulkan llama.cpp, at 1.6 to 1.7 J/tok at the GPU. Even in 1x1M elastic mode (+19 GiB committed RAM, 124 W wall draw), Loom still prefilled at 1,750.6 tok/s.

Kernel debugging

Patching seventeen RDNA 4 WMMA kernels in HRX Loom

Bringing HRX Loom 0.3.0 onto the R9700 failed at startup. The stock 106k-line llm.loom IR aborted JIT compilation with AMDGPU/023 on @g_ink_attention_flash2_far:1404 because fragment_memory.payload_layout was not satisfied on gfx1201.

Inspecting the IR showed two separate wave32 16x16x16 f16 WMMA ISA changes between RDNA 3 (gfx11) and RDNA 4 (gfx12). Existing dense GEMMs in llm.loom already carried nine explicit @rdna3 and @rdna4 kernel pairs, while seventeen kernels had been left generic with RDNA 3 fragment layouts, covering five FlashAttention kernels, eight MoE GEMMs, three loop-controller and projection prefill kernels, and one m128_n64 GEMM.

First bug, input A and B fragments rejected at compile time

On RDNA 3, wave32 v_wmma_f32_16x16x16_f16 duplicates all 16 K elements in every lane across both halves of the wave, so each A or B operand is a vector<16xf16>. On RDNA 4, K is split across wave halves. Lanes 0 to 15 hold K = 0..7 and lanes 16 to 31 hold K = 8..15, so each operand is a vector<8xf16>. Passing 16-element fragments into an RDNA 4 WMMA op trips AMDGPU/023 immediately.

Second bug, silent accumulator corruption caught only by real prompts

Patching the A and B input fragments alone looked like a complete win. All 2,542 kernels compiled in 14.7 seconds with zero errors and short prompts streamed at 126 to 136 tok/s. Then I tested prompts longer than 45 tokens, and the output collapsed into repetition.

Probing v_wmma_f32_16x16x16_f16 directly on the R9700 with loom-run and dumping raw accumulator lanes exposed the second ISA change. Both architectures return a vector<8xf32> D fragment per lane, so the compiler accepts the type without complaint. What changed is which matrix rows sit in which wave half. RDNA 3 interleaves even and odd rows across the two halves (row = 2*e + half), while RDNA 4 stores contiguous 8-row blocks (rows 0 to 7 in lanes 0 to 15, rows 8 to 15 in lanes 16 to 31, row = 8*half + e). Eight of the seventeen kernels (the five FlashAttention kernels and the three loop-controller and projection kernels) manually indexed D assuming 2*e + half, scrambling attention weights and controller states once a prompt grew past one tile.

RDNA 3 versus RDNA 4 wave32 16x16x16 f16 WMMA lane layoutComparison of v_wmma_f32_16x16x16_f16 lane mapping. On RDNA 3 (gfx11), A and B fragments hold vector<16xf16> duplicated across both wave halves, and D output rows interleave even and odd across halves (row = 2*e + half). On RDNA 4 (gfx12), A and B fragments hold vector<8xf16> split across halves (K=0..7 in lanes 0..15, K=8..15 in lanes 16..31), and D output rows are contiguous halves (rows 0..7 in lanes 0..15, rows 8..15 in lanes 16..31, row = 8*half + e).RDNA 3 (gfx11), assumed by 17 Loom kernelsRDNA 4 (gfx12), executed by R9700 hardware1. Input A/B fragment (vector<16xf16>)Lanes 0..15K = 0 .. 15 (all 16 elements)Lanes 16..31K = 0 .. 15 (duplicated copy)Fails JIT on gfx12 (AMDGPU/023 payload_layout)1. Input A/B fragment (vector<8xf16>)Lanes 0..15K = 0 .. 7not heldLanes 16..31not heldK = 8 .. 15Patched LDS load at col + (hi ? 8 : 0)2. Output D accumulator (vector<8xf32>)Even/odd interleaved rows (row = 2*e + half)0123456789101112131415Lanes 0..15 hold rows 0, 2, 4, 6, 8, 10, 12, 14Lanes 16..31 hold rows 1, 3, 5, 7, 9, 11, 13, 15Unfixed in 8 kernels, repetition at 46+ tokens2. Output D accumulator (vector<8xf32>)Contiguous half blocks (row = 8*half + e)0123456789101112131415Lanes 0..15 hold rows 0, 1, 2, 3, 4, 5, 6, 7Lanes 16..31 hold rows 8, 9, 10, 11, 12, 13, 14, 15P^T becomes direct fptrunc (-16 XOR shuffles)
RDNA 3 (gfx11) against RDNA 4 (gfx12) lane mapping for wave32 v_wmma_f32_16x16x16_f16. Top, A and B fragments shrink from duplicated 16-element vectors to K-split 8-element vectors, causing AMDGPU/023. Bottom, D accumulator rows change from even/odd interleaving to contiguous halves, causing silent corruption in eight kernels that read D back into LDS or registers.

I wrote a deterministic ~240-line Python IR patcher to update all seventeen kernels cleanly. For A and B inputs, GEMM, MoE, and controller kernels switch from 16-element LDS loads to 8-element loads offset by col + (hi ? 8 : 0), and register operands for Q^T and relative bias RB slice down with vector.slice and scf.select. For D outputs across the eight affected kernels, the patcher rewrites row_off, Toeplitz RB store and load indices, _partial output stores, and controller e_off and tr indices from 2*e + half to 8*half + e.

That contiguous D layout also gave back a free speedup inside FlashAttention. Because each wave half already holds the exact 8 elements the next RDNA 4 WMMA expects for P^T, the entire probability-transpose repack shrinks to one truncate instruction, removing 16 wave XOR shuffles and interleaves per tile:

Core RDNA 4 IR changes across the 17 patched kernels in llm.loom

// 1. A/B LDS loads (17 kernels): split K across wave halves
%k_off = scf.select %hi, 8, 0              // lanes 0..15 -> K=0..7, 16..31 -> K=8..15
%frag  = memref.load %lds[%row, %col + %k_off] : vector<8xf16>

// 2. D accumulator unpack (8 kernels: 5 FlashAttention + 3 ctrl/proj)
// RDNA 3: row = 2 * e + half    (even/odd interleaved)
// RDNA 4: row = 8 * half + e    (contiguous 8-row halves)

// 3. FlashAttention P^T operand: contiguous D already matches RDNA 4 A/B
// Replaces 16 wave XOR shuffles + interleaves per tile
%p_f16 = vector.fptrunc %p : vector<8xf32> -> vector<8xf16>

Every prompt length then generated cleanly and retrieved the 16.8k needle COBALT-FALCON-7429 with 100% accuracy. On one R9700 at 4x256k, plain Loom (d=0, 20.36 GiB VRAM) ran 98.2 tok/s on code, 99.0 tok/s on reasoning, 97.1 tok/s sustained across 2,048 tokens, 87.1 tok/s decode at 16.8k, and 6,162.4 tok/s prefill (2.73 s TTFT) at 255.0 W average GPU power (267 W peak, 2.63 J/tok).

Enabling DSpark d=3 (23.25 GiB VRAM) pushed code to 130.0 tok/s, reasoning to 132.3 tok/s, sustained 2,048-token code generation to 152.2 tok/s, 16.8k decode to 108.8 tok/s, and 16.8k prefill to 6,199.8 tok/s (2.72 s TTFT). Average GPU power rose to 284.3 W (309 W peak), yet energy per token dropped 29% to 1.87 J/tok because decode sped up faster than power climbed. Against tuned llama.cpp on the exact same card, patched Loom is 4.4 to 5.1 times faster on decode and 12 times faster on prefill. Against Loom on Strix Halo, it is 2.2 to 2.5 times faster at almost the same joules per token.

Requesting 1x1M on the single R9700 in Loom failed cleanly with code=8 (pool byte limit), confirming the arithmetic from Section 2. The 32.0 GiB of f16 KV alone exceeds the card's 31.86 GiB of usable VRAM.

One dual-target IR file verified on both RDNA 4 and RDNA 3.5

Rather than maintaining an RDNA 4 fork of the IR, I extended the patcher to emit dual-target dispatch using the same target(@rdna3), target(@rdna4), and template.decl / template.def / template.apply pattern already used by the nine existing GEMM pairs in llm.loom. That adds 17 kernel pairs and 17 template selectors, rewriting 1,104 kernel.launch call sites for upstream contribution to loom-fun/unsloth-Inkling-2-Mini-loom.

I verified that single dual-target llm.loom file live on both architectures under model-d3-256k.json with zero compile errors or warnings on either. On the Radeon AI PRO R9700 (gfx1201, RDNA 4), all 2,542 kernels compiled in 18 s, greedy arithmetic (17 * 23 = 391) matched Strix Halo token for token, and the 16,817-token needle (COBALT-FALCON-7429) completed in 4.99 s total across 256 output tokens. On the Ryzen AI Max+ 395 / Strix Halo (gfx1151, RDNA 3.5), all 2,542 kernels compiled in 10 s, greedy output matched token for token (391), and the same 16,817-token needle finished in 13.09 s total across 256 output tokens.

Scoreboard

Throughput, energy per token, and where each machine wins

Putting every measured configuration on one grid shows two distinct winners and one trap to avoid.

ConfigurationEngine & quantSlotsCodeReason16.8k PP16.8k TGGPU WJ/tok
1x R9700, Loom d=3Loom 0.3.0, UD-Q4_K_XL4x256k130.0 (152.2)132.36,199.8108.8284.31.87 J
1x R9700, Loom d=0Loom 0.3.0, UD-Q4_K_XL4x256k98.2 (97.1)99.06,162.487.1255.02.63 J
Strix Halo, Loom d=3Loom 0.3.0, UD-Q4_K_XL4x256k59.767.92,066.750.457 to 104~1.65 J
Strix Halo, Loom d=0Loom 0.3.0, UD-Q4_K_XL4x256k46.346.32,090.938.8104.1~2.2 J
Strix Halo, Loom 1x1MLoom 0.3.0, UD-Q4_K_XL1x1M42.542.71,750.614.8111.8~2.6 J
1x R9700, llama.cpp n=3ROCm b12634, AD-Q6_K2x128k q841.953.8512.238.6107.83.0 to 3.8 J
Strix Halo, Vulkan n=3Vulkan b12634, AD-Q6_K1x1M q428.129.681.326.4114.5~4.1 J
1x R9700, baseline ub=32ROCm b12614, AD-Q6_K2x128k q829.7 to 31.1116.9 to 261.829.4 (@28.4k)
2x R9700, split 28,72ROCm b12634, AD-Q6_K2x512k q812.5 to 13.8296.911.1145.6~11 J
Decode throughput against GPU energy per token across seven AMD configurationsScatter plot of decode speed (tokens per second) against GPU energy per token (joules per token, log scale). Top-left points are 1x R9700 HRX Loom d=3 at 130.0 code (152.2 sustained) and 1.87 J/tok, 1x R9700 HRX Loom d=0 at 98.2 code and 2.63 J/tok, Strix Halo HRX Loom d=3 at 59.7 code (67.9 reasoning) and 1.65 J/tok, and Strix Halo HRX Loom d=0 at 46.3 code and 2.25 J/tok. Mid-tier points are 1x R9700 llama.cpp DSpark at 41.9 code and 3.4 J/tok, and Strix Halo llama.cpp Vulkan DSpark at 28.1 code and 4.07 J/tok. The outlier is 2x R9700 layer-split at 13.2 decode and 11.0 J/tok.Decode throughput (tok/s)Faster, lower energy040801201601 J2 J3 J5 J10 J15 JGPU energy per token (J/tok, log scale, lower is better)1x R9700 Loom d=3, 152.2 sust / 130.0 code (1.87 J/tok)1x R9700 Loom d=0, 98.2 tok/s (2.63 J/tok)Strix Halo Loom d=359.7 code / 67.9 reason (~1.65 J/tok)Strix Halo Loom d=046.3 tok/s (~2.2 J/tok)1x R9700 llama.cpp + DSpark41.9 code / 53.8 reason (3.0 to 3.8 J/tok)Strix Halo Vulkan + DSpark28.1 code / 26.4 @ 16.8k (~4.1 J/tok)2x R9700 layer-split12.5 to 13.8 tok/s (~11 J/tok)
HRX Loom + DSpark (d=3)HRX Loom plain (d=0)llama.cpp + DSpark (n=3)2x R9700 layer-splitCircle 1x R9700, square Strix Halo, diamond 2x R9700
Decode throughput against GPU energy per token across seven AMD setups. Top-left is better. One R9700 running patched HRX Loom with DSpark reaches 152.2 tok/s sustained at 1.87 J/tok, matching Strix Halo Loom's energy efficiency at more than twice the speed. Layer-splitting across two R9700s drops to the bottom-right corner at roughly 11 J/tok.

Use 1x R9700 + patched HRX Loom when

  • Contexts fit within 4x256k slots (23.25 GiB VRAM with DSpark d=3).
  • Interactive coding latency and fast 16.8k prefill (2.72 s TTFT, 6,200 tok/s) come first.
  • You want maximum decode speed (130 to 152 tok/s) without paying an energy penalty (1.87 J/tok).

Use Strix Halo 128 GiB unified memory when

  • You need real 1M-token slots, either elastic 1x1M at 1,750.6 tok/s prefill on Loom or up to 7 to 8x 1M slots with q4_0 KV on Vulkan llama.cpp.
  • You want AD-Q6_K precision alongside long context in a single 150 W wall envelope.
  • You cannot patch RDNA 4 Loom kernels and want stock RDNA 3.5 execution at 60 to 68 tok/s and ~1.65 J/tok.

Limits

What this does not show

llama.cpp ran AtomicChat's AD-Q6_K (23.79 GB) while HRX Loom ran unsloth's UD-Q4_K_XL (16.4 GiB), because the two engines consume different tensor layouts (inkling2_loop against unrolled). Moving 31% fewer weight bytes per decode step accounts for part of Loom's decode lead, though not the 12x prefill gap, which comes from fused FlashAttention and WMMA kernels.

All measurements were single-stream or low-concurrency runs taken over two days. I did not sweep full four-slot concurrent saturation on Loom, nor did I measure full-chassis AC wall power on the discrete R9700 host (all R9700 power numbers are 4 Hz GPU board power from Linux hwmon). Quality was checked with the 10-step autonomous coding benchmark on the llama.cpp baseline (46/46 tests, 100% hidden assertions) and with 16.8k needle retrieval (COBALT-FALCON-7429) and 2,048-token output inspection on patched Loom; a full perplexity or SWE-bench comparison between AD-Q6_K and patched UD-Q4_K_XL remains open. Upstream llama.cpp PRs (#32752, #32218, #32751) and HRX Loom 0.3.0 are moving quickly, so tensor parallelism and upstream RDNA 4 support will supersede parts of this setup.

Sources

What this leans on

  1. Thinking Machines Lab, Inkling-2-Mini, for the 24-layer / 48-visit looped MoE architecture, sliding-window relative-position bias, and 3-layer dspark speculative drafter (mtp_config).
  2. AtomicChat, Inkling-2-Mini-GGUF, for the AD-Q6_K, Q8_0, and AD-Q4_K quantization top-1 / KLD figures and the inkling2_loop GGUF schema used in llama.cpp.
  3. ggml-org/llama.cpp, PR #32694 (b12614 / b12634), PR #32752 (chunked mask build), PR #32740 (GGML CPU FlashAttention bias contract), PR #32218 (DSpark speculative decoding, pinned at commit 0a9105d), and PR #32751 (tensor parallelism), for the ROCm and Vulkan serving baselines and tuning ladder.
  4. loom-fun, unsloth-Inkling-2-Mini-loom (UD-Q4_K_XL and dspark-Inkling-2-Mini-Q8_0.gguf) with hrx-loom 0.3.0 (libamdf over /dev/kfd), for the Strix Halo runs and the program/llm.loom IR patched for dual-target RDNA 3 / RDNA 4 execution.
  5. vllm-project/vllm, PR #69028 (commit ab18334a4) and the vLLM serving recipe, for the NVIDIA-only vllm/models/inkling2/nvidia/ op layout blocking ROCm.
  6. AMD RDNA 3 (gfx11) and RDNA 4 (gfx12) ISA documentation, for wave32 v_wmma_f32_16x16x16_f16 operand (vector<16xf16> vs vector<8xf16>) and accumulator (2*e + half vs 8*half + e) lane layouts.

Disclosure

In case you were wondering

Several AI agents assisted with this work under my direction. The agents built the upstream runtime branches, ran the benchmark sweeps and power captures, probed the RDNA 4 WMMA accumulator lanes on hardware, wrote the Python IR patcher, drafted this report from the run logs, and reviewed the prose. I chose the hardware and workloads, directed the debugging, and verified every figure against the raw measurements.