license: apache-2.0
base_model: derrickNg1412/Inkling-2-Mini-Abliterated-Healed
base_model_relation: quantized
pipeline_tag: image-text-to-text
library_name: gguf
tags:
- gguf
- llama.cpp
- imatrix
- abliterated
- uncensored
- kl-healed
- dpo
- moe
- inkling2_loop
- multimodal
language: - en
Inkling-2-Mini-Abliterated-Healed — GGUF
Official llama.cpp GGUF quantizations of derrickNg1412/Inkling-2-Mini-Abliterated-Healed — an abliterated, refusal-locked KL-healed (Phase 5A), and on-policy thinking-preserving DPO-refined (Phase 5B) build of thinkingmachines/Inkling-2-Mini (26.4B total MoE / 24 physical layers / 48 logical loop passes / 1M context / multimodal vision), built on top of nokeepai/Inkling-2-Mini-Unbound's abliteration/edit.pt.
All GGUFs were built using ggml-org/llama.cpp (b12631+, inkling2_loop support) with ggml-org's official imatrix.gguf importance matrix, locking all 20 edited attn_output (wo_ud) matrices at Q8_0 so 3-bit and 4-bit compression never degrades the abliteration or healing, and live GPU smoke-tested on every file.
How This Model Was Built
- Bit-Exact Abliteration Base (
edit.pt): Reconstructednokeepai/Inkling-2-Mini-Unbound's 20 BF16attn.wo_udtensors (layers4–23) and verified SHA-256 byte-identity againstabliteration/MANIFEST.json. - Phase 5A — Refusal-Locked KL-Healing (
0.013%of params): Trained a rank-32 LoRA exclusively on those 20wo_udtensors to match the original base model's probabilities on harmless prompts while projecting every gradient and weight step orthogonal to the refusal directionu_l(max|uᵀ ΔW| = 4.07e-10). - Phase 5B — On-Policy Thinking-Preserving DPO: Sampled 320 on-policy thinking+answer candidates (
effort=0&0.9), built 47 completehit_eos=Truecontrastive pairs withHarmBench-Llama-2-13b-cls+ mid-answer disclaimer pivot penalties, and trained a refusal-locked length-normalized DPO LoRA (0.5×loop-core scaling on 3×-visited layers6–17, joint benign KL tether) so sensitive prompts stop rambling in<|content_thinking|>without bringing refusals back (0/64harmful refusals,0/32borderline over-refusals). - Lossless Patch &
Q8_0-Locked Quantization: Binary-swapped only the 20 healed BF16attn_outputtensors intoggml-org/Inkling-2-Mini-GGUF's BF16 GGUF (all 684 other tensors SHA-256 byte-identical) and quantized withimatrix.ggufwhile lockingattn_output=Q8_0.
Hardware Compatibility & Quantization Guide
| File | Size | Precision Layout | Recommended Hardware |
|---|---|---|---|
Inkling-2-Mini-Abliterated-Healed-Q8_0.gguf |
27.82 GB | Q8_0 experts / Q8_0 attn_output |
32 GB+ VRAM (RTX 5090 / A100) or 36–64 GB Mac (Near-lossless) |
Inkling-2-Mini-Abliterated-Healed-IQ4_NL.gguf |
17.63 GB | IQ4_NL (L0–19) / Q8_0 (L20–23 & attn_output) |
24 GB VRAM (RTX 3090 / 4090 / L4) — Exact ggml-org gold recipe (best 4-bit) |
Inkling-2-Mini-Abliterated-Healed-Q4_K_M.gguf |
17.56 GB | Q4_K_M experts / Q8_0 attn_output |
24 GB VRAM or 32 GB Mac — Classic balanced 4-bit |
Inkling-2-Mini-Abliterated-Healed-IQ4_XS.gguf |
14.47 GB | IQ4_XS / IQ4_NL experts / Q8_0 attn_output |
16 GB VRAM (RTX 4060 Ti 16GB / 4080 / 5080 / T4 with -ctk q8_0 -ctv q8_0) |
Inkling-2-Mini-Abliterated-Healed-IQ3_M.gguf |
12.98 GB | IQ3_M / Q5_0 (L0–19) / IQ4_NL (L20–23) / Q8_0 attn_output |
16 GB VRAM (long context), 12 GB VRAM (partial MoE offload), or 4–8 GB VRAM (full MoE offload) |
mmproj-Inkling-2-Mini-BF16.gguf |
0.64 GB | BF16 vision projector (unchanged from Base) |
Optional for image input (--mmproj) |
mmproj-Inkling-2-Mini-Q8_0.gguf |
0.35 GB | Q8_0 vision projector (unchanged from Base) |
Optional lightweight vision projector (--mmproj) |
Runtime Compatibility Notes
- Supported:
llama.cppb12631+(includesinkling2_loopsupport from PR #32694 & #32704) and Unslothllama.cpp. - Ollama: Native
inkling2_loopsupport in Ollama0.40.17targets Apple Silicon Macs; Windows/Linux Ollama builds may reportunknown model architecture 'inkling2_loop'until upstream updates land. - KV Cache: Budget extra VRAM for context length; using
-ctk q8_0 -ctv q8_0cuts KV cache memory in half with minimal quality loss.
Known Upstream llama.cpp Bug (#32710) — Required Fix for CPU MoE Offload on CUDA
Important: In current
llama.cppbuilds (b12631–b12633), combining CUDA with CPU-offloaded MoE experts (-ot "...ffn_.*_exps=CPU") triggers an upstreaminkling2_loopevaluation bug (ggml-org/llama.cpp#32710) whenever a prompt or multi-turn history reaches 32+ tokens:
- Symptom: Short first turns (<32 tokens) work normally, while longer prompts or Turn 2+ suddenly output repeating
????/ garbage tokens or hang in a runaway loop untilmax_tokensdue toNaNactivations in the host-to-CUDA--op-offloadpath.- Fix: Pass
--no-op-offloadwhenever using-ot ...=CPUon CUDA (alternatively-ub 16). For single-user local setups on 12–16 GB GPUs, also add-np 1(guarantees multi-turn KV cache reuse and saves ~400+ MB VRAM) and--repeat-penalty 1.08 --min-p 0.05 --top-p 0.92onIQ3_M.- (This bug does not affect full-GPU setups where
-otis not used, or pure CPU inference.)
How to Use (llama.cpp b12631+)
Always pass
--jinjaso Inkling's native thinking (<|content_thinking|>) and OpenAI-compatible tool-calling (<|content_invoke_tool_json|>) templates work properly.
1. 24 GB GPU (RTX 3090 / 4090 / L4) — Best 4-Bit Quality (IQ4_NL)
llama-server -hf derrickNg1412/Inkling-2-Mini-Abliterated-Healed-GGUF:IQ4_NL \
--mmproj mmproj-Inkling-2-Mini-BF16.gguf \
-ngl 99 -c 16384 --jinja --host 127.0.0.1 --port 8080
2. 16 GB GPU (RTX 4060 Ti 16GB / 4080 / 5080 / T4) — 100% VRAM (IQ4_XS)
llama-server -hf derrickNg1412/Inkling-2-Mini-Abliterated-Healed-GGUF:IQ4_XS \
-ngl 99 -c 8192 -ctk q8_0 -ctv q8_0 --jinja --host 127.0.0.1 --port 8080
3. 12 GB GPU (RTX 2060 12GB / 3060 12GB / 4070) — Partial MoE Offload (IQ3_M)
Keeps all attention layers, short-convs, routers, KV cache, and 16/24 layers of MoE experts in VRAM while offloading only layers 0–7 MoE experts to system RAM:
llama-server -hf derrickNg1412/Inkling-2-Mini-Abliterated-Healed-GGUF:IQ3_M \
-ngl 99 -np 1 -ot "blk\.[0-7]\.ffn_.*_exps=CPU" --no-op-offload \
-c 8192 -ctk q8_0 -ctv q8_0 --repeat-penalty 1.08 --min-p 0.05 --top-p 0.92 --jinja --host 127.0.0.1 --port 8080
4. 4 GB – 8 GB GPU — Full MoE Expert Offload (~4 GB VRAM + 16 GB RAM)
Because Inkling 2 Mini only activates 8 of 128 experts per token, all non-expert weights fit in ~3.5–4 GB VRAM:
llama-server -hf derrickNg1412/Inkling-2-Mini-Abliterated-Healed-GGUF:IQ3_M \
-ngl 99 -np 1 -ot "ffn_.*_exps=CPU" --no-op-offload \
-c 4096 -ctk q8_0 -ctv q8_0 --repeat-penalty 1.08 --min-p 0.05 --top-p 0.92 --jinja --host 127.0.0.1 --port 8080
5. Tool Calling & OpenCode / OpenAI SDK Usage
With --jinja, llama-server exposes an OpenAI-compatible /v1/chat/completions endpoint on http://127.0.0.1:8080/v1 with native tools / tool_calls support:
from openai import OpenAI
client = OpenAI(base_url="http://127.0.0.1:8080/v1", api_key="local")
resp = client.chat.completions.create(
model="inkling",
messages=[{"role": "user", "content": "Explain how a pin-tumbler lock works."}],
)
print(resp.choices[0].message.content)
License & Attribution
- License: Apache-2.0 (inherited from
thinkingmachines/Inkling-2-Mini). - Base Model: thinkingmachines/Inkling-2-Mini — Thinking Machines Lab (Apache-2.0)
- Base Abliteration Edit & Eval Harness: nokeepai/Inkling-2-Mini-Unbound (
abliteration/edit.pt, Apache-2.0) - Full Native Checkpoint & Adapters: derrickNg1412/Inkling-2-Mini-Abliterated-Healed
- Quantization &
imatrix.gguf: ggml-org/llama.cpp (b12631) & ggml-org/Inkling-2-Mini-GGUF
Disclaimer
This is an uncensored community build. It follows instructions that the base model would refuse and is provided as-is, without warranty, under the Apache-2.0 license. You are responsible for how you use this model and for complying with all applicable laws.