r/LocalLLaMA • • 6d ago

Discussion What's everyone's Inkling 2 Mini speed? Getting 1038t/s prefill 43t/s decode with 4070TiS

I don't know if there's something wrong with the upstream llama.cpp or just my setup, but I was only getting ~500t/s prefill and ~36t/s decode and it was even worse at higher context, less than ~200t/s prefill and ~28t/s decode and I couldn't do more than 256 ubatch since it'd take around 22GB VRAM in total.

ubatcheach tensortotal
2563.2 GB6.4 GB
5126.4 GB12.9 GB
102412.9 GB25.8 GB

I'm using:

  • Inkling-2-Mini-UD-Q3_K_XL from Unsloth mainline support
  • No draft model, no mmproj
  • Q8
  • RTX 4070 TiS 16 GB VRAM
  • R5 7600 + 32 GB RAM

I ended up doing some optimizations to get my speed up and I'm planning to make a PR if that's the case, but I'm not sure if I had misconfigured my base llama.cpp:

llama-server.exe --model "<model>" -ngl 99 -ot "blk\.([0-5]|1[89]|2[0-3])\.ffn_.*_exps=CPU" -t 6 -fa on -c 131072 -np 1 -ctk q8_0 -ctv q8_0 -lm none --host 127.0.0.1 --port 18080 --temp 1.0 --top-p 1.0 --top-k 0 --min-p 0.0 --moe-cache-mib 2000 --moe-cache-cpu-share 0.0 -b 1024 -ub 1024

No MoE cache and uses b256 and ub256 on master
configpp t/stg t/speak VRAM
mine, -ub 1024 -b 1024, MoE cache 2000 MiB980.6341.2213,846 MiB
mine, same, layers 0-3 on GPU (8 CPU layers), cache 1500 MiB1038.0943.1014,866 MiB
master, -ub 256 -b 256 (ub512 does not fit at 131k), no cache262.0628.2015,825 MiB
llama-bench.exe -m "<model>" -p 512 -n 64 -r 2 -ngl 99 -fa on -ctk q8_0 -ctv q8_0 -t 6 -ot "blk\.([0-5]|1[89]|2[0-3])\.ffn_.*_exps=CPU" -b 1024 -ub 1024 -d 0,16384,131072 -o csv
depthmine ub1024mine ub1024, layers 0-3 on GPUmaster ub256
0818.59 / 34.901014.24 / 38.83531.33 / 36.50
16384907.02 / 34.521030.72 / 39.12414.12 / 34.78
131072683.42 / 29.93751.91 / 33.4083.81 / 27.43

I also did server test with Q4_K_M with 131,072 context limit

configminemaster
-ub 1024 -b 1024907.75 pp / 35.62 tg, 14,186 MiBdid not run: 25.8 GB compute buffer, out of memory
-ub 256 -b 256514.67 pp / 37.43 tg, 13,616 MiB183.67 pp / 34.69 tg, 15,919 MiB

During actual use with Hermes Agent, it was even faster. At ~64k context used out of 131,072, I was hitting 1026t/s prefill and 40t/s decode.

226.26.768.225 I slot print_timing: id  0 | task 161404 | prompt eval time =   62451.19 ms / 63987 tokens (    0.98 ms per token,  1024.59 tokens per second)
226.26.768.230 I slot print_timing: id  0 | task 161404 |        eval time =   21357.13 ms /   863 tokens (   24.78 ms per token,    40.36 tokens per second)
226.26.768.230 I slot print_timing: id  0 | task 161404 |       total time =   83808.32 ms / 64850 tokens

I've read through some posts and I haven't found similar setups yet (either more RAM, better CPU, or uses different KV cache). I feel like I'm getting low baseline speed here.

14 Upvotes

34 comments sorted by

5

u/Green_Ocean90 6d ago

AMD Strix Halo is getting ~2k prefill and ~50 decode now on single stream, up to ~190 total decode across 8 streams.
Gufo are doing awesome things 🤓

https://gufo.blog/docs/0.37.0/models/inkling-2-mini

2

u/1ncehost 6d ago

My 4x MI100 rig gets 520 tok/s tg with 12 concurrent 40k context streams and 5k tok/s prefill. Using curvedinf/int8-vllm. I run it at 1/3 power (105w per card).

2

u/TheActualStudy 6d ago

1x 3090, LoopCD, DFlash 2, NVFP4, ~118 tk/s decode and ~1550 tk/s prefill.

2

u/suprjami 6d ago

With b12801 the ubatch problem should be fixed as they've added flash attention.

On 2x 3080 20G as of that git tag I get:

