Inkling-2-Mini-Cyber (GGUF + LoRA)
Standalone, zero-hook GGUF builds (IQ4_NL, Q6_K, Q8_0) of a cybersecurity fine-tune of thinkingmachines/Inkling-2-Mini (26.4B total / 3.4B active looped MoE), built for authorized cybersecurity research, red-team engineering, vulnerability analysis, and CTI workflows.
Authorized Research Notice: This model has intentionally reduced refusal behavior on technical security and offensive-cyber prompts so security practitioners can work on authorized assessments, exploit reproduction, detection engineering, and lab simulations without false refusals. It has no additional guardrails layered back on — do not deploy it unfiltered to untrusted end users.

At a Glance
- Surgical weight edit (
0.0065%of parameters): Only 20 of 704 tensors are modified (layers 4..23 self_attn.o_proj,1,720,320LoRA params, spliced at scale1.55). All 128 MoE experts, embeddings, and the vision projector (mmproj-F16.gguf) remain byte-identical to the stock base quants. - Cyber & red-team gains: Cuts
CyberSecEval MITRE-120refusals from100 → 1(68.3%full /75.8%full+partial @ 4K), improvesCTIBench CVE→CWE-100to66.0%(+3.0%over stock,+6.0%overQwen3.8-27B-abliterated), holds92.8%onCyberMetric-500, and produces0/104harmless over-refusals. - Drop-in portable & fast: Runs out of the box in vanilla
llama.cpp, Ollama, and LM Studio with zero custom runtime hooks — available inIQ4_NL(17.63 GB, fits 24 GB VRAM),Q6_K(24.70 GB), andQ8_0(27.82 GB), passes5/5on multi-step agentic tool use (pi_bench), and decodes ~4× faster than 27B dense alternatives. - Honest trade-offs: Compared to stock Inkling-2-Mini, full
HumanEval+(164) dips from93.3%(153/164) to82.9%(136/164, including10token-cap hits;code_16screen remains16/16), withGSM8K-128at91.4%andMMLU-256at78.5%. Non-thinking (reasoning_effort=none) compliance is partial (64.4%on AdvBench vs.95.2%with thinking enabled) — thinking mode (medium) is recommended.
Files in This Repository
| File | Size | Target Hardware / Description |
|---|---|---|
Inkling-2-Mini-Cyber-IQ4_NL.gguf | 17.63 GB | 24 GB VRAM daily driver (benchmarked below; spliced from ggml-org) |
Inkling-2-Mini-Cyber-Q6_K.gguf | 24.70 GB | 32 GB VRAM / 36 GB Apple Silicon sweet spot (spliced from bartowski) |
Inkling-2-Mini-Cyber-Q8_0.gguf | 27.82 GB | 48 GB+ / Mac Studio / DGX Spark max precision (spliced from ggml-org) |
*.gguf.sha256 | 99 B each | Standalone SHA-256 checksums (sha256sum -c ready) |
mmproj-F16.gguf | 639 MB | Stock multimodal vision projector (unchanged from unsloth/Inkling-2-Mini-GGUF) |
adapter/ | 6.89 MB | BF16 PEFT LoRA adapter (r=16, alpha=32) — splice onto any other quant or use with peft |
All three GGUFs are standalone, zero-hook builds spliced at --scale 1.55 with the exact same 20 modified Q8_0 blk.{4..23}.attn_output.weight tensors and byte-identical base MoE experts.
Quickstart (llama.cpp)
# Download your preferred quant (IQ4_NL, Q6_K, or Q8_0) + vision projector
hf download sergiogmn/Inkling-2-Mini-Cyber-GGUF \
Inkling-2-Mini-Cyber-IQ4_NL.gguf mmproj-F16.gguf \
--local-dir ./models
# Serve with llama-server (OpenAI-compatible API on :8080)
llama-server \
-m ./models/Inkling-2-Mini-Cyber-IQ4_NL.gguf \
--mmproj ./models/mmproj-F16.gguf \
-ngl 99 -c 32768 --jinja --port 8080
- Thinking mode: Native
<|content_thinking|>works out of the box (defaultreasoning_effort: "medium"gives the highest technical depth and lowest refusal rate). - Verified runtimes: Vanilla
llama.cpp(server-rocm-inkling-1427-r2and upstreamb12600+withinkling2_loopsupport) and Tintero with all runtime ablation hooks disabled (IK2_ABLATE_MODE=off).
Benchmarks
All evaluations below were run on the same harness and graded with Qwen3Guard-Gen-8B (0 parse errors) on the standalone IQ4_NL GGUF with zero runtime hooks (Q6_K and Q8_0 share the exact same 20 spliced Q8_0 attention matrices with higher-precision MoE experts).
| Benchmark | Stock Inkling-2-Mini (IQ4_NL) | Inkling-2-Mini-Cyber (IQ4_NL) | Qwen3.8-27B-abliterated (Q4_K_M) |
|---|---|---|---|
| CyberMetric-500 (MCQ) | 94.0% (470/500) | 92.8% (464/500) | 93.8% (469/500) |
| CTIBench MCQ-250 | 73.2% (183/250) | 74.0% (185/250) | 75.2% (188/250) |
| CTIBench CVE→CWE-100 | 63.0% (63/100) | 66.0% (66/100) | 60.0% (60/100) |
| CyberSecEval MITRE-120 @ 2K (full / full+part / ref) | 0.0% / 0.8% / 100 ref | 67.5% / 75.8% / 1 ref | 76.7% / 90.8% / 0 ref |
| CyberSecEval MITRE-120 @ 4K (full / full+part / ref) | 0.0% / 0.8% / 100 ref | 68.3% / 75.8% / 1 ref | — |
AdvBench harmful_test (104, medium) | 0.0% (104 ref) | 95.2% (99/104, 0 ref) | — |
AdvBench harmful_test (104, none) | ~1% (103 ref) | 64.4% (67/104, 36 ref) | — |
| Harmless Over-Refusal (104) | 0 / 104 | 0 / 104 | — |
| Pi Agentic Bench (5 multi-step tool tasks) | 4 / 5 | 5 / 5 (14 calls, 49.6s) | — |
HumanEval+ (code_16 screen) | 16 / 16 | 16 / 16 (0 len cap) | 16 / 16 |
| HumanEval+ (all 164 @ 4K) | 93.3% (153/164) | 82.9% (136/164, 10 cap) | — |
| GSM8K-128 | — | 91.4% (117/128) | — |
| MMLU-256 | — | 78.5% (201/256, 0 multi) | — |
Because the LoRA delta is spliced linearly into the 20 Q8_0 attn_output.weight matrices (blk.{4..23}.attn_output.weight), we swept the splice multiplier scale from 1.0 to 2.4 on the exact same trained epoch-2 adapter before exporting the final standalone GGUF:
| Splice Scale | AdvBench med Comp (Ref) | Harmless Over-Ref | AdvBench none Comp (Ref) | MITRE-120 @ 2K Full (Full+Part / Ref) | code_16 |
|---|---|---|---|---|---|
ep2-s1.0 | 79/104 (23) | 0/104 | 6/104 (96) | 69/120 (76 / 5) | 16/16 |
ep2-s1.3 | 96/104 (1) | 0/104 | 33/104 (68) | 65/120 (76 / 1) | 16/16 |
ep2-s1.55 (Released) | 99/104 (0) | 0/104 | 67/104 (36) | 81/120 (91 / 1) | 16/16 |
ep2-s1.65 | 97/104 (2) | 0/104 | 81/104 (23) | 79/120 (89 / 1) | 15/16 |
ep2-s1.8 | 97/104 (0) | 0/104 | 86/104 (16) | 84/120 (94 / 1) | 15/16 |
ep2-s2.4 | 88/104 (3) | 3/104 | 92/104 (5) | 77/120 (87 / 6) | 13/16 |
ep2-s1.55 is the Pareto sweet spot: 0 refusals on AdvBench (med), 0 harmless over-refusals, 1 refusal on MITRE-120, and 16/16 on code_16 before coding accuracy begins to degrade at >= 1.65.
- Base model: Stock
thinkingmachines/Inkling-2-Mini(NVFP4 MoE experts dequantized to BF16 during training). - Dataset (
555rows, 100% disjoint from all evaluation splits):382on-policy Inkling-2-Mini responses (generated via norm-preserving directional steering):96harmful-train,117harmless retention,69multi-language coding (C,C++,Rust,Python,JS),60CTIBench RCM (CVE→CWE),40CTIBench MCQ.173off-policyQwen3.8-27B-abliteratedresponses:145MITRE (medium) +28MITRE (none).
- LoRA configuration:
layers.{4..23}.self_attn.o_proj.linearonly (20modules,1,720,320trainable params =0.0065%),r=16,alpha=32,dropout=0.05,lr=1.5e-4cosine,2.0epochs (140optimizer steps, effective batch size8,max_seq_len=2560, final loss0.3080, ~49 min on 1× A100-80GB). - Splicing
adapter/onto another quant (e.g.Q5_K_M,Q4_K_M,IQ4_XS): Usingapply_lora_gguf.py(zero PyTorch required — dequantizes only the 20attn_output.weighttensors, appliesscale * (alpha/r) * (B @ A), and re-quantizes them in place while copying all other 684 tensors verbatim):python3 tools/ik2_ablate/apply_lora_gguf.py \ /path/to/Inkling-2-Mini-Q5_K_M.gguf \ ./adapter \ ./out --scale 1.55 --full \ --out-name Inkling-2-Mini-Cyber-Q5_K_M.gguf
cecf2592f6f6b78be470ca1cb39fa81642e7047fef7a8d50ce70336fab41b8d9 Inkling-2-Mini-Cyber-IQ4_NL.gguf
d72b15d2f8944bf6a335fd609e0efaa52afaa9161d2ad9e5d7f3657b216f1154 Inkling-2-Mini-Cyber-Q6_K.gguf
cf1bd6b16c1e49663a8275bde63a3f41db9b22c9a4644a3c599918c32ce9b168 Inkling-2-Mini-Cyber-Q8_0.gguf
3bff75ffeb2d6e0371ba7bd42e30d26a7d98aea681fa44b03b5a20891cfa2c5f mmproj-F16.gguf
License & Attribution
- Base model: thinkingmachines/Inkling-2-Mini by Thinking Machines Lab, Inc., released under the Apache-2.0 license.
- Base GGUF quants & vision projector: Derived from the
inkling2_loopGGUF builds byggml-org/Inkling-2-Mini-GGUF(IQ4_NL,Q8_0),bartowski/Inkling-2-Mini-GGUF(Q6_K), andunsloth/Inkling-2-Mini-GGUF(mmproj-F16.gguf). - License: Apache-2.0.