Qwen3-8B (Q4_K_M) for AMD Loom

A Loom package (.loom programs and a model.json card) for the unmodified GGUF checkpoint unsloth/Qwen3-8B-GGUF (Qwen3-8B-Q4_K_M.gguf), for the AMD Ryzen AI Max+ 395 "Strix Halo", AMD Radeon AI PRO R9700 and AMD Radeon gfx1201 16 GB class (RX 9070 XT, RX 9070) GPUs, generated with loom-next (the generator alone, no LLM in the loop). 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-draft/unsloth-Qwen3-8B-loom:chat --materialize=copy --output=qwen3-8b
loom-serve --model=qwen3-8b '--device=amdgpu://?completion_spin_ns=4294967295' --pool_backing=fixed --parameter_mode=preload
  • --materialize=copy puts copies of the fetched package files in the output directory.
  • completion_spin_ns=4294967295 enables active waiting for GPU completions (uses CPU while GPU work is in flight); the card's performance measurements use this setting.
  • --pool_backing=fixed commits the preset's memory pool up front instead of growing elastic backing.
  • --parameter_mode=preload only changes how the weights are loaded on the host, so the performance rows were measured without it unless their job served with it.
AMD Radeon AI PRO R9700 (gfx1201, 32 GB)
pipx install "hrx-loom[hf]==0.2.0"
loom-fetch huggingface:loom-draft/unsloth-Qwen3-8B-loom:chat --materialize=copy --output=qwen3-8b
loom-serve --model=qwen3-8b '--device=amdgpu://?completion_spin_ns=4294967295' --pool_backing=fixed --parameter_mode=preload
  • --materialize=copy puts copies of the fetched package files in the output directory.
  • completion_spin_ns=4294967295 enables active waiting for GPU completions (uses CPU while GPU work is in flight); the card's performance measurements use this setting.
  • --pool_backing=fixed commits the preset's memory pool up front instead of growing elastic backing.
  • --parameter_mode=preload only changes how the weights are loaded on the host, so the performance rows were measured without it unless their job served with it.
Radeon gfx1201, 16 GB (RX 9070 XT, RX 9070)
pipx install "hrx-loom[hf]==0.2.0"
loom-fetch huggingface:loom-draft/unsloth-Qwen3-8B-loom:chat-16gb --materialize=copy --output=qwen3-8b
loom-serve --model=qwen3-8b '--device=amdgpu://?completion_spin_ns=4294967295' --memory_bytes=15000000000 --state_slab_bytes=4mib --weight_slab_bytes=64mib --parameter_mode=preload
  • --materialize=copy puts copies of the fetched package files in the output directory.
  • completion_spin_ns=4294967295 enables active waiting for GPU completions (uses CPU while GPU work is in flight); the card's performance measurements use this setting.
  • --memory_bytes sets the serving memory budget for this GPU.
  • --state_slab_bytes sets the allocation slab size for state memory.
  • --weight_slab_bytes sets the allocation slab size for weight memory.
  • --parameter_mode=preload only 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, --memory_bytes=15000000000 bounds the memory pool: this package serves up to 36,864 tokens per request (its native context is 40,960).

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-8b", "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
decode tok/s, short prompt 53.4 67.1 +26 % β€” β€”
decode tok/s, 2k context 52.1 57.3 +10 % β€” β€”
decode tok/s, 32k context 28.1 22.6 -20 % β€” β€”
prefill tok/s, 1k document 1187.4 1639.4 +38 % β€” β€”
prefill tok/s, 2k document 1200.7 1702.2 +42 % β€” β€”
prefill tok/s, 8k document 1047.6 1500.7 +43 % β€” β€”
prefill tok/s, 16k document 878.0 1248.5 +42 % β€” β€”
prefill tok/s, 32k document 656.9 967.4 +47 % β€” β€”
4 streams, aggregate decode tok/s 132.6 166.6 +26 % β€” β€”
speculative decoding, drafted tokens accepted β€” β€” β€” n/a n/a

