File size: 8,767 Bytes
35a1fab | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | ---
base_model: unsloth/Inkling-2-Mini-GGUF
license: mit
tags:
- loom
- loom-serve
- gguf
- strix-halo
- speculative-decoding
- dflash
---
# Inkling-2-Mini (UD-Q4_K_XL) for AMD Loom
A [Loom](https://github.com/ROCm/hrx-system) package (`.loom` programs and a `model.json` card) for the unmodified GGUF checkpoint [unsloth/Inkling-2-Mini-GGUF](https://huggingface.co/unsloth/Inkling-2-Mini-GGUF) (`Inkling-2-Mini-UD-Q4_K_XL.gguf`), generated on an AMD Ryzen AI Max+ 395 "Strix Halo" with the [loom-skills](https://github.com/loom-fun/loom-skills) workflow. Learn more on the [Loom ecosystem website](https://loom-fun.github.io/loom-dev/).
## Quick start
```bash
pipx install "hrx-loom[hf]==0.2.0"
loom-fetch huggingface:1bit-MONSTER/Inkling-2-Mini-loom-native:chat --materialize=copy --output=Inkling-2-Mini-loom-native
loom-serve --model=Inkling-2-Mini-loom-native '--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.
## Send a request
In another terminal (optional thinking is turned off):
```bash
curl http://127.0.0.1:8080/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model": "1bit-MONSTER/Inkling-2-Mini-loom-native", "messages": [{"role": "user", "content": "Hello"}], "chat_template_kwargs": {"enable_thinking": false}}'
```
## Performance vs llama.cpp
| metric | llama.cpp | Loom | margin vs best llama.cpp | roofline | Loom % of roofline |
|---|---|---|---|---|---|
| decode tok/s, short prompt | β | 60.4 | β | 98.5 | 61 % |
| decode tok/s, 2k context | β | 59.9 | β | 93.8 | 64 % |
| decode tok/s, 32k context | β | 47.8 | β | 78.0 | 61 % |
| prefill tok/s, 1k document | β | 1785.9 | β | 9583.4 | 19 % |
| prefill tok/s, 2k document | β | 1984.3 | β | 9283.9 | 21 % |
| prefill tok/s, 8k document | β | 2014.8 | β | 8991.6 | 22 % |
| prefill tok/s, 16k document | β | 1960.8 | β | 8642.8 | 23 % |
| prefill tok/s, 32k document | β | 1764.0 | β | 8020.5 | 22 % |
| 4 streams, aggregate decode tok/s | β | β | β | 379.1 | β |
| speculative decoding, drafted tokens accepted | β | β | β | n/a | n/a |
**Methodology**
- Compared: Loom against llama.cpp ROCm (build not recorded); the same GGUF, the same machine and session, the same prompts; Loom served with the active wait. Values are the median of 2β4 sessions (4 streams: median of not recorded); 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). No tuning sweep on either engine.
- Drafting, 1-stream rows (decode, decode_2k, decode_32k, prefill): Loom DFlash depth 3; llama.cpp ROCm no drafting (NOT the same choice on both engines). 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: not recorded.
- Measured on AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, AMD Radeon 8060S Graphics, Puppy 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-25; device AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, AMD Radeon 8060S Graphics, Puppy 26.04; hrx-loom unknown; source: named-machine run.
- Drafted tokens accepted: the share of the drafter's proposed tokens the model accepted during the `spec` gate's requests.
- Roofline: the hardware ceiling for this GGUF on AMD Ryzen AI Max+ 395 "Strix Halo" (gfx1151) at 228 GB/s and 44 TFLOP/s sustained at 85 W (spec 59), from loom-roofline `roofline.py` (loom-skills unknown commit); single-pass ceiling (no acceptance measured on this package) for decode, decode at 2k, decode at 32k; 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 | β
| on by default; `chat_template_kwargs: {"enable_thinking": false}` turns it off |
| reasoning effort | β
| `reasoning_effort`: none, minimal, low, medium, high, xhigh, max (default high) |
| speculative decoding | β
| DFlash, depth 3, on by default; drafter [unsloth/Inkling-2-Mini-GGUF](https://huggingface.co/unsloth/Inkling-2-Mini-GGUF) |
| image input | ? | not determined |
| audio input / output | ? | not determined |
| sampling | β
| `temperature`, `top_p`, `top_k`, `seed` |
| context size | β
| 262,144 tokens per request |
| concurrency | β
| 4 concurrent requests |
| max output tokens | β
| 4,096 (preset `max_tokens`) |
## Correctness
| gate | description | result |
|---|---|---|
| `kernel_tests` | Unit tests of the generated kernels against reference implementations | β
pass (39/39) ΒΉ |
| `golden` | llama.cpp reference recorded on the same GGUF: greedy tokens and top-5 log-probs, short prompts and 1k-32k documents | β no evidence |
| `compare` | Greedy output vs the llama.cpp reference, token by token; every divergence is a near-tie | β no evidence |
| `vision` | Image input vs llama.cpp with the same projector: identical prompt tokens, replies equal up to near-ties | β not applicable |
| `consistency` | Concurrent requests give the same output as the same requests run alone | β fail Β² |
| `spec` | Speculative decoding on gives exactly the output of speculative decoding off | β
pass Β² |
| `agent` | Multi-turn tool-calling loop: exact prompt rendering, history reuse, valid tool calls, output vs llama.cpp | β
pass Β² |
| `agent_think_off` | The tool-calling loop with thinking off | β
pass Β² |
| `sampling` | temperature, top_k and seed behave as specified; first-token distribution matches llama.cpp | β
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 |
| `decision` | Decision answers (choice, score, noul probabilities) vs llama.cpp on the same prompts | β not applicable |
- ΒΉ local run, 2026-11-26; device AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, AMD Radeon 8060S Graphics, Puppy 26.04; hrx-loom unknown.
- Β² local run, LEVEL=full, 2026-11-26; device AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, AMD Radeon 8060S Graphics, Puppy 26.04; hrx-loom 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 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 unknown.
Source files, fetched by `loom-fetch` from their own repositories:
- checkpoint: [unsloth/Inkling-2-Mini-GGUF](https://huggingface.co/unsloth/Inkling-2-Mini-GGUF) @ `ea0c79b`, `Inkling-2-Mini-UD-Q4_K_XL.gguf`
- drafter: [unsloth/Inkling-2-Mini-GGUF](https://huggingface.co/unsloth/Inkling-2-Mini-GGUF) @ `ea0c79b`, `dspark-Inkling-2-Mini-Q8_0.gguf`
|