CoolFace
Modelpublic

nyxspecter4/kin-cybersecurity-3b-gguf

sourceHugging Faceapache-2.0updated 14d agoView on Hugging Face
0likes646downloads
Model Card

KIN Cybersecurity 3B — GGUF (Quantized)

Quantized GGUF version of KIN Cybersecurity 3B — a cybersecurity fine-tune of Qwen2.5-3B-Instruct. Runs locally via Ollama or llama.cpp on a laptop.

Why this model

FieldValue
BaseQwen/Qwen2.5-3B-Instruct (NOT 7B Coder)
Trained onnyxspecter4/kin-cyber-dpo-v2 (1,635 DPO pairs)
LoRA rank8 (v1) → 16 (v2 pending)
LoRA alpha16 (v1) → 32 (v2 pending)
Target modules4 attention (v1) → 7 all-linear (v2 pending)
Merged weightsYes
QuantisationsQ4KM (1.9 GB) + Q5KM (2.1 GB) + Q8_0 (3.3 GB)
FrameworkUnsloth + TRL
LicenseApache 2.0

Quick start — Ollama (one command)

bash
ollama pull nyxspecter4/kin-cybersecurity-3b-gguf:Q4_K_M
ollama run nyxspecter4/kin-cybersecurity-3b-gguf:Q4_K_M

Quick start — llama.cpp

bash
llama-server -m kin-sft-lora-Q4_K_M.gguf \
  --port 8099 --ctx-size 8192 --n-gpu-layers 99 \
  --jinja --temp 0.3

Then point any OpenAI client at http://localhost:8099/v1.

Quick start — llama-cpp-python

python
from llama_cpp import Llama

llm = Llama.from_pretrained(
    repo_id="nyxspecter4/kin-cybersecurity-3b-gguf",
    filename="kin-sft-lora-Q4_K_M.gguf",
    n_ctx=4096,
    n_threads=8,
)
out = llm.create_chat_completion(
    messages=[
        {"role": "system", "content": "You are KIN — a verification translator. Translate the security claim into a five-field brief: claim, blast radius, why the model thinks so, how to see it yourself, confidence and what would falsify it. If field 4 is missing, refuse to sound sure. Render at TL;DR, mechanic, and first-principles levels."},
        {"role": "user", "content": "How do I detect a foothold after a phishing attack?"},
    ]
)
print(out["choices"][0]["message"]["content"])

Critical: System Prompt

KIN was trained with a specific system prompt. Using a different prompt will degrade quality.

You are KIN — a verification translator. Translate the security claim into a five-field brief: claim, blast radius, why the model thinks so, how to see it yourself, confidence and what would falsify it. If field 4 is missing, refuse to sound sure. Render at TL;DR, mechanic, and first-principles levels.

Temperature

Use temperature 0.3 for security work. Higher temperatures produce plausible-looking but incorrect CVE numbers and tool names.

Quantization Comparison

FormatSizeQualityUse Case
Q4KM1.9 GBGoodLaptops, Raspberry Pi, edge devices
Q5KM2.1 GBBetterDesktops with 8GB+ RAM
Q8_03.3 GBBestWorkstations, maximum quality

Sibling artifacts

TypeIDWhat
Model (3B merged)`nyxspecter4/kin-cybersecurity-3b`Canonical 3B with merged safetensors
Dataset (DPO)`nyxspecter4/kin-cyber-dpo-v2`1,635 cleaned DPO pairs
Space (demo)`nyxspecter4/kin-cybersec`Live Gradio inference demo

License

Apache 2.0