dhndhn's picture
Reference set: the package validated on hardware (loom-next record)
739296f verified
|
Raw History Blame Contribute Delete
6.89 kB
---
base_model: unsloth/Inkling-2-Mini-GGUF
license: mit
tags:
- loom
- loom-serve
- gguf
- strix-halo
- radeon-r9700
- speculative-decoding
- dflash
- loom-reference-set
---
# 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`), for the AMD Ryzen AI Max+ 395 "Strix Halo" and AMD Radeon AI PRO R9700 GPUs, generated with [loom-next](https://github.com/loom-fun/loom-next) (the generator alone, no LLM in the loop). Learn more on the [Loom ecosystem website](https://loom-fun.github.io/loom-dev/).
## Quick start
Open your GPU and copy its commands.
<details>
<summary>AMD Ryzen AI Max+ 395 "Strix Halo" (gfx1151)</summary>
```bash
pipx install "hrx-loom[hf]==0.2.0"
loom-fetch huggingface:loom-draft/unsloth-Inkling-2-Mini-loom:chat --materialize=copy --output=inkling-2-mini
loom-serve --model=inkling-2-mini '--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.
</details>
<details>
<summary>AMD Radeon AI PRO R9700 (gfx1201, 32 GB)</summary>
```bash
pipx install "hrx-loom[hf]==0.2.0"
loom-fetch huggingface:loom-draft/unsloth-Inkling-2-Mini-loom:chat-r9700 --materialize=copy --output=inkling-2-mini
loom-serve --model=inkling-2-mini '--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.
</details>
## Send a request
In another terminal (`reasoning_effort` is set to `minimal`):
```bash
curl http://127.0.0.1:8080/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model": "inkling-2-mini", "messages": [{"role": "user", "content": "Hello"}], "reasoning_effort": "minimal"}'
```
## Performance vs llama.cpp
### Strix Halo (gfx1151)
AMD Ryzen AI Max+ 395 "Strix Halo" (gfx1151): the results for this package are not yet re-measured.
### 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.
## Features
| feature | status | detail |
|---|---|---|
| API | βœ… | OpenAI-style `/v1/chat/completions` |
| tool calling | β€” | not applicable |
| reasoning / thinking | βœ… | always on |
| reasoning effort | βœ… | `reasoning_effort`: 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 supported by Loom (the upstream model has it) |
| audio input / output | β€” | not applicable |
| sampling | ? | not determined |
| context size | βœ… | 254,976 tokens per request |
| 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 | β€” not yet re-measured | β€” not yet re-measured |
| `golden` | llama.cpp reference recorded on the same GGUF: greedy tokens and top-5 log-probs, short prompts and 1k-32k documents | β€” not yet re-measured | β€” not yet re-measured |
| `compare` | Greedy output vs the llama.cpp reference, token by token; every divergence is a near-tie | β€” not yet re-measured | β€” not yet re-measured |
| `vision` | Image input vs llama.cpp with the same projector: identical prompt tokens, replies equal up to near-ties | β€” not yet re-measured | β€” not yet re-measured |
| `consistency` | Concurrent requests give the same output as the same requests run alone | β€” not yet re-measured | β€” not yet re-measured |
| `spec` | Speculative decoding on gives exactly the output of speculative decoding off | β€” not yet re-measured | β€” not yet re-measured |
| `agent` | Multi-turn tool-calling loop: exact prompt rendering, history reuse, valid tool calls, output vs llama.cpp | β€” not yet re-measured | β€” not yet re-measured |
| `agent_think_off` | The tool-calling loop with thinking off | β€” not yet re-measured | β€” not yet re-measured |
| `sampling` | temperature, top_k and seed behave as specified; first-token distribution matches llama.cpp | β€” not yet re-measured | β€” not yet re-measured |
| `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 | β€” not yet re-measured | β€” not yet re-measured |
| `decision` | Decision answers (choice, score, noul probabilities) vs llama.cpp on the same prompts | β€” not yet re-measured | β€” not yet re-measured |
- 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:
- 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`