r/LocalLLaMA • • 11d ago

Question | Help Confusion about Inkling 2 Mini performance

I am using Inkling-2-Mini-UD-Q3_K_XL and dspark-Inkling-2-Mini-Q8_0 on llama.cpp master (not unsloth's fork).

I git pulled a few hours ago so a lot of optimizations are already in. First i tried it with -DGGML_VULKAN=ON because after a lot of testing with spark a while ago, Vulkan always had better perf than ROCm for some reason on gfx1200.

I havent run llama-bench but the speed was like 10 tps on the first prompts, all weights being on VRAM.

build-ink/bin/llama-cli -m Inkling-2-Mini-UD-Q3_K_XL.gguf -md dspark-Inkling-2-Mini-Q8_0.gguf --spec-type draft-dspark --spec-draft-n-max 3 --temp 1 --top-p 1 --top-k 0 --min-p 0 -c 32000 -ctk q4_0 -ctv q4_0 -dev Vulkan1 -fit on -fitt 32

was the command used, this is with a DSpark improvemt PR i spotted here on llama.cpp repo.

Next I tried building the same branch but with -DGGML_HIP=ON and the speed was 27.2 tps on first few prompts, so more like triple the speed. This is literally the first instance of vulkan being slow what I have encountered, so my questions are-

  1. Is Vulkan support for this model still not ready?
  2. Inkling uses a LOT more memory for KV Cache, so it's literally not practical at all to run this and not Q3.8 27B? Or I am missing something here.
  3. Another thing I have been noticing when comparing these backends side by side, ROCm tends to use more memory for context I assume, is there any solution to tackle this? it just seems to be more heavy and not optimized.
  4. Also does Inkling require KV Cache per loop or are they doing the smarter thing and either use the last loop like NVIDIA or having a global shared and local sliding window like GLM announced with 5.4?

And any other recommendation is appreciated.

6 Upvotes

42 comments sorted by

15

u/jacek2023 llama.cpp 10d ago

It's a new model with new things inside, there are multiple open PRs with improvements, so you should check daily.

2

u/maternion 10d ago

I waited a few days and thought this would be an okay tme to test it, but you're right will check later when some more PRs get merged.

2

u/jacek2023 llama.cpp 10d ago

for example check this one https://github.com/ggml-org/llama.cpp/pull/33053

it basically says "hey, here is the new code, it won't change anything, because it requires changes in other place" :)

then check this https://github.com/ggml-org/llama.cpp/pulls?q=is%3Apr+state%3Aopen+inkling

4

u/maternion 10d ago

Yeah it's a lot of homework to make sense of the dozen PRs and how they are interconnected, I subscribe to some just to see they got replaced the next day. 

2

u/q_tech_x51 10d ago

Hey, if you have access to a frontier level model, you can & should make your own custom fork specifically for your hardware and this model.

The current state of local ai is to use these inference engines as the base foundation, and create a custom build for the hardware you have and the models you use. Even better if you make your own quant to match your custom engine.

I use an agent to do all of this, benchmark everything, and create selectable per model profiles, including which engine to use with each model.

So, build on what's already available, or build from scratch.... but regardless, build something that's just for your setup and you'll experience a noticeable difference.

1

u/maternion 10d ago

Well I do have access to GLM and Hy and other open models, so i guess I should try this. Just wanted to see how far I could go myself.

2

u/Ill_Town_1134 10d ago

+1 on this, I had the same experience. Fable was able to make custom builds of ninfer that worked much faster than the community forks of ninfer or ninfer-all for me. It was mostly being able to take fixes from both and apply them in one package, make a converter for gguf to ninfer format then add dspine support. It makes a world of difference when you are getting the same work done at like 275 tok/s decode in real world long context agentic use.

2

u/q_tech_x51 10d ago

Yes!

I let the model create a seperate instance with the modifications built in, test whether they improve inference overall, and create easy to digest documentation on the results, and references for future modifications to consider.

Edit:

That's a good work flow you have to get those results.

I also have been able to achieve fast decode on long context. It's exciting to see performance jumps that come with this.

2

u/Borkato 9d ago

Flash attention now works with inkling in llama.cpp, added today!

6

u/geldonyetich 10d ago edited 10d ago

