Inkling 2 Mini on RTX 4070: 5.9 to 74.7 tok/s

Inkling 2 Mini running on a 12 GB RTX 4070 graphics card

Inkling 2 Mini, the 26.4B mixture-of-experts model from Thinking Machines Lab, can run at 74.7 tokens per second on a 12 GB RTX 4070. One developer got there from a starting point of 5.9 tok/s using the full 4-bit Unsloth Dynamic quant, with no 2-bit cuts and no draft model. Prefill reached 2,153 tok/s, with a 256k context and vision handled on the CPU.

The test machine pairs the 12 GB card with 64 GB of DDR5. The GGUF weighs 16.4 GiB before the vision projector and the DSpark drafter, so most of the model has to live in system RAM.

Why a looped model confuses offloading

Inkling 2 Mini is a looped transformer with 24 physical blocks. The first six run once per token, the middle twelve loop three times, and the last six run once, so each token passes through 48 logical layers. The Unsloth quant also keeps the last four blocks at roughly double the bit width of the rest.

Standard offloading doesn’t know any of that. It spends VRAM on the 1 GB tail blocks that run once and pushes the heavily reused looped core out to system RAM.

The first attempt didn’t even load, because Unsloth’s prebuilt binary only knew the older architecture name. A fresh llama.cpp build fixed loading, then ran out of memory because combining -ngl 99 with –fit on silently aborts the fitter. With the flags corrected, speed sat at 5.9 tok/s.

From 33 to 68.7 tok/s in llama.cpp

Switching to Unsloth’s llama.cpp fork, which adds Inkling CUDA fusions, gave 33.1 tok/s on the same flags. Pinning the looped core on the GPU lifted that to 44.1. Turning all expert layers into a dynamic GPU cache reached 52.0, since the card could now keep hot experts from the oversized tail blocks too.

The DSpark draft model helped, and so did splitting cache misses 70% to the CPU and 30% over PCIe, which peaked at 65.8 tok/s. Prefill was the problem, stuck at 184 tok/s. Raising the micro-batch size from 256 to 2048 pushed it toward 900 tok/s, but it no longer fit next to a static 7.5 GiB expert cache.

The fix was a lean fork with a smaller draft micro-batch, cache budgets weighted by how often each layer is visited, and an elastic cache that releases memory during big prompt batches and reclaims it before decoding. With Unsloth’s CUDA MoE prompt kernels merged, llama.cpp reached 68.7 tok/s decode and 820 tok/s prefill at 32k context.

Five engines, one winner

Prefill was still about half the speed of the developer’s larger Qwen3.8-Flash-Next setup, so four more engines got the same GGUF. Basalt aborts on anything older than Blackwell. Strata improved from 25.7 to 46.8 tok/s plain decode between v0.2.20 and v0.2.21. Project Maya came second, holding 64.9 tok/s after 20k tokens with DSpark, though its prefill trailed by 36 to 60% and a tighter chunk config hung it at 11.9 GiB of VRAM.

PolyStrata won on this Ada card. It reads the same GGUF, runs prompt batches on INT8 tensor cores, pins offloaded experts in RAM and manages a single VRAM pool that grows the FP8 KV cache on demand. Its CPU vision encoder means images cost no VRAM.

One surprise held across engines: dropping the draft model was faster. The drafter and its KV cache evicted hundreds of resident GPU experts, which slowed decode and prefill and tripled cold boot time. Keeping about 1,800 hot experts in 8.1 GiB of VRAM, a hit rate near 95%, beat speculative decoding.

The last gain came from a kernel default. Layers 0 to 19, which account for 44 of the 48 visits, use 4-bit NVFP4 weights, and on Ada they were running as FP16 at 60.5 TFLOPS. Setting STRATA_PREFILL_NVFP4=w4a8 and STRATA_INK_FAST_CTRL=1 moved them to INT8 and nearly doubled prefill. A 2k prompt went from about 700 to 1,483 tok/s, 8k reached 2,036 and 20k reached 2,153.

How close to the hardware limit

Measured on an idle system, the card copies VRAM at 455.8 GB/s, pinned PCIe Gen4 moves 25.0 GB/s, DDR5 reads at 60.0 GB/s and FP16 GEMM hits 60.5 TFLOPS. Inkling 2 Mini reads 3.92 GB per token with BF16 loop controllers. If everything fit in VRAM, decode would cap at 114 tok/s at 4k context. With 5% of expert reads coming from DDR5, the practical ceiling is about 83 to 95 tok/s, so 75 tok/s is close. Prefill at 2,153 tok/s is 84% of the 2,562 tok/s compute ceiling.

The same math explains why the roughly 180B Qwen3.8-Flash-Next decodes about as fast, near 73 tok/s. Its 2-bit experts read only 2.2 to 2.3 GB per token and it uses native MTP speculative decoding.

256k context and where it fits

The model was trained natively for 1M context. Only 8 of its 48 visits use full-attention KV, and the other 40 use fixed 1,024-token sliding windows. The FP8 KV cache costs about 16.5 KiB per token. Raising the maximum context from 128k to 256k adds roughly 13 MiB at boot, and a full 256k session still fits in 12 GB, with about 4.1 GiB of KV and 4.1 GiB left for GPU experts.

Going to 512k or 1M would need host-RAM KV streaming, which PolyStrata has for Qwen3.5 but hasn’t connected to Inkling 2 yet.

The developer still uses Qwen3.8-Flash-Next as the daily driver on this 64 GB machine. Inkling 2 Mini gets the job when long prompts need ingesting at 2,000+ tok/s, when vision should run on the CPU without slowing down, or when about 40 GB of RAM needs to stay free for local builds.

Source: carteakey.dev

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.