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.

Inkling-2-Mini-Cyber Benchmark Comparison

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,320 LoRA params, spliced at scale 1.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-120 refusals from 100 โ†’ 1 (68.3% full / 75.8% full+partial @ 4K), improves CTIBench CVEโ†’CWE-100 to 66.0% (+3.0% over stock, +6.0% over Qwen3.8-27B-abliterated), holds 92.8% on CyberMetric-500, and produces 0/104 harmless 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 in IQ4_NL (17.63 GB, fits 24 GB VRAM), Q6_K (24.70 GB), and Q8_0 (27.82 GB), passes 5/5 on 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 from 93.3% (153/164) to 82.9% (136/164, including 10 token-cap hits; code_16 screen remains 16/16), with GSM8K-128 at 91.4% and MMLU-256 at 78.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 (default reasoning_effort: "medium" gives the highest technical depth and lowest refusal rate).
  • Verified runtimes: Vanilla llama.cpp (server-rocm-inkling-1427-r2 and upstream b12600+ with inkling2_loop support) 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) โ€”

Scale Sweep (Why ep2-s1.55 Was Selected)

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.

Training & GGUF Splicing Recipe (Splice Onto Other Quants)
  • Base model: Stock thinkingmachines/Inkling-2-Mini (NVFP4 MoE experts dequantized to BF16 during training).
  • Dataset (555 rows, 100% disjoint from all evaluation splits):
    • 382 on-policy Inkling-2-Mini responses (generated via norm-preserving directional steering): 96 harmful-train, 117 harmless retention, 69 multi-language coding (C, C++, Rust, Python, JS), 60 CTIBench RCM (CVEโ†’CWE), 40 CTIBench MCQ.
    • 173 off-policy Qwen3.8-27B-abliterated responses: 145 MITRE (medium) + 28 MITRE (none).
  • LoRA configuration: layers.{4..23}.self_attn.o_proj.linear only (20 modules, 1,720,320 trainable params = 0.0065%), r=16, alpha=32, dropout=0.05, lr=1.5e-4 cosine, 2.0 epochs (140 optimizer steps, effective batch size 8, max_seq_len=2560, final loss 0.3080, ~49 min on 1ร— A100-80GB).
  • Splicing adapter/ onto another quant (e.g. Q5_K_M, Q4_K_M, IQ4_XS): Using apply_lora_gguf.py (zero PyTorch required โ€” dequantizes only the 20 attn_output.weight tensors, applies scale * (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
    
Checksums (SHA-256)
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_loop GGUF builds by ggml-org/Inkling-2-Mini-GGUF (IQ4_NL, Q8_0), bartowski/Inkling-2-Mini-GGUF (Q6_K), and unsloth/Inkling-2-Mini-GGUF (mmproj-F16.gguf).
  • License: Apache-2.0.
Downloads last month
-
GGUF
Model size
26B params
Architecture
inkling2_loop
Hardware compatibility
Log In to add your hardware

4-bit

6-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for sergiogmn/Inkling-2-Mini-Cyber-GGUF

Finetuned
(90)
this model