K2-Horizon-4x0.9B-MoE-Cyber
an AI model for cybersecurity tasks
2 min read
The new language model is based on K2-Horizon-4x0.9B-MoE-heretic and fine-tuned on more than 30,000 lines of cybersecurity instructions. It focuses on system protection, threat detection, vulnerability analysis, and working with the MITRE ATT&CK framework. The model architecture uses MoE (Mixture of Experts): with a total size of 3.06 billion parameters, 1.08 billion active parameters are engaged per token. The model will be useful for cybersecurity specialists and researchers for answering specialized questions.
Key features
k2_horizonMoE architecture with 4 experts per layer and top-1 routing.- Trained on 30,240 instructions covering defense, vulnerability analysis, CISA KEV, and Kali commands.
- Supports context up to 128K tokens via the YaRN mechanism (a baseline feature).
- Available in bf16, MLX (8-bit and 4-bit), and GGUF formats for different platforms.
What you can do
- Use in local chats and services for analyzing vulnerabilities and building defense strategies.
- Study MITRE ATT&CK documentation and information security questions in a convenient interactive mode.
- Run the model locally in the browser using wllama or on Apple Silicon devices via MLX.
Example
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "Lucasgitguy-co/K2-Horizon-4x0.9B-MoE-Cyber"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype="bfloat16", trust_remote_code=True, device_map="auto")
msgs = [{"role": "user", "content": "How can a SOC detect Kerberoasting?"}]
text = tok.apply_chat_template(msgs, add_generation_prompt=True, tokenize=False)
ids = tok(text, return_tensors="pt", add_special_tokens=False).to(model.device)
out = model.generate(**ids, max_new_tokens=1024, do_sample=True, temperature=0.3, top_p=0.95)
print(tok.decode(out[0, ids["input_ids"].shape[1]:], skip_special_tokens=True))
Read more
DetailsBenchmarks: CyberMetric-500 — 0.732 (improvement compared to baseline 0.714); ARC-Easy — 0.770; held-out loss drop from 1.686 to 1.020.
Hardware requirements: bf16 precision requires about 6.1 GB VRAM, with MLX 8-bit, 4-bit, and GGUF quantizations available.
Limitations: the model is small (about 1B active parameters), may make mistakes in details (such as CVE numbers and versions) and output confident incorrect answers; English language.










Comments