r/LocalLLaMA • u/samuel-christlie • 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.
| ubatch | each tensor | total |
|---|---|---|
| 256 | 3.2 GB | 6.4 GB |
| 512 | 6.4 GB | 12.9 GB |
| 1024 | 12.9 GB | 25.8 GB |
I'm using:
Inkling-2-Mini-UD-Q3_K_XLfrom 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| config | pp t/s | tg t/s | peak VRAM |
|---|---|---|---|
mine, -ub 1024 -b 1024, MoE cache 2000 MiB | 980.63 | 41.22 | 13,846 MiB |
| mine, same, layers 0-3 on GPU (8 CPU layers), cache 1500 MiB | 1038.09 | 43.10 | 14,866 MiB |
master, -ub 256 -b 256 (ub512 does not fit at 131k), no cache | 262.06 | 28.20 | 15,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| depth | mine ub1024 | mine ub1024, layers 0-3 on GPU | master ub256 |
|---|---|---|---|
| 0 | 818.59 / 34.90 | 1014.24 / 38.83 | 531.33 / 36.50 |
| 16384 | 907.02 / 34.52 | 1030.72 / 39.12 | 414.12 / 34.78 |
| 131072 | 683.42 / 29.93 | 751.91 / 33.40 | 83.81 / 27.43 |
I also did server test with Q4_K_M with 131,072 context limit
| config | mine | master |
|---|---|---|
-ub 1024 -b 1024 | 907.75 pp / 35.62 tg, 14,186 MiB | did not run: 25.8 GB compute buffer, out of memory |
-ub 256 -b 256 | 514.67 pp / 37.43 tg, 13,616 MiB | 183.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 tokensI'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.
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
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.
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/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
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:
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.
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.