Share your model speed here

#7
by anvme - opened

Hey everyone!

I think this topic could be really useful for users who have plenty of system RAM to run larger models but are limited by GPU VRAM. I'm especially interested in how newer architectures - looped transformers, affect generation speed across different hardware configurations

To make comparisons easier and help others understand what models/settings might work for their hardware, please share your setup and performance using the format below:

  1. Model file / model name
  2. GPU: model + VRAM
  3. CPU: model
  4. RAM: size + type
  5. Generation speed: tokens/sec
  6. App / frontend: e.g. FreeToken, llama.cpp, LM Studio, etc.
  7. Launch parameters / settings:
  8. Extra notes: quantization, context size, offloading, optimizations, or anything else worth mentioning
    This should make it much easier for people to compare setups and decide which quantization to download

P.S. My info will be later. testing on 4090 16gb vram, notebook and Mac m4 pro

4090 48g,the model is smart,but now I use unsloth's llama.cpp it's very slow in long context,the dspark mtp is not very high acceptance
图片

On a 4080 Super 16GB:

Painfully slow with ncmoe: 130t/s prefill, but ~20t/s gen, 16GB card with ncmoe 18 for Q4_K_XL. If I get it all crammed into memory with IQ3_XXS and -b 128 -ub 128 it's quite decent - ~600+ prefill and 60+ t/s with no dflash.

On a 4080 Super 16GB:

Painfully slow with ncmoe: 130t/s prefill, but ~20t/s gen, 16GB card with ncmoe 18 for Q4_K_XL. If I get it all crammed into memory with IQ3_XXS and -b 128 -ub 128 it's quite decent - ~600+ prefill and 60+ t/s with no dflash.

Can confirm, with the -b 128 -ub 128 it's mostly running on cpu, a bit faster than pure cpu. But the model has a 14-16gb kv cache (Regardless of q4_0, q8_0 It's almost the same size???), it's understandable considering that it loops half the layers 3 times, making the total kv cache equivalent to 2x the model size. The kv cache could be halved if only the last loop's kv would be cached, this would save a lot of memory, outputs might differ, but it's probably worth it to have as an option regardless.

On RTX 5090, Ubuntu 24.04 LTS, without dspark, prompt length: 20K

$ CUDA_VISIBLE_DEVICES=0 ../app-b12588-mix-c0c3de8-linux-x64-cuda13-portable/llama-server --model Inkling-2-Mini-GGUF/Inkling-2-Mini-UD-Q4_K_XL.gguf --mmproj Inkling-2-Mini-GGUF/mmproj-F16.gguf --n-gpu-layers-draft 99 --jinja --ctx-size 256000 --n-gpu-layers 99 --parallel 1 --temp 1.0 --top-p 1.0 --top-k 0 --min-p 0.0 --host 127.0.0.1 --port 8080
...
0.56.099.221 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 6469, progress = 0.32, t = 3.33 s / 1944.68 tokens per second
0.57.114.617 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 8517, progress = 0.43, t = 4.34 s / 1961.58 tokens per second
0.58.147.604 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 10565, progress = 0.53, t = 5.37 s / 1965.62 tokens per second
0.59.185.299 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 12613, progress = 0.63, t = 6.41 s / 1966.91 tokens per second
1.00.238.051 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 14661, progress = 0.73, t = 7.47 s / 1963.87 tokens per second
1.01.288.110 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 16709, progress = 0.84, t = 8.52 s / 1962.21 tokens per second
1.02.356.127 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 18757, progress = 0.94, t = 9.58 s / 1957.23 tokens per second
1.02.757.732 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 19492, progress = 0.97, t = 9.99 s / 1952.12 tokens per second
1.03.084.934 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 19992, progress = 1.00, t = 10.31 s / 1938.67 tokens per second
1.03.224.025 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 20004, progress = 1.00, t = 10.45 s / 1914.01 tokens per second
...
prompt eval time = 10575.48 ms / 20008 tokens ( 0.53 ms per token, 1891.92 tokens per second)
eval time = 77505.27 ms / 5689 tokens ( 13.63 ms per token, 73.39 tokens per second)
total time = 88080.76 ms / 25697 tokens
...

With Dspark, it's worse:

$ CUDA_VISIBLE_DEVICES=0 ../app-b12588-mix-c0c3de8-linux-x64-cuda13-portable/llama-server --model Inkling-2-Mini-GGUF/Inkling-2-Mini-UD-Q4_K_XL.gguf --mmproj Inkling-2-Mini-GGUF/mmproj-F16.gguf --model-draft Inkling-2-Mini-GGUF/dspark-Inkling-2-Mini-Q8_0.gguf --n-gpu-layers-draft 99 --jinja --ctx-size 131072 --n-gpu-layers 99 --parallel 1 --temp 1.0 --top-p 1.0 --top-k 0 --min-p 0.0 --host 127.0.0.1 --port 8080
...
0.12.376.150 I slot select: id 0 | task -1 | selected slot by LRU, n_tokens = 0, t_last = -1
0.12.376.426 I slot launch_slot_: id 0 | task 0 | processing task, is_child = 0
0.14.478.379 I slot print_timing: id 0 | task 0 | prompt eval time = 436.12 ms / 329 tokens ( 1.33 ms per token, 754.38 tokens per second)
0.14.478.388 I slot print_timing: id 0 | task 0 | eval time = 1665.77 ms / 53 tokens ( 32.03 ms per token, 31.22 tokens per second)
0.14.478.389 I slot print_timing: id 0 | task 0 | total time = 2101.89 ms / 382 tokens
0.14.478.397 I slot print_timing: id 0 | task 0 | graphs reused = 25
0.14.478.397 I slot print_timing: id 0 | task 0 | graph reallocs = 1 / 0 (same size) / (changed size)
0.14.478.402 I slot print_timing: id 0 | task 0 | draft acceptance = 0.34615 ( 27 accepted / 78 generated), mean len = 2.04
0.14.478.504 I slot release: id 0 | task 0 | stop processing: n_tokens = 382, truncated = 0
0.18.437.864 I slot select: id 0 | task -1 | selected slot by LCP similarity, f_sim_best = 1.000 (> 0.100 thold), f_keep = 0.861
0.18.438.145 I slot launch_slot_: id 0 | task 29 | processing task, is_child = 0
0.20.054.706 I slot print_timing: id 0 | task 29 | prompt eval time = 74.76 ms / 4 tokens ( 18.69 ms per token, 53.51 tokens per second)
0.20.054.716 I slot print_timing: id 0 | task 29 | eval time = 1541.73 ms / 56 tokens ( 28.03 ms per token, 35.67 tokens per second)
0.20.054.717 I slot print_timing: id 0 | task 29 | total time = 1616.49 ms / 60 tokens
0.20.054.718 I slot print_timing: id 0 | task 29 | graphs reused = 50
0.20.054.719 I slot print_timing: id 0 | task 29 | graph reallocs = 1 / 0 (same size) / (changed size)
0.20.054.723 I slot print_timing: id 0 | task 29 | draft acceptance = 0.38462 ( 30 accepted / 78 generated), mean len = 2.15
0.20.054.782 I slot release: id 0 | task 29 | stop processing: n_tokens = 385, truncated = 0
0.21.654.250 I slot select: id 0 | task -1 | selected slot by LCP similarity, f_sim_best = 1.000 (> 0.100 thold), f_keep = 0.855
0.21.654.521 I slot launch_slot_: id 0 | task 57 | processing task, is_child = 0
0.24.774.561 I slot print_timing: id 0 | task 57 | n_gen = 109, tg = 35.81 t/s, tg_3s = 36.14 t/s
0.24.987.223 I slot print_timing: id 0 | task 57 | prompt eval time = 103.80 ms / 4 tokens ( 25.95 ms per token, 38.54 tokens per second)
0.24.987.232 I slot print_timing: id 0 | task 57 | eval time = 3228.84 ms / 117 tokens ( 27.83 ms per token, 35.93 tokens per second)
0.24.987.232 I slot print_timing: id 0 | task 57 | total time = 3332.64 ms / 121 tokens
0.24.987.234 I slot print_timing: id 0 | task 57 | graphs reused = 105
0.24.987.234 I slot print_timing: id 0 | task 57 | graph reallocs = 1 / 0 (same size) / (changed size)
0.24.987.247 I slot print_timing: id 0 | task 57 | draft acceptance = 0.35714 ( 60 accepted / 168 generated), mean len = 2.07
0.24.987.298 I slot release: id 0 | task 57 | stop processing: n_tokens = 445, truncated = 0
0.38.266.191 I slot select: id 0 | task -1 | selected slot by LCP similarity, f_sim_best = 1.000 (> 0.100 thold), f_keep = 0.739
0.38.266.456 I slot launch_slot_: id 0 | task 115 | processing task, is_child = 0
0.41.347.677 I slot print_timing: id 0 | task 115 | n_gen = 104, tg = 34.14 t/s, tg_3s = 34.47 t/s
0.43.121.262 I slot print_timing: id 0 | task 115 | prompt eval time = 64.03 ms / 4 tokens ( 16.01 ms per token, 62.47 tokens per second)
0.43.121.270 I slot print_timing: id 0 | task 115 | eval time = 4790.70 ms / 166 tokens ( 29.03 ms per token, 34.44 tokens per second)
0.43.121.271 I slot print_timing: id 0 | task 115 | total time = 4854.74 ms / 170 tokens
0.43.121.273 I slot print_timing: id 0 | task 115 | graphs reused = 188
0.43.121.273 I slot print_timing: id 0 | task 115 | graph reallocs = 1 / 0 (same size) / (changed size)
0.43.121.277 I slot print_timing: id 0 | task 115 | draft acceptance = 0.32143 ( 81 accepted / 252 generated), mean len = 1.96
0.43.121.337 I slot release: id 0 | task 115 | stop processing: n_tokens = 494, truncated = 0

