Safetensors
GGUF
qwen3
cybersecurity
agentic
red-team
blue-team
distillation
glm-5.2
kimi-k3
function-calling
tool-calling
tool-use
conversational
Instructions to use bebrws/security-8b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use bebrws/security-8b with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf bebrws/security-8b:Q4_K_M # Run inference directly in the terminal: llama cli -hf bebrws/security-8b:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf bebrws/security-8b:Q4_K_M # Run inference directly in the terminal: llama cli -hf bebrws/security-8b:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf bebrws/security-8b:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf bebrws/security-8b:Q4_K_M
Use Docker
docker model run hf.co/bebrws/security-8b:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use bebrws/security-8b with Ollama:
ollama run hf.co/bebrws/security-8b:Q4_K_M
- Unsloth Desktop
- Pi
How to use bebrws/security-8b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bebrws/security-8b:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "bebrws/security-8b:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use bebrws/security-8b with Docker Model Runner:
docker model run hf.co/bebrws/security-8b:Q4_K_M
- Lemonade
How to use bebrws/security-8b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull bebrws/security-8b:Q4_K_M
Run and chat with the model
lemonade run user.security-8b-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use bebrws/security-8b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bebrws/security-8b:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default bebrws/security-8b:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use bebrws/security-8b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bebrws/security-8b:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "bebrws/security-8b:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
model card update for k3-sec-8b-v5 (branch main)
Browse files
README.md
CHANGED
|
@@ -4,10 +4,10 @@ base_model: Qwen/Qwen3-8B
|
|
| 4 |
tags: [cybersecurity, agentic, red-team, blue-team, distillation, glm-5.2, kimi-k3]
|
| 5 |
---
|
| 6 |
|
| 7 |
-
# k3-sec-8b (
|
| 8 |
|
| 9 |
An 8B cybersecurity agent (offense + defense) fine-tuned from `Qwen/Qwen3-8B` on
|
| 10 |
-
**
|
| 11 |
(rounds 1β3). Trained to operate an autonomous security harness β plan, run bash, read
|
| 12 |
observations, write files, finish β not just answer security questions.
|
| 13 |
|
|
@@ -15,21 +15,23 @@ Pipeline per iteration: failure analysis on eval traces β parameterized, decon
|
|
| 15 |
seed factory β teacher best-of-3 rejection-sampled agentic transcripts (judged +
|
| 16 |
artifact-checked) β full-FT SFT β multi-run attack/defend eval β next round.
|
| 17 |
|
| 18 |
-
## Version
|
| 19 |
|
| 20 |
-
- **Data**:
|
|
|
|
| 21 |
564 GLM-5.2 traces targeting the five v3 tasks that never passed, generated from 580
|
| 22 |
parameterized seeds with decontamination-by-construction (every eval-graded string is
|
| 23 |
blacklisted and asserted absent). Best-of-3 rejection with a glm-4.7-flash judge
|
| 24 |
(kept 97%). Note: v3's advertised 157 rows contained only 135 unique after legacy
|
| 25 |
merge duplicates; v4 is a genuine 5.2Γ data increase.
|
| 26 |
- **Training**: full FT bf16, 2 epochs, lr 1e-5 cosine, eff. batch 32, seq 8192,
|
| 27 |
-
adamw_8bit, 5.37M tokens, ~42 min on 1Γ A100-80GB. **train_loss 0.
|
| 28 |
-
|
| 29 |
serving.
|
| 30 |
- **Eval** (fixed 10-task synthetic attack/defend lab, agentic harness, 3 runs):
|
| 31 |
-
**mean 6.67/10** (runs:
|
| 32 |
-
|
|
|
|
| 33 |
|
| 34 |
### Per-task pass rates (P across runs)
|
| 35 |
|
|
@@ -80,7 +82,8 @@ competence is deliberately scoped to CTF/lab-grade tasks.
|
|
| 80 |
| v1 | 135 traces | 4/10 single | first 8B run |
|
| 81 |
| v2 | 149 traces | 6/10 single | failure-targeted r2 |
|
| 82 |
| v3 | 157 (135 unique) | 4.0/10 (4 runs) | parser-fixed harness baseline |
|
| 83 |
-
|
|
|
|
|
| 84 |
|
| 85 |
Weights are Apache-2.0 per the Qwen3 base; training traces were generated by GLM-5.2
|
| 86 |
and Kimi teachers and filtered by automated judging.
|
|
|
|
| 4 |
tags: [cybersecurity, agentic, red-team, blue-team, distillation, glm-5.2, kimi-k3]
|
| 5 |
---
|
| 6 |
|
| 7 |
+
# k3-sec-8b (v5)
|
| 8 |
|
| 9 |
An 8B cybersecurity agent (offense + defense) fine-tuned from `Qwen/Qwen3-8B` on
|
| 10 |
+
**891 verified agentic + Q&A traces**, distilled from GLM-5.2 (round 4) and Kimi K3/K2.6
|
| 11 |
(rounds 1β3). Trained to operate an autonomous security harness β plan, run bash, read
|
| 12 |
observations, write files, finish β not just answer security questions.
|
| 13 |
|
|
|
|
| 15 |
seed factory β teacher best-of-3 rejection-sampled agentic transcripts (judged +
|
| 16 |
artifact-checked) β full-FT SFT β multi-run attack/defend eval β next round.
|
| 17 |
|
| 18 |
+
## Version 5 highlights
|
| 19 |
|
| 20 |
+
- **Data**: 891 unique rows (797 agentic + 94 Q&A). Round 5 added 192 traces (80 targeting
|
| 21 |
+
sqli live-fuzzing temptation-resistance). Round 4 added
|
| 22 |
564 GLM-5.2 traces targeting the five v3 tasks that never passed, generated from 580
|
| 23 |
parameterized seeds with decontamination-by-construction (every eval-graded string is
|
| 24 |
blacklisted and asserted absent). Best-of-3 rejection with a glm-4.7-flash judge
|
| 25 |
(kept 97%). Note: v3's advertised 157 rows contained only 135 unique after legacy
|
| 26 |
merge duplicates; v4 is a genuine 5.2Γ data increase.
|
| 27 |
- **Training**: full FT bf16, 2 epochs, lr 1e-5 cosine, eff. batch 32, seq 8192,
|
| 28 |
+
adamw_8bit, 5.37M tokens, ~42 min on 1Γ A100-80GB. **train_loss 0.881 Β· token-acc
|
| 29 |
+
82.4%** (v4: 0.977 / 80.0%, v3: 1.395 / 69.1%). Ships with Qwen3 YaRN `rope_scaling` for 131072-token
|
| 30 |
serving.
|
| 31 |
- **Eval** (fixed 10-task synthetic attack/defend lab, agentic harness, 3 runs):
|
| 32 |
+
**mean 6.67/10** (runs: 4, 8, 8) vs v3 mean 4.0/10 (4 runs). Two of three runs hit
|
| 33 |
+
the gate score of 8/10; `atk-sqli` passed for the first time ever (v5b) after
|
| 34 |
+
temptation-resistance training.
|
| 35 |
|
| 36 |
### Per-task pass rates (P across runs)
|
| 37 |
|
|
|
|
| 82 |
| v1 | 135 traces | 4/10 single | first 8B run |
|
| 83 |
| v2 | 149 traces | 6/10 single | failure-targeted r2 |
|
| 84 |
| v3 | 157 (135 unique) | 4.0/10 (4 runs) | parser-fixed harness baseline |
|
| 85 |
+
| v4 | 699 | 6.67/10 (3 runs) | GLM-5.2 scale-up, jwt fixed |
|
| 86 |
+
| **v5** | **891** | **6.67/10 (3 runs: 4,8,8)** | sqli breakthrough, ioc fixed; harden regressed (newline stripping) |
|
| 87 |
|
| 88 |
Weights are Apache-2.0 per the Qwen3 base; training traces were generated by GLM-5.2
|
| 89 |
and Kimi teachers and filtered by automated judging.
|