Methodology

  • Compared: Loom against llama.cpp ROCm llamacpp-rocm/b1374; 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): DFlash (AtomicChat/Qwen3-8B-DFlash-GGUF / Qwen3-8B-DFlash.Q8_0.gguf) on both engines; draft depth: Loom 3, llama.cpp --spec-draft-n-max 15 (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-dflash --spec-draft-model card:parameter/Qwen3-8B-DFlash.Q8_0.gguf --spec-draft-n-max 15 -ngld 99 -c 65536 -np 1.
  • Measured on AMD DevLab Dispatch Strix Halo runners (devlab-perf jobs); 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-27; device AMD Strix Halo (DevLab Dispatch runner X2-LA03-S04-D04), Linux; hrx-loom 0.2.0 (hrx-system commit unknown, recovered); source: DevLab Dispatch run 46071999547.
  • Drafted tokens accepted: the share of the drafter's proposed tokens the model accepted during the spec gate's requests.
  • Roofline: not computed.
  • β€” not measured; n/a not applicable.

Radeon AI PRO R9700 (gfx1201, 32 GB)

AMD Radeon AI PRO R9700 (gfx1201, 32 GB): the results for this package are not yet re-measured.

Radeon gfx1201, 16 GB (RX 9070 XT, RX 9070)

metric llama.cpp Loom margin vs best llama.cpp roofline Loom % of roofline
decode tok/s, short prompt 93.9 164.2 † +75 % β€” β€”
decode tok/s, 2k context 95.4 129.4 † +36 % β€” β€”
decode tok/s, 32k context 59.0 56.5 † -4 % β€” β€”
prefill tok/s, 1k document 4055.7 5317.4 † +31 % β€” β€”
prefill tok/s, 2k document 4078.3 5671.0 † +39 % β€” β€”
prefill tok/s, 8k document 3569.5 5232.0 † +47 % β€” β€”
prefill tok/s, 16k document 2972.2 4084.1 † +37 % β€” β€”
prefill tok/s, 32k document 2252.8 2629.4 † +17 % β€” β€”
4 streams, aggregate decode tok/s 265.6 416.5 † +57 % β€” β€”
speculative decoding, drafted tokens accepted β€” β€” β€” n/a n/a

Methodology

  • Compared: Loom against llama.cpp ROCm llamacpp-rocm/b1375; the same GGUF, the same machine and session, the same prompts; Loom served with the active wait. Values are the median of 2 sessions (4 streams: median of 6); 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): DFlash (AtomicChat/Qwen3-8B-DFlash-GGUF / Qwen3-8B-DFlash.Q8_0.gguf) on both engines; draft depth: Loom 3, llama.cpp --spec-draft-n-max 15 (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-dflash --spec-draft-model card:parameter/Qwen3-8B-DFlash.Q8_0.gguf --spec-draft-n-max 15 -ngld 99 -c 40960 -np 1.
  • Not supported / not measured: llama.cpp ROCm: llama.cpp ROCm -c 40960 (the R9700 card's 65536 with the drafter does not fit 16 GB).
  • Measured on AMD Ryzen 7 9800X3D 8-Core Processor, AMD Radeon RX 9070 XT, Ubuntu 26.04, a named machine (this GPU has no DevLab runner); both engines ran on it.
  • 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-17; device AMD Ryzen 7 9800X3D 8-Core Processor, AMD Radeon RX 9070 XT, Ubuntu 26.04; hrx-loom 0.2.0 (hrx-system 0cd370f); source: named-machine run.
  • † Measured on programs other than this repository's (sha256 ea9aebc, this repository's 1a08a8e): the value describes another build of the package until a session re-measures it.
  • Drafted tokens accepted: the share of the drafter's proposed tokens the model accepted during the spec gate's requests.
  • Roofline: not computed.
  • β€” 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 β€” not applicable
speculative decoding βœ… DFlash, depth 3, on by default; drafter AtomicChat/Qwen3-8B-DFlash-GGUF
image input β€” not applicable
audio input / output β€” not applicable
sampling ? not determined
context size βœ… 40,960 tokens per request; Radeon gfx1201 16 GB 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 Radeon gfx1201 16 GB
kernel_tests Unit tests of the generated kernels against reference implementations ❌ no evidence β€” not yet re-measured ❌ no evidence
golden llama.cpp reference recorded on the same GGUF: greedy tokens and top-5 log-probs, short prompts and 1k-32k documents ❌ no evidence β€” not yet re-measured ❌ no evidence
compare Greedy output vs the llama.cpp reference, token by token; every divergence is a near-tie ❌ no evidence β€” not yet re-measured ❌ no evidence
vision Image input vs llama.cpp with the same projector: identical prompt tokens, replies equal up to near-ties β€” not applicable β€” not yet re-measured β€” not applicable
consistency Concurrent requests give the same output as the same requests run alone ❌ no evidence β€” not yet re-measured ❌ no evidence
spec Speculative decoding on gives exactly the output of speculative decoding off ❌ no evidence β€” not yet re-measured ❌ no evidence
agent Multi-turn tool-calling loop: exact prompt rendering, history reuse, valid tool calls, output vs llama.cpp ❌ no evidence β€” not yet re-measured ❌ no evidence
agent_think_off The tool-calling loop with thinking off ❌ no evidence β€” not yet re-measured ❌ no evidence
sampling temperature, top_k and seed behave as specified; first-token distribution matches llama.cpp ❌ no evidence β€” not yet re-measured ❌ no evidence
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 β€” not yet re-measured ❌ no evidence
decision Decision answers (choice, score, noul probabilities) vs llama.cpp on the same prompts β€” not applicable β€” not yet re-measured β€” not applicable
  • 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 by loom-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 unknown; hrx-loom unknown; card generator 6facf9a.

Source files, fetched by loom-fetch from their own repositories:

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for loom-draft/unsloth-Qwen3-8B-loom

Finetuned
Qwen/Qwen3-8B
Finetuned
(4)
this model