gemma-4-26B-A4B-it-qat (UD-Q4_K_XL) for AMD Loom
A Loom package (.loom programs and a model.json card) for the unmodified GGUF checkpoint unsloth/gemma-4-26B-A4B-it-qat-GGUF (gemma-4-26B-A4B-it-qat-UD-Q4_K_XL.gguf), for the AMD Ryzen AI Max+ 395 "Strix Halo" and AMD Radeon AI PRO R9700 GPUs, generated with the loom-skills workflow. Learn more on the Loom ecosystem website.
Quick start
Open your GPU and copy its commands.
AMD Ryzen AI Max+ 395 "Strix Halo" (gfx1151)pipx install "hrx-loom[hf]==0.2.0"
loom-fetch huggingface:loom-fun/unsloth-gemma-4-26B-A4B-it-qat-loom:chat --materialize=copy --output=gemma-4-26B-A4B-it-qat-q4_0-unquantized
loom-serve --model=gemma-4-26B-A4B-it-qat-q4_0-unquantized '--device=amdgpu://?completion_spin_ns=4294967295' --pool_backing=fixed --parameter_mode=preload
--materialize=copyputs copies of the fetched package files in the output directory.completion_spin_ns=4294967295enables active waiting for GPU completions (uses CPU while GPU work is in flight); the card's performance measurements use this setting.--pool_backing=fixedcommits the preset's memory pool up front instead of growing elastic backing.--parameter_mode=preloadonly changes how the weights are loaded on the host, so the performance rows were measured without it unless their job served with it.
On this GPU, the package's preset sizes the memory pool (--pool_backing=fixed commits it up front): this package serves up to 262,144 tokens per request (its native context is 262,144).
pipx install "hrx-loom[hf]==0.2.0"
loom-fetch huggingface:loom-fun/unsloth-gemma-4-26B-A4B-it-qat-loom:chat-r9700 --materialize=copy --output=gemma-4-26B-A4B-it-qat-q4_0-unquantized
loom-serve --model=gemma-4-26B-A4B-it-qat-q4_0-unquantized '--device=amdgpu://?completion_spin_ns=4294967295' --pool_backing=fixed --parameter_mode=preload
--materialize=copyputs copies of the fetched package files in the output directory.completion_spin_ns=4294967295enables active waiting for GPU completions (uses CPU while GPU work is in flight); the card's performance measurements use this setting.--pool_backing=fixedcommits the preset's memory pool up front instead of growing elastic backing.--parameter_mode=preloadonly changes how the weights are loaded on the host, so the performance rows were measured without it unless their job served with it.
On this GPU, the package's preset sizes the memory pool (--pool_backing=fixed commits it up front): this package serves up to 36,864 tokens per request (its native context is 262,144).
Send a request
In another terminal (optional thinking is turned off):
curl http://127.0.0.1:8080/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model": "google/gemma-4-26B-A4B-it-qat-q4_0-unquantized", "messages": [{"role": "user", "content": "Hello"}], "chat_template_kwargs": {"enable_thinking": false}}'
Performance vs llama.cpp
Strix Halo (gfx1151)
| metric | llama.cpp | Loom | margin vs best llama.cpp | roofline | Loom % of roofline | llama.cpp Vulkan |
|---|---|---|---|---|---|---|
| decode tok/s, short prompt | 87.6 | 102.0 | +16 % | 136.6 | 75 % | 82.3 |
| decode tok/s, 2k context | 73.3 | 89.3 | +22 % | 123.2 | 72 % | 64.4 |
| decode tok/s, 32k context | 50.1 | 68.1 | +36 % | 101.4 | 67 % | 50.1 |
| prefill tok/s, 1k document | 1294.3 | 2107.2 | +63 % | 9141.6 | 23 % | 1089.5 |
| prefill tok/s, 2k document | 1373.8 | 2150.5 | +57 % | 8752.8 | 25 % | 1185.9 |
| prefill tok/s, 8k document | 1330.2 | 2034.8 | +53 % | 8146.9 | 25 % | 1199.0 |
| prefill tok/s, 16k document | 1183.0 | 1861.4 | +57 % | 7470.8 | 25 % | 1073.2 |
| prefill tok/s, 32k document | 949.6 | 1566.8 | +65 % | 6407.4 | 24 % | 876.9 |
| 4 streams, aggregate decode tok/s | 152.0 | 182.1 | +20 % | 380.5 | 48 % | — |
| speculative decoding, drafted tokens accepted | — | 75 % | — | n/a | n/a | n/a |
Methodology
- Compared: Loom against llama.cpp ROCm
llamacpp-rocm/b1375, llama.cpp Vulkanllamacpp-vulkan/b12211; the same GGUF, the same DevLab runner type, different jobs, the same prompts; Loom served with the active wait. Values are the median of 3 sessions (a session's value is the median of its samples: 3 samples for decode_2k, decode_32k, prefill_8k; one sample for the others) (4 streams: median of 9); Loom is timed by the client, llama.cpp by its server. - llama.cpp measured on 2026-11-18 (DevLab Dispatch run 44214639897); 2026-11-18 (DevLab Dispatch run 44339373078), Loom on 2026-11-18 (DevLab Dispatch run 44406577436): same runner type, different jobs (llama.cpp was not re-measured for this package).
- Out of the box on both engines: Loom serves the preset shipped in this package; llama.cpp runs its build defaults plus only the server arguments listed below (offload, context and slots, and on the 1-stream rows the drafting flags that match Loom's drafting). No tuning sweep on either engine.
- Drafting, 1-stream rows (decode, decode_2k, decode_32k, prefill): assistant drafter (unsloth/gemma-4-26B-A4B-it-qat-GGUF / mtp-gemma-4-26B-A4B-it.gguf) on both engines; draft depth: Loom 1, llama.cpp --spec-draft-n-max 4 (each engine its own). Each engine is loaded once for all these rows.
- 4 streams: both engines loaded with drafting off, 4 parallel requests, aggregate tokens per second.
- Rows: decode = short-context decode; decode_2k / decode_32k = decode after a ~2k / ~32k-token context; prefill_Nk = prompt processing of an N k-token prompt; streams4 = 4-stream aggregate decode. A margin within +-3 % (the measured same-runner noise) is a tie.
- llama.cpp ROCm server arguments:
-ngl 99 -cram 0 --spec-type draft-mtp --spec-draft-model card:parameter/mtp-gemma-4-26B-A4B-it.gguf --spec-draft-n-max 4 -ngld 99 -c 65536 -np 1. - llama.cpp Vulkan server arguments:
-ngl 99 -cram 0 --spec-type draft-mtp --spec-draft-model card:parameter/mtp-gemma-4-26B-A4B-it.gguf --spec-draft-n-max 4 -ngld 99 -c 36864 -np 1. - Not supported / not measured: llama.cpp ROCm: Four-stream baseline uses four slots sharing one KV pool: -ngl 99 -cram 0 -c 65536 -kvu -np 4; llama.cpp Vulkan: Four-stream baseline uses four per-slot KV caches: -ngl 99 -cram 0 -c 147456 -np 4; llama.cpp Vulkan: ROCm single-slot arguments are -ngl 99 -cram 0 --spec-type draft-mtp --spec-draft-model card:parameter/mtp-gemma-4-26B-A4B-it.gguf --spec-draft-n-max 4 -ngld 99 -c 65536 -np 1; Vulkan uses its recorded context allocation.
- Measured on AMD DevLab Dispatch Strix Halo runners (
devlab-perfjobs); runners differ between sessions. - Margin vs best llama.cpp: (Loom / max(ROCm, Vulkan) - 1) × 100 %, using the available measured tokens/s for each row on this GPU. With only one valid backend, that backend is used; with neither, the margin is not measured. Raw backend values and their measurement sources are retained below and in the table.
- Measured 2026-11-18; device AMD Strix Halo (DevLab Dispatch runner X2-LA03-S04-D07), Linux; hrx-loom
0.2.0(hrx-system0cd370f); source: DevLab Dispatch run 44406577436. - llama.cpp Vulkan: measured 2026-11-18; source: DevLab Dispatch run 44339373078. Archive sha256
9759acd. - Drafted tokens accepted: the share of the drafter's proposed tokens the model accepted during the
specgate's requests. - Roofline: the hardware ceiling for this GGUF on AMD Ryzen AI Max+ 395 "Strix Halo" (gfx1151) at 228 GB/s and 59 TFLOP/s, from loom-roofline
roofline.py(loom-skillse3b547e); decode rows with speculative decoding: verify passes × (1 + acceptance × depth 1) tokens per pass, the drafter's cost not counted, with the acceptance measured in the row's own session: decode 76 %, decode at 2k 73 %, decode at 32k 69 %; 4 streams run without drafting, so its ceiling is single-pass; the 4-stream ceiling of this mixture-of-experts model assumes the four streams route to the same experts (the bound a run may not exceed). - — not measured; n/a not applicable.
Radeon AI PRO R9700 (gfx1201, 32 GB)
| metric | llama.cpp | Loom | margin vs best llama.cpp | roofline | Loom % of roofline | llama.cpp Vulkan |
|---|---|---|---|---|---|---|
| decode tok/s, short prompt | 139.5 | 219.3 | +15 % | 364.4 | 60 % | 190.1 |
| decode tok/s, 2k context | 139.7 | 195.3 | +21 % | 329.2 | 59 % | 161.6 |
| decode tok/s, 32k context | 102.3 | 149.6 | +9 % | 269.0 | 56 % | 137.6 |
| prefill tok/s, 1k document | 3079.6 | 6584.1 | +114 % | 33157.8 | 20 % | 2405.6 |
| prefill tok/s, 2k document | 3362.2 | 6718.7 | +100 % | 31747.4 | 21 % | 2990.1 |
| prefill tok/s, 8k document | 3291.8 | 6765.8 | +86 % | 29549.6 | 23 % | 3642.6 |
| prefill tok/s, 16k document | 2888.7 | 6306.0 | +81 % | 27097.5 | 23 % | 3475.2 |
| prefill tok/s, 32k document | 2257.6 | 5349.7 | +77 % | 23240.3 | 23 % | 3015.6 |
| 4 streams, aggregate decode tok/s | 307.4 | 401.2 | +31 % | 1022.9 | 39 % | — |
| speculative decoding, drafted tokens accepted | — | 75 % | — | n/a | n/a | n/a |
Methodology
- Compared: Loom against llama.cpp ROCm
llamacpp-rocm/b1375, llama.cpp Vulkanllamacpp-vulkan/b12211; the same GGUF, the same DevLab runner type, different jobs, the same prompts; Loom served with the active wait. Values are the median of 3 sessions (a session's value is the median of its samples: 3 samples for decode_2k, decode_32k, prefill_8k; one sample for the others) (4 streams: median of 9); Loom is timed by the client, llama.cpp by its server. - llama.cpp measured on 2026-11-18 (DevLab Dispatch run 44211022674); 2026-11-18 (DevLab Dispatch run 44339373078), Loom on 2026-11-18 (DevLab Dispatch run 44406577436): same runner type, different jobs (llama.cpp was not re-measured for this package).
- Out of the box on both engines: Loom serves the preset shipped in this package; llama.cpp runs its build defaults plus only the server arguments listed below (offload, context and slots, and on the 1-stream rows the drafting flags that match Loom's drafting). No tuning sweep on either engine.
- Drafting, 1-stream rows (decode, decode_2k, decode_32k, prefill): assistant drafter (unsloth/gemma-4-26B-A4B-it-qat-GGUF / mtp-gemma-4-26B-A4B-it.gguf) on both engines; draft depth: Loom 1, llama.cpp --spec-draft-n-max 4 (each engine its own). Each engine is loaded once for all these rows.
- 4 streams: both engines loaded with drafting off, 4 parallel requests, aggregate tokens per second.
- Rows: decode = short-context decode; decode_2k / decode_32k = decode after a ~2k / ~32k-token context; prefill_Nk = prompt processing of an N k-token prompt; streams4 = 4-stream aggregate decode. A margin within +-3 % (the measured same-runner noise) is a tie.
- llama.cpp ROCm server arguments:
-ngl 99 -cram 0 --spec-type draft-mtp --spec-draft-model card:parameter/mtp-gemma-4-26B-A4B-it.gguf --spec-draft-n-max 4 -ngld 99 -c 36864 -np 1. - llama.cpp Vulkan server arguments:
-ngl 99 -cram 0 --spec-type draft-mtp --spec-draft-model card:parameter/mtp-gemma-4-26B-A4B-it.gguf --spec-draft-n-max 4 -ngld 99 -c 36864 -np 1. - Not supported / not measured: llama.cpp ROCm: Four-stream baseline uses four slots sharing one KV pool: -ngl 99 -cram 0 -c 36864 -kvu -np 4; llama.cpp Vulkan: Four-stream baseline uses four per-slot KV caches: -ngl 99 -cram 0 -c 147456 -np 4; llama.cpp Vulkan: ROCm single-slot arguments are -ngl 99 -cram 0 --spec-type draft-mtp --spec-draft-model card:parameter/mtp-gemma-4-26B-A4B-it.gguf --spec-draft-n-max 4 -ngld 99 -c 36864 -np 1; Vulkan uses its recorded context allocation.
- Measured on AMD DevLab Dispatch R9700 runners (
devlab-perfjobs); runners differ between sessions. - Margin vs best llama.cpp: (Loom / max(ROCm, Vulkan) - 1) × 100 %, using the available measured tokens/s for each row on this GPU. With only one valid backend, that backend is used; with neither, the margin is not measured. Raw backend values and their measurement sources are retained below and in the table.
- Measured 2026-11-18; device DevLab Dispatch runner ephemeral-devlab-sm-01-02-r9700s-0-135163412142, AMD Radeon AI PRO R9700S (gfx1201), Linux; hrx-loom
0.2.0(hrx-system commit unknown); source: DevLab Dispatch run 44406577436. - llama.cpp Vulkan: measured 2026-11-18; source: DevLab Dispatch run 44339373078. Archive sha256
9759acd. - Drafted tokens accepted: the share of the drafter's proposed tokens the model accepted during the
specgate's requests. - Roofline: the hardware ceiling for this GGUF on AMD Radeon AI PRO R9700S (gfx1201, 32 GB, 2.35 GHz) at 613 GB/s and 214 TFLOP/s, from loom-roofline
roofline.py(loom-skillse3b547e); decode rows with speculative decoding: verify passes × (1 + acceptance × depth 1) tokens per pass, the drafter's cost not counted, with the acceptance measured in the row's own session: decode 75 %, decode at 2k 72 %, decode at 32k 67 %; 4 streams run without drafting, so its ceiling is single-pass; the 4-stream ceiling of this mixture-of-experts model assumes the four streams route to the same experts (the bound a run may not exceed). - — not measured; n/a not applicable.
Features
| feature | status | detail |
|---|---|---|
| API | ✅ | OpenAI-style /v1/chat/completions |
| tool calling | ✅ | OpenAI-style tools and tool_calls |
| reasoning / thinking | ✅ | off by default; chat_template_kwargs: {"enable_thinking": true} turns it on |
| reasoning effort | — | not applicable |
| speculative decoding | ✅ | assistant drafter, depth 1, on by default; drafter unsloth/gemma-4-26B-A4B-it-qat-GGUF |
| image input | ❌ | not supported by Loom (the upstream model has it) |
| audio input / output | ❌ | not supported by Loom (the upstream model has it) |
| sampling | ✅ | temperature, top_p, top_k, seed |
| context size | ✅ | 262,144 tokens per request; Strix Halo up to 262,144 (its memory); Radeon AI PRO R9700 up to 36,864 (its memory) |
| concurrency | ✅ | 4 concurrent requests |
| max output tokens | ✅ | 4,096 (preset max_tokens) |
Correctness
| gate | description | Strix Halo | Radeon AI PRO R9700 |
|---|---|---|---|
kernel_tests |
Unit tests of the generated kernels against reference implementations | ✅ pass (108/108) ¹ | ✅ pass (108/108) ² |
golden |
llama.cpp reference recorded on the same GGUF: greedy tokens and top-5 log-probs, short prompts and 1k-32k documents | ✅ pass ³ | ✅ pass ⁴ |
compare |
Greedy output vs the llama.cpp reference, token by token; every divergence is a near-tie | ✅ pass ³ | ✅ pass ⁴ |
vision |
Image input vs llama.cpp with the same projector: identical prompt tokens, replies equal up to near-ties | — not applicable | — not applicable |
consistency |
Concurrent requests give the same output as the same requests run alone | ✅ pass ³ | ✅ pass ⁴ |
spec |
Speculative decoding on gives exactly the output of speculative decoding off | ✅ pass ³ | ✅ pass ⁴ |
agent |
Multi-turn tool-calling loop: exact prompt rendering, history reuse, valid tool calls, output vs llama.cpp | ✅ pass ³ | ✅ pass ⁴ |
agent_think_off |
The tool-calling loop with thinking off | ✅ pass ³ | ✅ pass ⁴ |
sampling |
temperature, top_k and seed behave as specified; first-token distribution matches llama.cpp | ✅ pass ³ | ✅ pass ⁴ |
logits |
Host logits readback (llm.logits on): at T=0 every returned row's argmax is the device's token, the top-k matches llama.cpp, greedy text is unchanged | ✅ pass (argmax = device token; top-5 = llama.cpp's) ⁵ | ✅ pass (argmax = device token; top-5 = llama.cpp's) ⁶ |
decision |
Decision answers (choice, score, noul probabilities) vs llama.cpp on the same prompts | — not applicable | — not applicable |
- ¹ DevLab Dispatch run 44406577436, 2026-11-18; device AMD Strix Halo (DevLab Dispatch runner X2-LA03-S04-D07), Linux; hrx-loom
0.2.0(hrx-system0cd370f). - ² DevLab Dispatch run 44406577436, 2026-11-18; device DevLab Dispatch runner ephemeral-devlab-sm-01-02-r9700s-0-135163412142, AMD Radeon AI PRO R9700S (gfx1201), Linux; hrx-loom
0.2.0(hrx-system commit unknown). - ³ DevLab Dispatch run 44406577436, LEVEL=full, 2026-11-18; device AMD Strix Halo (DevLab Dispatch runner X2-LA03-S04-D07), Linux; hrx-loom
0.2.0(hrx-system0cd370f). - ⁴ DevLab Dispatch run 44406577436, LEVEL=full, 2026-11-18; device DevLab Dispatch runner ephemeral-devlab-sm-01-02-r9700s-0-135163412142, AMD Radeon AI PRO R9700S (gfx1201), Linux; hrx-loom
0.2.0(hrx-system commit unknown). - ⁵ DevLab Dispatch run 44406577436, LEVEL=dev, 2026-11-18; device AMD Strix Halo (DevLab Dispatch runner X2-LA03-S04-D07), Linux; hrx-loom
0.2.0(hrx-system0cd370f). - ⁶ DevLab Dispatch run 44406577436, LEVEL=dev, 2026-11-18; device DevLab Dispatch runner ephemeral-devlab-sm-01-02-r9700s-0-135163412142, AMD Radeon AI PRO R9700S (gfx1201), Linux; hrx-loom
0.2.0(hrx-system commit unknown). - Gates are the loom-benchmark correctness gates (
gates.sh); a gate without a recorded run shows no evidence.
Files
model.json/model.json.lock: the card and the pinned source files (sha256 checked byloom-fetch).program/*.loom,weights.loom: the generated Loom programs.tokenizer.json: the tokenizer.llm_config.json: the configuration the programs were generated from.info.json: the measurements, gate evidence and versions this card shows; everything else comes from the files above.REPORT.md: how the values above were measured: setup, commands and the value of every run.
Versions: card schema loom-card/3; loom-skills 29e63c6; hrx-loom unknown; card generator e3b547e.
Source files, fetched by loom-fetch from their own repositories:
- checkpoint: unsloth/gemma-4-26B-A4B-it-qat-GGUF @
7b92b5b,gemma-4-26B-A4B-it-qat-UD-Q4_K_XL.gguf - drafter: unsloth/gemma-4-26B-A4B-it-qat-GGUF @
7b92b5b,mtp-gemma-4-26B-A4B-it.gguf