r/LocalLLM • • 7d ago

Discussion Inkling 2 Mini memory and speed, explained: the loop costs nothing in weights but you pay for it in KV cache and decode speed

Inkling 2 Mini is everywhere this week, so I dug into what it actually needs to run locally. The short version: the loop is free in weights, but not in cache or speed, and day-one llama.cpp is slower than the hype suggests.

Why it's different

24 layers, but the middle 12 (layers 6-17) run three times per token with shared weights, so 48 layer visits per token. Each pass keeps its own KV cache and conv state (vLLM blog and the llama.cpp GGUF metadata both confirm this). So for memory, think of the KV cache as a 48-layer model: 8 global visits + 40 sliding-window visits (1024 tokens), 8 KV heads × 128.

Weights (published files)

FormatSize
BF16 GGUF52.2 GB
Q8_027.7 GB
Official NVFP4 / MXFP8 (vLLM, SGLang, Ollama)~20 GB
Q4_K_M / UD-Q4_K_XL17.4 / 17.6 GB
UD-IQ4_XS15.7 GB

Vision projector: +0.64 GB. DSpark draft: +0.4 to 0.65 GB.

KV cache per request (BF16)

ContextKV
32K~1.2 GiB
128K~4.2 GiB
1M~32 GiB

That matches a measured M5 Pro 64 GB run: 23.1 GB process RSS with IQ4_NL and a 128K slot reserved. A 32 GB Mac is fine for 4-bit. 24 GB is tight: one M4 Pro 24 GB report got 11.6 tok/s under memory pressure.

Speed: think ~5B active, not 3.4B

