Running Inkling-2-Mini on an 8 GB GPU — and whether it beats the 35B Qwen already there
A field report on a 26B looped-MoE model, an 8 GB Turing card, and five coding tasks graded by execution
Test date: 2026-11-22 · llama.cpp 225a534 (CUDA 13.0, sm_75) · RustingStrata local server · RTX 2060 SUPER 8 GB
Abstract
thinkingmachines/Inkling-2-Mini is a 26B-parameter multimodal looped mixture-of-experts model (5.4B effective per token) released 2026-11-20 with a 1M-token context window. The local inference server on this machine — RustingStrata, which runs a 35B Qwen at ~55 tok/s from an expert cache — cannot load it at all. Loading it through mainline llama.cpp works, and the numbers are:
- ~30 tok/s generation at 8k context, ~370 tok/s prompt processing, with 6 of 24 layers’ experts offloaded to the CPU. That is roughly half the speed of the 35B Qwen already on the box.
- The 1M context headline is not usable here. Only 8 of the loop-expanded 48 cache slots are full-context; the other 40 are sliding-window bounded at 1024. Full-context KV still costs 32 KiB/token at f16, so 1M tokens needs 32 GiB of KV — 4× the card. It initialises with q4_0 KV in system RAM (9 GiB), but a full window would take ~13 hours to prefill and generation then collapses to roughly 1 tok/s.
- On five coding tasks graded by executing hidden tests, Inkling scored 4/5 at 1.56 bits per weight — the same score as a Q4 35B model running twice as fast, and better than Qwen3.6-35B-A3B at 2.9 bpw (3/5 with a generous token budget).
- Three defects in my own harness were found and fixed mid-run; the published numbers are the post-fix ones. A coding eval built by the same person judging the model is worth exactly as much as its test suite.
1. Test environment
| Component | Detail |
|---|---|
| GPU | NVIDIA GeForce RTX 2060 SUPER, 8 GB GDDR6 (7762 MiB usable), compute capability 7.5 (Turing, sm_75) |
| CPU | Intel Core i5-14400F, 10C/16T |
| RAM | 31 GB DDR5-4000 (XMP off) |
| OS | Ubuntu 24.04 LTS, driver 580.159.04, CUDA 13.0 |
| Inkling runtime | mainline llama.cpp 225a534, built with -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=75 |
| Qwen runtime | RustingStrata, expert-cache streaming server, OpenAI-compatible on :8082 |
The point of the exercise was not “can a 26B model run on an 8 GB card” — with expert offload, obviously it can — but what it costs in speed and precision relative to the model already serving that role.
2. The arch is the gate, not the size
RustingStrata was the obvious host: it already runs a 35B-A3B MoE on this card at ~55 tok/s by keeping attention resident and streaming routed experts. It refused the model in one line:
// rusting-strata/src/config.rs:115
bail!("unsupported architecture '{arch}' (supported: qwen3, qwen3moe, qwen3next,
qwen35, qwen35moe, qwen4exp, flint)")
Inkling’s general.architecture is inkling2_loop, and the reason it is not a one-line addition is visible in its config:
- Looped core. Layers 6–17 are executed three times with shared weights (
loop.count = 3), with per-pass controllers (controllers.{attn,k,v,mlp}.{gain,forget,down}_weight) that modulate each pass. - Hybrid attention with a twist: 20 of 24 layers are sliding-window (
n_swa = 1024), 4 are global, and attention is relative (rel_extent = 1024, L2-clipped query/key and relative logits). - Per-layer short convolutions (
sconv) on q/k/v/attn/mlp paths, gate softcaps, final logit softcapping at 30. - 128 routed experts, 8 active, plus an MTP head and a vision tower.
Mainline llama.cpp gained LLM_ARCH_INKLING2_LOOP and PROJECTOR_TYPE_INKLING2V, which is why the model runs here at all: a 30-line rebuild of a fresh clone, no source changes.
The GGUF layout trap
There are two incompatible GGUF layouts for this model. The root files in unsloth/Inkling-2-Mini-GGUF use Unsloth’s own looped layout and produce gibberish in mainline llama.cpp. The Mainline_Support/*.gguf_file files carry the same tensors byte-for-byte in the layout mainline expects (rename to .gguf).
Even then, a fix was required: PR #32704, merged 2026-11-21, “re-share the loop slots after the scale pass”. Without it the second and third passes through the looped layers lose their per-expert NVFP4 scales — perplexity 130 instead of 7.65. Any build after that merge is fine; this test used one.
3. Speed: fitting a 7.76 GB model into 7.6 GiB of usable VRAM
Quant: UD-IQ1_S, 1.56 bpw, 7.76 GB. Weights alone exceed free VRAM, so layers’ experts are pushed to the CPU with --n-cpu-moe, keeping attention and the dense paths on the GPU. Measured with llama-cli, q8_0 KV:
| ctx | --n-cpu-moe |
peak VRAM | generation | prompt processing |
|---|---|---|---|---|
| 4096 | 4 | 7496 MiB | 32.3 tok/s | — |
| 8192 | 4 | — | OOM (+1 GB alloc fails) | — |
| 8192 | 5 | 7762 MiB | OOM at generation | — |
| 8192 | 6 | 7550 MiB | 30.7 tok/s | 369.6 tok/s (1500-token prompt) |
| 8192 | 8 | 7548 MiB | 27.7 tok/s | — |
| 8192 | 12 | 7546 MiB | 22.0 tok/s | — |
| 8192 | 24 (all experts on CPU) | 5908 MiB | 15.3 tok/s | — |
| 16384 | 12 | 7242 MiB | 22.0 tok/s | — |
| 65536 | 24 | 4934 MiB | 14.0 tok/s | — |
| 131072 | 24, -ub 16 |
623 MiB compute | 14.2 tok/s | ub-limited |
Output was coherent throughout — a haiku prompt produced a correct 5-7-5 haiku, and the model’s [Start thinking] channel parsed normally.
The multi-gigabyte “compute buffer” that was my own fault
Initially every context above 8k died with cudaMalloc failed while reserving a 3.0–6.6 GB compute buffer — not on weights, on working memory. That buffer scaled with context and ubatch:
| ctx | -ub |
compute buffer |
|---|---|---|
| 32768 | 128 | 4142 MiB |
| 131072 | 128 | 6518 MiB |
| 131072 | 16 | 623 MiB |
| 1048576 | 16 | 6115 MiB |
Dropping -ub to 16 frees ~6 GB of VRAM on any context. The cost is prefill throughput, which is ubatch-limited — a fair trade only because the alternative is not running at all.
4. What 1M context actually costs
The loop expansion means the model has 48 KV cache slots from 24 layers of weights (each looped layer gets a slot per pass). Only 8 of those slots are full-context (layers 5, 11, 17, 23 and their loop copies 29, 35, 41, 47); the other 40 are sliding-window bounded at 1024 cells, a flat ~200 MiB.
So the per-token cost is 8 layers × 2 (K/V) × 8 KV heads × 128 dims:
| KV dtype | per token | 1M-token context |
|---|---|---|
| f16 | 32 KiB | 32 GiB |
| q8_0 | 16.6 KiB | 17 GiB |
| q4_0 | 8.5 KiB | 8.5 GiB |
Verified against the runtime: 32k context reports 1024.00 MiB (32768 cells, 8 layers, f16) and 128k reports 2176.00 MiB with q8_0 — exactly the table’s slope.
1M does technically work. With -c 1048576 -ub 16 -ctk q4_0 -ctv q4_0 -nkvo, the KV cache lands in system RAM at 9216 MiB and the model generates at 11 tok/s — at 2-token depth, which is the flattering case. The practical numbers are worse:
- prefilling a full window at 21.6 tok/s takes ~13 hours;
- past that, every generated token streams ~9 GiB of KV over PCIe, so generation converges to roughly 1 tok/s;
- q8_0 KV (17 GiB) and f16 (32 GiB) do not fit in this machine’s 31 GB of RAM alongside the model at all, and swap was already saturated.
The usable envelope on this card is 8k–64k context at 14–30 tok/s. The 1M figure belongs to the model card’s target hardware (DGX Spark, 32 GB+), not to an 8 GB consumer card.
5. Is it better than the Qwen? Five tasks, graded by execution
Benchmark claims are not useful without a test that can fail. I wrote five coding tasks, each with hidden assertions that run the model’s own code, plus reference solutions to prove the tests are satisfiable. Every model got the same prompts, the same sampling (temp 0.6, top-p 0.95, top-k 20), and the answer was extracted and executed by the same harness.
| # | task | what fails if the model is sloppy |
|---|---|---|
| 1 | merge_intervals |
touching intervals, nested intervals, unsorted input, no mutation |
| 2 | fix a buggy LRUCache |
get must update recency, correct eviction, capacity 1, overwrite |
| 3 | top_k_frequent |
bounded heap required (not a full sort), ties, k > distinct |
| 4 | CLI with argparse |
exact stdout contract, one JSON line, empty input, sort order |
| 5 | RFC4180 parse_csv_line by hand |
quoted commas, "" escapes, empty fields, trailing comma |
Results, each model at the largest quant its runtime could hold on this card:
| model | quant | budget | score | median answer time |
|---|---|---|---|---|
| Inkling-2-Mini | UD-IQ1_S 1.56 bpw | 4096 | 4/5 | 33.9 s |
| RavenX-CyberAgent-35B (Qwen3.6-35B-A3B fine-tune) | Q4_K_M | 12288 | 4/5 | 46.9 s |
| Qwen3.6-35B-A3B | UD-Q2_K_XL | 12288 → 32768 | 2/5 → 3/5 | 42.1 s → 261.7 s |
What actually failed, which is more informative than the scores:
- Inkling, task 5: burned its entire 4096-token budget cycling
Potential issue: line=…self-checks against its own correct parser, and never emitted code. A behavioural failure, not a reasoning one — and with 30 tok/s there is no appetite for granting 32k tokens of rope. - Qwen3.6, task 2: at 12288 it never finished; at 32768 it burned the whole budget over 7 minutes and still had not defined
LRUCache. A runaway. - Qwen3.6, task 4:
parser.parse_args()()— a one-character slip producingTypeError; the logic beneath it was right. - RavenX, task 3: correct algorithm, forgot
import collections, heapq. - Inkling’s task 3 used a genuine bounded heap (
heapreplacewhilelen(heap) < k), so the “no full sort” constraint was understood rather than merely satisfied.
Three bugs in the harness, found the hard way
Publishing the first numbers would have been wrong three times over:
- My
LRUCachetest asserted the wrong eviction order, marking Inkling’s correct implementation as a failure. - The extractor only read the
contentfield. Long-CoT models sometimes leave the final answer in the reasoning channel, producing spurious “no code found” failures (this alone turned a 4/5 into a 1/5 for one model). - The extractor took the last fenced block regardless of validity, so prose or half-written code could be graded instead of the real answer. It now
ast.parse-validates candidates.
A rescorer that re-grades saved answers means a test fix can be re-applied without re-querying the models, which is the only reason the final table is consistent across all three.
6. Verdict
- As a daily driver on this card, the 35B Qwen at Q4 still wins on speed — 58 tok/s against 30 — at an identical 4/5.
- Inkling-2-Mini is the stronger model per bit. It scored 4/5 while dragged down to 1.56 bpw, it never emitted broken or unfinished code, and it adds native vision (the multimodal projector works if kept on the CPU; on this GPU it segfaults inside
ggml_cuda_graph_launch_chunkonsm_75) and a 1M-token architecture. Given 32 GB of VRAM for an IQ4-class quant, it should pull clearly ahead. - Qwen3.6-35B-A3B at 2.9 bpw was the weakest of the three, but that is as much a statement about the quant as about the model — which is exactly why the token budget and the quant are printed next to every score above.
None of this is a benchmark. Five tasks move 20 % per failure, there is one sample per task, and the quant differs per model because the hardware forced it. It is a smoke test that can fail — which is more than a leaderboard screenshot offers.
7. Limitations
- Quantisation is not matched. Inkling ran at 1.56 bpw because that is what fits an 8 GB card; the comparisons are “as runnable here”, not “model capability”.
- Budgets differ, and the difference matters. Inkling’s single failure could not be retried at a larger budget: its GGUF was on a USB disk that dropped off the bus mid-session. Qwen’s 3/5 includes a retry at 8× the budget.
- Context experiments share one machine. 1M-context memory figures were measured with
MemoryMax=22Gcgroup caps to avoid destabilising the other containers on the host. - Nothing here measures the vision path beyond a smoke test — one image described correctly, with the projector on CPU.
The harness, every raw response (including reasoning channels), the generated code and a passing reference implementation per task are kept in a private repository; happy to share on request.
References
- Thinking Machines Lab, Inkling 2 Mini model card and weights. https://huggingface.co/thinkingmachines/Inkling-2-Mini
- Unsloth, Inkling-2-Mini-GGUF, including the
Mainline_Support/layout. https://huggingface.co/unsloth/Inkling-2-Mini-GGUF - ggml-org/llama.cpp, PR #32694 (
inkling2_looparchitecture) and PR #32704 (loop slot scale sharing). https://github.com/ggml-org/llama.cpp/pull/32704 - Qwen, Qwen3.6-35B-A3B model card and benchmark tables. https://huggingface.co/Qwen/Qwen3.6-35B-A3B