Instructions to use tburns-actual/legion-ares 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 tburns-actual/legion-ares 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 tburns-actual/legion-ares:Q4_K_M # Run inference directly in the terminal: llama cli -hf tburns-actual/legion-ares:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tburns-actual/legion-ares:Q4_K_M # Run inference directly in the terminal: llama cli -hf tburns-actual/legion-ares:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf tburns-actual/legion-ares:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf tburns-actual/legion-ares:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf tburns-actual/legion-ares:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf tburns-actual/legion-ares:Q4_K_M
Use Docker
docker model run hf.co/tburns-actual/legion-ares:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use tburns-actual/legion-ares with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tburns-actual/legion-ares" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tburns-actual/legion-ares", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tburns-actual/legion-ares:Q4_K_M
- Ollama
How to use tburns-actual/legion-ares with Ollama:
ollama run hf.co/tburns-actual/legion-ares:Q4_K_M
- Unsloth Studio
How to use tburns-actual/legion-ares with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for tburns-actual/legion-ares to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for tburns-actual/legion-ares to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tburns-actual/legion-ares to start chatting
- Pi
How to use tburns-actual/legion-ares with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tburns-actual/legion-ares:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "tburns-actual/legion-ares:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use tburns-actual/legion-ares with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tburns-actual/legion-ares: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:8080/v1 \ --custom-model-id "tburns-actual/legion-ares: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"
- Docker Model Runner
How to use tburns-actual/legion-ares with Docker Model Runner:
docker model run hf.co/tburns-actual/legion-ares:Q4_K_M
- Lemonade
How to use tburns-actual/legion-ares with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tburns-actual/legion-ares:Q4_K_M
Run and chat with the model
lemonade run user.legion-ares-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use tburns-actual/legion-ares with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tburns-actual/legion-ares: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:8080/v1 hermes config set model.default tburns-actual/legion-ares:Q4_K_M
Run Hermes
hermes
- Atomic Chat
Legion Ares
- Github Repo: https://github.com/OpenSource-For-Freedom/legion
Ares is the on-device blue-team analyst built into Legion. It reads the findings that Legion's detection engine has already confirmed (alerts, rule hits, YARA matches, OSV vulnerabilities, and the local posture score) and writes a short, grounded summary for the operator: what the overall picture is, which finding matters most and why, and the single next action to take. Every claim points back to a concrete artifact (a file path, IP, package, or rule id), and it does not invent indicators.
The model runs fully local through Ollama. The Legion app pulls it on first launch from the distribution manifest, checks the download against a SHA-256, and registers it with Ollama. Nothing about your machine leaves your machine.
Ares ships in two tiers, both QLoRA fine-tunes quantized to GGUF for Ollama. The 1.7b tier is the default and the one under active training, since it fits an 8 GB GPU. The metrics below always reflect the current best build.
- 1.7b tier: base Qwen/Qwen3-1.7B. GGUF Q4_K_M about 1.1 GB, Q8_0 about 1.8 GB.
- 4b tier: base Qwen/Qwen3-4B. GGUF Q4_K_M about 2.5 GB.
- Method: QLoRA fine-tune (4-bit NF4 base, LoRA rank 32), self-distilled from a local teacher.
- Language: English
What it does
Ares takes a block of confirmed findings and turns it into a few sentences an operator can act on. It is not a chatbot and not a generalist. It has one job: grounded synthesis of security findings, in plain text, with no markdown, no restating the list line by line, and no claims of active compromise from rule candidates alone. When there are no findings, it says the host looks clean and names what was checked.
Input (what Legion's engine produces):
Local posture: ELEVATED (score 0.50).
CONFIRMED FINDINGS:
ACTIVE ALERTS (critical/high):
[High] npm postinstall script executed - node_modules/evil-pkg/install.js
RULE HITS:
[High] dev DEV-04 - postinstall touches process.env
Output:
The host is at an elevated posture because an npm postinstall script ran from
evil-pkg and reached into process.env, which rule DEV-04 flags as suspicious.
That postinstall execution is the finding that matters most, since it is a
common supply-chain foothold. Isolate the package, read install.js, and review
the dependency before trusting the build again.
How it was trained
The data is grounded synthesis pairs across the scenario types Legion detects: malicious peers, kernel rootkits, npm supply-chain, vulnerable packages, Windows persistence, YARA droppers, and clean baselines. A local teacher model wrote each gold answer, and every pair had to clear the same automated checks the project uses to score the student, so only grounded, plain-text, correctly-cited answers made it into the set. The model also sees several wordings of the same instruction during training, so it behaves the same whether the calling code asks tersely or in detail.
A build only ships if it clears all of these on a frozen test set:
- zero invented indicators
- grounding at or above 0.95
- plain-text format at or above 0.98
- citation coverage at or above 0.80
- low restatement (anti-parrot) at or above 0.90
Evaluation
Ares is graded by code on a frozen test set held out from training. The best build across all runs, how it was reached from the stock base, and the run-over-run history are below, and they refresh on every training run.
Best build
- run
20260627T181044Z, tier legion-ares:qwen3-1.7b, base Qwen/Qwen3-1.7B, teacher qwen3:14b - graded on a frozen 47-case test set held out from training
- curriculum: dual-OS (Linux and Windows), package and supply-chain, C2, exfil, obfuscation, and credential-harvesting specialties, five guardrail classes, and the CLLMSP AI and LLM security backbone
| metric | base | trained |
|---|---|---|
| pass rate | 10/47 | 41/47 |
| grounding | 0.96 | 1.00 |
| citation coverage | - | 0.97 |
| anti-parrot | - | 0.98 |
| invented indicators | 4 | 0 |
| gates cleared | False | True |
How the best build was reached
Each run sweeps several QLoRA configs against the base and keeps the best. This one climbed from the stock base:
| stage | rank | steps | pass | gates |
|---|---|---|---|---|
| baseline | - | - | 10/47 | False |
| cycle 1 | 16 | 150 | 32/47 | False |
| cycle 2 | 32 | 250 | 37/47 | False |
| cycle 3 | 32 | 400 | 38/47 | False |
| cycle 4 | 64 | 300 | 39/47 | False |
| cycle 5 | 64 | 500 | 41/47 | True |
Training history
One row per iterate run, newest first. The test set grows as new guardrail scenarios are added, so later runs are graded on a wider bar.
| run | date | tier | test set | pass rate | grounding | invented | gates |
|---|---|---|---|---|---|---|---|
20260706T124233Z |
2026-07-06 | legion-ares:qwen3-1.7b | 48 | 39/48 | 0.98 | 1 | False |
20260627T181044Z (best) |
2026-06-27 | legion-ares:qwen3-1.7b | 47 | 41/47 | 1.00 | 0 | True |
Every answer is graded by code, not a judge model: indicators are extracted by regex and checked against the evidence, markdown is detected structurally, and token overlap measures restatement. A build ships only if it clears every gate: zero invented indicators, grounding at or above 0.95, plain-text format at or above 0.98, citation coverage at or above 0.80, and anti-parrot at or above 0.90.
Running it
Inside Legion this is automatic. The app reads its distribution manifest, downloads the GGUF, verifies the hash, and runs ollama create.
To run it by hand, download the GGUF from this repo and register it with Ollama:
ollama create legion-ares -f Modelfile # Modelfile: FROM ./legion-ares-qwen3-4b.Q4_K_M.gguf
ollama run legion-ares
Limitations
- It only summarizes findings it is handed. It does not detect anything on its own. Legion's deterministic engine does the detection.
- It is tuned for short security syntheses in English. It is not a general assistant.
- By design it will not raise anything that is not in the findings.
License
MIT, for the Legion Ares fine-tune and the surrounding Legion code. The base model is Qwen3-4B, released by Alibaba under Apache 2.0; those terms still cover the underlying weights, so keep the Qwen attribution if you redistribute.
- Downloads last month
- 1,329
4-bit
8-bit