r/LocalLLaMA • • 13h ago

Discussion Which AMD kernel would you optimize next? Inkling 2 Mini with DSpark at 97 tok/s on the RX 9070 XT and 91 on the R9700

A seven-token draft window had our 9070 XT check 233 guesses to keep 93 of them. We dropped the window to five and it kept the same 93 out of 168. Decode went from 79.01 to 97.50 tok/s on the same prompt.

I work on ZINC. I want AMD to be a first choice for running models locally, and I’d like more people who own these cards to write the kernels. The 16 GB RX 9070 XT fit the 13.9 GiB Inkling 2 Mini checkpoint and the drafter. In our DSpark memory probe it had 271 MiB left.

We ran both engines as servers on the same cards, with a single slot and a 4,096-token context. This is the incident prompt, 336 tokens in and 128 out. The numbers are medians of three requests after a warmup, in prefill / decode tok/s. llama.cpp was v1.1.0. Both engines used the same Q4_0 target and, with DSpark enabled, the same Q8_0 drafter. Exact target GGUF

Card and draft modeZINC ROCmllama.cpp ROCmllama.cpp Vulkan
RX 9070 XT, off746.71 / 59.6587.07 / 34.97534.05 / 50.72
RX 9070 XT, on743.58 / 96.9560.79 / 21.05373.47 / 80.71
R9700, off746.25 / 63.99226.00 / 41.46713.71 / 45.99
R9700, on742.40 / 91.35153.64 / 35.87495.60 / 62.34

The 9070 XT’s ZINC numbers come from the tuned runs. For llama.cpp Vulkan I kept the fastest measured decode median and its corresponding prefill. Across four prompts, the RX 9070 XT's smallest decode lead over Vulkan was 17.6% with drafts off and 20.1% with them on. The R9700's was 39.0% and 46.5%.

The 32 GB R9700 also recovered three planted codes from a 62,591-token prompt in a 65,536-token window. We could allocate 401,408 tokens with DSpark and generate from a 3,167-token prompt. Full timings and context tests

Two places I’d start with a profiler.

  • HIP. Time the packed Q4_0 expert projection during ordinary decode. Does it spend more time loading the routed weights or doing dot products? HIP kernel
  • Vulkan. Our own path did about 34–36 tok/s and trailed llama.cpp Vulkan on both cards. I’d profile the packed dot-product shader before changing how it distributes rows and loads weights. GLSL shader

These are Inkling development builds. ZINC v0.1.2 is out for Linux and Apple Silicon has a Metal preview. Source · Release notes

If you have either card and feel like writing a kernel, I’d love to compare a before/after trace on the same GGUF.

2 Upvotes

4 comments sorted by

•

u/stylome-ai-detection 13h ago

Notice: This post appears to be AI generated.


Stylome AI detector · scan results

3

u/ea_man 12h ago

How is it that some slop it takes so long to understand what they are talking about?

That's like reading the middle of a reasoning trace that wanna sound like a Jules Verne novel.

1

u/DutchDevil 2h ago

Q3 mini does 190tks on 9070xt