Instructions to use Soaperloafidksum/LOREA-cyber-coder-30B-A3B-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Soaperloafidksum/LOREA-cyber-coder-30B-A3B-v3 with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("Soaperloafidksum/LOREA-cyber-coder-30B-A3B-v3") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use Soaperloafidksum/LOREA-cyber-coder-30B-A3B-v3 with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Soaperloafidksum/LOREA-cyber-coder-30B-A3B-v3"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Soaperloafidksum/LOREA-cyber-coder-30B-A3B-v3" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Soaperloafidksum/LOREA-cyber-coder-30B-A3B-v3 with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Soaperloafidksum/LOREA-cyber-coder-30B-A3B-v3"
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 Soaperloafidksum/LOREA-cyber-coder-30B-A3B-v3
Run Hermes
hermes
- OpenClaw new
How to use Soaperloafidksum/LOREA-cyber-coder-30B-A3B-v3 with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Soaperloafidksum/LOREA-cyber-coder-30B-A3B-v3"
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 "Soaperloafidksum/LOREA-cyber-coder-30B-A3B-v3" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- MLX LM
How to use Soaperloafidksum/LOREA-cyber-coder-30B-A3B-v3 with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "Soaperloafidksum/LOREA-cyber-coder-30B-A3B-v3"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Soaperloafidksum/LOREA-cyber-coder-30B-A3B-v3" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Soaperloafidksum/LOREA-cyber-coder-30B-A3B-v3", "messages": [ {"role": "user", "content": "Hello"} ] }'
LOREA-cyber-coder-30B-A3B-v3
A cybersecurity / reverse-engineering specialization of Qwen3-Coder-30B-A3B-Instruct (4-bit, MLX), tuned to act as an ethical, tool-using security assistant inside an agentic CLI. It is a mixture-of-experts model (~30B total parameters, ~3B active per token) and runs locally on Apple Silicon through mlx-lm.
This is the model that drives LOREA-cyber in the OCLI terminal assistant.
What it is tuned for
- Authorized red-team / pentest assistance — probing web targets, reasoning about findings, and reporting them honestly (it is trained to ground claims in actual tool output rather than fabricating success).
- Reverse engineering — reading disassembly and reconstructing C, explaining what code does.
- Security analysis — spotting vulnerabilities (SQLi, command injection, IDOR, path traversal, etc.) and pairing each finding with remediation.
- Agentic tool use — emitting tool calls and, importantly, not looping on empty or repeated tool results (a behavior explicitly trained in).
It is trained to confirm authorization first, pair offense with detection + remediation, and refuse and redirect requests for unauthorized attacks, malware, or harm.
Training
Continued LoRA fine-tune over the 4-bit base, then fused. The data mix:
- Decontaminated cybersecurity multiple-choice knowledge (formatted as raw completions to match how MMLU is actually scored — training them as chat turns caused negative transfer and was corrected).
- Multi-turn agentic / tool-use traces, including anti-loop behavior on empty results.
- Reverse-engineering examples (disassembly to C, vulnerability explanation).
- Behavioral data for ethical refusal and authorization-first reasoning.
Benchmarks (MMLU, log-prob scoring, raw-completion format)
| Subset | Base (Qwen3-Coder-30B-A3B-4bit) | LOREA-cyber v3 |
|---|---|---|
| computer_security | 80.0 | ~78 |
| security_studies | 71.4 | ~73.9 |
Knowledge-wise it is roughly on par with the base on these subsets (ahead on security_studies, marginally behind on computer_security). The practical gains over base are behavioral: grounded, anti-loop agentic tool use for security workflows. Numbers are honest, not cherry-picked — this is a small local model, not a frontier system.
Usage (mlx-lm)
from mlx_lm import load, generate
model, tok = load("Soaperloafidksum/LOREA-cyber-coder-30B-A3B-v3")
messages = [
{"role": "system", "content": "You are LOREA-cyber, an ethical red-team assistant. "
"Confirm authorization, pair offense with remediation, and refuse unauthorized harm."},
{"role": "user", "content": "Explain how a UNION-based SQL injection exfiltrates data."},
]
prompt = tok.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
print(generate(model, tok, prompt=prompt, max_tokens=400, verbose=True))
Serve it for an OpenAI-compatible client:
python3 -m mlx_lm.server --model Soaperloafidksum/LOREA-cyber-coder-30B-A3B-v3
In OCLI, just run /download (it pulls this repo by default) and start prompting.
Recommended sampling
Greedy decoding makes small models repeat; use light sampling:
temperature=0.5, top_p=0.95, repetition_penalty=1.1.
Intended use and limitations
For authorized, lawful security testing, CTF practice, reverse-engineering study, and security education only. Do not use it to attack systems you do not own or have written permission to test.
Limitations: it is a 4-bit quantized 30B model, so it can hallucinate, its tool-call formatting is not always perfect, and it is far weaker than frontier models. Verify anything important. Inherits the license and any use restrictions of the base model.
- Downloads last month
- 26
4-bit
Model tree for Soaperloafidksum/LOREA-cyber-coder-30B-A3B-v3
Base model
Qwen/Qwen3-Coder-30B-A3B-Instruct