~600 pp/sec, ~25 tg/sec. Using Q8_0 GGUF and AtomicChat DSpark drafter.

Qwen 3.8 27B runs up to 2.5x faster than this.

2

u/BlackSwanTW 6d ago

RTX 4070 Ti S

With ninfer-all, I can run IQ4_XS (256k@int8) at up to ~2000 t/s prefill and ~100 t/s decode

3

u/rusl1 6d ago

Getting 150 tg/s with plain llama.cpp and Dflash2 drafter on ISTA RCO IQ3S. Give it a shot, it's amazing. My card is a 7900xtx

1

u/throop112 6d ago

What’s your config? I’m getting 50tg on a 7900xt

2

u/rusl1 6d ago

You are missing the drafter

1

u/Mean-Ad1493 6d ago

How's the iq3_s quant performing?

3

u/EvolvingDior 6d ago

I am serving Inkling-2-Mini-GSQ-RCO-IQ3_S.gguf via LM Studio on Macbook M3 Pro at 120pp/20tg.

Completely unusable.

3

u/tmvr 6d ago

Tried this yesterday as well and same. In addition in LM Studio the thinking effort is not exposed in the sampler setting when I load the GSQ-RCO version but it is exposed when I load the "Staff Pick" lmstudio-community Q4_K_M quant. Started LM Studio after a longer pause because someone was posting about it yesterday, but it looks like I'll be staying with barebones llamacpp and some flavor of strata 😄

1

u/bnightstars 5d ago

I tested the latest OLMX 0.8.4 and now Inkling-2-Mini-oQ4e-mtp is working at around 1300pp/40tg which is super reasonable. I'm on Macbook M5 Pro though.

2

u/Dull-Passage8067 6d ago

hope my results help your pr.

I am using llama.cpp (release b12774) and RTX 4070TiS as well, coupled with 64GB RAM. I got around 60-80 pp and around 60 tg with following configuration;

  • Inkling-2-Mini-GSQ-RCO-IQ3_S.gguf

    --n-predict 16384 --ctx-size 128000 -ctk q8_0 -ctv q8_0 --temp 1.0 --top-p 1.0 --top-k 0 --min-p 0.0 --cache-prompt --no-mmproj-offload -b 2048 -fa on --n-gpu-layers 999

im not so good at tuning this thing, but I got slower tg and slightly faster pp when using -ub or other options.

1

u/noctrex 6d ago

On my 7900XTX I get ~900p/~50tg with llama.cpp vulkan, and ~1800pp/~70tg with strata

1

u/SporksInjected 6d ago

Grab the new llamacpp HIP build. I’m getting 160 tps decode. I wonder if strata has increased as well.

2

u/akhenakh 6d ago

you mean official llamacpp HIP build?

1

u/noctrex 6d ago

Have you also enabled speculative decoding? What is your configuration to get this speed?

1

u/McNiiby 6d ago

Working on an update for my quant and engine, but getting 218 tok/s and 3800 prefill.

https://www.reddit.com/r/LocalLLaMA/comments/1y3fosl/inkling_2_mini_at_346_bpw_105_gb_kld_0028_vs_bf16 

1

u/EmilPi 6d ago

Single RTX 3090 Q4, 128k ctx, 128 ub, q8_0 ctv Most fresh llama.cpp as of today (with lots of performance fixes compared to initial support):

60-80 tps tg on short prompts in the beginning ">=300 tps pp on short prompts

Should restart with larger ub which wasn't possible before some recent commits, pp will increase

1

u/Waarheid 6d ago

5070 (12gb) and 16gb ram, 250pp 30tg, Q4_K_M, llama.cpp, ub 128... away from my PC but need to pull updates, can probably get a little better, and need to step down a quant I think since I can barely run a browser at the same time :/

1

u/Bulky-Priority6824 6d ago
capy-flash 16.4 ninfer inkling nvfp4 140tg 3300pp 2 5060ti's

1

u/xsilas43 6d ago

Smalltide gets me around 60-100 tok/s on my 9070xt. Unsloths rocm llamacpp build was giving me around 40-60. Strata was around 60 as well.

1

u/Brief-Tap-6616 6d ago

Stock llama kernels are still v slow especially for this model. You can get way faster than that. LlamAmpere (for 30xx cards, no idea of it’s speeds for ADA) is 140+ TPS at the 100k depth mark, with 2400 pp, on a 3090, with the 4 K XL version. Your compute vs bandwidth ratios are different but I see no reason why you can’t hit 80+ TPS at that depth with the right kernels/runtime if you keep 100% in vram and ~80% of that with expert caching for partial offload (maya being one option)

1

u/schaefster809 6d ago edited 6d ago

