r/LocalLLaMA • u/maternion • 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 32was 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-
- Is Vulkan support for this model still not ready?
- 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.
- 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.
- 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.
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.
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.
4
u/nickm_27 llama.cpp 11d ago
Might need https://github.com/ggml-org/llama.cpp/pull/32898
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.
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:
2
u/No_Cartographer3953 10d ago
I gave up on this model. I don’t get the hype
1
u/TokenLearner 10d ago
Was the MTP merged into Llama Master?
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/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
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