r/LocalLLM • • 1d ago

Discussion Inkling 2 Mini (UD-Q4_K_XL, 16.4 GiB) on RX 7800 XT 16 GB (Windows): PolyStrata HIP vs llama.cpp Vulkan

Benchmarked Inkling-2-Mini-UD-Q4_K_XL (26.07B MoE, inkling2_loop, 16.41 GiB) on a 16 GB AMD Radeon RX 7800 XT (gfx1101) under Windows

11 (32 GB system RAM) to compare llama.cpp Vulkan (b12810) against PolyStrata HIP (strata-poly).

Since the 16.41 GiB file slightly exceeds 15.4 GiB free VRAM, both setups offload a portion of the MoE weights to system RAM.

llama-bench Vulkan (ca123ba76 / b12810)

Flags: -ngl 99 -fa 1 -ctk q8_0 -ctv q8_0

-ncmoe (CPU MoE layers)pp512 (tok/s)pp2048 (tok/s)tg128 (tok/s)Notes
5739.31166.0938.33VRAM spillover at pp2048
6 (sweet spot)-721.8035.54Fits cleanly in
7-697.6724.76More CPU MoE overhead
8-668.5323.32More CPU MoE overhead

PolyStrata HIP (strata-poly, --kv q8_0, --conversation-cache-mib 6144)

• VRAM residency: 2493 / 3072 experts in VRAM (evictions=0)

• Prefill: 880 tok/s

• Generation: ~60 tok/s

Takeaway

On a 16 GB RDNA3 card where the model barely overflows VRAM:

• PolyStrata HIP is ~22% faster on prefill (880 vs 721.8 tok/s) and **~69% faster on generation** (~60 vs 35.54 tok/s).

• The difference comes down to per-expert caching vs per-layer offload: PolyStrata keeps the hot 81% of individual experts in VRAM,

whereas llama.cpp -ncmoe 6 forces 6/24 entire MoE layers onto the CPU for every token.

• Watch out for -ncmoe 5 on 16 GB cards: pp512 looks fine (739 tok/s), but pp2048 spills into shared memory (166 tok/s).

8 Upvotes

7 comments sorted by

1

u/sentakuhm91 1d ago

I'm going to test on my Rx 9070xt and 32 gb ram

1

u/Head-Perspective4392 1d ago

Spent a long time and a lot of tokens optimising and creating kernels for Inkling 2 Mini. The numbers are far beyond what I'm seeing here (315 Custom Kernels) -- For good reason lol, let me know what speed you get.

https://github.com/SaloQT/rdna4-amd-infer/

  • Fast decode and prefill: Inkling-2-Mini IQ3_XXS 189.3 tok/s decode and 3,792 tok/s prefill on a 28.7K-token prompt; Saluki-27B IQ2-mix 142.1 tok/s and 1,134 tok/s on 23.8K.
  • Long context in 16 GB VRAM: up to 256K filled context with DSpark speculative decoding on Inkling-2-Mini (107.5 tok/s live at 261K tokens); 128K on Saluki-27B.

1

u/Mordimer86 1d ago

One problem with this model is that it tends to crawl after longer running, with more filled context. Goes from 50-70 to 20-30 t/s. At least with RustingStrata.

1

u/ireallydontcare00 1d ago

I get almost same result on my RX 6700 XT

https://github.com/0FL01/RedStrata - im make optimization for RDNA2

1

u/Geekomcomputer 1d ago

Nice update — this is a much cleaner comparison than most of the tok/s numbers floating around, because you kept the model file and context fixed, and the new numbers change the story quite a bit.

A few observations on what the updated numbers are actually saying:

  • The headline is now PolyStrata HIP ahead on both axes: ~22% faster on prefill (880 vs 721.8 tok/s) and ~69% faster on generation (~60 vs 35.54 tok/s) at the sweet spot. That's a real lead, not a rounding error — and generation is the number you'll feel most in chat and agent use.
  • The -ncmoe sweep is the interesting part: 6 is the sweet spot, and it falls off on both sides (5 spills over at pp2048, 7 and 8 get slower). That looks like a balance point between per-expert caching and per-layer offload overhead — worth re-running the same sweep at 64K and 128K, since Mordimer86's note about it crawling with a filled context suggests the trade-off changes once the KV cache gets big.
  • One quality check before you settle on the fastest configuration: compare the actual answers on the same prompt at the fastest flags vs the defaults. If the outputs are the same for your use, keep the speed; for coding/agent work I'd want to see that check first.
  • Good news on the file side: the UD quant loaded fine here, so the earlier failure was most likely that specific file or the older build, not the model itself.

If you do the longer-context sweep, the most useful numbers to share would be pp/decode at each context size with the same flags, plus one short generation sample from each backend at the same settings. That would tell the next 7800 XT owner exactly where each backend wins.

1

u/R3N3G6D3 1d ago

These results are pretty bad, those engines blow.