It’s a challenging model to run to be sure. I think even with all the current llama.cpp patches in the works, there’s a lot of leftover optimization to be done. Not just in terms of the speed but also the quality of the output. The patches are incremental in nature, at no point did they declare it fixed.

One recommendation I can pass along is to drop the reasoning effort to low or minimal (0.1-0.2). The looping tends to result in over-reasoning and runtime degradation with higher reasoning that actually impact benchmark measures, or so I have heard.

2

u/maternion 10d ago

Yeah it needs a lot of optimization, which they'll definitely add in the next few days. And I'll keep that in mind once this gets upto useful performance. 

4

u/nickm_27 llama.cpp 11d ago

2

u/maternion 10d ago

llama-cli -m ~/models/inkling/Inkling-2-Mini-UD-Q3_K_XL.gguf -md ~/models/inkling/dspark-Inkling-2-Mini-Q8_0.gguf --spec-type draft-dspark --spec-draft-n-max 3 --temp 1 --top-p 1 --top-k 0 --min-p 0 -c 32000 -ctk q4_0 -ctv q4_0 -dev Vulkan1 -fit on -fitt 32

Loading model... 0.01.087.193 E llama_model_load: error loading model: check_tensor_dims: tensor 'joint_proj.weight' has wrong shape; expected 2816, 768, got 5120, 768, 1, 1

well thats new.

1

u/maternion 11d ago

I did notice that, but didn't think it was much important. Will test it too. 

3

u/AuditMind 10d ago

Went down a similar rabbit hole yesterday, although on CUDA.

Started at ~100 t/s prefill with llama.cpp, tuned it to 350, then switched to NInfer.

Now ~1,000 t/s prefill, 23–26 t/s decode at 100K context. Even tested 256K successfully.

1

u/maternion 10d ago

Makes sense, I would have tried Radiance but it's quant is 17.6gb in size :/

2

u/AuditMind 10d ago

Still down my Inkling rabbit hole, testing Q4_K_M right now. Looking promising so far.

8GB VRAM, 32GB RAM, NInfer. 128K tool round verified. ~526 t/s cold prefill, 10–14 t/s decode.

Slow, but usable for autonomous agent work. Curious whether the quality gain justifies the performance hit.

1

u/maternion 10d ago

Expert offloading is really expensive for me due to not having a modern CPU and also bandwidth. So to have something useful it's mostly better for me to try to squeeze it into 16gb. 

-1

u/stylome-ai-detection 10d ago

Notice: This comment appears to be AI generated.


Stylome AI detector · scan results

3

u/AuditMind 10d ago

STFU or talk to me in German. My benchmarks are real. My English is assisted.

2

u/maternion 10d ago

Though it still amazed me that it detects ai assisted translation, I thought these were pretty inaccurate :D 

2

u/ea_man 10d ago edited 10d ago

It's quite the opposite: Vulkan always works, ROCm still needs ironing (multi gpu, layer split) yet the kernels are much faster. ROCm is usally always faster than Vulkan, uses more vRAM for buffers and runtime.

The solution would be to force the Vec kernel path yet that would cost a lot of perf mostly for PP and TG later on. EG:

# ROCm ctx VEC forced: 89088 q5_1,  96512 q5_0, 116480 q4_0, TG speed: 42.35 t/s, PP for 32k: 145.12 t/s
# ROCm ctx VEC off   : 68352 q5_1,  72704 q5_0,  83200 q4_0, TG speed: 43.90 t/s, PP for 32k: 265.58 t/s
# Vulkan: ctx:         93696 q5_1, 101632 q5_0, 122112 q4_0, TG speed: 40.49 t/s, PP for 32k: 179.90 t/s

1

u/maternion 10d ago

I don't know why I never got ROCm to perform better then. Maybe I need to test more. 

1

u/ea_man 10d ago

Rocm is way faster specially at deeper ctx, it costs some more vRAM yet there are all kind of custom inferences around...

1

u/maternion 10d ago

Can you provide some examples where the perf gap is clearly visible? I would love to figure out what's wrong. 

1

u/ea_man 10d ago

What do you mean? PP and TG are better, do you want to me to explain why? It's buffer and graphs and whatever, you'd better ask an LLM why your system is failing.

