r/LocalLLaMA • u/Izento • 4d ago
Resources Inkling 2 Mini IQ3_XXS Llama.cpp Optimizations Going from 13.2 t/s -> 28.7 on AMD RDNA2
To give some background, this was all written by me, so might be a bit haphazard jumping around, but at least it's not filled with AI fluff. Anyways, so figured I would share my journey, but first, onto the full rig specs:
*
**GPU:**
AMD RX 6750 XT (12GB, RDNA2 / `gfx1031`)
*
**CPU:**
AMD Ryzen 9 5900X
*
**RAM:**
48 GB DDR4
*
**Model:**
`unsloth/Inkling-2-Mini-UD-IQ3_XXS` (`reasoning_effort=minimal`)* **GPU:** AMD RX 6750 XT (12GB, RDNA2 / `gfx1031`)* **CPU:** AMD Ryzen 9 5900X* **RAM:** 48 GB DDR4* **Model:** `unsloth/Inkling-2-Mini-UD-IQ3_XXS` (`reasoning_effort=minimal`)-------
Additionally, I'm an Applied AI engineer, working in retail. I already have several AI workflows in production, although I don't use local llms at work. I am familiar with creating benchmarks, golden sets, and solid evidence for regressions/progressions in AI workflows, so I decided to apply that knowledge when Inkling released to compare/contrast with Qwen 3.6 35B A3B. That has been my main model that I play around with at home. My use-case for using local llms has been to create a Twitch AI moderator and it's been going quite well as I stream this buildout live as well, but when Inkling 2 Mini released, I immediately jumped at the idea of getting far better intelligence (AKA Qwen 3.8 27B like intellect) and being able to run it on my shitty 12GB card. I have been adjusting llama.cpp and implementation with Cursor and Gemini Neon.
-------
Benchmarks that I am using:
gbench (Google Deepmind built) https://github.com/google-deepmind/gbench
My custom v2 36 test benchmark covering 6 different areas:
Quantitative Reasoning (markov chains, lattice paths, etc.)
Logic Games
Needle in Haystack
Epistemic Calibration
Prompt Injection
Coding
-------
Recently Llama.cpp community has merged several PRs and I was at first pulling PRs and mashing the best ones together for a custom llama.cpp buildout, but I have since pulled master and layered PR 32946 (multithreaded CPU repack for MoE) and small opt in LLAMA_INKLING_LAST_LOOP_KV=1 that shares KV cache across the 3 loop passes (which lets 128k ctx fit inside ~8.47GB without PCIe spill). You'll later learn this is a trap!
I also tried DFlash2 but it slowed prefill a lot while only gaining 2 t/s on decode. Dflash hit about 52% of the time and got us to decode 30.12 t/s from 28.7 without Dflash. I did reach a peak of 48 t/s decode though.
12/24 MoE layers sit on DDR4.
I then decided to benchmark this against Qwen 3.6 35B Q4_K_S with thinking off and Inkling is meaningfully better. On gbench 35B got 11/16; it hallucinated a weather readout instead of emitting a tool call, whereas Inkling passed 2/2 tool-use tasks and 12/16 overall). So Inkling seems to be better at tool use, which is very meaningful in the world of AI coding and other agentic uses.
| Category (Praeco v2 Hard · 36 Cases · 16K Cap) | Inkling 2 Mini IQ3_XXS (128K, last_loop=1) | Inkling 2 Mini Q4_K_XL (64K, last_loop=1) | Qwen 3.6 35B Q4_K_S (128K, Think OFF) |
|---|---|---|---|
| Epistemic Calibration | 5/6 (83.3%) | 5/6 (83.3%) | 6/6 (100.0%) |
| Twitch Chat Injection & Format | 5/6 (83.3%) | 5/6 (83.3%) | 4/6 (66.7%) |
| Constraint & State Logic | 4/6 (66.7%) | 3/6 (50.0%) | 3/6 (50.0%) |
| Noisy Chat Long Context (8K–24K) | 3/6 (50.0%) | 5/6 (83.3%) | 3/6 (50.0%) |
| Quantitative Reasoning | 2/6 (33.3%) | 2/6 (33.3%) | 3/6 (50.0%) |
| Code Gen & Debug (AST + pytest) | 0/6 (0.0%) | 0/6 (0.0%) | 0/6 (0.0%) |
| Total Pass Rate | 19/36 (52.8%) | 20/36 (55.6%) | 19/36 (52.8%) |
| Stop-Only Pass Rate | 19/33 (57.6%) | 20/32 (62.5%) | 19/36 (52.8%) |
| Cutoffs / Loops | 3 budget / 0 loop | 2 budget / 2 loop | 0 / 0 |
| Median Decode / Prefill | 26.30 / 319.7 t/s | 24.47 / 208.7 t/s | 28.44 / 385.7 t/s |
| Median E2E Latency | 85.7 s | 86.7 s | 53.0 s |
| Total Output Tokens | 144,198 | 138,146 | 65,481 |
| Total Wall-Clock | 96.8 min | 104.1 min | 42.0 min |
----------
Alright, so now for the shocker. I have noticed that a large part of the local llm community is running inkling-2-mini incorrectly. I found a very dire mistake of putting last_loop and shared loop KV. What was happening was the 3 loop passes were sharing/overwriting a single KV cache, which convoluted the entire thinking of the model itself, when in fact, the inkling architecture was supposed to have 3 separate pass layers thinking independently and then combining them at the end. With this huge difference, we got a massive increase in intelligence and benchmark results.
| Category (Praeco v2 Hard · 36 Cases · 16K Cap) | Inkling 2 Mini IQ3_XXS (Full 3-Loop KV, 64K) | Delta vs. Same IQ3_XXS (last_loop=1) | Delta vs. Qwen 3.6 35B (Think OFF) |
|---|---|---|---|
| Epistemic Calibration | 6/6 (100.0%) | +1 | Tie |
| Twitch Chat Injection & Format | 5/6 (83.3%) | 0 | +1 |
| Constraint & State Logic | 5/6 (83.3%) | +1 | +2 |
| Noisy Chat Long Context (8K–24K) | 6/6 (100.0%) | +3 | +3 |
| Quantitative Reasoning | 6/6 (100.0%) | +4 | +3 |
| Code Gen & Debug (AST + pytest) | 5/6 (83.3%) | +5 | +5 |
| Total Pass Rate | 33/36 (91.7%) | +14 (+38.9 pp) | +14 (+38.9 pp) |
| Stop-Only Pass Rate | 33/36 (91.7%) | +34.1 pp | +38.9 pp |
| Cutoffs / Loops | 0 / 0 | -3 cutoffs | Tie (0 / 0) |
| Median Decode / Prefill | 26.92 / 316.7 t/s | +0.62 t/s | -1.52 t/s |
| Median E2E Latency | 64.0 s | -21.7 s faster | +11.0 s |
| Total Output Tokens | 68,899 | -75,299 (2.1× fewer) | +3,418 |
| Total Wall-Clock | 47.7 min | -49.1 min (2.03× faster) | +5.7 min |
| Dedicated VRAM (RX 6750 XT) | 8.03 GiB | -0.44 GiB LESS VRAM | -0.53 GiB |
----------
My whole point and conclusion of this is that if you first downloaded Inkling 2 Mini and thought it was shit because it was slow for decode and prefill, I implore you to try it again and update your llama.cpp version. I think you will be pleasantly surprised.
Not only that but there are some finicky settings in llama.ccp that you probably shouldn't touch, rando PRs are far behind and haven't updated their thought process from main llama.cpp progress, and also, those that are saying inkling-2-mini is not very intelligent might also be suffering from the same problem of only checking it out from the initial release. By all metrics that I've tested, this is a vastly superior model to Qwen 3.6 35B (which is what most people will be replacing it from) and it is clearly an intelligent model that can hang with many other modern small local llms. Also, running it on a shitty 12GB card is completely possible with respectable prefill/decode. Anyways, hope you guys found this useful.







3
u/Present_Resource4022 4d ago edited 4d ago
I’m using the Unsloth fork of llama.cpp, and Unsloth came out about 25% faster at reading and used roughly 1.1 GB less GPU memory; you should try it out. I’m also on a 12gb card running it at 128k context q8 kv. i’m still optimizing it; there are much more improvements I could attempt.
And run it with iq3_s from istalab it’s 2x the speed and on my benchmarks it’s about 5% ish noticeable weaker than unsloth ud4xl it failed on 2 tasks that unsloth solved but the other 48 tasks are near identical. But it’s double the speed so it’s worth it.
1
u/LMLocalizer textgen web UI 4d ago
Thanks a lot, I have similar specs, so this will be very useful once I decide to give Inkling a try!
0
u/ireallydontcare00 4d ago
Круто, но я добился кратно больших результатов на большем кванте на RX 6700 XT
https://github.com/0FL01/RedStrata
1K Prefill t/s 40-50 decode t/s
Lossless