Inkling 2 Mini: 3-bit GGUF for ik_llama.cpp (16 GB GPUs)
A 10.47 GiB quantization of Thinking Machines' Inkling 2 Mini (128-expert MoE, Apache-2.0) that runs fully on a 16 GB GPU with up to 128K context. Decode is ~179 tok/s on an RTX 5070 Ti with the engine below.
Unmaintained, and it needs a specific engine. This file only runs on Mcniiby/ik_llama.cpp-mcniiby, an unmaintained research fork of ik_llama.cpp, provided as-is with no support or updates. It does not load in mainline llama.cpp, stock ik_llama.cpp, Ollama or LM Studio:
- IQ3_QT is the fork's own trellis quant type (IQ4_KT / IQ4_KS are ik_llama.cpp types).
- The output head is trimmed (see below); the fork maps head rows back to token ids (
inkling2_loop.output_token_ids).
Files
| File | Size | Notes |
|---|---|---|
Inkling-2-Mini-IQ3_QT.gguf |
10.47 GiB (11,247,029,632 bytes) | sha256 in SHA256SUMS |
recipe/inkling2-calib-chat.txt |
0.9 MB | the LDLQ calibration text (360 conversations) |
recipe/inkling2-vocab-keep.json |
1.5 MB | the output-head keep-list (token ids) |
Quantization recipe
From ggml-org's BF16 GGUF. Routed experts were solved with LDLQ (GPTQ-style error feedback over activation
Hessians) into IQ3_QT, from activations captured with llama-gptq-capture; the rest was quantized by
ik_llama.cpp's llama-quantize. Both used ggml-org's published importance matrix. The whole pipeline, with the
solver and every command, is in the engine repo:
docs/inkling/QUANT-RECIPE.md.
| Tensors | Type | Size |
|---|---|---|
Routed experts gate+up (ffn_gate_up_exps, all 24 layers) |
IQ3_QT | 5.96 GiB |
| Routed experts down, looped core layers 6-17 (run 3x a token) | IQ4_KT | 1.91 GiB |
| Routed experts down, layers 0-5 and 18-23 | IQ3_QT | 1.50 GiB |
Attention (attn_q/k/v/gate/output/rel) |
IQ4_KS | 0.32 GiB |
| Token embedding (full vocab) | Q6_K | 0.35 GiB |
| Output head, trimmed 201,024 -> 157,655 rows | Q6_K | 0.28 GiB |
| Router, loop controllers, convolutions, clips, rel-bias, norms | F32 | 0.14 GiB |
Calibration (all public or self-made from public text).
- Importance matrix: ggml-org's
imatrix.gguffor Inkling 2 Mini (1,770 chunks), converted to ik's.datformat unchanged. - LDLQ activations: 512 x 256 tokens of chat-formatted text: prompts from IFEval, GSM8K, HotpotQA and ARC-Challenge,
answered by a local Gemma 4 model (half with thinking), rendered with Inkling's chat template. The file is in
recipe/; its prompts come from IFEval (Apache-2.0), GSM8K (MIT), HotpotQA and ARC (CC BY-SA 4.0). The answers were generated by Gemma 4 26B-A4B (Apache-2.0).
Output-vocab trim. The head drops 42,403 tokens that decode to 2+ characters, contain a letter outside Latin/Greek, and occur fewer than 3 times in ~89M tokens of English Wikipedia, public calibration text and open source code. Single characters, bytes and special tokens always stay, so any string can still be produced. The tokenizer and embeddings are untouched, so input in any language reads normally. Removed tokens get logit -inf.
Quality
wikitext-2 test, 32 x 512 tokens (the same chunks for every row), against the BF16 model:
| GGUF | Size | bpw | PPL | Mean KLD | 99th pct KLD | Same top token | Engine |
|---|---|---|---|---|---|---|---|
| BF16 (reference) | 48.6 GiB | 16.0 | 6.411 | mainline llama.cpp | |||
| ggml-org IQ4_NL | 16.4 GiB | 5.41 | 6.428 | 0.0093 | 0.087 | 95.8% | this fork |
| Inkling-2-Mini-IQ3_QT (this fork's GGUF) | 10.5 GiB | 3.45 | 6.549 | 0.0278 | 0.242 | 93.1% | this fork |
Unsloth UD-IQ3_XXS (Mainline_Support/, 11-22 upload) |
10.9 GiB | 3.58 | 6.548 | 0.0288 | 0.264 | 92.7% | mainline llama.cpp 94f3af3d0 |
bpw over the full model's 26.07B weights. KLD and same-top come from llama-perplexity --kl-divergence against the
BF16 logits; the BF16 run used mainline llama.cpp with the experts in system RAM. Unsloth's file has NVFP4
experts, which this fork doesn't support, so it was scored with mainline llama.cpp.
The engine port matched mainline llama.cpp on the same IQ4_NL file: PPL 3.7136 vs 3.7066 on a public mixed text, with matching greedy text.
Speed (RTX 5070 Ti 16 GB, CUDA 12.8, the engine above)
llama-bench -fa 1 -ctk q8_0 -ctv q8_0 -ub 512 -ngl 99, nothing else on the GPU:
| Measure | tok/s |
|---|---|
| Decode tg128 | 179.4 ± 3.5 |
| Decode at 4K / 16K / 32K context | 175.5 / 158.4 / 148.4 |
| Prefill pp4096 / pp32768 | 3,058 / 2,809 |
VRAM: -c 131072 with q8_0 KV peaked at 14.8 of 16.3 GB at full depth (desktop on the same GPU, ~1.5 GB free);
-c 98304 left ~1.8 GB free at 90K tokens filled.
Usage
llama-server -m Inkling-2-Mini-IQ3_QT.gguf -c 131072 -np 1 -ngl 99 -fa on --swa-compress -ub 512 -b 512 \
-ctk q8_0 -ctv q8_0 --jinja -ctx-ckpt 2 -ctx-ckpt-i 0 \
--spec-type suffix:n_max=16,n_min=2,suffix_min_match_len=5,suffix_max_depth=64
--swa-compressis needed for long contexts on 16 GB; use q8_0 KV.- Sampling defaults come from the GGUF as converted. Thinking effort is a chat-template argument (default 0.9), e.g.
--chat-template-kwargs '{"reasoning_effort": "low"}'or per request. - Build instructions for RTX 30/40/50 are in the engine's README.
Settings: the llama-server command above with -c 32768; OpenAI chat API, temperature 1.0, top_k 50,
top_p 1.0, seed 1, chat_template_kwargs: {"reasoning_effort": "low"}. The reasoning (returned separately as
reasoning_content) is not shown.
Reasoning. Prompt:
A train leaves at 9:40 and arrives at 13:05. It stops three times for 7 minutes each. What is its average speed in km/h over the time it is actually moving, if the trip is 228 km? Give the answer to one decimal place.
Answer (after 773 characters of reasoning):
Total elapsed time: 9:40 → 13:05 = 3 h 25 min = 205 min
Stopped time: 3 × 7 = 21 min
Moving time: 205 − 21 = 184 min = 184/60 h
Average speed = 228 / (184/60) ≈ 74.3 km/h
Coding. Prompt:
Write a Python function
longest_palindrome(s: str) -> strthat returns the longest palindromic substring of s. Keep it under 25 lines and state its time complexity in one sentence.
Answer (after 1,146 characters of reasoning):
def longest_palindrome(s: str) -> str:
if not s:
return ""
start, max_len = 0, 1
def expand(l, r):
nonlocal start, max_len
while l >= 0 and r < len(s) and s[l] == s[r]:
if r - l + 1 > max_len:
start, max_len = l, r - l + 1
l -= 1
r += 1
for i in range(len(s)):
expand(i, i) # odd length
expand(i, i + 1) # even length
return s[start:start + max_len]
Time complexity: O(n²), with O(1) extra space excluding the returned substring.
Summarization. Prompt:
Summarize this text in three short bullet points:
The 1933 Treasure Coast hurricane was the second-most intense tropical cyclone to strike the United States during the active 1933 Atlantic hurricane season. The eleventh tropical storm, fifth hurricane, and the third major hurricane of the season, it formed east-northeast of the Leeward Islands on August 31. The tropical storm moved rapidly west-northwestward, steadily intensifying to a hurricane. It acquired peak winds of 140 miles per hour (225 km / h) and passed over portions of the Bahamas on September 3, including Eleuthera and Harbour Island, causing severe damage to crops, buildings, and infrastructure. Winds over 100 mph (161 km / h) affected many islands in its path, especially those that encountered its center, and many wharves were ruined. Subsequently, it weakened and made landfall at Jupiter, Florida, early on September 4 with winds of 125 mph (201 km / h). The hurricane moved across the state, passing near Tampa before moving into Georgia and dissipating. In Florida, the strong winds of the cyclone blew buildings off their foundations, and numerous trees were prostrated in citrus groves. The Treasure Coast region received the most extensive destruction, and Stuart, Jupiter, and Fort Pierce were heavily damaged. Inland, the cyclone weakened rapidly but produced prodigious amounts of rain, causing a dam to collapse near Tampa. The storm caused $ 3 million in damage (1933 USD) after damaging or destroying 6,848 homes. Unusually, the storm hit Florida less than 24 hours before another major hurricane bearing 125-mile-per-hour (201 km / h) winds struck South Texas; never have two major cyclones hit the United States in such close succession.
Answer (after 886 characters of reasoning):
- Intense storm: formed Aug. 31, reached 140 mph, struck Bahamas and landed at Jupiter, Florida Sept. 4 with 125 mph winds, then moved through Florida and Georgia.
- Heavy damage: ruined crops, wharves, and buildings; Treasure Coast hit hardest—Stuart, Jupiter, Fort Pierce; 6,848 homes lost and ~$3 million damage.
- Inland rain + rare pairing: heavy rain collapsed a dam near Tampa, and it hit Florida under 24 hours before another major hurricane struck South Texas—an unusual close succession.
Limitations
- 3-bit experts. Expect some quality loss against BF16; see the KLD table.
- English-focused head. Output in non-Latin scripts falls back to shorter tokens (slower, sometimes different wording). Input is unaffected.
- Tested on one GPU (RTX 5070 Ti). RTX 30/40 builds skip the sm_90-only kernels and are untested on real cards.
- No DSpark speculative decoding; suffix speculation is supported.
- Everything in Thinking Machines' model card about intended use and limitations applies.
License and credits
Apache-2.0, as the base model. Model and tokenizer by Thinking Machines. BF16 conversion and importance matrix by ggml-org. Quant types by ik_llama.cpp (Iwan Kawrakow) and this fork. Quantized and validated with AI coding agents (Claude Code) under my direction.