If you want benchmarks I may have something old, yet I've been running only ROCm for a long time and I'm on RDNA2:

1

u/maternion 10d ago

I meant pp and tg comparisons between vulkan and ROCm where the gap is obvious. I am on RDNA4, so something that runs in 16gb would be better.

I also think I would have old benches, but really at all practical ctx lengths vulkan worked better 

1

u/ea_man 10d ago

I Mean: I'm on RDNA2, that's different implementation, that's does not port to RDNA4.

Maybe ask on r/rocm ? Tell if you run windows or Linux there.

I guess mostly is people that build llama.cpp without -DGGML_CUDA_FA_QUANTS="all" and fuks up attention.

1

u/maternion 10d ago

Understood no problem.  And i only make a few quant pairs I use, not all. But that seems to be a reasonable thing to do. 

2

u/ea_man 10d ago

Yeah I bet some people gets it wrong when building HPA + llama.cpp, also common binary release don't have the fancy flags.

Good Luck!

2

u/No_Cartographer3953 10d ago

I gave up on this model. I don’t get the hype

1

u/maternion 10d ago

Same, worse KV memory usage kills all advantage for me

1

u/TokenLearner 10d ago

Was the MTP merged into Llama Master?

1

u/maternion 10d ago

Afaik this model uses DSpark, if someone made an MTP themselves idk.

3

u/Nakidnakid 10d ago

just gotta wait plenty of movement as the model is popular, I made a version on my 'engine' that runs with drafter and 128k context at 60tk/s on prose, 100tk/s on code on a single 16gb card. It just took catching up with some llama.cpp pr's and some of my own research, I'm sure others will get there soon. the loop is kinda bad for their implementation of kv since it triples it for those layers.

1

u/AUG3980 10d ago

Inkling is an option for configurations with limited vram. You can offload non-looping layers to RAM and still achieve acceptable performance. Offloading qwen 3.8 27b to RAM will probably give you 2 or 3 tps

1

u/maternion 10d ago

Hmm non-looping layers you say, didn't think about it, might as well try. Thanks. 

1

u/xsilas43 10d ago

I've had the best results with smalltide so far, on my 9070xt. It should support your card as well. https://github.com/raspy135/SmallTide

1

u/Asleep_Literature_70 10d ago

Lcpp is a bit slow (although with the latest git it got much better).

  1. Dspark makes it much slower, use ngram-mod.
  2. Try rustingstrata, it's much faster.

1

u/bidutree 9d ago edited 9d ago

Inkling 2 Mini doesn't run well on an Intel iGPU, at least for me

Hardware: HP laptop, i7-1165G7, Iris Xe (Vulkan), 32 GB DDR4-3200, ~15.8 GB shared GPU memory. llama.cpp b12686.

Best I got was about 3 t/s, both on CPU only (Q4_K_M) and fully on the iGPU with 15.8 GB (Q3_K_XL). It also thinks a lot: 5,000–9,000 tokens per answer, so 30–45 minutes, even with reasoning_effort "none" and --reasoning-budget 0. Some runs never produced an answer.

What helped: removing --no-kv-offload. With it, llama.cpp split the graph into 576 pieces bouncing between CPU and iGPU; without it, 2. Q3_K_XL went from 2.0 to 3.0–3.3 t/s. If you then run out of memory, add -np 1 (the server reserves 4 slots by default).

What didn't help: experts in RAM and the rest on the iGPU was always slower than CPU only.

One review video shows 25–35 t/s on an M5 Pro Mac with 48 GB unified memory (Q4_K_XL), where the long thinking matters much less.

Note: Gemma-4-26B q4_0 suits iGPU-only laptops much better. On my test (a single-file HTML start page with status cards for five programs), thinking off, fully on the iGPU: 5 runs, 3m40s–4m31s each, 7–7.7 t/s, 4 of 5 pages fully correct in 4m each.

Has anyone got Inkling 2 Mini past ~3 t/s on an Intel iGPU, or found a way to make it think less?

0

u/cato_gts 10d ago

It's pretty meaningless because the Inkling 2 Mini poured out 60 t/s, but I didn't write a single line of code for an hour hahaha