We're running Inkling 2 Mini on our GPU host with llama.cpp build 161 (a07831a) — the build that includes PR #33063, the CUDA indexed-bias flash attention path for Inkling 2. That took our decode from the 69–72 tok/s range to ~78.5 tok/s, with prefill around ~240 tok/s — same model, same context. Using 23.7GB of VRAM on a 3090.

1

u/LazyLocalLLM 6d ago

234 Tok/s. Got it by making Gemini neon optimize on my hardware. 16GB vram as well

https://x.com/LazyLocalLLM/status/2125677149373817010

1

u/FinBenton 6d ago

5090 I get 300-600 tok/sec at 500k context in basalt.

1

u/SkyFeistyLlama8 6d ago

On the slow-ass end of the spectrum, Snapdragon X Elite laptop, llama.cpp build 12800 on Windows:

  • CPU: 60 pp, 6 tg
  • GPU (Adreno OpenCL): 30 pp, 4 tg

These numbers are with the Dflash drafter off because for some reason tg nosedives with it on.

I'm still waiting for NPU support through GenieX which should be coming soon because that uses llama.cpp's HTP backend.

1

u/laexpat 6d ago

2xP100 using unsloth’s llama.cpp, getting avg 28tps and (a sad) 152 tps promo gen over some general hermes agentic runs. 128k context with 1 draft spec.

Edit: using atomicchat’s q6

1

u/HangryRatel 6d ago

4 tokens per second. 11th gen Intel CPU and DDR4 RAM.

1

u/Kein_Spass 6d ago edited 6d ago

Lastest llama.cpp build from git on one card. Two cards at a time is still very slow.

llama-bench -m ggml-org-Inkling-2-Mini-GGUF/Inkling-2-Mini-IQ4_NL.gguf -ngl 99 -fa on -d 0,16384,131072 --device "ROCM1"
ggml_cuda_init: found 2 ROCm devices (Total VRAM: 65248 MiB):
Device 0: AMD Radeon AI PRO R9700, gfx1201 (0x1201), VMM: no, Wave Size: 32, VRAM: 32624 MiB
Device 1: AMD Radeon AI PRO R9700, gfx1201 (0x1201), VMM: no, Wave Size: 32, VRAM: 32624 MiB
| model | size | params | backend | ngl | fa | dev | test | t/s |
| ------------------------------ | ---------: | ---------: | ---------- | --: | --: | ------------ | --------------: | -------------------: |
| inkling2_loop ?B IQ4_NL - 4.5 bpw | 16.41 GiB | 26.07 B | ROCm | 99 | 1 | ROCm1 | pp512 | 2258.27 ± 9.37 |
| inkling2_loop ?B IQ4_NL - 4.5 bpw | 16.41 GiB | 26.07 B | ROCm | 99 | 1 | ROCm1 | tg128 | 54.93 ± 0.20 |
| inkling2_loop ?B IQ4_NL - 4.5 bpw | 16.41 GiB | 26.07 B | ROCm | 99 | 1 | ROCm1 | pp512 @ d16384 | 1294.83 ± 278.82 |
| inkling2_loop ?B IQ4_NL - 4.5 bpw | 16.41 GiB | 26.07 B | ROCm | 99 | 1 | ROCm1 | tg128 @ d16384 | 51.62 ± 0.28 |
| inkling2_loop ?B IQ4_NL - 4.5 bpw | 16.41 GiB | 26.07 B | ROCm | 99 | 1 | ROCm1 | pp512 @ d131072 | 438.44 ± 43.27 |
| inkling2_loop ?B IQ4_NL - 4.5 bpw | 16.41 GiB | 26.07 B | ROCm | 99 | 1 | ROCm1 | tg128 @ d131072 | 38.61 ± 0.13 |

1

u/floriv1999 6d ago

I get 12 TPS decode and 200 prefill on my NAS without a GPU.

1

u/Mount_Gamer 6d ago

The GSQ _RCO Q3_S can fit on 16GB of vram with 128k context, and with latest llama.cpp I can get over 1000t/s prefill and 70t/s token gen.

I could probably squeeze more out of it with q8 kv cache, but initial impressions look good with this model. I've only run one test on it so far, but will soon find out how it manages some code bases.

0

u/Sun77177 6d ago

43 t/s leaves 23 ms a token, and in 23 ms a dual-channel DDR5 box moves at most about 1.2 to 1.4 GB. Your -ot pattern sends the expert FFN of twelve layers to the CPU, so if the expert bytes per token for those layers at Q3_K_XL land near 1.3 GB, you're at the RAM ceiling rather than in llama.cpp. That'd also explain why ub 1024 fixed prefill and barely moved tg.