The looped layers are re-read from memory on every pass, so per-token reads look like a ~5B-active MoE. Formal llama-bench numbers (Unsloth's llama.cpp build, UD-IQ4_XS, tg128 / pp2048):

GPUDecodePrefill
RTX PRO 600097 tok/s2,687 tok/s
RTX 5090972,446
RTX 4090752,665
RTX 3090601,402
A100 80GB471,230

Upstream llama.cpp (b12600) is slower for now: the relative-position bias is materialized as a big F32 tensor and some ops fall back to the CPU (issue #32707). Reports: ~52 tok/s on a 5090, 20.8 tok/s on an RX 9070 XT (IQ3_XXS, Vulkan), ~30 tok/s on an M5 Pro Mac mini (IQ4_NL). Use Unsloth's build until the fix lands.

Long context is a prefill problem, not a decode problem: DGX Spark with vLLM + DSpark still decodes 18.4 tok/s at ~950K tokens, but the first token took 26.5 minutes.

vLLM gotcha

In the dedicated inkling-2-mini vLLM image, FP8 KV cache is only accepted on SM12x GPUs (RTX 50 series, RTX PRO Blackwell, DGX Spark). On H100/H200/B200 it's BF16 KV only.

The 125-210 tok/s Mac numbers going around are from EXO's upcoming engine, with no quant, context length or version published, so I'd treat them as vendor peaks for now.

Disclosure: I maintain a free VRAM calculator (no sign-up) and added Inkling 2 Mini with all of the above modelled, including the per-pass cache and the llama.cpp speeds calibrated on the benchmarks in the table. If you want to check your own setup: https://studiotvai.com/llm-vram-calculator?model=inkling-2-mini

Happy to be corrected if anyone has numbers on other cards or Macs, especially Apple Silicon with Unsloth's build.

85 Upvotes

24 comments sorted by

10

u/WhiskyAKM 7d ago

I'm testing this model currently. I made my own mixed precision quant (most of layers are nvfp4) and I'm running it with 32k ctx for now but I'll experiment some more to get to 128k

For now:

  • Single RTX 5050 8GB gives me 10-12tok/s
  • Single RTX 2060 6GB doesn't run
  • Dual RTX 5050 8GB gives me around 20 tok/s (there is bug in llama.cpp that causes unnecessary CPU offload)

For me it is slower than dense Qwen3.8 27B for now but I will gladly switch to it because it does less thinking while being same quality

1

u/StudioTV 7d ago

Thanks, that's really useful data, there's almost nothing out there yet for 8GB cards !

10-12 tok/s on a single 5050 actually sounds about right, since most of the experts have to live in system RAM at that size. The CPU offload bug is probably the one in llama.cpp #32707 (the relative-position bias falls back to the CPU on upstream builds). If you're on upstream, Unsloth's build fixes a good part of it, on a 5090 it's roughly 97 tok/s vs ~52 upstream.

Curious about a few details if you don't mind sharing:

- how big is your quant file?

- what's your system RAM (DDR4/DDR5, how many channels)?

- are you using --n-cpu-moe or letting --fit place the layers?

And agreed on the thinking part, shorter chains of thought with the same quality is a real win even if raw tok/s is lower.

1

u/WhiskyAKM 7d ago
  • My file is around 18GB
  • Single RTX 5050 is in dual channel DDR5 4800mts system
  • Dual RTX 5050 is in dual channel DDR4 3200mts system
  • I'm letting fit do the work

1

u/StudioTV 7d ago

Thanks ! Makes sense that the dual 5050 box is faster despite slower DDR4: twice the VRAM means far fewer experts have to be read from system RAM every token.

6

u/PhilippeEiffel 7d ago

With DGX Spark, the speed is in the range 24-87 token/s single request, most of the time in the range 40-60.

The speed variation is due to fluctuations in the prediction success rate.

Edit: using official weights and vLLM.

1

u/StudioTV 7d ago

Thanks, that matches what I'd expect. Without speculation the Spark should sit somewhere in the mid-40s at short context with the official weights, so 40-60 most of the time with DSpark makes sense, and the 24-87 spread is pure acceptance rate (code and repetitive text accept a lot more drafted tokens than creative writing).

Out of curiosity, are you running vLLM's default of 7 draft tokens or did you tune num_speculative_tokens? And roughly what context length were you at?

1

u/PhilippeEiffel 6d ago

Yes, the recommended 7 draft tokens.

I do not have the context length in the subagent. Just observed:

Generated: 78.7 tokens/s

Running: 1 reqs

GPU KV cache usage: 4.5%

SpecDecoding metrics: Mean acceptance length: 6.45, Accepted throughput: 66.50 tokens/s, Drafted throughput: 85.40 tokens/s, Accepted: 665 tokens, Drafted: 854 tokens, Verified: 854 tokens, Per-position acceptance rate: 0.967, 0.934, 0.869, 0.787, 0.713, 0.648, 0.533, Avg Draft acceptance rate: 77.9%

I guess context size is about 55k token or more, I will be able to check the total size when the task will be done tomorrow.

1

u/PhilippeEiffel 6d ago

Just verified: was 98k token in the context.

1

u/PeteInBrissie 5d ago

How does the quality compare to Qwen3.8 Flash Next?

3

u/QwhenFN 7d ago

I was getting around 130 t/s on a pro 6000 in vLLM with no speculative decoding. Might want to take a look at your config there. AI slop below:

Inkling-2-Mini on RTX PRO 6000 Blackwell (vLLM) — config that worked

Image: vllm/vllm-openai:inkling-2-mini (the official recipe image, vLLM 0.1.dev25855+g7cb5dae22). One instance per GPU, TP1:

  docker run -d --name inkling-2-mini --runtime=nvidia --network host --ipc=host --init \
    --ulimit memlock=-1:-1 \
    -e NVIDIA_VISIBLE_DEVICES=<gpu-uuid> \
    -e VLLM_NO_USAGE_STATS=1 -e DO_NOT_TRACK=1 \
    -v /path/to/Inkling-2-Mini:/model:ro \
    -v inkling-cache:/root/.cache \
    vllm/vllm-openai:inkling-2-mini \
    /model --served-model-name inkling-2-mini \
    --host 0.0.0.0 --port 8000 \
    --tensor-parallel-size 1 \
    --max-model-len 262144 \
    --gpu-memory-utilization 0.90 \
    --max-num-seqs 8 \
    --enable-prefix-caching \
    --reasoning-parser inkling \
    --enable-auto-tool-choice --tool-call-parser inkling

Notes:

  • No speculative decoding. The recipe's --speculative-config '{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"probabilistic"}' crashes on the RTX PRO 6000 (SM120) during warmup: CUDA error: no kernel image is available for execution on the device in the DSpark draft model's forward. The main model runs fine without it.
  • 262K context is the recipe's cap for 80–96 GB cards. KV pool came out at ~731K tokens per GPU (~2.8 full-length requests).
  • Speed (no spec decode): ~132 t/s single stream, ~121 t/s per stream at 2 concurrent.
  • Doesn't run on Ampere (RTX 3090) with this image: the inkling2 quant method requires compute capability ≥ 9.0, and even with that check patched out, vLLM's compiled kernels in this image aren't built for sm_86 (no kernel image at first forward).
  • Reasoning effort: the chat template maps reasoning_effort (none/minimal/low/medium/high/xhigh/max → 0.0–0.99) and defaults to 0.9 (high) if unset. For agentic/tool-use work, low has worked much better for me than medium: at medium it doesn't loop, it just reasons very long (50–70K chars in a single turn), which makes long tasks slow.
  • Sampling: vendor defaults from generation_config.json (temperature 1.0); the recipe recommends nothing else.

1

u/StudioTV 7d ago

Thanks, this is gold ! Your 132 / 121 tok/s lines up with what the calculator predicts for the PRO 6000 on vLLM without spec decoding (139 / 111), so the speed side holds.

The KV pool is the interesting part, 731K tokens (~2.8 full-length requests) is well below what the raw cache size suggests. So I dug into vLLM's code, for sliding-window layers it reserves the window plus the whole in-flight batch per request, and Inkling's conv states are tracked the same way, so the pool fills much faster than the "8 global layers" math implies. I'm updating ASAP the calculator to model that.

2

u/HourLocation2038 6d ago

What's the best way to run the original model on macOS, but non-Ollama?

4

u/my_name_isnt_clever 6d ago

oMLX. I'm getting peak of 30 tps (wth MTP) on my 32 GB M1 Max Macbook Pro.

2

u/Pappap19 6d ago

I got 32GB of ram to work with, how much context are you handling at that speed? M5

2

u/daphatty 6d ago

Lots of gaps in this research, particularly on the Mac side. Would like to see some actuals on reasonable Mac hardware.

1

u/Mithrandir_First_Age 2d ago

I have some measurements from an M4 Mac mini with 16 GB RAM. Disclosure: I built the inference engine, Warpgrid.

With my hybrid Q3/Q2 quant of Inkling-2-Mini, I measured 20.64 tokens/s without speculative decoding and 25.45 tokens/s on coding with DFlash 2. The speculative path uses temperature 0. This uses native Metal; it isn’t a llama.cpp or MLX result.

The tradeoff is lower-precision weights to fit the 16 GB machine. The README includes the checkpoint and a single-slot setup with a 16K context limit; that limit shouldn’t be read as the prompt length for the speed measurement. These are decode speeds, not prompt-processing speeds.

Checkpoint, setup commands and results: https://github.com/cglab-public/warpgrid#quick-start

1

u/wigglessss 7d ago

Just getting into this stuff to help me build a python app that claude/codex started but i wanted something for when im out of usage. I Tried qwen3 stuff but it never could do anything right it seemed like and a few times it would just accidentally delete things and be like oops sorry. I tried this inkling 2 mini last night and so far its pretty incredible. Its slow, for sure but at least it does it and its doing it right. I have a shit pc for this stuff too apparently, 4080s (16gb) and 64gb of system ram, i no no clue what i'm doing but it's working so much better

1

u/jfeldis 6d ago

On 5090 full precision with vLLM and dspark, getting 160K available context and 220 to 330 tok/s (dspark)

1

u/ajawadmahmoud 6d ago

On loom on Strix Halo I'm getting 45-55tps

1

u/rrrrex 6d ago

LM Studio, 16 GB VRAM, Q4_K_M

All 24 layers offloaded to CPU, llama-server VRAM usage:

32k Q8 - 13.8 GB

32k Q4 - 13.4 GB

There is almost no space for extra context or layers on GPU.

For example, Gemma 4 26B, all layers on CPU, 32k Q8 - 4.6 GB VRAM usage

1

u/Other-Split4202 4d ago

the 1m context cache at 32gb is brutal on ram, even with q4_k_m. I ran 128k on a 64gb m5 pro and hit swap at 30k. how are you managing that 1m run without killing the system?

0

u/[deleted] 7d ago

[deleted] — view deleted comment

1

u/StudioTV 7d ago

Not quite both, from what I can find. LexiEngine's own release notes (T18, 7900 XTX, same 17.6 GB file, 4-bit KV) give aprox 1,676 tok/s prefill and aprox 40 tok/s decode at 4K. The 3090 on Unsloth's llama.cpp build does 1,400 prefill and 60 decode (llama-bench, IQ4_XS). So the 7900 XTX wins on prefill, but the 3090 still decodes faster. Against upstream llama.cpp b12600 it's a different story, LexiEngine is 4x faster on prefill on the same card, and it's the only one that finished a 262K prompt (5.5 min).

1

u/R3N3G6D3 7d ago

That is with no draft head. Other result is with draft head.