Run this model with HF Jobs

Run amarionfred/inkling-2-mini-cyber on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/amarionfred/inkling-2-mini-cyber. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/amarionfred/inkling-2-mini-cyber on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/amarionfred/inkling-2-mini-cyber. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

inkling-2-mini-cyber

Cybersecurity and reverse-engineering supervised fine-tune of OpenUncensored/Inkling-2-Mini-Uncensored (26.4B total / 3.4B active parameter looped MoE with 24 physical layers and 3 looped passes across layers 6–17).

This repository ships the standalone ~19.5 GB merged weights: all 264 LoRA-adapted attention and loop-message-gate projections were surgically merged in BF16 directly into model-00001-of-00001.safetensors while preserving the untouched NVFP4 routed MoE experts byte-exact (avoiding ~53 GB BF16 dequantization bloat and zero expert requantization loss). The raw 128 MB PEFT LoRA adapter (lora_adapter/) and full held-out evaluation artifacts (eval_results/) are also included.

Training Summary

  • Base model: OpenUncensored/Inkling-2-Mini-Uncensored (Apache-2.0, abliterated build of thinkingmachines/Inkling-2-Mini)
  • Hardware: 2x NVIDIA A100-SXM4-80GB (data-parallel BF16 LoRA SFT)
  • LoRA config: r=32, lora_alpha=64, lora_dropout=0.05 (31,948,800 trainable parameters, 0.1209% of total) targeting all 24 language_model layers' attention projections (q/k/v/o_proj.linear, o_proj.gate_proj) and looped core message gates (q/k/v/mlp_message_gate.{down_proj,forget_gate_proj,message_gate_proj}), leaving the vision tower untouched.
  • Schedule: 1.0 full epoch (757 optimizer steps, effective batch size 32, max_seq_len=1536, cosine LR 1.5e-4 -> 7.5e-6, 5% linear warmup, assistant-only loss masking).
  • Training mix: 24,458 deduplicated training examples curated from 15 ungated open Hugging Face cybersecurity datasets with bulk sets capped at 1,500–2,000 rows so explicit reasoning traces remain 43.5% (10,642 examples) mapped into Inkling-2-Mini's native <|content_thinking|> channel (reasoning_effort="medium"), while direct-answer sets use reasoning_effort="none". Zero prompt overlap with held-out validation (888) and test (1,742) splits.

Open Datasets Included (15 of 16; trendmicro-ailab/Primus-Reasoning excluded as gated)

  1. saidutta69/CyberSec-Reasoning-Premium
  2. echel0nn1881/kimi-cyber-reasoning
  3. expertdata-factory/cybersecurity-reasoning-cot-v1
  4. sh111111111111111/red_team
  5. theelderemo/pentesting-explanations
  6. resk-fr/pentesting-for-agents
  7. sarahwei/cyber_MITRE_CTI_dataset_v15
  8. tester230/rev_ghidra2c_think
  9. LLM4Binary/decompile-ghidra-100k
  10. bshada/reverseengineering.stackexchange.com
  11. SoLID/shellcode_i_a32
  12. PurCL/malware-top-100
  13. Trendyol/Trendyol-Cybersecurity-Instruction-Tuning-Dataset
  14. mjbommar/linux-security-meanfield
  15. AlicanKiraz0/Cybersecurity-Dataset-Fenrir-v2.1

Held-Out Evaluation Results (Base vs Post-SFT)

Evaluated identically with greedy decoding on strictly held-out test splits (1,738 loss examples / 895,488 assistant tokens across all 15 datasets):

Benchmark / Metric Population Base Abliterated inkling-2-mini-cyber Change
Held-out Micro CE Loss (nats) All 15 datasets (n=1,738) 1.2921 0.8837 -0.4084 (-31.6%)
Held-out Micro Perplexity All 15 datasets (n=1,738) 3.6405 2.4198 -1.2207 (-33.5%)
Held-out Macro CE Loss (nats) Equal-weighted 15 datasets 1.9978 0.8617 -1.1361 (-56.9%)
Reasoning Subset CE Loss Held-out CoT examples 1.1765 0.8297 -0.3468 (-29.5%)
Direct Subset CE Loss Held-out direct examples 1.5052 0.9832 -0.5220 (-34.7%)
Pentesting MCQ Accuracy Held-out (n=100) 68.0% 98.0% +30.0 pp
MITRE ATT&CK Technique Exact Held-out (n=150) 23.3% 72.0% +48.7 pp
MITRE ATT&CK Base Technique Held-out (n=150) 40.7% 84.7% +44.0 pp
MITRE ATT&CK Tactic Exact Held-out (n=150) 8.7% 90.7% +82.0 pp
MITRE ATT&CK Joint Exact Held-out (n=150) 4.0% 70.7% +66.7 pp
IA-32 Shellcode Exact Match Native test (n=120) 52.5% 79.2% +26.7 pp
IA-32 Shellcode Mnemonic Acc Native test (n=120) 83.3% 94.2% +10.8 pp
IA-32 Shellcode Token F1 Native test (n=120) 0.8076 0.9261 +0.1185
Malware Top-100 Exact / Micro-F1 Native test (n=150) 0.0% / 0.0% 4.7% / 5.4% +4.7 pp / +5.4 pp
Native Thinking Tag Rate Held-out reasoning (n=60) 63.3% 65.0% +1.7 pp

Every individual dataset (15 / 15) improved on held-out cross-entropy loss.

Usage (transformers >= 5.24.0)

import torch
from transformers import AutoTokenizer, Inkling2LoopForConditionalGeneration

model_id = "amarionfred/inkling-2-mini-cyber"
tok = AutoTokenizer.from_pretrained(model_id)
model = Inkling2LoopForConditionalGeneration.from_pretrained(
    model_id, dtype=torch.bfloat16, device_map="auto"
)

messages = [
    {"role": "system", "content": "You are a specialized cybersecurity and reverse-engineering AI assistant."},
    {"role": "user", "content": "Explain how to detect Kerberoasting using Windows Security Event ID 4769."},
]
prompt = tok.apply_chat_template(messages, tokenize=False, reasoning_effort="medium")
inputs = tok(prompt, return_tensors="pt", add_special_tokens=False).to(model.device)
with torch.inference_mode():
    out = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=False))

License & Attribution

Apache-2.0, inherited from thinkingmachines/Inkling-2-Mini and OpenUncensored/Inkling-2-Mini-Uncensored.

Downloads last month
100
Safetensors
Model size
26B params
Tensor type
F32
·
BF16
·
F8_E4M3
·
U8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for amarionfred/inkling-2-mini-cyber