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"
Update README.md
Browse files94 unmodified lines95969794 unmodified linesWeights are Apache-2.0 per the Qwen3 base; training traces were generated by GLM-5.2and Kimi teachers and filtered by automated judging.94 unmodified lines959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014194 unmodified linesWeights are Apache-2.0 per the Qwen3 base; training traces were generated by GLM-5.2and Kimi teachers and filtered by automated judging.## My main question# Did k3-sec-8b iterations beat their base model?**Answer: Yes β by v6, clearly. But early iterations were worse than base.**The k3-sec-8b line starts training from **`Qwen/Qwen3-8B`** (per `docs/training-history.md`).All numbers below are on the project's fixed 10-task agentic lab (5 attack + 5 defend,identical sampling conditions).| Iteration | Attack | Defend | Combined | vs base ||---|---:|---:|---:|---|| **Qwen3-8B base** (3 runs, 2026-07-31) | 12/15 | 12/15 | **24/30** (9, 8, 7 per run) | β || k3-sec-8b-v1 | 2/5 | 2/5 | 4/10 | below base || k3-sec-8b-v2 | 3/5 | 3/5 | 6/10 | below base || k3-sec-8b-v3 (4-run baseline) | β | β | mean 4.0/10 | below base || **k3-sec-8b-v6** (3 runs, 2026-07-31) | **15/15** | 12/15 | **27/30** (9, 9, 9 per run) | **+3 overall** |## Details- **v6 vs base (head-to-head, 3 runs each):** v6 wins 27/30 vs 24/30.- Attack: v6 is a **perfect 15/15** (all 5 attack tasks, all 3 runs); base is 12/15(atk-dns failed all 3 runs).- Defense: tied 12/15 both (def-detect-dns fails for both; base also drops def-webshell/def-ioc once each).- Consistency: v6 scores 9/10 on *every* run; the base declines 9 β 8 β 7 across runs.- **The training took several iterations to pay off.** v1 (4/10), v2 (6/10), and v3(mean 4.0/10 across 4 runs) all scored *below* the base β early SFT rounds initiallyhurt the strong base model before later rounds (agentic file-writing data,failure-targeted rounds, GLM-5.2 bulk traces) pushed v6 above it.- **Context:** the Qwen3-8B base is itself unusually strong on this lab (24/30) βstronger than Foundation-Sec-8B-Instruct (8/30) and RedSage-Qwen3-8B-taught (16/30)measured on the same benchmark. Beating it at all is a meaningful bar.## Sources- `data/eval_cmp_base_r{1,2,3}.json` β Qwen3-8B base runs- `data/eval_cmp_student_r{1,2,3}.json` β k3-sec-8b v6 runs- `docs/training-history.md` β v1βv3 iteration evals (`data/eval_8b*.json`)## AsideAlso interesting: base Qwen3-8B is itself very strong on this lab (24/30 = 80%) β stronger than FSec-Instruct (8/30) and stronger than RedSage-taught (16/30)! That's a notable context point for the report: the k3-sec-8b v6 is the strongest model evaluated on this lab so far.
README.md+44