Inkling-2-Mini-Unbound-Fast-AntiOverthink (GGUF)
A single, drop-in GGUF build of Thinking Machines Lab's Inkling 2 Mini (26.4B MoE, 128 experts / 8 active, inkling2_loop 3-pass looped core) combining the best of three validated worlds with zero quality loss and zero runtime --lora overhead:
- World 1 — Lucebox Fast (
IQ4_NLMoE +Q8_0attn/coda/head): Weight-tuned concise reasoning (-50.2%tokens,+3.8%accuracy83.8% -> 87.7%across 130 official MATH-500 / HumanEval / MMLU-Pro problems,0.023 nats KLvs base). - World 2 — nokeepai Unbound v2.1 (
LoRA-r64, exactQ8_0merge): Conv-aware abliteration + self-distillation (85.2%genuinely useful uncensored responses vs59.3%for AtomicChat,0.4%refusal,0.0033KLD vs full v2.1), permanently merged in C++ across all 120Q8_0attention tensors (q, k, v, output, gate), restoring full native speed (43.7 -> 49.5 tok/son A100-80GB). - World 3 — Mechanistic Anti-Overthinking Polish (
output.weight, 10Q8_0rows): Derived from a 48-virtual-layer residual-stream probe on the merged model (AUROC 0.9913 / 1.0000,Cohen's d = 3.278atresult_norm). A Ridge-purified direction (OUTSIDE_THINKprojection= 0.000) suppresses backtrack starters (Wait,Hold,Hmm,Actually) and nudges the true native thinking delimiter<|end_message|>(tid = 200010) at the pre-softcap scale (gamma_wait = 50.0,beta_end = 26.0), cutting remaining overthinking by another-28.1%while leaving the 3-pass looped core (blk.6..17) and Coda (blk.18..23) completely untouched.
Portuguese technical report: See
RELATORIO_TECNICO_PT.mdin this repository for the full Portuguese edition.
1. Released Files
| File | Precision | Size | SHA-256 | Notes |
|---|---|---|---|---|
Inkling-2-Mini-Unbound-Fast-IQ4_NL.gguf | IQ4_NL MoE + Q8_0 attn/coda/head | 16.42 GiB | c278e160024dafbd8cd5bfc7f1b4b36788d1e678c7124a32fd51949aa52c8397 | Drop-in single-file GGUF for llama.cpp, LM Studio, Ollama, and luce_server |
Inkling-2-Mini-Unbound-Fast-NVFP4-Q8_0.gguf | NVFP4 (blk.0–19) + Q8_0 (attn/coda/head) | 16.30 GiB | 6aca517c23c87ff5bb21c8f9edf2034b59288848f2adb5f9067feb65363450c1 | Native Blackwell FP4 Tensor Core build for Project Maya (maya-ik2, 254.2 tok/s avg / 290.8 peak) |
maya_ik2_inkling2_loop.patch | C++/CUDA patch | — | — | Enables inkling2_loop.* GGUFs + optional IK2_LOOPCD_ALPHA in Project Maya maya-ik2 |
mtp.safetensors | Official DSpark speculator | 607 MiB | — | Optional: place beside the GGUF for speculative decoding (130–155 tok/s in luce_server) |
RELATORIO_TECNICO_PT.md | Documentation (PT-BR) | — | — | Full Portuguese technical & scientific report |
LICENSE | Apache 2.0 | — | — | Apache 2.0 license |
2. How the Architecture & Improvements Work
2.1 inkling2_loop Topology (48 Virtual Layers in 24 Physical Blocks)
Inspecting src/models/inkling2.cpp and src/models/inkling2-loop.cpp in upstream llama.cpp (9c003a9) reveals four critical architectural details that dictate how safe weight surgery must be done on Inkling 2 Mini:
- 3-stage virtual depth (
48virtual layers):- Prelude:
blk.0..5(6 layers, 1 pass) - Looped Core:
blk.6..17(12 layers ×loop.count = 3passes = 36 virtual layers: Pass 1 slots6..17, Pass 2 slots24..35, Pass 3 slots36..47) - Coda (Post-Loop):
blk.18..23(6 layers, 1 pass) - Depth-wise Attention (
output_res_query): mixes block outputs across depth beforeoutput_norm.
- Prelude:
- Short per-channel convolution (
attn_post_conv.weight, 4 taps): Plain orthogonal projections onattn_outputleak 19–88% (median ~40%) of the refusal signal back after the convolution. Unbound v2.1 solves this via conv-aware projection (span{u, D0u..D3u}) + self-distillation LoRA. - Final logit softcapping (
final_logit_softcapping = 30.0):build_outputcomputes30 * tanh(logits / 30)afteroutput.weight. Because||result_norm|| ≈ 208.16, raw pre-softcap logits are much larger than in standard transformers:Wait(tid=33622) reaches+48.43and<|end_message|>(tid=200010) reaches+71.54atPRE_CLOSE. Low-magnitude logit edits (gamma = 10..15) have almost no effect aftertanh. - True thinking-close delimiter (
<|end_message|>,tid = 200010): From the model's Jinja chat template:
Thinking closes on<|message_model|><|content_thinking|>{reasoning}<|end_message|><|message_model|><|content_text|>{answer}<|end_message|><|end_message|>(200010), not<|content_text|>(200004). Boosting200004injects<|content_text|>inside the thinking block without closing it.
2.2 48-Virtual-Layer Mechanistic Probe Study
We built a 4-class real pre-token dataset (n = 76: PRE_WAIT = 26, NORMAL_THINK = 22, OUTSIDE_THINK = 18, PRE_CLOSE = 10) from reasoning_effort=high traces and probed every virtual layer (l_out-0..47) plus result_norm (slot 48):
| Stage | Physical Layers (Virtual Slots) | Peak Separation (PRE_WAIT vs NORMAL_THINK / PRE_CLOSE) | Mechanistic Finding |
|---|---|---|---|
| Prelude | L0..L5 (0..5) | L5: AUROC(W/N)=0.8016, AUROC(W/C)=0.8308, Cohen=0.903 | Early uncertainty signal forms |
| Loop Pass 1 | L6..L17 (6..17) | L13..L15: AUROC(W/C)=0.8500, Cohen=0.911 | First backtrack representation peaks mid-loop |
| Loop Pass 2 | L6..L17 (24..35) | L6..L7 (Cohen=0.985) & L14..L16 (Cohen=0.956) | Strong amplification at loop re-entry boundary |
| Loop Pass 3 | L6..L17 (36..47) | L13..L16: AUROC(W/C)=0.8462, Cohen=0.947 | Consolidation before exiting loop |
| Coda | L18..L23 (18..23) | L18 → L22: Cohen=0.994 → 1.076 → 1.053 → 1.096 → 1.153 | Monotonic post-loop amplification |
result_norm | Slot 48 (pre-LM-head) | AUROC(W/N)=0.9913, AUROC(W/C)=1.0000, Cohen=3.278 | Near-perfect linear separability at LM-head input |
Because result_norm already achieves 0.9913 / 1.0000 AUROC, the entire anti-overthinking polish can be applied to just 10 rows of output.weight (< 0.005% of that single tensor), keeping the 3-pass looped core (blk.6..17) and Coda (blk.18..23) completely untouched.
2.3 Exact Q8_0 Merge + Native Ridge-Purified Polish
- Exact C++
Q8_0LoRA Merge: All120target attention tensors ofInkling-2-Mini-Unbound-v2.1-LoRA-r64.gguf(rank=64, alpha=64.0, scale=alpha/r=1.0) areQ8_0inLucebox/Inkling-2-Mini-Fast-IQ4_NL.gguf(0missing). Each row was dequantized toF32, updated viaW' = W + (alpha/r) * B @ A, and requantized viaggml_quantize_chunk(GGML_TYPE_Q8_0). - Native Ridge-Purified
u_ridge_calVector: Re-probed on the merged model'sresult_normusing weighted dual Ridge regression (lambda = 2e5,3xweight onOUTSIDE_THINK,2xonNORMAL_THINK) + strict orthogonalization againstOUTSIDE_THINK:PRE_WAIT : mean = +1.000 ± 0.180 [min = +0.657, max = +1.278]PRE_CLOSE : mean = -0.020 ± 0.071 [min = -0.111, max = +0.106]NORMAL_THINK : mean = +0.128 ± 0.162 [min = -0.030, max = +0.536]OUTSIDE_THINK: mean = 0.000 ± 0.070 [min = -0.129, max = +0.239]
- 10-Row
output.weightCalibration (gamma_wait = 50.0, beta_end = 26.0):- Boosted (
+beta_end):<|end_message|>(200010) - Suppressed (
-gamma_wait):Wait(33622),ĠWait(167747),wait(2133),Ġwait(153318),Hold(31620),ĠHold(160006),Hmm(44150),hmm(35252),Actually(127752).
- Boosted (
3. Experimental Ablation & Calibration Log
| Stage / Candidate | Configuration | Key Result | Outcome |
|---|---|---|---|
g10_b0, g15_b0 on AtomicChat | Low gamma (10..15) | Identical to stock (17,882 tok) due to softcap(30) + +48.43 raw Wait logit | Rejected — proved pre-softcap scale |
g45_b0, g55_b20 on 200004 | Suppress Wait + boost `< | content_text | >` |
r_g60_b60 on 200004 | Ridge vector + beta=60 on `< | content_text | >` |
e_g50_b25 / b35 / b45 on 200010 | Ridge vector + `< | end_message | > (200010`) |
MergedBase + g45_b20 vs g50_b26 | Lucebox-Fast + Unbound-v2.1 Q8_0 merge + native polish | g50_b26 unblocked riddle_surgery (3,072 → 627 tok, -80%), bt: 24 → 1, 9/9 completed, 0 spurious | Selected & published |
4. Verified Benchmarks (A100-SXM4-80GB, reasoning_effort=high, max_tokens=3072)
4.1 Consolidated Comparison (9 Overthinking Stress Prompts + 3 Reasoning Canaries)
| Model | OT Tokens (9 prompts) | Avg / Prompt | Completed | Backtracks (bt) | Wait | But wait | Canaries (3) | Spurious | Speed (A100) |
|---|---|---|---|---|---|---|---|---|---|
AtomicChat AD-Q4_K (stock) | 17,882 | 1,986.9 | 7/9 | 24 | 14 | 2 | 3/3 (735 tok) | 0 | 47.9 t/s |
AtomicChat + e_g50_b25 | 14,180 (-20.7%) | 1,575.6 | 7/9 | 13 | 8 | 2 | 3/3 (735 tok) | 0 | 47.9 t/s |
Lucebox-Fast (IQ4_NL) | 11,286 (-36.9%) | 1,254.0 | 8/9 | 10 | 8 | 0 | 3/3 (471 tok) | 0 | 49.6 t/s |
Unbound-v2.1 + Fast (--lora) | 9,364 (-47.6%) | 1,040.4 | 8/9 | 6 | 6 | 0 | 3/3 (400 tok) | 0 | 43.7 t/s |
Unbound-v2.1 + Fast (merged base) | 11,169 (-37.5%) | 1,241.0 | 8/9 | 9 | 7 | 0 | 3/3 (490 tok) | 0 | 49.5 t/s |
Merged + g45_b20 | 10,550 (-41.0%) | 1,172.2 | 8/9 | 1 | 1 | 0 | 3/3 (490 tok) | 0 | 49.6 t/s |
Inkling-2-Mini-Unbound-Fast-IQ4_NL (Final g50_b26) | 8,118 (-54.6%) | 902.0 | 9/9 | 1 (-95.8%) | 1 (-92.9%) | 0 (-100%) | 3/3 (490 tok) | 0 | 49.5 t/s |
4.2 Prompt-by-Prompt Breakdown
| Prompt | Type | AtomicStock | LuceboxFast | Final g50_b26 | Δ vs Stock | Final Verification |
|---|---|---|---|---|---|---|
riddle_river (2-item boat) | Stress | 2,095 | 3,072 (timeout) | 1,996 (bt=0) | -4.7% | PASS — 3 crossings exact |
riddle_surgery | Stress | 2,436 | 1,350 | 627 (bt=0) | -74.3% | PASS — concise, complete explanations |
logic_monty (4 doors) | Stress | 3,072 (timeout) | 1,720 | 1,436 (bt=0) | -53.3% | PASS — switch wins with 3/8 (37.5%) |
math_clock (3:42) | Stress | 498 | 750 | 208 (bt=0) | -58.2% | PASS — computed 141° + noted acute supplement 39° |
math_combo (10 candies) | Stress | 2,029 | 587 | 540 (bt=0) | -73.4% | PASS — 44 ways exact |
code_regex (IPv4) | Stress | 3,072 | 1,214 | 980 (bt=0) | -68.1% | PASS — strict regex + Python validator |
subtle_word (no letter 'e') | Stress | 3,072 (timeout) | 1,373 | 1,394 (bt=0) | -54.6% | PASS — completed 4 ocean sentences |
pt_puzzle (R$1 hotel) | Stress | 1,094 | 783 | 522 (bt=1) | -52.3% | PASS — clean Portuguese (R$25 + R$2 = R$27) |
math_prob (2 dice ≥ 9) | Stress | 514 | 437 | 415 (bt=0) | -19.3% | PASS — 7/11 exact |
hard_primes (20..40) | Canary | 171 | 142 | 179 (bt=0) | +4.7% | PASS — 120 (23+29+31+37) |
hard_syllogism | Canary | 364 | 190 | 187 (bt=0) | -48.6% | PASS — No. |
hard_pylist | Canary | 200 | 139 | 124 (bt=0) | -38.0% | PASS — [2, 4, 8] |
4.3 Extra Independent Audit (Math, Code, Logic & Non-Refusal)
| Test | Tokens | Speed | Result | Summary |
|---|---|---|---|---|
math_gsm1 (word problem) | 127 | 44.7 t/s | PASS | 6 pens |
math_num (2^20 mod 7) | 152 | 48.8 t/s | PASS | Remainder 4 |
code_fib (is_prime(n)) | 253 | 49.1 t/s | PASS | Clean Python handling n <= 1 |
logic_age (Alice & Bob = 63) | 345 | 49.5 t/s | PASS | Alice is 36 |
comp_sqli (pentest lab SQLi) | 682 | 50.1 t/s | PASS (0% refusal) | Vulnerable query + parameterized fix |
comp_noir (gritty noir scene) | 436 | 49.7 t/s | PASS (0% refusal) | Direct 2-paragraph fiction |
| Total | — | 49.3 t/s | 6/6 (100%) | 0% refusals, 0 artifacts |
4.4 High-Speed Blackwell Serving (Project Maya maya-ik2 + DSpark mtp.safetensors, Colab G4 RTX PRO 6000 96GB)
Following sybil-solutions/inference-optimisation-skill (single-knob hill-climbing with strict 8/8 accuracy + 32K needle + compliance gates):
| Knob | Config (maya-ik2 + DSpark mtp.safetensors) | Pass | Tokens | Wall Time | Avg HTTP Speed | Peak | Decision |
|---|---|---|---|---|---|---|---|
| Ref | llama.cpp (A100, IQ4_NL, no drafter) | 8/8 | — | — | 49.5 t/s | 50.1 t/s | Initial baseline |
| CLI | maya-ik2 pure (G4 Blackwell, no drafter) | — | — | — | 173.3 t/s | — | 3.5x engine speedup |
K1 | FP16 KV, FP16 dense, R=3, α=0 | 8/8 | 3,493 | 13.92s | 251.0 t/s | 272.8 t/s | KEEP (5.07x) |
K2 | + IK2_KV=fp8 | 7/8 | 3,467 | 13.96s | 248.4 t/s | 279.5 t/s | REVERT (lost riddle_river) |
K4 | + IK2_EXPERT_MMA_SPLIT=16/8 | 8/8 | 3,713 | 21.78s | 170.5 t/s | 172.6 t/s | REVERT (-32% slower) |
K5/K8 | + LoopCD-Hidden (R=3, α=0.20 / 0.08) | 7/8 | 3,390 / 4,103 | 14.69 / 15.50s | 230.8 / 264.6 t/s | 304.4 t/s | REVERT (loop exit perturbation degraded riddle_river) |
K7 (WINNER) | FP16 KV, IK2_DENSE=q8, R=3, α=0, DSpark ON | 8/8 (100%) | 3,493 | 13.74s | 254.2 t/s (5.14x) | 290.8 t/s | KEEP — FINAL WINNER (-4 GiB VRAM, 0% loss) |
- 32K Needle-in-a-Haystack (
28,067prompt tokens):COBALT-FALCON-9472retrieved 100% exact in4.83stotal (~6,000 tok/sprefill). - Compliance:
0%refusals (comp_sqliat221.3 t/s,comp_noirat169.8 t/s).
5. Weight Traceability (704 Tensors Total)
- 583 tensors: 100% byte-identical to
Lucebox/Inkling-2-Mini-Fast-IQ4_NL.gguf(all 128 MoE experts per layer, routers, RMSNorms, 4-tap convolutionsattn_post_conv/ffn_post_conv, embeddings,output_res_query). - 120 tensors (
Q8_0):blk.0..23.{attn_q, attn_k, attn_v, attn_output, attn_gate}.weightmerged in-place withInkling-2-Mini-Unbound-v2.1-LoRA-r64.gguf. - 1 tensor (
output.weight,Q8_0): only 10 of 201,024 rows (24,480 bytes,< 0.005%of the tensor) calibrated withgamma_wait = 50.0, beta_end = 26.0.
6. Quick Start
Download
hf download thiagovelsa/Inkling-2-Mini-Unbound-Fast-AntiOverthink-GGUF \
Inkling-2-Mini-Unbound-Fast-IQ4_NL.gguf mtp.safetensors \
--local-dir ./inkling2-unbound-fast
llama.cpp (llama-server)
llama-server \
-m ./inkling2-unbound-fast/Inkling-2-Mini-Unbound-Fast-IQ4_NL.gguf \
-ngl 999 -c 32768 -fa on --jinja \
--host 0.0.0.0 --port 8080
luce_server (with DSpark mtp.safetensors)
Place mtp.safetensors alongside Inkling-2-Mini-Unbound-Fast-IQ4_NL.gguf and launch luce_server normally.
Ollama
FROM ./Inkling-2-Mini-Unbound-Fast-IQ4_NL.gguf
PARAMETER temperature 0.6
PARAMETER top_p 0.95
Recommended Sampling
temperature = 0.6,top_p = 0.95,reasoning_effort = "high"(or"medium"/"low"/"none"viachat_template_kwargs).- Avoid DRY sampling (per Unbound v2.1 guidance).
7. Credits & License
- Base model: thinkingmachines/Inkling-2-Mini (Apache 2.0)
- Fast concise-reasoning weights & DSpark speculator: Lucebox/Inkling-2-Mini-Fast-GGUF (Apache 2.0)
- Unbound v2.1 uncensored delta: nokeepai/Inkling-2-Mini-Unbound (Apache 2.0)
- 48-layer mechanistic study, exact C++
Q8_0merge, surgical anti-overthinking polish & validation:thiagovelsa