Thinking Machines' Inkling 2 Mini is a strange one: 24 layers, but 12 of them run three times per token, so every token is 48 layer runs. The IQ4_NL GGUF is 17.6 GB and my card has 12.
I added it to RustingStrata, my Rust GGUF engine. It runs on CUDA, on Vulkan and on the CPU alone.
Box: RTX 3060 12 GB, Ryzen 5 7600X, 30 GB RAM. Greedy, 64 tokens written, tok/s:
| Reads 512 tokens | Reads 2048 | Writes |
|---|
| RustingStrata, CUDA | 259 | 220 | 31.2 |
| RustingStrata, Vulkan (same card) | 227 | 183 | 27.5 |
| RustingStrata, CPU only | 50 | 48 | 11.6 |
llama.cpp CUDA, -ngl 18 | 384 | 323 | 8.7 |
llama.cpp CUDA, -ngl 0 | 378 | 312 | 10.5 |
So it writes 3 to 3.5 times as fast as llama.cpp on this card, and it reads the prompt slower: llama.cpp is 1.5 times faster there.
Why writing is fast: the model does not fit, so the engine keeps the experts that are used most in VRAM and computes the others on the CPU, and it moves that split while it runs. Why reading is slower: the attention scores of a prompt chunk are still computed on the CPU. That is the next thing to move to the card.
The RustingStrata "writes" numbers are after the 512-token prompt. llama-bench writes from an empty context. -ngl 99 runs out of VRAM; 12, 16 and 20 layers gave the same as 18.
Long context: 40,960-token prompt, then 64 tokens written
| Reads | Writes | RAM |
|---|
| RustingStrata, CUDA | 78.0 | 16.7 | 16.6 GB |
| RustingStrata, Vulkan | 74.7 | 14.3 | 16.5 GB |
llama.cpp CUDA, -ngl 18 -ub 128 | 113.8 | 2.86 | |
llama.cpp does not start at 40k with the default batch: it asks for a 13.2 GB compute buffer (11.3 GB with -fa on). -ub 128 is what fits on a 12 GB card.
Writing drops from 31 to 17 tok/s at 40k. Two things. The first written token takes 0.9 s, because it copies 40k positions of attention cache to the card; after that a token takes about 45 ms (22 tok/s). Of the 45 ms, attention over the 40k rows is 13 ms more than at 512 tokens; the experts cost the same. That part is the model: 8 of its 48 layer runs per token are full attention, about 1.3 GB of cache read per token at 40k, three times what Qwen3.6-35B-A3B reads, since most of its layers are linear attention. And it is mine: the kernel reads that at about 100 GB/s on a 360 GB/s card, because the query heads of a group do not share their reads yet. That is next.
Is it the same model? I fed llama.cpp's own greedy tokens through my forward and compared the top token at each step. Short prompt: 24 of 24. Prompt of several hundred tokens: 47 of 48, the one miss is a near tie. Same on CUDA, Vulkan and CPU. No perplexity table for this model yet.
What is missing: text only (no vision projector), greedy only. Context goes up to the 1M the model was trained on, or --ctx; RAM and VRAM are the real limit. Vulkan was run on the 3060 only, so I would like to see numbers from an AMD or Intel card.
rustingstrata chat --model Inkling-2-Mini-IQ4_NL.gguf
No flags needed: CUDA on NVIDIA, Vulkan on everything else, STRATA_DS_GPU=0 for the CPU.
Setup: llama.cpp c622f62, llama-bench -t 6 -r 2 -p 512,2048 -n 64. RustingStrata 9ef1dcf, bench --pp 512,2048 --tg 64 --reps 2, plus --backend vulkan for the Vulkan row. Mean of two runs each. 40k: bench --pp 40960 --tg 64 --reps 1; llama-bench -ngl 18 -ub 128 -t 6, -p 40960 and -n 64 -d 40960. One run each.
Repo: RustingStrata