Qwen3.8-27B (UD-Q4_K_XL) for AMD Loom
A Loom package (.loom programs and a model.json card) for the unmodified GGUF checkpoint unsloth/Qwen3.8-27B-GGUF (Qwen3.8-27B-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-staging/unsloth-Qwen3.8-27B-UD-Q4_K_XL:chat --materialize=copy --output=qwen3.8-27b-ud-q4_k_xl
loom-serve --model=qwen3.8-27b-ud-q4_k_xl '--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.
pipx install "hrx-loom[hf]==0.2.0"
loom-fetch huggingface:loom-fun-staging/unsloth-Qwen3.8-27B-UD-Q4_K_XL:chat-r9700 --materialize=copy --output=qwen3.8-27b-ud-q4_k_xl
loom-serve --model=qwen3.8-27b-ud-q4_k_xl '--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 116,736 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": "qwen3.8-27b-ud-q4_k_xl", "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 | Gufo 0.35.0 |
|---|---|---|---|---|---|---|---|
| decode tok/s, short prompt | 21.5 | 25.9 | +20 % | 31.8 | 81 % | 21.3 | 26.6 |
| decode tok/s, 2k context | 21.2 | 26.6 | +25 % | 33.7 | 79 % | 21.1 | 24.0 |
| decode tok/s, 32k context | 20.6 | 23.7 | +15 % | 31.1 | 76 % | 19.1 | 18.1 |
| prefill tok/s, 1k document | 349.7 | 618.3 | +77 % | 972.8 | 64 % | 341.9 | 485.3 |
| prefill tok/s, 2k document | 362.1 | 631.0 | +74 % | 969.0 | 65 % | 348.9 | 507.1 |
| prefill tok/s, 8k document | 358.5 | 648.7 | +81 % | 946.7 | 69 % | 343.1 | 538.5 |
| prefill tok/s, 16k document | 341.8 | 617.1 | +81 % | 918.4 | 67 % | 323.5 | 538.4 |
| prefill tok/s, 32k document | 307.1 | 560.6 | +83 % | 866.7 | 65 % | 288.0 | 506.8 |
| 4 streams, aggregate decode tok/s | 40.4 | 46.3 | +15 % | 53.7 | 86 % | 39.6 | 43.4 |
| speculative decoding, drafted tokens accepted | — | 63 % ¹ | — | n/a | n/a | n/a | n/a |
Methodology
- Compared: Loom against llama.cpp ROCm
llamacpp-rocm/b1374, llama.cpp Vulkanllamacpp-vulkan/b12211; the same GGUF, the same machine, power mode and job, the same prompts; Loom served with the active wait. Values are the median of 3 sessions (4 streams: median of 3); Loom is timed by the client, llama.cpp by its server. - 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): MTP on both engines; draft depth: Loom 3, llama.cpp --spec-draft-n-max llama.cpp default (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:
1-stream rows: -ngl 99 -cram 0 --spec-type draft-mtp -c 65536 -np 1; 4 streams: -ngl 99 -cram 0 -c 65536 -kvu -np 4. - llama.cpp Vulkan server arguments:
1-stream rows: -ngl 99 -cram 0 --spec-type draft-mtp -c 36864 -np 1; 4 streams: -ngl 99 -cram 0 -c 147456 -np 4. - Measured on AMD RYZEN AI MAX+ 395 w/ Radeon 8060S (local GMKtec EVO-X2), AMD Radeon 8060S Graphics (gfx1151), Ubuntu 26.04, a local machine (not an AMD DevLab Dispatch runner), in its 123 W power mode (BIOS performance mode); the DevLab Strix Halo runners run at 85 W. Every engine in this table was measured in the same job, interleaved, at the same power: Loom 120 W / 2.78 GHz, llama.cpp ROCm 120 W / 2.67 GHz, llama.cpp Vulkan 120 W / 2.62 GHz, Gufo 120 W / 2.58 GHz (median package power and GPU clock while busy, amdgpu hwmon samples every 0.2 s).
- 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-20; device AMD RYZEN AI MAX+ 395 w/ Radeon 8060S (local GMKtec EVO-X2), AMD Radeon 8060S Graphics (gfx1151), Ubuntu 26.04; hrx-loom
0.2.0(hrx-system0cd370f); source: local run local-udxl-123w-20261120. - ¹ Measured 2026-11-21; device AMD Strix Halo (DevLab Dispatch runner X2-LA03-S04-D05), Linux; hrx-loom
0.2.0(hrx-system0cd370f, recovered); source: DevLab Dispatch run 44852654336. - llama.cpp Vulkan: measured 2026-11-20; source: local run local-udxl-123w-20261120. Archive sha256
9759acd. - Gufo 0.35.0: Gufo
0.35.0 (0260e11)running this card's GGUF, the same fileunsloth/Qwen3.8-27B-GGUF/Qwen3.8-27B-UD-Q4_K_XL.gguf(sha2562a5f356); timed by the client like Loom; server arguments1-stream rows: --model Qwen3.8-27B-UD-Q4_K_XL.gguf --served-model-name gufo-card --context 65536 --speculative dflash2 --dflash-model Qwen3.8-27B-DFlash2-Q4_K_M.gguf --sessions 1; 4 streams: --model Qwen3.8-27B-UD-Q4_K_XL.gguf --served-model-name gufo-card --context 65536 --speculative off --sessions 4; measured 2026-11-20; source: local run local-udxl-123w-20261120. Shown for reference: not in the margin or the win / tie / loss counts.- model: the same GGUF file as Loom and llama.cpp (sha256 2a5f3565, unsloth revision 4af51b35 in the HF cache); gufo 0.35.0 itself pins the older upload 3f227079
- drafting: DFlash2 (z-lab Qwen3.8-27B-DFlash2 Q4_K_M, up to 7 tokens, plus copies of text already in the conversation), not the GGUF's MTP head that Loom and llama.cpp use
- engine: gufo release container 0.35.0, image sha256 99e9b547; 4 streams undrafted with --sessions 4
- 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 48 TFLOP/s sustained at 123 W (spec 59), from loom-roofline
roofline.py(loom-skills1352df9); decode rows with speculative decoding: verify passes × (1 + acceptance × depth 3) tokens per pass, the drafter's cost not counted, with the acceptance measured in the row's own session: decode 46 %, decode at 2k 51 %, decode at 32k 53 %; 4 streams run without drafting, so its ceiling is single-pass. - — 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 | 46.4 | 67.0 | +27 % | 87.2 | 77 % | 52.9 |
| decode tok/s, 2k context | 46.5 | 71.0 | +32 % | 96.1 | 74 % | 53.7 |
| decode tok/s, 32k context | 44.5 | 54.9 | +10 % | 81.8 | 67 % | 49.9 |
| prefill tok/s, 1k document | 1093.1 | 1671.2 | +53 % | 4301.4 | 39 % | 811.0 |
| prefill tok/s, 2k document | 1160.1 | 1737.5 | +50 % | 4284.5 | 41 % | 844.5 |
| prefill tok/s, 8k document | 1183.2 | 1814.5 | +53 % | 4185.6 | 43 % | 896.8 |
| prefill tok/s, 16k document | 1134.1 | 1735.1 | +53 % | 4060.7 | 43 % | 860.3 |
| prefill tok/s, 32k document | 1037.8 | 1595.1 | +54 % | 3832.0 | 42 % | 775.5 |
| 4 streams, aggregate decode tok/s | 88.7 | 117.6 | +20 % | 144.3 | 81 % | 98.3 |
| speculative decoding, drafted tokens accepted | — | 63 % | — | 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 and job, the same prompts; Loom served with the active wait. Values are the median of 3 sessions (4 streams: median of 3); Loom is timed by the client, llama.cpp by its server. - 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): MTP on both engines; draft depth: Loom 3, llama.cpp --spec-draft-n-max llama.cpp default (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:
1-stream rows: -ngl 99 -cram 0 --spec-type draft-mtp -c 65536 -np 1; 4 streams: -ngl 99 -cram 0 -c 65536 -kvu -np 4. - llama.cpp Vulkan server arguments:
1-stream rows: -ngl 99 -cram 0 --spec-type draft-mtp -c 36864 -np 1; 4 streams: -ngl 99 -cram 0 -c 147456 -np 4. - 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-21; device DevLab Dispatch runner ephemeral-devlab-sm-01-02-r9700s-4-136695508916, AMD Radeon AI PRO R9700S (gfx1201), Linux; hrx-loom
0.2.0(hrx-system commit unknown, recovered); source: DevLab Dispatch run 44855143821. - llama.cpp Vulkan: measured 2026-11-21; source: DevLab Dispatch run 44855143821. 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-skills1352df9); decode rows with speculative decoding: verify passes × (1 + acceptance × depth 3) tokens per pass, the drafter's cost not counted, with the acceptance measured in the row's own session: decode 47 %, decode at 2k 56 %, decode at 32k 51 %; 4 streams run without drafting, so its ceiling is single-pass. - — 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 | ✅ | on by default; chat_template_kwargs: {"enable_thinking": false} turns it off |
| reasoning effort | ✅ | reasoning_effort: low, medium, high, xhigh (default xhigh) |
| speculative decoding | ✅ | MTP, depth 3, on by default |
| image input | ✅ | OpenAI-style image_url parts; projector mmproj-Qwen3.8-27B-f16.gguf |
| audio input / output | — | not applicable |
| sampling | ✅ | temperature, top_p, top_k, seed |
| context size | ✅ | 262,144 tokens per request; Radeon AI PRO R9700 up to 116,736 (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 (212/212) ¹ | ✅ pass (212/212) ² |
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 | ✅ pass ³ | ✅ pass ⁴ |
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 | ❌ no evidence | ❌ no evidence |
decision |
Decision answers (choice, score, noul probabilities) vs llama.cpp on the same prompts | — not applicable | — not applicable |
- ¹ DevLab Dispatch run 44852654336, 2026-11-21; device AMD Strix Halo (DevLab Dispatch runner X2-LA03-S04-D05), Linux; hrx-loom
0.2.0(hrx-system0cd370f, recovered). - ² DevLab Dispatch run 44855143821, 2026-11-21; device DevLab Dispatch runner ephemeral-devlab-sm-01-02-r9700s-4-136695508916, AMD Radeon AI PRO R9700S (gfx1201), Linux; hrx-loom
0.2.0(hrx-system commit unknown, recovered). - ³ DevLab Dispatch run 44852654336, LEVEL=dev, 2026-11-21; device AMD Strix Halo (DevLab Dispatch runner X2-LA03-S04-D05), Linux; hrx-loom
0.2.0(hrx-system0cd370f, recovered). - ⁴ DevLab Dispatch run 44855143821, LEVEL=dev, 2026-11-21; device DevLab Dispatch runner ephemeral-devlab-sm-01-02-r9700s-4-136695508916, AMD Radeon AI PRO R9700S (gfx1201), Linux; hrx-loom
0.2.0(hrx-system commit unknown, recovered). - 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 f7ad9e6; hrx-loom unknown; card generator 5226ddd.
Source files, fetched by loom-fetch from their own repositories:
- checkpoint: unsloth/Qwen3.8-27B-GGUF @
4af51b3,Qwen3.8-27B-UD-Q4_K_XL.gguf - projector: bartowski/Qwen3.8-27B-GGUF @
87410e7,mmproj-Qwen3.8-27B-f16.gguf