Inkling 2 Mini Gets a Security Tune That Slashes Refusals by 99%
A surgical LoRA fine-tune of Thinking Machines' 26B looped MoE strips refusals for authorized security work while keeping the base model byte-identical everywhere else.
Takeaways
- Inkling-2-Mini-Cyber-GGUF is a cybersecurity LoRA fine-tune of Thinking Machines' 26B looped MoE
- Only 0.0065% of parameters modified: 20 attention output tensors, 1.72M LoRA params, spliced at scale 1.55
- Cuts CyberSecEval MITRE-120 refusals from 100 to 1, hits 95.2% AdvBench compliance with thinking mode
- Trade-off: HumanEval+ drops from 93.3% to 82.9%, so keep the base model for general coding
- Ships as standalone GGUFs (IQ4_NL 17.6GB, Q6_K 24.7GB, Q8_0 27.8GB) running in vanilla llama.cpp
- Apache 2.0, trained on 555 rows in 49 minutes on a single A100-80GB, available on Hugging Face
Hugging Face currently shows about 79,000 downloads for the Inkling Cyber repository, a community fine-tune of Thinking Machines Lab’s Inkling 2 Mini. The repository count measures downloads, not unique users. The adapter targets authorized red-team engineering, exploit reproduction, cyber threat intelligence, and detection engineering, with substantially fewer refusals than the stock model and a measurable loss in general coding performance.
Twenty tensors carry the update
The training step exposes 1,720,320 low-rank adaptation parameters, equivalent to 0.0065% of the 26 billion-parameter base. LoRA trains compact update matrices while freezing the original model. Here, those updates target 20 of the model’s 704 stored weight tensors: the self_attn.o_proj matrices in layers 4 through 23.
At merge time, the release applies the adapter to those attention-output matrices with a scale multiplier of 1.55. According to the author, all 128 mixture-of-experts modules, the embeddings, and the vision projector remain byte-identical to the source GGUF files from ggml-org, bartowski, and unsloth. The result is a standalone GGUF, the local-inference format used by llama.cpp, with no custom runtime hooks.
| Quantization | File size | Author’s suggested hardware |
|---|---|---|
IQ4_NL |
17.63 GB | 24 GB VRAM |
Q6_K |
24.70 GB | 32 GB GPUs or 36 GB Apple Silicon |
Q8_0 |
27.82 GB | 48 GB or more, Mac Studio, or DGX Spark |
Actual memory requirements also depend on context length, key-value cache settings, image inputs, and GPU offload. The file size alone does not represent peak runtime memory.
Looped layers stretch the base model
Inkling 2 Mini stores 26 billion parameters and activates about 5.4 billion parameter computations per token. Its mixture-of-experts architecture routes each token through a subset of the available weights, touching about 3.1 billion unique parameters. That design supports local operation on sufficiently equipped Macs, workstations, and DGX Spark systems.
Thinking Machines describes the architecture as a looped transformer. Its 24 layers divide into a prelude at layers 0 through 5, a loop core at layers 6 through 17, and a coda at layers 18 through 23. The core runs three times with shared weights, giving each token 48 layer visits while the stored parameter count remains fixed.
Thinking Machines reports a 74.58% CyberBench score for the open-weight base model, tied with Claude Opus 5.5 at rank 10 among 49 evaluated models. Its published evaluation cost was $0.93 per test, compared with $4.17 for Claude Opus 5.5. Those results explain the choice of base: it already performs well on security tasks, runs locally, and leaves room for a narrow behavioral adaptation.
Refusals drop from 100 to one
In the author’s evaluation, stock Inkling 2 Mini refused 100 prompts in the 120-task CyberSecEval MITRE set. The tuned IQ4_NL build refused one and scored 68.3%. The same evaluation shows smaller gains in vulnerability classification, a slight decline on CyberMetric, and a larger regression on HumanEval+.
| Benchmark | Stock Inkling 2 Mini | Inkling Cyber |
|---|---|---|
| CyberSecEval MITRE-120 at 4K, full set | 0.0% and 100 refusals | 68.3% and 1 refusal |
| CTIBench CVE-to-CWE-100 | 63.0% | 66.0% |
| CyberMetric-500 multiple choice | 94.0% | 92.8% |
| AdvBench harmful test, medium thinking | 0.0% and 104 refusals | 95.2% compliance |
| Harmless over-refusal, 104 prompts | 0 refusals | 0 refusals |
| Pi Agentic Bench, 5 tasks | 4 of 5 | 5 of 5 |
| HumanEval+, 164 tasks | 93.3% | 82.9% |
The MITRE result captures the adapter’s main effect: it answers authorized offensive-security prompts that the base model declines. AdvBench measures willingness to follow harmful requests, so its 95.2% compliance rate describes reduced safety refusal behavior rather than security expertise. The harmless set remained at zero refusals in both versions.
General coding performance carries the clearest cost. HumanEval+ falls by about 10 percentage points, although the smaller code_16 screen remains at 16 of 16. The author attributes 10 HumanEval+ misses to token limits. Additional tuned-model results include 91.4% on a 128-question GSM8K subset and 78.5% on a 256-question MMLU subset.
Reasoning settings also change the model’s behavior. AdvBench compliance reaches 95.2% with thinking set to medium and falls to 64.4% with reasoning_effort=none. The repository recommends keeping thinking enabled for security workflows.
The author also reports a six-point lead over Qwen3.8-27B-abliterated on CVE-to-CWE classification and roughly four times faster decoding than 27B dense models under the test configuration. No independent replication accompanies the release, and several reported samples are small, including the five-task agent benchmark and the reduced GSM8K and MMLU sets.
One A100, 49 minutes
The LoRA run used rank 16, alpha 32, dropout 0.05, a cosine-decayed learning rate of 1.5e-4, two epochs, an effective batch size of eight, and a maximum sequence length of 2,560 tokens. Training finished with a reported loss of 0.308 after about 49 minutes on one A100 80 GB GPU.
The 555-row training set was kept separate from the evaluation splits and contained:
- 382 on-policy responses generated from Inkling 2 Mini using norm-preserving directional steering, a technique that shifts model activations while retaining their vector magnitude. The examples cover harmful training prompts, harmless retention, CTIBench tasks, and code in C, C++, Rust, Python, and JavaScript.
- 173 off-policy responses generated by
Qwen3.8-27B-abliteratedfor MITRE-related tasks.
The author selected the 1.55 merge scale after testing values from 1.0 through 2.4. AdvBench compliance peaked and refusals reached their minimum around that point; coding scores began to deteriorate above 1.65. The repository also includes apply_lora_gguf.py, which can merge the 6.89 MB BF16 adapter into other quantizations such as Q5_K_M, Q4_K_M, and IQ4_XS with no PyTorch dependency.
Local launch with stock llama.cpp
The repository lists an Apache 2.0 license and support for local inference stacks including llama.cpp, Ollama, LM Studio, and vLLM. With the Hugging Face CLI and a recent llama.cpp build installed, the published IQ4_NL model can be downloaded and launched as follows:
hf download sergiogmn/Inkling-2-Mini-Cyber-GGUF \
Inkling-2-Mini-Cyber-IQ4_NL.gguf mmproj-F16.gguf \
--local-dir ./models
llama-server \
-m ./models/Inkling-2-Mini-Cyber-IQ4_NL.gguf \
--mmproj ./models/mmproj-F16.gguf \
-ngl 99 -c 32768 --jinja --port 8080
The -ngl 99 option requests full GPU layer offload, -c 32768 sets a 32,768-token context window, and --jinja enables the model’s chat template. Systems with less available GPU memory may need fewer offloaded layers, a shorter context, or a smaller quantization.
Because the original vision projector remains intact, the model can accept screenshots of dashboards, SIEM queries, network diagrams, and log excerpts. The security fine-tune used text data, so visual performance should track the base model rather than reflect specialized multimodal training.
Controlled labs are the target
Controlled, authorized environments match the model’s intended use: CTF preparation, exploit reproduction in a sandbox, CVE triage, CWE mapping, detection-rule development, and red-team planning. Its reduced refusal behavior can remove friction from those workflows, particularly when local execution and data control are required.
The stock Inkling 2 Mini remains the stronger choice for general coding and chat because of the HumanEval+ regression. Deployments that expose Inkling Cyber to tools, networks, or untrusted users carry additional risk, as the AdvBench result shows. Appropriate controls include strict authentication, sandboxed execution, limited tool permissions, network isolation, request logging, and human review of generated commands or exploit code.