FindingsWhat the runs taught us
Things learned on this bench that the next recipe should not have to learn again. Each entry says what is ours and what belongs to someone else.
- Findings
- 38
- Ours
- 28
- Measuring or confirming others
- 10
| Label | Meaning |
|---|---|
| Ours | Found and measured on this bench. |
| Our measurement of their work | Someone else's code, file or patch; the numbers are ours. |
| Confirms earlier work | Already described by someone else; reproduced here. |
| Found here and upstream | Found here and also reported upstream by others; who was first is unclear. |
Looped MoE
Automatic --fit placement loses 40-63% against the hand-written expert regex
llama.cpp's automatic placement does not find the fast Inkling-2-Mini layout on its own.
128k context on Inkling fits only with core layers 6-15 on the GPU and ub 64
On the shipped build, the only layout that runs a 128k window on this card keeps the experts of core layers 6–15 on the GPU, layers 16–17 and the rest in RAM, with `--no-op-offload` and `-ub 64`.
Looped layers with experts in RAM give NaN prompts when op offload is on
On llama.cpp master, any batch of 32 or more tokens that runs a loop-core layer whose experts sit in RAM comes out NaN while op offload is on, which is the default.
Unmerged llama.cpp PR 32740 gives 2.5x prefill on Inkling at 64k on this card
PR #32740, which stores the attention bias compactly, is the largest gain left for the default Inkling quant on a 12 GB card.
Running Inkling's loop fewer than 3 times drops accuracy to near chance for little speed
Cutting the number of loop passes is not a usable speed lever on Inkling-2-Mini.
On Inkling the compute buffer, not the weights, decides what fits in 12 GB
Two things in llama.cpp's compute buffer decide which Inkling-2-Mini layouts load on a 12 GB card, and neither is the model file.
On a looped MoE, put the loop core's experts on the GPU before anything else
Inkling-2-Mini runs layers 6–17 three times per token, so the experts of those 12 layers are read three times while the other 12 layers' experts are read once.
Loop passes 2 and 3 dropped per-expert scales and broke NVFP4 GGUFs
On llama.cpp builds before commit 690b87d88, the generic per-expert `.scale` pass ran after the loop aliasing, so passes 2 and 3 of Inkling's loop core lost the scales of NVFP4 experts.
Inkling's speed-up comes from flags alone and the patches only make 64k fit
The tuned Inkling-2-Mini flags give the same speed on unpatched llama.cpp master as on the patched build.
Experts in RAM
With experts in RAM, a 4096-token micro-batch gives 4.1x prefill and 8192 adds almost nothing
During prefill llama.cpp copies the RAM-resident experts to the GPU once per micro-batch, so a larger micro-batch amortizes the copy.
An adaptive expert cache matches the oracle hot set and a fixed one does not
Expert routing on code is concentrated, but the hot set moves, which is why a cache that adapts beats pinning experts chosen in advance.
Put every expert in RAM and spend the freed VRAM on the MoE cache
On Flint at 128k, keeping all routed experts in RAM and giving the freed VRAM to llama.cpp's adaptive MoE cache beats placing some layers' experts on the GPU.
The CPU-GPU hand-off is 1.1 ms of an 18.9 ms token, not the bottleneck
With Flint's experts in RAM, each token alternates 42 GPU splits and 42 CPU splits.
Reading weights into RAM instead of mmap gives 24% faster prefill with experts on the host
With experts kept in RAM, loading the weights with `--load-mode none` instead of the default mmap makes the host-to-GPU copies during prefill faster.
q8_0 KV costs 29% decode at 32k on a model with few full-attention layers
Quantized KV cache is slow on llama.cpp for models with few full-attention layers.
Drafting and speculation
On Kintsugi the drafter is worth more VRAM than keeping the K/V cache on the card
The DFlash2 drafter costs about 0.9 GB of VRAM, which pushes most of Kintsugi's K/V cache out to system RAM: 7,168 cells stay on the card where 61,952 fit without it.
With spare VRAM at 32k, the MoE cache adds 10-12% and the DSpark drafter a median 14-20%
Both levers need VRAM that the 64k default does not have, so both were measured at 32k, as the median of 6 capped coding answers with controls in the same GPU session.
A drafter trained on the base model loses on a fine-tune that reasons tersely
The z-lab DFlash drafter for Qwen3.5-4B is a clear win on the base model and a loss on the 3D-Coder fine-tune.
A fine-tune that dropped its MTP head can take the base model's head back
Qwen3.5-4B-3D-Coder's config declares one MTP layer, but the released weights and official GGUFs carry none.
Quants
Smaller expert quants do not speed up CPU-side decode unless their kernel is cheap per byte
With every expert in RAM, fewer bytes per expert did not mean faster decode on this CPU.
Unsloth's smaller Inkling quants are faster, and only KLD shows what they cost
The UD files in the root of unsloth/Inkling-2-Mini-GGUF do not load on llama.cpp master.
Repacking Inkling's own NVFP4 experts into a GGUF is about 3x closer to Q8_0 than IQ4_NL
The Inkling-2-Mini checkpoint ships its experts already in 4-bit NVFP4.
Q4_K_M is the fastest 3D-coder quant and breaks twice as many pages
On a 4B model that writes about 10k tokens of JavaScript per answer, Q4_K_M's speed is not usable.
Disk-bound giants
For a model that reads experts from disk, the drive sets decode speed by 10x
When cold experts are read from storage on every token, the drive is part of the recipe.
DeepSeek-V4.1-Flash 763B does run on a 12 GB card, at about 5 tok/s
The claim that every build of this model runs on a single 12 GB GPU with Strata is true with caveats.
Method
A layout that loads within 0.4 GB of the card's limit dies on its first request
Loading without an error does not show that a configuration works.
Byte-count ceilings overstate what an all-GPU layout can reach
A decode ceiling computed as bytes read per token divided by memory bandwidth can be far above what the GPU delivers when a token makes many layer applications.
A one-sample-per-prompt check wrongly blamed an engine bug for MTP failures
The first quality check of the restored MTP head used one answer per prompt and looked decisive: 1 of 8 pages worked with MTP against 6 of 8 without, and 5 of 9 answers looped against 0 of 8.
On a small all-VRAM model decode is already at 74-93% of the bandwidth ceiling
Before writing a custom kernel for a model that fits in VRAM, compare measured time per token with bytes read per token divided by measured bandwidth.
Greedy-output identity is the wrong quality gate when placement changes
Comparing greedy output hashes before and after a change flags valid configurations as broken whenever the change moves computation between CPU and GPU.
Box and harness
The desktop session holds about 0.95 GB of the card and that decides several fits
A 12 GB card that also drives the desktop is an 11 GB card.
A port-based health check can be answered by someone else's server
A harness that waits for `/health` on a port and then runs its tests will measure whatever answers on that port.
Resolve the model path before benchmarking, because a symlink can hide a slow disk
A model folder that was moved to another drive and left behind as a symlink still opens at its old path.
Editing a bash script while it runs reorders or breaks the rest of the run
Bash reads a script from disk as it goes, by byte offset.
nvidia-smi shows the PCIe link at Gen1 when idle and that is power saving
Reading the PCIe link speed while the GPU is idle gives a misleading answer.
On an i5-12500 RAM read bandwidth peaks at 6 threads and so does decode
On this CPU, RAM read bandwidth stops growing at 6 threads, and expert-in-RAM decode follows it.
A cgroup memory cap counts page cache, so mmap'd weights hit it
On this box every GPU job runs through a flock-based GPU queue that also wraps the job in a cgroup with a memory cap, 20 GB by default.