Boosting Inkling 2 Mini to 1038 t/s prefill on a 4070 TiS with llama.cpp tuning
samuel-christlie · reddit · 2026-11-27
A detailed first-hand writeup of running Inkling-2-Mini (Unsloth UD-Q3KXL) on an RTX 4070 TiS 16GB, lifting prefill from 262 t/s (llama.cpp master defaults) to 1038 t/s at 43 t/s decode.
Key techniques
- Offload MoE FFN expert layers to CPU via -ot "blk\.([0-5]|1[89]|2[0-3])\.ffn.exps=CPU" with -ngl 99
- Critical flags: -b 1024 -ub 1024 (default 256 OOMs at 131k), -fa on, Q80 KV cache, --moe-cache-mib 2000
- Keeping layers 0-3 on GPU adds a small further gain
Benchmarks (131k context)
- Custom config: 1038 pp / 43 tg, 14.8GB peak VRAM; still 752 pp at 131k depth
- Master defaults: 262 pp / 28 tg, dropping to 84 pp at 131k; Q4KM OOMs entirely
- Real-world use (Hermes Agent, 64k context): 1026 t/s prefill, 40 t/s decode
Full llama-server and llama-bench commands included; author plans to submit a PR.
More from coding & agent
- Next Opus model reportedly one-shots a destruction game with its own WASM physics engine — LightVelox · 2026-11-27
- Dev burns leftover weekly Codex tokens on his SuperMoog synth side project — Yamapama · 2026-11-27
- Dev builds SuperMoog VST3 synth with ~700 MCP-controllable variables using Codex — Yamapama · 2026-11-27
- Mirendil launches Lor: an agent platform running hundreds of parallel AI 'research interns' — Gradio · 2026-11-27
- SuperMoog author: no Mac build yet since compiling macOS binaries needs a Mac — Yamapama · 2026-11-27
- Sandbox test of 10 closed-source AI tools: none silent by default, Cursor ignores Privacy Mode — mkheck · 2026-11-27