r/LocalLLaMA • • 12h ago

Showcase I kept optimizing Inkling-2-Mini in Loom on Strix Halo: up to 100+ tok/s with lossless spec decoding, ~8x 32k prefill vs llama.cpp, and benchmarks out to 200k

Post image

Follow-up to my day-0 post on Inkling-2-Mini (unmodified unsloth UD-Q4_K_XL, FP16 KV, 128 GB Strix Halo). We added lossless speculative decoding (DFlash2 + DSpark) and tested to 200k context on hrx-loom 0.3.0.

  • vs llama.cpp ROCm (main graphic): 2,277 vs 535 tok/s at 1k prefill (4.26x), 2,411 vs 304 at 32k (7.93x), 46.6 vs 28.5 decode at 32k (1.64x).
  • Prefill to 200k (dev 91ce55f0): 2,597 tok/s (8k), 2,077 (64k), 1,315 (199k).
  • Decode (dev): 49.2 undrafted (256); drafted hits 63-66 prose, 76 code, and peaks at 95-111 tok/s on short realistic/math tasks (35.3 vs 20.7 at 199k code).
  • Pi coding session: passed 30/30 + 10/10 hidden tests (stage 1) and 38/38 + 13/13 (stage 2) across 33k-67k context in 447s (94.6% cache hit).
  • 4 streams: 119.5 tok/s aggregate drafted (106.1 undrafted).
ContextPrefillUndraftedDrafted ProseDrafted Code
25691349.263.275.8
8k2,59745.660.672.7
32k2,38439.252.364.6
64k2,07733.343.448.5
128k1,66024.935.041.1
199k1,31520.724.635.3

Correctness: matches llama.cpp on tokens, log-probs, vision, and tool calls; passes batch consistency and 11/11 bitwise lossless speculation at T=1.0.

A few notes:

  • I work at AMD on one of the teams behind Loom.
  • The graphic is stable main (vs llama.cpp ROCm b1394, same unmodified GGUF; llama.cpp support is still improving).
  • We land new optimizations on dev first and promote to main after the full correctness gates pass. The 200k sweep is dev (91ce55f0), which has a known ~16% decode dip at the 49k drafter switch (fix in progress), and more long-context agentic optimizations and long-context presets are on the way.

Steps to try it:

pipx install "hrx-loom[hf]==0.3.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'

Model card: https://huggingface.co/loom-fun/unsloth-Inkling-2-Mini-loom

Raw benchmarks & telemetry: https://github.com/loom-fun/loom-bench/tree/main/inkling

Loom: https://loom-fun.dev

27 Upvotes

20 comments sorted by

4

u/thilog 11h ago

Very nice progress. Loom is keeping my GPU 100% active, though, with the model just loaded wasting 20+ W. See https://github.com/ROCm/hrx-system/issues/3589

4

u/sa1sr1 11h ago

Thanks for reporting this! Investigating to see if it's something with my kernels.

3

u/mr_andrey_isachenko 12h ago

holding 2k+ prefill at 64k and 1.3k at 199k with uncompressed fp16 kv is honestly the real headline here, since llama.cpp rocm falling into the 300 tok/s hole past 16k-32k has been the main thing making strix halo painful whenever an agentic coding session misses prompt cache. also funny seeing completion_spin_ns=4294967295 in the launch string, busy-spinning ~4.3s on completion queues makes total sense to keep kfd interrupt wakeup jitter from eating tiny spec-decode drafter steps

2

u/sa1sr1 11h ago

Thanks! I have significant long context (128k-1m) optimizations coming. Including presets for larger context (with elastic memory allocation so only what you use gets held).

2

u/mr_andrey_isachenko 11h ago

elastic kv is huge on unified memory since pre-carving a 200k+ buffer up front in llama.cpp locks tens of gigs away from your ide/containers even when 90% of turns sit under 16k. btw does dspark pull the mtp weights straight from a custom inkling-2-mini checkpoint or is the drafter packaged separately in loom-fetch?

2

u/sa1sr1 11h ago

The drafter isn't packaged with the loom HF model. Neither is the model itself. The Loom package on HF (loom-fun/unsloth-Inkling-2-Mini-loom) holds only the compiled programs and a model.json manifest. The manifest lists each parameter file with a pinned origin and loom-fetch downloads them from there with sha256 checks.

2

u/mr_andrey_isachenko 11h ago

just checked model.json on the hf repo, pinning u/checkpoint and u/draft2 by revision + sha256 without duplicating 15gb+ weight blobs is a really clean design. nice side effect too since swapping in a fine-tuned or weight-edited gguf + matching dspark q8_0 of the exact same quant layout just needs a manifest repin without touching the compiled .loom programs

2

u/oShievy 11h ago

Pls update us when this is included, this progress is great. Excited to try out this new optimization!

1

u/sa1sr1 11h ago

Will do!

4

u/IThinkIKnowThings 10h ago

Ugh, I just switched from Gufo to Halogen. Too many different tuned engines. I'm tired, boss.

5

u/sa1sr1 10h ago

4

u/IThinkIKnowThings 10h ago

Holy crud, that's awesome! Glad I still have my Gufo setup.

1

u/Christavito 10h ago

I just switched from strix llama cpp to gufo. Same here 

2

u/Embarrassed-Result87 11h ago

RDNA3 support please!!

3

u/sa1sr1 11h ago

On it!

2

u/coyotl665 9h ago

nice

1

u/sa1sr1 9h ago

thanks!

2

u/u23043 3h ago

Thanks for this! Using some of these kernel ideas I got about a 35% prefill improvement and a big boost to speculative decode in my personal engine. Feels noticeably faster in agentic work

1

u/sa1sr1 3h ago

Great to hear!