win11, 4090 48G

E:\b12568> .\llama-server.exe `

-m "E:.lmstudio\models\Admin\Inkling-UD-Q8_K_XL\Inkling-2-Mini-UD-Q8_K_XL.gguf" --mmproj "E:\.lmstudio\models\Admin\Inkling-UD-Q8_K_XL\mmproj-BF16.gguf"
-ngl 999 --flash-attn on --jinja
--tensor-split 1,0 -c 131072 -b 512 -ub 512
--parallel 1 -t 4 --poll 0
--no-reasoning-preserve `
--host 127.0.0.1 --port 8080
0.00.107.532 I srv llama_server: initializing ...
...
...
0.45.003.924 I slot print_timing: id 0 | task 0 | n_gen = 169, tg = 55.72 t/s, tg_3s = 56.05 t/s
0.48.005.269 I slot print_timing: id 0 | task 0 | n_gen = 339, tg = 56.18 t/s, tg_3s = 56.64 t/s
0.50.171.927 I slot print_timing: id 0 | task 0 | prompt eval time = 8834.25 ms / 10729 tokens ( 0.82 ms per token, 1214.48 tokens per second)
0.50.171.931 I slot print_timing: id 0 | task 0 | eval time = 8183.15 ms / 463 tokens ( 17.71 ms per token, 56.46 tokens per second)
0.50.171.932 I slot print_timing: id 0 | task 0 | total time = 17017.41 ms / 11192 tokens
0.50.171.932 I slot print_timing: id 0 | task 0 | graphs reused = 459
0.50.171.933 I slot print_timing: id 0 | task 0 | graph reallocs = 0 / 0 (same size) / (changed size)
0.50.172.450 I slot release: id 0 | task 0 | stop processing: n_tokens = 11191, truncated = 0

Twice slower than Qwen 3.8 27b with MTP on a quad RTX 3090 setup, also Qwen 3.8 allow tensor split increasing the speed by 1.5, in layer split it still get faster.
I use Q5 quant, 4 parallel, 256k context.

dspark gives me avg +10% to decode, but prefill is slower, so I'm not sure if it's worth using, as it takes some context too. And for Qwen 27B + MTP users with 24GB+ VRAM it doesn't make much sense, cause it is about 30% slower.

4090 24GB @70% TDP:
win11 > llama-unsloth-b12588-cuda-12-older\llama-server.exe --model Inkling-2-Mini-UD-Q4_K_XL.gguf --mmproj mmproj-F16.gguf --jinja -c 80000 --parallel 1 --temp 1.0 --top-p 1.0 --top-k 0 --min-p 0.0 --port 8888

0.07.820.237 I srv server_on_li: listening on http://127.0.0.1:8888
0.40.738.741 I slot select: id 0 | task -1 | selected slot by LRU, n_tokens = 0, t_last = -1
0.40.738.964 I slot launch_slot_: id 0 | task 0 | processing task, is_child = 0
0.44.706.732 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 7505, progress = 0.42, t = 3.97 s / 1891.51 tokens per second
0.45.757.790 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 9553, progress = 0.53, t = 5.02 s / 1903.45 tokens per second
0.46.835.396 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 11601, progress = 0.65, t = 6.10 s / 1902.93 tokens per second
0.47.894.127 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 13649, progress = 0.76, t = 7.16 s / 1907.58 tokens per second
0.48.976.568 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 15697, progress = 0.88, t = 8.24 s / 1905.54 tokens per second
0.49.474.134 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 16654, progress = 0.93, t = 8.74 s / 1906.55 tokens per second
0.49.915.636 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 17393, progress = 0.97, t = 9.18 s / 1895.36 tokens per second
0.50.194.053 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 17897, progress = 1.00, t = 9.46 s / 1892.85 tokens per second
0.50.322.487 I slot print_timing: id 0 | task 0 | prompt processing, n_tokens = 17905, progress = 1.00, t = 9.58 s / 1868.32 tokens per second
0.53.416.593 I slot print_timing: id 0 | task 0 | n_gen = 181, tg = 59.91 t/s, tg_3s = 60.25 t/s
0.56.419.950 I slot print_timing: id 0 | task 0 | n_gen = 367, tg = 60.92 t/s, tg_3s = 61.93 t/s
0.58.658.969 I slot print_timing: id 0 | task 0 | prompt eval time = 9673.33 ms / 17909 tokens ( 0.54 ms per token, 1851.38 tokens per second)
0.58.658.973 I slot print_timing: id 0 | task 0 | eval time = 8246.65 ms / 506 tokens ( 16.33 ms per token, 61.24 tokens per second)
0.58.658.974 I slot print_timing: id 0 | task 0 | total time = 17919.98 ms / 18415 tokens
0.58.658.974 I slot print_timing: id 0 | task 0 | graphs reused = 502
0.58.658.975 I slot print_timing: id 0 | task 0 | graph reallocs = 33 / 0 (same size) / (changed size)
0.58.659.556 I slot release: id 0 | task 0 | stop processing: n_tokens = 18414, truncated = 0
0.58.912.284 I slot select: id 0 | task -1 | selected slot by LCP similarity, f_sim_best = 0.911 (> 0.100 thold), f_keep = 0.973

Using PolyStrata, supported by PR: https://github.com/simplexai-labs/PolyStrata/pull/200

Speed of Q4_K_M on an under-clocked 12GB RTX 3060, i5, 24GB DDR3: prefill 200t/s, TG 35t/s @ context 30k/256k.

About the same speeds as a small quant of Qwen3.8-27B on llamAmpere, but much slower than Qwen3.6-35B on PolyStrata which has prefill 1000+, TG 60-70.

Works quite well, image vision also.

Edit; the PR was just updated with proper CUDA prompt attention and now prefill shows 800t/s at the same 30k point where earlier it was 200, and still 600t/s after ingesting 200k.

Mainline_Support/Inkling-2-Mini-UD-Q4_K_XL.gguf
GPU: RTX3090 24GB
CPU: AMD EPYC 7552
RAM: 512GB DDR4 2666 (8-channel)
Generation speed: 52,5 T/s
Prefill speed: ~1200 T/s
App / frontend: llama.cpp (e6d624b9a, today's master) on Ubuntu 24.04 LTS
Launch parameters / settings:
lama-server
-m .../Mainline_Support/Inkling-2-Mini-UD-Q4_K_XL.gguf
--mmproj .../mmproj-F16.gguf
--jinja -ngl 99 -c 32768 --parallel 1
--temp 1.0 --top-p 1.0 --top-k 0 --min-p 0.0
--host 127.0.0.1 --port 8080

I used hermes-agent with a local Strata instance (Qwen3.8-Flash-Next-GGUF Q8) as backend to set it up.
Not really worth it just yet. Qwen is 5 times larger and still runs twice as fast.

It's a really good coding model. It wrote me a functional python script after just five sentences of reasoning.
Writing is quite poor though. Nothing matches good old DeepSeek V3. ;-)

