List-Level Distribution Coupling with Applications to Speculative Decoding and Lossy Compression
Paper β’ 2506.05632 β’ Published
A Loom package (.loom programs and a model.json card) for the unmodified GGUF checkpoint 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 workflow. Learn more on the Loom ecosystem website.
pipx install "hrx-loom[hf]==0.2.0"
loom-fetch huggingface:loom-fun/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.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": "Inkling-2-Mini", "messages": [{"role": "user", "content": "Hello"}], "chat_template_kwargs": {"enable_thinking": false}}'
| metric | llama.cpp | Loom | margin vs best llama.cpp | roofline | Loom % of roofline |
|---|---|---|---|---|---|
| decode tok/s, short prompt | 15.7 | 54.2 [54.0, 54.4] (95% CI) (acceptance 20 %) | +245 % | 40.4 | 134 % β‘ |
| decode tok/s, 2k context | 14.9 | 52.8 [51.2, 53.3] (95% CI) (acceptance 24 %) | +254 % | 42.2 | 125 % β‘ |
| decode tok/s, 32k context | 10.7 | 43.1 [42.0, 43.8] (95% CI) (acceptance 19 %) | +303 % | 35.3 | 122 % β‘ |
| prefill tok/s, 1k document | 292.8 | 1992.1 [1990.3, 2002.7] (95% CI) | +580 % | 4762.1 | 42 % |
| prefill tok/s, 2k document | 278.6 | 2200.3 [2190.4, 2210.1] (95% CI) | +690 % | 4614.1 | 48 % |
| prefill tok/s, 8k document | 241.5 | 2363.7 [2361.0, 2378.4] (95% CI) | +879 % | 4469.7 | 53 % |
| prefill tok/s, 16k document | 203.9 | 2297.5 [2295.7, 2307.8] (95% CI) | +1027 % | 4297.3 | 53 % |
| prefill tok/s, 32k document | 158.1 | 2174.1 [2171.3, 2187.3] (95% CI) | +1275 % | 3989.5 | 54 % |
| 4 streams, aggregate tok/s (drafting off) | 39.4 | 108.3 [107.8, 109.4] (95% CI) | β | 211.8 | 51 % |
| 4 streams, aggregate tok/s (drafting on) | n/a | 108.4 [108.1, 108.6] (95% CI) (acceptance 0 %) | β | 99.3 | 109 % β‘ |
| speculative decoding, drafted tokens accepted | β | 44 % ΒΉ | β | n/a | n/a |
Decode by content class
| content class | Loom tok/s | drafted tokens accepted |
|---|---|---|
| prose | 55.8 [55.1, 55.9] (95% CI) | 21 % |
| code | 63.7 [63.0, 63.8] (95% CI) | 34 % |
| chat | 53.4 [52.7, 53.5] (95% CI) | 17 % |
Methodology
llamacpp-rocm/b1383; the same GGUF, the same historical baseline and re-measured Loom jobs, the same prompts; Loom served with the active wait. Values are the median of 4 sessions (a session's value is the median of its samples: 3 samples for decode, decode_2k, decode_32k, prefill_1k, prefill_2k, prefill_8k, prefill_16k, prefill_32k) (4 streams: median of 4); Loom is timed by the client, llama.cpp by its server.-ngl 99 -cram 0 -c 38000 -kvu -np 1 --temp 1.0 --top-p 1.0 --top-k 0 --min-p 0.0 (c4: -c 35024 -np 4).0.2.0 (hrx-system 0cd370f); source: named-machine run.spec gate's requests.roofline.py (loom-skills unknown commit); 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 20 %, decode at 2k 24 %, decode at 32k 19 %; single-pass ceiling (no acceptance measured on this package) for 4 streams drafted; 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).Environment (Loom measurement)
Sampling (Loom measurement)
| 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 |
| image input | β | OpenAI-style image_url parts; projector mmproj-F16.gguf |
| audio input / output | β | not applicable |
| 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) |
| gate | description | result |
|---|---|---|
kernel_tests |
Unit tests of the generated kernels against reference implementations | β no evidence |
golden |
llama.cpp reference recorded on the same GGUF: greedy tokens and top-5 log-probs, short prompts and 1k-32k documents | β pass ΒΉ |
compare |
Greedy output vs the llama.cpp reference, token by token; every divergence is a near-tie | β pass ΒΉ |
vision |
Image input vs llama.cpp with the same projector: identical prompt tokens, replies equal up to near-ties | β pass ΒΉ |
consistency |
Concurrent requests give the same output as the same requests run alone | β pass ΒΉ |
spec |
seed-for-seed identical tokens, drafted vs undrafted, at T=1 | β 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 |
0.2.0 (hrx-system 0cd370f).gates.sh); a gate without a recorded run shows no evidence.Techniques in this package that came from other people's work (ideas only, no code copied):
| technique | credit |
|---|---|
| Drafter proposals coupled to the request's own Gumbel-Max draw (exact at T>0) | francescobozzo, gufo-org/gufo#1340; Majid Daliri, Christopher Musco, Ananda Theertha Suresh; Joseph Rowan, Buu Phan, Ashish Khisti; ashalliants, ashalliants/ninfer-3090#561 |
| Per-step drafter-confidence verify width | francescobozzo, gufo#1340 "Lead 3" |
| Direct FP16 attention output (flash2_o16, "E1(b)") for prefill | francescobozzo, gufo#1340 (E1(b)) |
| Coalesced b128 conv-weight loads in short-conv KV prep | francescobozzo, gufo#1340 (small-kernel latency focus) |
| MoE gate/up rows-per-wave sweep (R=2, 16 waves per WG) | danielhanchen, unslothai/llama.cpp#417 |
| Register-packed f16 P->A WMMA pass-through in far attention | woct0rdho, feather-attn |
| Fused Q8-out Q8_0 MoE decode matvec | Annieren, ggml-org/llama.cpp#26301; shawnshekari |
| Single-token multi-matrix projection fusion (-136 dispatches/step) | shawnshekari |
| DSpark drafter graph (3-layer DFlare plus Markov head) | pwilkin, ggml-org/llama.cpp#32218 (graph_inkling2) |
| Inkling-2 target layout (inkling2 / inkling2_loop tensor names) | ggml-org/llama.cpp#32694; ggml-org/llama.cpp#32695; Unsloth unsloth/Inkling-2-Mini-GGUF rev 8078d149 |
| FlashAttention-2 online-softmax tiling | Tri Dao, FlashAttention-2 |
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 0.2.0 (hrx-system 0cd370f); card generator unknown.
Source files, fetched by loom-fetch from their own repositories:
8078d14, Inkling-2-Mini-UD-Q4_K_XL.gguf8078d14, dspark-Inkling-2-Mini-Q8_0.gguf8078d14, mmproj-F16.ggufBase model
thinkingmachines/Inkling-2-Mini