But: When proper Strata support drops, this thing will fly on a midrange gaming laptop.

Mac data point, since the thread has none yet. Mac mini M6, 24 GB, macOS 27.2, llama.cpp b12600, llama-bench -ngl 999 -fa on -p 512 -n 128 -r 2:

GGUF pp512 tg128
UD-Q3_K_XL from this repo (Mainline_Support/, revision ea0c79b, 13.63 GB) 28.57 Β± 0.08 tok/s 15.52 Β± 0.13 tok/s
IQ3_XXS from InterpreticAI (11.75 GB, no NVFP4 tensors) 319.15 Β± 1.34 tok/s 33.62 Β± 0.04 tok/s

At b12600, the Metal backend's matmul support check returns false for NVFP4, so those multiplications fall back to the CPU, and both runs used llama.cpp's default of 2 CPU threads on this Mac: it sets the default from the first core tier (hw.perflevel0), which on the M6 is its 2 Super cores out of 12 (llama.cpp issue #29782). More threads (-t) may narrow the gap; we haven't measured that. The two Mainline_Support files we checked keep NVFP4 experts. UD-Q3_K_XL has NVFP4 down projections in 20 layers and gate/up in 12, and UD-IQ3_XXS has the 20 down projections. The two files differ in more than NVFP4, and we didn't time individual ops, so we can't put all of the 11Γ— / 2.2Γ— gap down to the CPU fallback. Until Metal supports NVFP4, a GGUF without NVFP4 tensors is likely to run much faster on a Mac; we didn't compare quality.

Used as a coding agent on the same Mac, the IQ3_XXS file solved 16 of 16 attempts in 51.1 min. That was 8 tasks twice, with the model's default thinking, a 32K window, --cache-ram 0 and the same 2 threads; it's one run on one machine. Details: https://github.com/audenvenn/solvetime/blob/main/published/2026-11-inkling-2-mini-m6-24gb/README.md

(Measured with solvetime, which I maintain. This comment was written with an AI assistant.)

inkling 2 mini gguf llama.cpp q8_xl mainline.
4090 + 3090
11.7 tokens per second 381 prefill.

8.52.587.425 I slot print_timing: id 3 | task 1407 | prompt eval time = 1402.30 ms / 535 tokens ( 2.62 ms per token, 381.52 tokens per second)
8.52.587.429 I slot print_timing: id 3 | task 1407 | eval time = 64180.50 ms / 754 tokens ( 85.23 ms per token, 11.73 tokens per second)
8.52.587.429 I slot print_timing: id 3 | task 1407 | total time = 65582.80 ms / 1289 tokens

Inkling-2-Mini on a 16 GB RTX 4090 Laptop: the same model, faster, with the context actually filled

TL;DR (q8_0 KV cache, one slot, loop = layers 6–17, which run three times per token)

  • Keep the experts of the loop layers on the GPU. Move only the other layers' experts to RAM with -ot. --n-cpu-moe and --fit don't know about the loop and put looped layers in RAM.
  • Use a build with the fast attention path for q8_0 KV: Unsloth release b12631-mix-acc0843 or later (#399). Against b12588 it reads 2.5–3.2Γ— faster at 100K and 4–5Γ— at 256K, and writes 12–28% faster.
  • Set -c to what you need. The KV cache costs 16.6 MiB per 1K tokens, and that pushes experts into RAM.
  • 500K is the largest context worth using on this card, tested only with IQ3_XXS: 34 β†’ 17 tok/s writing, filled to 499K. 750K is slower at every depth, and 1M writes about 1 tok/s at the end (8.c).
  • Best quality per GB: IQ4_XS is as close to full precision as Q4_K_XL, 1.9 GB smaller and 3–22% faster. Q3_K_XL fits a 100K context completely on the GPU.
  • Measure with the context filled. Writing at the deepest fill is 1.2–2Γ— slower than at 1K.

Which setup to use (reading / writing in tok/s, at 1K filled and at the deepest point I filled)

You need Setup 1K Deepest
Up to 64K tokens, fastest 100K, IQ3_XXS, all on GPU, DSpark n2 1,742 / 81 64K: 1,298 / 63
Up to 64K, better quality 100K, Q3_K_XL, all on GPU, no DSpark 1,885 / 63 64K: 1,312 / 52
Up to 64K, best quality 100K, IQ4_XS, 6 expert layers in RAM, DSpark n2 1,220 / 60 64K: 988 / 50
Up to 200K 256K, IQ3_XXS, 4 layers in RAM 1,515 / 52 200K: 784 / 33
Up to 200K, better quality 256K, Q3_K_XL (8 layers) or IQ4_XS (10 layers) 1,240 / 46 or 1,031 / 42 718 / 30 or 637 / 28
Up to 256K, better quality 350K, Q3_K_XL (10 layers) or IQ4_XS (12 layers) 799 / 43 or 622 / 41 547 / 26 or 453 / 25
Up to 499K 500K, IQ3_XXS, 15 layers in RAM (12 + loop layers 6–8) 840 / 34 499K: 367 / 17
# flags used in every command below
COMMON="-fit off -ngl 99 -lm none -ctk q8_0 -ctv q8_0 --jinja --parallel 1"
DSPARK="--model-draft dspark-Inkling-2-Mini-Q8_0.gguf --spec-type draft-dspark --spec-draft-n-max 2 --n-gpu-layers-draft 99 -ctkd q8_0 -ctvd q8_0"

# 100K, Q3_K_XL, everything on the GPU
llama-server --model Inkling-2-Mini-UD-Q3_K_XL.gguf -c 100000 -ub 512 $COMMON

# 100K, IQ3_XXS, everything on the GPU, DSpark
llama-server --model Inkling-2-Mini-UD-IQ3_XXS.gguf -c 100000 -ub 512 $COMMON $DSPARK

# 256K, IQ3_XXS, experts of 4 layers in RAM
llama-server --model Inkling-2-Mini-UD-IQ3_XXS.gguf -c 262144 -ub 512 -ot "blk\.(2[0-3])\.ffn_.*_exps\.=CPU" $COMMON

# 500K, IQ3_XXS, experts of 15 layers in RAM
llama-server --model Inkling-2-Mini-UD-IQ3_XXS.gguf -c 500000 -ub 512 -ot "blk\.([0-8]|1[89]|2[0-3])\.ffn_.*_exps\.=CPU" $COMMON
  1. Model: Inkling-2-Mini UD-IQ3_XXS, UD-Q3_K_XL, UD-IQ4_XS, UD-Q4_K_XL, plus the DSpark draft model (dspark-Inkling-2-Mini-Q8_0) where noted
  2. GPU: RTX 4090 Laptop, 16 GB, 175 W power limit
  3. CPU: Intel Core i9-14900HX: 8 P-cores (with hyperthreading, 16 threads) and 16 E-cores, 24 cores and 32 threads in total. llama.cpp ran its default 8 threads, on the P-cores. With everything on the GPU the P-cores were 7% busy and the E-cores 0.4–4.5%. With some experts in RAM the P-cores were 7–18% busy on average per step, and 15–23% while writing at 500K. With all experts in RAM (750K) the CPU limits writing: P-cores 22–31%, GPU 27–50%.
  4. RAM: 96 GB
  5. Speed (reading / writing in tok/s; new build, context filled with source code to the depth shown, 256 tokens generated at each point, temperature 1, one run each, so treat differences under about 5% as noise):
Context Quant Setup 1K filled 64K–128K filled deepest
100K IQ3_XXS all on GPU, DSpark n2 1,742 / 81.2 64K: 1,298 / 62.5 –
100K Q3_K_XL all on GPU, no DSpark 1,885 / 63.0 64K: 1,312 / 52.0 –
100K Q4_K_XL experts of layers 18–23 in RAM, DSpark n2 1,064 / 53.8 64K: 876 / 46.1 –
100K Q4_K_XL experts of layers 20–23 in RAM, no DSpark 1,214 / 46.7 64K: 945 / 40.2 –
100K IQ4_XS experts of layers 18–23 in RAM, DSpark n2 1,220 / 60.1 64K: 988 / 50.1 –
100K IQ4_XS experts of layers 20–23 in RAM, no DSpark 1,426 / 50.5 64K: 1,076 / 42.7 –
256K IQ3_XXS experts of 4 layers in RAM, no DSpark 1,515 / 52.4 128K: 952 / 38.2 200K: 784 / 33.3
256K Q3_K_XL experts of 8 layers in RAM, no DSpark 1,240 / 45.6 128K: 855 / 34.0 200K: 718 / 30.0
256K Q4_K_XL experts of 10 layers in RAM, no DSpark 917 / 40.3 128K: 677 / 30.9 200K: 589 / 27.4
256K IQ4_XS experts of 10 layers in RAM, no DSpark 1,031 / 42.5 128K: 742 / 31.9 200K: 637 / 28.4
350K Q3_K_XL experts of 10 layers in RAM, no DSpark 799 / 43.0 128K: 705 / 32.3 256K: 547 / 26.4
350K Q4_K_XL experts of 12 layers in RAM, no DSpark 547 / 38.3 128K: 488 / 29.6 256K: 409 / 24.6
350K IQ4_XS experts of 12 layers in RAM, no DSpark 622 / 40.7 128K: 553 / 30.7 256K: 453 / 25.4
500K IQ3_XXS experts of 12 layers in RAM, no DSpark 736 / 43.2 128K: 654 / 32.4 256K: 513 / 26.2 (400K fails: 100 MiB short)
500K IQ3_XXS experts of 15 layers in RAM (12 + loop 6–8), -ub 512, no DSpark 840 / 34.0 64K: 755 / 30.9; 128K: 645 / 27.4 256K: 535 / 23.0; 400K: 431 / 19.1; 499K: 367 / 16.9
  1. App: llama.cpp llama-server, a test build: upstream b12628 plus the patch set pinned in unslothai/llama.cpp#399. The same patches are in Unsloth's release b12631-mix-acc0843 (2026-11-22), so you don't need to build it. I compared the pinned commits (33 of 34 identical, the last is the same commit under a new PR number) but didn't run that binary.
  2. Launch parameters: the commands above. The -ot patterns for the other numbers of layers in RAM (loop layers 6–17 stay on the GPU, except in the 15-layer setup):
 4 layers (20-23):      blk\.(2[0-3])\.ffn_.*_exps\.=CPU
 6 layers (18-23):      blk\.(18|19|2[0-3])\.ffn_.*_exps\.=CPU
 8 layers (0-1, 18-23): blk\.(0|1|18|19|2[0-3])\.ffn_.*_exps\.=CPU
10 layers (0-3, 18-23): blk\.([0-3]|18|19|2[0-3])\.ffn_.*_exps\.=CPU
12 layers (0-5, 18-23): blk\.([0-5]|1[89]|2[0-3])\.ffn_.*_exps\.=CPU
15 layers (0-8, 18-23): blk\.([0-8]|1[89]|2[0-3])\.ffn_.*_exps\.=CPU

-ub 512 for all of these, except 256 at 350K and for 500K with 12 layers in RAM.

8.a Notes

  • Output checks: a hidden number was found in 10K and 51K prompts on every setup I checked: 100K with each quant, and 500K, 750K and 1M with IQ3_XXS (not 256K and 350K). The generated samples I read were coherent code up to 499K filled (500K setup) and 750K filled (1M setup).
  • Expert layers on the CPU: llama.cpp issue #32755 (garbage output with looped experts on the CPU, reported on AMD) was fixed upstream in #32807 (2026-11-22, after b12631); Unsloth's #396 covers the same problem. I did not see it with all experts in RAM on this build.
  • Never put the KV cache in RAM for long contexts. On the older build it looked fast while the context was nearly empty and fell to 2 tok/s at 64K filled. On this build a KV part in RAM is copied to the GPU for every generated token, so it costs VRAM again and slows writing as the context fills.
  • I tried to turn off the slow path for small batches (n_tokens_banded_min 32 β†’ 0 in src/models/inkling2.cpp). The greedy output was identical (64 of 64 tokens), but writing was 40% slower at 1K and 55% slower at 64K filled, and no VRAM was saved.
  • Temperature 0: one short prompt got stuck in a repeating reasoning loop. The model card warns about long reasoning loops, so set an output token limit.
  • Not tested on this build: images (vision), Q4_K_M, 500K and above with Q3_K_XL, IQ4_XS or Q4_K_XL. Nothing was tested on another GPU.

8.b History: everything I measured before the new build (Unsloth b12588, q8_0 KV unless noted, 2026-11-21 and 22). One run each; the empty-context numbers use a 65-token prompt and up to 4,096 generated tokens.

100K context, nearly empty, writing in tok/s:

Quant Default --fit + DSpark n3 Vision projector loaded Best tuned Best setup
Q4_K_XL 26.2 22.7 22.0 45.4 (48.1 at temperature 0) layers 0, 1, 18–23 in RAM, -ub 64, DSpark n2
Q3_K_XL 27.8 22.6 25.8 64.4 layers 20–23 in RAM, -ub 64, 512 MB MoE cache, DSpark n2
IQ3_XXS 36.5 29.0 31.7 71.1 all on GPU, -ub 64, DSpark n2
  • Q4_K_XL step by step: --fit 26.2, -ub 256 28.4, -ub 128 33.4, only non-looped experts (0, 1, 18–23) in RAM 35.2, plus -lm none 35.6, plus a 1 GB MoE cache 39.5, only layers 20–23 in RAM with -ub 64 40.1, then layers 0, 1, 18–23 in RAM with DSpark n2 45.4.
  • --n-cpu-moe 14 on Q4_K_XL: 23.4. It puts 30 of the 48 expert runs per token on the CPU.
  • A MoE cache did not help with DSpark on Q4_K_XL: 41.7 with 1 GB, 35.1 with 512 MB, against 45.4 without. It helped Q3_K_XL: 51.0 without, 64.4 with 512 MB.
  • Vision: loading the projector on the CPU (--no-mmproj-offload) cost nothing with text prompts (Q4_K_XL 41.8 vs 40.1, Q3_K_XL 54.2 vs 54.1, IQ3_XXS 55.8 vs 55.8). I never sent an image.

500K and 1M, nearly empty context, writing in tok/s:

Quant 500K, --fit, KV on GPU 500K, --fit, KV in RAM 1M, --fit (KV on GPU / in RAM) 1M, placed by hand, KV in RAM
Q4_K_XL 12.5 15.0 8.4 / 8.4 25.0
Q3_K_XL 11.8 16.5 8.6 / 8.5 29.0
IQ3_XXS 12.8 18.4 8.5 / 8.7 28.9 (19.2 without DSpark)
  • The 1M hand-placed setup (Q3_K_XL) fell apart when the context was filled: 27.3, 3.3, 2.2 tok/s at 1K, 32K and 64K filled, reading 183, 15 and 4 tok/s.

100K filled, IQ3_XXS, reading / writing in tok/s:

Setup 1K 32K 64K
q8_0, all on GPU, -ub 64, DSpark n2 688 / 70.0 606 / 51.5 406 / 54.6
q8_0, all on GPU, -ub 64, no DSpark 752 / 56.2 620 / 51.7 413 / 46.9
q8_0, layers 20–23 in RAM, -ub 64, DSpark n2 486 / 48.5 420 / 45.5 308 / 47.9
f16, layers 20–23 in RAM, -ub 512, DSpark n2 1,126 / 53.3 1,111 / 51.5 1,006 / 54.6
f16, all on GPU, -ub 512, no DSpark 1,545 / 57.0 1,345 / 50.3 1,199 / 45.1

256K filled, IQ3_XXS, reading / writing in tok/s:

Setup 1K 64K 128K
f16, 12 expert layers in RAM, -ub 256, no DSpark 673 / 39.1 665 / 32.4 594 / 28.0
q8_0, 9 expert layers in RAM, -ub 64, no DSpark 361 / 40.9 274 / 35.8 188 / 31.4
q8_0, 10 expert layers in RAM, -ub 32, DSpark n2 218 / 42.2 178 / 40.4 135 / 22.4

8.c Beyond 500K: 750K and 1M (new build, IQ3_XXS, q8_0 KV, no DSpark; reading / writing in tok/s)

Context Quant Setup 1K filled 64K–128K filled deepest
750K IQ3_XXS all experts in RAM, all KV on the GPU, -ngl 99 -ub 512, no DSpark 500 / 21.6 64K: 470 / 19.6; 128K: 427 / 18.3 256K: 379 / 16.5; 400K: 325 / 14.5; 450K: 297 / 13.7
750K IQ3_XXS all experts in RAM, -ngl 19 -ub 512 (1 of 8 KV parts in RAM), no DSpark 458 / 19.1 64K: 455 / 15.2; 128K: 411 / 12.9 256K: 363 / 9.5; 400K: 309 / 7.6; 600K read, then failed
1M IQ3_XXS all experts and 4 of 8 KV parts in RAM, -ngl 13 -ub 1024, no DSpark 521 / 13.5 64K: 586 / 8.5; 128K: 503 / 6.4 256K: 415 / 4.0; 500K: 312 / 2.4; 750K: 233 / 1.6; 999K: 188 / 1.2
  • 750K: the best setup (all KV on the GPU, all experts in RAM) is 1.3–1.6Γ— slower than 500K at every depth, and it runs out of VRAM near 460K. With one KV part in RAM (-ngl 19) it read 600K and then failed at the first generated token; it wrote 7.6 tok/s at 400K.
  • 1M fills completely (999K, 62 minutes to read, 15,724 MiB of VRAM at the peak), but writing falls to 1.2 tok/s because half of the KV cache is in RAM.
  • With all experts in RAM the reading speed depends on -ub: 128 β†’ 512 read 2.7Γ— faster at 750K, 128 β†’ 1024 read 3.8Γ— faster at 1M.

9. How to get more speed without changing the quant (cheat sheet for people and LLMs)

"Same quality" means the model weights and the quant stay the same. Largest effect first:

  1. Experts of the looped layers on the GPU. Order to move other layers to RAM: 20–23, then 18–19, 0–1, 2–5. Example for Q4_K_XL at 100K (b12588, empty context): --n-cpu-moe 14 23.4 tok/s, only layers 20–23 in RAM 40.1 (the second also had a smaller -ub).
  2. A build with the fast path for q8_0 KV (see the TL;DR). On the older build, f16 KV read 2–3Γ— faster than q8_0 but cost twice the KV memory.
  3. Context size: see "Which setup to use".
  4. DSpark n2, only if it fits. It needs about 1.1 GB of VRAM at 100K and 2.2 GB at 256K, and that can push expert layers into RAM. Writing against no DSpark at 100K (1K / 32K / 64K filled): IQ3_XXS +26% / βˆ’1% / +19%, IQ4_XS +19% / +9% / +17%, Q4_K_XL +15% / βˆ’5% / +15%, Q3_K_XL βˆ’15% / βˆ’7% / 0% (for the last three, DSpark had 2 to 4 more expert layers in RAM). At 256K on IQ3_XXS it was 36% slower at 128K filled. n2 beat n3.
  5. -ub: raise it as far as VRAM allows, mainly with experts in RAM. Reading gets faster and writing changes by 5% or less. A full context needs a bigger work buffer for writing anyway, so it is often free.
  6. Threads: keep the default 8 (on the P-cores). With experts in RAM, -t 16 wrote 12–15% slower and -t 24 15–24% slower.
  7. MoE cache (--moe-cache-mib) only with leftover VRAM and -lm none (b12588): Q3_K_XL 51.0 β†’ 64.4 tok/s (512 MB, with DSpark); Q4_K_XL 35.5 β†’ 39.5 (1 GB, no DSpark), but with DSpark it got worse (45.4 β†’ 41.7 / 35.1). -lm none itself is about +1%.

Choosing a quant (KLD against full precision, from Unsloth's model card, with file size): Q4_K_XL 0.0107 / 17.6 GB, Q4_K_M 0.0108 / 16.6 GB, IQ4_XS 0.0109 / 15.7 GB, Q3_K_XL 0.0174 / 13.6 GB, IQ3_XXS 0.0269 / 11.7 GB. On this machine at 100K: IQ3_XXS writes 53–81 tok/s, Q3_K_XL 52–63, IQ4_XS 43–60, Q4_K_XL 40–54. IQ4_XS matches Q4_K_XL's quality at 1.9 GB less and was 3–22% faster; Q4_K_M is not worth it over IQ4_XS.

VRAM budget (new build, q8_0 KV, one slot; MiB). Total at load β‰ˆ weights on GPU + KV + 130 (sliding-window cache) + work buffer + DSpark (about 1,100 at 100K, 2,230 at 256K) + about 300 overhead. Keep it under about 15,500 of 16,376 MiB at load (the highest peak that worked was 15,912).

Non-looped expert layers in RAM IQ3_XXS Q3_K_XL IQ4_XS Q4_K_XL
0 10,863 12,685 14,524 about 16,330 (estimate)
4 (layers 20–23) 9,142 10,903 12,074 12,201
6 (18–23) – 10,012 10,980 11,108
8 (0, 1, 18–23) 7,583 9,253 9,887 10,014
10 (0–3, 18–23) 6,803 8,473 8,793 8,921
12 (0–5, 18–23) 6,044 – 7,700 7,827
  • KV cache (q8_0, main cache): 16.6 MiB per 1K tokens, so 1,662 at 100K, 4,352 at 256K, 8,305 at 500K.
  • Writing needs a second, growing work buffer, 4.12 MiB per 1K filled tokens (batches of 32 tokens or fewer use a slower attention path). It replaces the load-time buffer when it is larger. My first 500K setup was about 100 MiB short of it at 400K filled.

Cost per expert layer in RAM (Q3_K_XL, 100K, -ub 512, no DSpark, one run per row; loop layers stay on the GPU):

Layers in RAM Writing, 1K / 64K filled vs 0 layers Reading, 1K / 64K filled VRAM used
0 63.3 / 51.4 – 1,910 / 1,302 15,174 MiB
2 55.4 / 45.2 βˆ’12% / βˆ’12% 1,612 / 1,183 14,514 MiB
4 49.1 / 40.9 βˆ’22% / βˆ’20% 1,416 / 1,074 13,624 MiB
6 45.8 / 38.6 βˆ’28% / βˆ’25% 1,244 / 989 12,734 MiB
8 42.7 / 35.7 βˆ’33% / βˆ’31% 1,180 / 933 11,950 MiB
10 39.5 / 34.2 βˆ’38% / βˆ’33% 1,057 / 881 11,170 MiB
12 36.5 / 31.2 βˆ’42% / βˆ’39% 985 / 842 10,210 MiB

Largest context that loads (q8_0 KV, all 12 non-looped expert layers in RAM, -ub 128; a full context needs more, see the next table):

Quant Loads Does not load
IQ3_XXS 525K (15,594 MiB) 550K
Q3_K_XL 450K (15,882 MiB, very tight) 500K
IQ4_XS 400K (15,346 MiB) 450K
Q4_K_XL 400K (15,722 MiB, tight) 425K

How many expert layers to move so the whole context fits (IQ3_XXS; calculated from the measured runs, VRAM capped at 15,880 MiB; only the 500K row is measured). Start with the 12 non-looped layers, then add loop layers (417 MiB each):

Context, completely filled Expert layers in RAM Calculated VRAM when full
450K 12 non-looped 15,851 MiB
500K 12 + 3 loop layers 15,636 (measured: 15,758)
550K 12 + 5 15,839
600K 12 + 8 15,624
650K 12 + 10 15,827
690K all 24 15,822

Formula: weights on GPU + 16.6 MiB Γ— K (KV) + 4.1 MiB Γ— K filled (work buffer) + 483.

What can change the output (check your own quality bar): a smaller quant, -ctk/-ctv q8_0 instead of f16, temperature. DSpark is speculative decoding, so in principle it only changes speed. Set an output token limit.

Time-savers when testing: measure reading and writing separately, at several fill depths; watch GPU load and watts (under about 20% for long means CPU-bound, and 98% load at 65–89 W suggests the GPU waits for data from RAM); hide one number in a long prompt and ask for it; don't trust --fit on this model. Not worth your time: testing only with a nearly empty context, --n-cpu-moe, KV in RAM, 1M on 16 GB, Q4_K_M (quality like IQ4_XS, bigger), DSpark at 256K, temperature 0 with DSpark.

Facts for tools and LLMs (measured or from the source)

model: Inkling-2-Mini, 24 physical layers, layers 6-17 run 3 times (48 layer runs per token)
non_looped_layers: [0,1,2,3,4,5,18,19,20,21,22,23]
full_context_attention_layers: [5, 11, 17, 23]     # 8 of 48 runs; only these need the big KV cache
sliding_window: 1024 tokens (40 runs)
moe: 128 experts, 8 active per token
kv_mib_per_1k_tokens_q8_0: 16.6                    # main cache only
decode_buffer_bytes_per_filled_token: 4315         # batches of <=32 tokens use the slow attention path (4.12 MiB per 1K tokens)
fast_attention_min_batch_tokens: 33                # n_tokens_banded_min = 32 in src/models/inkling2.cpp
expert_layer_mib_on_gpu: {IQ3_XXS: 380-430, Q3_K_XL: 380-446, IQ4_XS: 546-668, Q4_K_XL: 546 (1033 for layers 20-23)}
order_to_move_to_ram: [20-23, 18-19, 0-1, 2-5]     # -ot "blk\.(...)\.ffn_.*_exps\.=CPU"
keep_on_gpu: [6-17]                                # exception: a full 500K needs 3 of them in RAM (layers 6-8), 750K all of them (1.3-1.6x slower than 500K)
max_context_filled_measured_q8_0: {loop_on_gpu: "256K filled at -c 500K", 3_loop_layers_in_ram: "499K filled at -c 500K", all_experts_in_ram: "450K filled at -c 750K"}
known_bugs: {nvfp4_scales: "fixed in b12611 (#32704)", looped_experts_on_cpu: "#32755, closed: fixed upstream by #32807 (after b12631); Unsloth builds use #396"}

--model-draft unsloth-Inkling-2-Mini-GGUF\dspark-Inkling-2-Mini-Q8_0.gguf --spec-type draft-dspark --spec-draft-n-max 4
100t/s from 77t/s base

RTX 5070
Model / Quant - unsloth-Inkling-2-Mini-GGUF\Inkling-2-Mini-UD-IQ1_S.gguf

30K out of 48K, filled down to 45t/s

Code Focused

.44.170.451 I slot print_timing: id 0 | task 58 | prompt processing, n_tokens = 8192, progress = 0.28, t = 5.44 s / 1505.15 tokens per second
0.45.665.364 I slot print_timing: id 0 | task 58 | prompt processing, n_tokens = 10240, progress = 0.35, t = 6.95 s / 1474.23 tokens per second
0.47.197.795 I slot print_timing: id 0 | task 58 | prompt processing, n_tokens = 12288, progress = 0.42, t = 8.47 s / 1451.31 tokens per second
0.47.299.276 I slot print_timing: id 0 | task 58 | prompt processing, n_tokens = 12315, progress = 0.42, t = 8.70 s / 1415.62 tokens per second
0.47.508.696 I slot print_timing: id 0 | task 58 | prompt processing, n_tokens = 12487, progress = 0.43, t = 8.89 s / 1404.89 tokens per second
0.49.050.739 I slot print_timing: id 0 | task 58 | prompt processing, n_tokens = 14535, progress = 0.49, t = 10.33 s / 1407.52 tokens per second
0.50.621.349 I slot print_timing: id 0 | task 58 | prompt processing, n_tokens = 16583, progress = 0.56, t = 11.90 s / 1394.10 tokens per second
0.52.203.694 I slot print_timing: id 0 | task 58 | prompt processing, n_tokens = 18631, progress = 0.63, t = 13.47 s / 1383.66 tokens per second
0.53.682.270 I slot print_timing: id 0 | task 58 | prompt processing, n_tokens = 20536, progress = 0.69, t = 14.97 s / 1371.63 tokens per second
0.53.887.268 I slot print_timing: id 0 | task 58 | prompt processing, n_tokens = 20697, progress = 0.69, t = 15.27 s / 1355.27 tokens per second
0.55.513.738 I slot print_timing: id 0 | task 58 | prompt processing, n_tokens = 22745, progress = 0.76, t = 16.78 s / 1355.74 tokens per second
0.57.163.855 I slot print_timing: id 0 | task 58 | prompt processing, n_tokens = 24793, progress = 0.83, t = 18.43 s / 1345.33 tokens per second
0.58.829.709 I slot print_timing: id 0 | task 58 | prompt processing, n_tokens = 26841, progress = 0.90, t = 20.08 s / 1336.75 tokens per second
1.00.522.530 I slot print_timing: id 0 | task 58 | prompt processing, n_tokens = 28889, progress = 0.96, t = 21.77 s / 1326.96 tokens per second
1.00.674.970 I slot print_timing: id 0 | task 58 | prompt processing, n_tokens = 28981, progress = 0.97, t = 22.06 s / 1313.59 tokens per second
1.01.550.688 I slot print_timing: id 0 | task 58 | prompt processing, n_tokens = 29999, progress = 1.00, t = 22.82 s / 1314.87 tokens per second
1.01.657.285 I slot print_timing: id 0 | task 58 | prompt processing, n_tokens = 30005, progress = 1.00, t = 23.06 s / 1301.04 tokens per second
1.04.763.880 I slot print_timing: id 0 | task 58 | n_gen = 133, tg = 43.78 t/s, tg_3s = 44.11 t/s
1.07.796.576 I slot print_timing: id 0 | task 58 | n_gen = 251, tg = 41.34 t/s, tg_3s = 38.91 t/s
1.10.803.402 I slot print_timing: id 0 | task 58 | n_gen = 402, tg = 44.29 t/s, tg_3s = 50.22 t/s
1.13.843.497 I slot print_timing: id 0 | task 58 | n_gen = 535, tg = 44.15 t/s, tg_3s = 43.75 t/s
1.16.867.289 I slot print_timing: id 0 | task 58 | n_gen = 660, tg = 43.59 t/s, tg_3s = 41.34 t/s
1.19.910.050 I slot print_timing: id 0 | task 58 | n_gen = 787, tg = 43.28 t/s, tg_3s = 41.74 t/s
1.22.943.681 I slot print_timing: id 0 | task 58 | n_gen = 919, tg = 43.31 t/s, tg_3s = 43.51 t/s
1.25.980.393 I slot print_timing: id 0 | task 58 | n_gen = 1032, tg = 42.55 t/s, tg_3s = 37.21 t/s
1.29.005.250 I slot print_timing: id 0 | task 58 | n_gen = 1166, tg = 42.74 t/s, tg_3s = 44.30 t/s
1.32.043.455 I slot print_timing: id 0 | task 58 | n_gen = 1289, tg = 42.52 t/s, tg_3s = 40.48 t/s

Serverexe - D:\app-b12631-mix-acc0843-windows-x64-cuda13-newer\llama-server.exe

with Z:\app-b12649-mix-c7059d6-windows-x64-cuda13-newer\llama-server.exe
--spec-type draft-dspark --spec-draft-n-max 4 - 124t/s avg
87t/s without dspark
0.11.079.126 I slot print_timing: id 0 | task 0 | n_gen = 283, tg = 93.87 t/s, tg_3s = 94.20 t/s
0.14.093.441 I slot print_timing: id 0 | task 0 | n_gen = 666, tg = 110.49 t/s, tg_3s = 127.06 t/s
0.17.123.550 I slot print_timing: id 0 | task 0 | n_gen = 1113, tg = 122.89 t/s, tg_3s = 147.52 t/s
0.20.142.111 I slot print_timing: id 0 | task 0 | n_gen = 1519, tg = 125.79 t/s, tg_3s = 134.50 t/s
0.23.152.096 I slot print_timing: id 0 | task 0 | n_gen = 1952, tg = 129.40 t/s, tg_3s = 143.85 t/s
0.26.164.115 I slot print_timing: id 0 | task 0 | n_gen = 2400, tg = 132.62 t/s, tg_3s = 148.74 t/s
0.29.178.770 I slot print_timing: id 0 | task 0 | n_gen = 2741, tg = 129.83 t/s, tg_3s = 113.11 t/s
0.32.196.720 I slot print_timing: id 0 | task 0 | n_gen = 3097, tg = 128.35 t/s, tg_3s = 117.96 t/s
0.35.221.329 I slot print_timing: id 0 | task 0 | n_gen = 3474, tg = 127.94 t/s, tg_3s = 124.64 t/s

llama.cpp prebuilt b12722-mix-f1c70ea Latest
no draft - 94.91 t/s
reading 51k tokens @ 2,014.87 tokens/s
72.43 tokens per second

Context Β· 55.02K

log
1.11.340.536 I slot print_timing: id 0 | task 0 | n_gen = 2830, tg = 72.38 t/s, tg_3s = 72.72 t/s
1.14.349.192 I slot print_timing: id 0 | task 0 | n_gen = 3049, tg = 72.41 t/s, tg_3s = 72.79 t/s
1.17.349.890 I slot print_timing: id 0 | task 0 | n_gen = 3264, tg = 72.36 t/s, tg_3s = 71.65 t/s
1.20.354.310 I slot print_timing: id 0 | task 0 | n_gen = 3485, tg = 72.43 t/s, tg_3s = 73.56 t/s
1.23.361.199 I slot print_timing: id 0 | task 0 | n_gen = 3703, tg = 72.43 t/s, tg_3s = 72.50 t/s
1.23.599.189 I slot print_timing: id 0 | task 0 | prompt eval time = 25459.22 ms / 51297 tokens ( 0.50 ms per token, 2014.87 tokens per second)
1.23.599.192 I slot print_timing: id 0 | task 0 | eval time = 51345.96 ms / 3720 tokens ( 13.81 ms per token, 72.43 tokens per second)
1.23.599.192 I slot print_timing: id 0 | task 0 | total time = 76805.17 ms / 55017 tokens
1.23.599.193 I slot print_timing: id 0 | task 0 | graphs reused = 3704
1.23.599.194 I slot print_timing: id 0 | task 0 | graph reallocs = 17 / 0 (same size) / (changed size)
1.23.600.158 I slot release: id 0 | task 0 | stop processing: n_tokens = 55016, truncated = 0

vram server.exe - 9.2gb

Z:/Inkling-2-Mini-UD-Q2_K_XL.gguf
Context Β· 54.63K
1,834.45 tokens/s TG 62.97 t/s

vram server.exe - 10.1gb

inkling 2 mini gguf llama.cpp q8_xl mainline.
4090 + 3090
11.7 tokens per second 381 prefill.

8.52.587.425 I slot print_timing: id 3 | task 1407 | prompt eval time = 1402.30 ms / 535 tokens ( 2.62 ms per token, 381.52 tokens per second)
8.52.587.429 I slot print_timing: id 3 | task 1407 | eval time = 64180.50 ms / 754 tokens ( 85.23 ms per token, 11.73 tokens per second)
8.52.587.429 I slot print_timing: id 3 | task 1407 | total time = 65582.80 ms / 1289 tokens

This model cannot be split arbitrarily. The model has 24 layers in total, of which layers 6–17 are looped layers. Each token must pass through these layers three times, so to maintain speed, these layers must be kept on a single GPU β€” they cannot be offloaded to the CPU, nor can layers 6–17 be split across different GPUs. If VRAM is insufficient, the KV cache must be quantized to low bits.

With my single RTX 3090 (24GB) and proper settings β€” keeping layers 6–17 on a single GPU while offloading all other layers to CPU memory β€” Q4_X_L can achieve over 35 tokens/s.

I tested many MoE models on a 16gb card, exceeding it heavily like loading 25gb models with good speed around 30tk/s and 64k~256k context

Qwen 3.8 flash next on Strata, 120gb~ had a speed of 30~100tk/s with a average of 50tk/s with 126k

But with inkling 2mini with 4096ctx.... if it reach 8tk/s is a lot.

Update 2026-11-23: Unsloth's new release b12649, new 32K and 64K setups, and images (same RTX 4090 Laptop 16 GB, i9-14900HX, 96 GB RAM as in my post above; q8_0 KV cache, one slot, -ub 512)

TL;DR

  • The new release b12649-mix-c7059d6 is faster up to 100K, but not 1.9Γ— on this card: writing 4–11% faster than b12631 when everything is on the GPU. With experts in RAM it writes about the same and reads up to 18% slower.
  • Long contexts need more experts in RAM on b12649. It reserves at load about 10 MiB of compute buffer per 1K tokens of context. My b12631 placements from 256K up stop at load with failed to allocate compute pp buffers, so I retuned them: 256K the same speed as before, 350K 10–20% slower, 500K 12–25% slower.
  • That reserve is a fix, not a bug. b12631 grew this buffer while the context filled, so a short batch late in a long context could run out of memory there (details below).
  • New fastest setup: Q3_K_XL 32K, everything on the GPU with DSpark: 86 β†’ 79 tok/s, at better quality than IQ3_XXS.
  • Images work with the vision file in RAM (--mmproj mmproj-F16.gguf --no-mmproj-offload): the same VRAM at load, the same text speed, 1–6 s per small picture.
  • Same GGUF files as before (the Unsloth layout, now in Old_Support/); b12649 still loads them. No new download needed.

Which setup to use now (b12649; reading / writing in tok/s, at 1K filled and at the deepest point I filled)

You need Setup 1K Deepest
Up to 31K, fastest 32K, Q3_K_XL, all on GPU, DSpark n2 1,735 / 86 31K: 1,542 / 79
Up to 62K, fastest 64K, Q3_K_XL or IQ3_XXS, all on GPU, DSpark n2 1,521 / 85 or 1,710 / 84 62K: 1,291 / 60 or 1,306 / 59
Up to 62K, best quality 64K, IQ4_XS, 4 expert layers in RAM, DSpark n2 1,190 / 70 62K: 1,040 / 46
Up to 100K 100K, Q3_K_XL, all on GPU, no DSpark 1,808 / 70 64K: 1,302 / 55
Up to 100K, best quality 100K, IQ4_XS, 6 layers in RAM, DSpark n2 1,002 / 58 64K: 928 / 48
Up to 200K 256K, IQ3_XXS, 6 layers in RAM 1,371 / 55 200K: 766 / 34
Up to 200K, better quality 256K, Q3_K_XL or IQ4_XS, 12 layers in RAM 1,014 / 46 or 885 / 45 655 / 30 or 600 / 29
Up to 256K 350K, IQ3_XXS, 13 layers in RAM (one loop layer) 953 / 44 256K: 592 / 27
Up to 256K, better quality 350K, Q3_K_XL (15 layers) or IQ4_XS (16 layers) 699 / 37 or 588 / 33 256K: 491 / 24 or 432 / 23
Up to 499K 500K, IQ3_XXS, 22 layers in RAM (10 loop layers) 479 / 25 499K: 285 / 15
# flags used in every command below
COMMON="-fit off -ngl 99 -lm none -ctk q8_0 -ctv q8_0 --jinja --parallel 1 -ub 512"
DSPARK="--model-draft dspark-Inkling-2-Mini-Q8_0.gguf --spec-type draft-dspark --spec-draft-n-max 2 --n-gpu-layers-draft 99 -ctkd q8_0 -ctvd q8_0"

# 32K, Q3_K_XL, everything on the GPU, DSpark
llama-server --model Inkling-2-Mini-UD-Q3_K_XL.gguf -c 32768 $COMMON $DSPARK

# 100K, Q3_K_XL, everything on the GPU
llama-server --model Inkling-2-Mini-UD-Q3_K_XL.gguf -c 100000 $COMMON

# 256K, IQ3_XXS, experts of 6 layers in RAM
llama-server --model Inkling-2-Mini-UD-IQ3_XXS.gguf -c 262144 -ot "blk\.(18|19|2[0-3])\.ffn_.*_exps\.=CPU" $COMMON

# 500K, IQ3_XXS, experts of 22 layers in RAM (only loop layers 16-17 keep theirs on the GPU)
llama-server --model Inkling-2-Mini-UD-IQ3_XXS.gguf -c 500000 -ot "blk\.([0-9]|1[0-5]|1[89]|2[0-3])\.ffn_.*_exps\.=CPU" $COMMON

# add for images, keeps the vision file in RAM
--mmproj mmproj-F16.gguf --no-mmproj-offload

New -ot patterns (the 4-, 6- and 12-layer ones are in my post above):

 3 layers (21-23):               blk\.(2[1-3])\.ffn_.*_exps\.=CPU
13 layers (+ loop layer 6):      blk\.([0-6]|1[89]|2[0-3])\.ffn_.*_exps\.=CPU
15 layers (+ loop layers 6-8):   blk\.([0-8]|1[89]|2[0-3])\.ffn_.*_exps\.=CPU
16 layers (+ loop layers 6-9):   blk\.([0-9]|1[89]|2[0-3])\.ffn_.*_exps\.=CPU
22 layers (+ loop layers 6-15):  blk\.([0-9]|1[0-5]|1[89]|2[0-3])\.ffn_.*_exps\.=CPU

Before / after (same files, flags and prompt text; writing in tok/s, 1K filled β†’ deepest; "b12631" also includes my own build with the same patches, which gave identical output and speed within 1%)

Setup b12631 b12649
32K IQ3_XXS, all on GPU, DSpark 81.5 β†’ 72.9 84.5 β†’ 75.3
32K Q3_K_XL, all on GPU, DSpark 78.7 β†’ 72.5 86.3 β†’ 79.3
32K IQ4_XS, 3 layers in RAM, DSpark 67.4 β†’ 56.8 76.2 β†’ 59.7
32K Q4_K_XL, 4 layers in RAM, DSpark 58.4 β†’ 56.0 66.5 β†’ 51.0
64K IQ3_XXS, all on GPU, DSpark 80.4 β†’ 60.5 83.9 β†’ 58.8
64K Q3_K_XL, all on GPU, DSpark 79.6 β†’ 58.9 85.0 β†’ 60.1
64K IQ4_XS, 4 layers in RAM, DSpark 66.7 β†’ 48.1 70.3 β†’ 45.6
64K Q4_K_XL, 6 layers in RAM, DSpark 53.2 β†’ 44.5 53.7 β†’ 40.4
100K IQ3_XXS, all on GPU, no DSpark 64.3 β†’ 52.3 71.5 β†’ 55.8
100K Q3_K_XL, all on GPU, no DSpark 63.0 β†’ 52.0 69.9 β†’ 54.8
100K IQ4_XS, 6 layers in RAM, DSpark 60.1 β†’ 50.1 58.0 β†’ 48.1
100K Q4_K_XL, 6 layers in RAM, DSpark 53.8 β†’ 46.1 51.8 β†’ 43.3
256K IQ3_XXS 52.4 β†’ 33.3 (4 layers in RAM) 54.7 β†’ 33.8 (6 layers)
256K Q3_K_XL 45.6 β†’ 30.0 (8 layers) 46.0 β†’ 29.6 (12 layers)
256K IQ4_XS 42.5 β†’ 28.4 (10 layers) 44.6 β†’ 28.9 (12 layers)
256K Q4_K_XL 40.3 β†’ 27.4 (10 layers) 41.5 β†’ 27.7 (12 layers)
350K IQ3_XXS – 43.6 β†’ 27.0 (13 layers)
350K Q3_K_XL 43.0 β†’ 26.4 (10 layers) 36.5 β†’ 23.9 (15 layers)
350K IQ4_XS 40.7 β†’ 25.4 (12 layers) 32.8 β†’ 22.5 (16 layers)
350K Q4_K_XL 38.3 β†’ 24.6 (12 layers) 31.4 β†’ 21.9 (16 layers)
500K IQ3_XXS, filled to 499K 34.0 β†’ 16.9 (15 layers) 25.5 β†’ 14.9 (22 layers)
  • Reading: full-GPU setups βˆ’1% to +14% from 16K on; setups with experts in RAM 3–18% slower at 1K, and 500K up to 43% slower (840 β†’ 479 tok/s at 1K).
  • Output: greedy, IQ3_XXS 100K: the same 64 tokens as b12631 at 1K and 16K, the same first 39 of 64 at 64K. A hidden number was found at 8K and 40K.
  • VRAM: the peak while filling is only 50–80 MiB above the load value on b12649, so a setup that loads also fills. The fullest, Q3_K_XL 64K with DSpark, loads at 15,806 of 16,376 MiB and peaked at 15,872.

Why long contexts need more VRAM on b12649

Commit 6510f1f in unslothai/llama.cpp#386 reserves at load the dense relative-bias attention of ubatches of up to 32 tokens (decode steps, DSpark drafts, prompt tails) over the whole cache. b12631 didn't reserve it, and the buffer grew while the context filled (4.1 MiB per 1K filled tokens in my runs). So on b12631 a short batch late in a long context could run out of memory. My first 500K setup did at 400K, at its first generated token.

The reserve is about 10 MiB per 1K tokens of context, at any -ub of 32 or more: 2.5–2.7 GB at 256K, 3.3 GB at 350K, 5.0 GB at 500K, 7.3 GB at 750K, 10.7 GB at 1M. The GGML_CUDA_DISABLE_* variables don't change it. The fused bias read in unslothai/llama.cpp#413 only runs with an F16/BF16 K/V cache, not with q8_0.

VRAM budget on b12649: weights on GPU + 16.6 MiB Γ— K (KV, q8_0) + about 10 MiB Γ— K (compute buffer) + DSpark (0.7–1.1 GB up to 100K), K = context in thousands of tokens.

750K and 1M on b12649: with all KV on the GPU they would need 7.3 / 10.7 GB of compute buffer on top of the KV cache. They load with half / most of the KV cache in RAM (-ngl 13 / -ngl 7), which makes writing very slow, so I didn't fill them. For those, b12631 with the setups from my post above is still the better choice, keeping in mind it doesn't reserve memory for short batches.

Images (all setups, vision file in RAM): the same VRAM at load as without it, and text writing within 2%. I asked about two generated pictures per setup (two coloured halves and a white square), on b12631 and again on b12649. 85 of 86 answers were right; the other ran out of my token limit while still thinking, and with a larger limit it named both colours right. Also right after 59K tokens of text. A picture takes 1–6 s and up to 120 MiB more VRAM. Only simple pictures were tested.

Facts for tools and LLMs (new or changed since my post above)

build_b12649: unslothai/llama.cpp release b12649-mix-c7059d6 (2026-11-23), loads the old Unsloth-layout GGUFs
compute_buffer_mib_per_1k_context_b12649: 10      # reserved at load for the full context, -ub >= 32; was grown at runtime on b12631
peak_over_load_b12649_mib: 50-80
fits_b12649_q8_0_16gb: {32K-64K: "IQ3_XXS and Q3_K_XL fully on GPU with DSpark", 100K: "IQ3_XXS and Q3_K_XL fully on GPU", 256K: "6 (IQ3_XXS) or 12 expert layers in RAM", 350K: "13-16 layers in RAM", 500K: "22 layers in RAM (IQ3_XXS)", 750K+: "KV partly in RAM"}
order_to_move_to_ram: [20-23, 18-19, 0-1, 2-5, then loop layers 6, 7, 8, ...]
vision: {projector: mmproj-F16.gguf 0.64 GB, flag: --no-mmproj-offload, vram_at_load: "+0", per_picture: "1-6 s, up to 120 MiB"}

Model file / model name: Inkling-2-Mini-UD-Q4_K_XL (the Old_Support/ layout)
GPU: AMD Instinct MI50 32 GB (gfx906, HBM2, passive with a blower fan)
CPU: Threadripper 2950X
RAM: 128 GB DDR4-2400, quad channel
Generation speed: 79.2 tok/s decode for one chat. 200 tok/s in total across 8 parallel chats (25 each). Prefill ~800 tok/s at 4K tokens.
App / frontend: maya-inkling-mini (maya-ik2) with custom gfx906 kernels, behind its OpenAI-compatible server
Launch parameters / settings: --parallel 8 --max-context 786432, env IK2_KV=fp8 IK2_BATCH_PREFILL=1 IK2_FLASH=1 IK2_ATTN_MMA=0 IK2_EXPERT_MMA=0 IK2_HOST=pinned IK2_ALLOC=hostalloc
Extra notes:

  • The MI50 has no matrix cores, and the stock HIP path runs at 41.7 tok/s on it. The kernels use int8 v_dot4 for the NVFP4 / Q8_0 experts and are shaped for 64-lane waves, which makes it 1.9x faster. Greedy output is identical to the stock path.
  • All experts stay in VRAM with a 768K context shared by 8 slots. Needle test at 675K tokens: PASS. Prompts that long read slowly, though (~120 tok/s at 675K).
  • The weights are 17.6 GB, so a 16 GB card spills the experts to RAM (22 tok/s).
  • Patch, build steps and a bench.sh to reproduce: https://github.com/G0ldd1/mi50-playground

Sign up or log in to comment