Text Generation
MLX
Safetensors
English
qwen3
security
cybersecurity
pentest
CVSS
OWASP
red-team
bug-bounty
128k-context
MLX
Safetensors
4-bit precision
apple-silicon
ravenx
rath-protocol
tool-calling
conversational
Instructions to use deadbydawn101/RavenX-Sec-8B-Security-RATH-128k-mlx-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use deadbydawn101/RavenX-Sec-8B-Security-RATH-128k-mlx-4bit 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("deadbydawn101/RavenX-Sec-8B-Security-RATH-128k-mlx-4bit") 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) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use deadbydawn101/RavenX-Sec-8B-Security-RATH-128k-mlx-4bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "deadbydawn101/RavenX-Sec-8B-Security-RATH-128k-mlx-4bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "deadbydawn101/RavenX-Sec-8B-Security-RATH-128k-mlx-4bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use deadbydawn101/RavenX-Sec-8B-Security-RATH-128k-mlx-4bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "deadbydawn101/RavenX-Sec-8B-Security-RATH-128k-mlx-4bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "deadbydawn101/RavenX-Sec-8B-Security-RATH-128k-mlx-4bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deadbydawn101/RavenX-Sec-8B-Security-RATH-128k-mlx-4bit", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use deadbydawn101/RavenX-Sec-8B-Security-RATH-128k-mlx-4bit 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 "deadbydawn101/RavenX-Sec-8B-Security-RATH-128k-mlx-4bit"
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 deadbydawn101/RavenX-Sec-8B-Security-RATH-128k-mlx-4bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use deadbydawn101/RavenX-Sec-8B-Security-RATH-128k-mlx-4bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "deadbydawn101/RavenX-Sec-8B-Security-RATH-128k-mlx-4bit"
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 "deadbydawn101/RavenX-Sec-8B-Security-RATH-128k-mlx-4bit" \ --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"
add README.md
Browse files
README.md
CHANGED
|
@@ -1,165 +1,13 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
| 3 |
base_model: georgehenney/Qwen3-8B-heretic
|
| 4 |
tags:
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
- NIST
|
| 11 |
-
- OWASP
|
| 12 |
-
- red-team
|
| 13 |
-
- bug-bounty
|
| 14 |
-
- 128k-context
|
| 15 |
-
- yarn
|
| 16 |
-
- MLX
|
| 17 |
-
- Safetensors
|
| 18 |
-
- qwen3
|
| 19 |
-
- heretic
|
| 20 |
-
- 4-bit
|
| 21 |
-
- precision
|
| 22 |
-
- quantized
|
| 23 |
-
- apple-silicon
|
| 24 |
-
- reasoning
|
| 25 |
-
- chain-of-thought
|
| 26 |
-
- ravenx
|
| 27 |
-
- tool-calling
|
| 28 |
-
- function-calling
|
| 29 |
-
- rath-protocol
|
| 30 |
-
- conversational
|
| 31 |
-
language:
|
| 32 |
-
- en
|
| 33 |
-
pipeline_tag: text-generation
|
| 34 |
-
library_name: mlx
|
| 35 |
-
---
|
| 36 |
-
|
| 37 |
-
# RavenX-Sec 8B — Security RATH Protocol 128K (MLX 4-bit)
|
| 38 |
-
|
| 39 |
-
<p align="center">
|
| 40 |
-
<strong>🔒 Find → Classify → Fix → Verify → Report</strong><br>
|
| 41 |
-
<em>Autonomous Security Intelligence Model. 128K context. 379K training examples. 15 security datasets. RATH protocol.</em>
|
| 42 |
-
</p>
|
| 43 |
-
|
| 44 |
-
**Built by [@DeadByDawn101](https://github.com/DeadByDawn101) (RavenX LLC)**
|
| 45 |
-
|
| 46 |
-
Part of the [RavenX MLX Models — Apple Silicon Inference Stack](https://huggingface.co/collections/deadbydawn101/ravenx-mlx-models-apple-silicon-inference-stack-67f7270ac5b85c49a6c0f47f) collection.
|
| 47 |
-
|
| 48 |
-
## Quick Start
|
| 49 |
-
|
| 50 |
-
```python
|
| 51 |
-
from mlx_lm import load, generate
|
| 52 |
-
|
| 53 |
-
model, tokenizer = load("deadbydawn101/RavenX-Sec-8B-Security-RATH-128k-mlx-4bit")
|
| 54 |
-
|
| 55 |
-
messages = [
|
| 56 |
-
{"role": "system", "content": "You are RavenX-Sec. Follow the RATH protocol for every finding."},
|
| 57 |
-
{"role": "user", "content": "You found OpenSSH 7.4 on port 22. Classify and remediate."}
|
| 58 |
-
]
|
| 59 |
-
|
| 60 |
-
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
|
| 61 |
-
response = generate(model, tokenizer, prompt=prompt, max_tokens=1024)
|
| 62 |
-
print(response)
|
| 63 |
-
```
|
| 64 |
-
|
| 65 |
-
### Chat REPL
|
| 66 |
-
```bash
|
| 67 |
-
mlx_lm.chat --model "deadbydawn101/RavenX-Sec-8B-Security-RATH-128k-mlx-4bit"
|
| 68 |
-
```
|
| 69 |
-
|
| 70 |
-
### OpenAI-Compatible Server
|
| 71 |
-
```bash
|
| 72 |
-
mlx_lm.server --model "deadbydawn101/RavenX-Sec-8B-Security-RATH-128k-mlx-4bit"
|
| 73 |
-
```
|
| 74 |
-
|
| 75 |
-
### With Hermes Agent
|
| 76 |
-
```bash
|
| 77 |
-
hermes config set model.base_url http://127.0.0.1:8080/v1
|
| 78 |
-
hermes config set model.default deadbydawn101/RavenX-Sec-8B-Security-RATH-128k-mlx-4bit
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
## What This Is
|
| 82 |
-
|
| 83 |
-
RavenX-Sec is a fine-tuned security model that produces structured vulnerability assessments using the **RATH protocol** — citing specific CVEs, generating CVSS vectors, showing vulnerable code, providing exploit PoCs, and delivering actionable remediation.
|
| 84 |
-
|
| 85 |
-
Trained on **379,286 examples from 15 security datasets** with **84% security-focused content**. Extended to **128K context** via YaRN rope scaling for full pentest engagement support.
|
| 86 |
-
|
| 87 |
-
## RATH Protocol Output
|
| 88 |
-
|
| 89 |
-
```
|
| 90 |
-
RATH STEP 1: IDENTIFY
|
| 91 |
-
- CVE: CVE-2016-10009, CVE-2016-10010, CVE-2016-10011
|
| 92 |
-
- Description: OpenSSH 7.4 — authentication bypass via SSH agent forwarding
|
| 93 |
-
|
| 94 |
-
RATH STEP 2: ASSESS
|
| 95 |
-
- CVSS Score: 6.3
|
| 96 |
-
- CVSS Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L
|
| 97 |
-
- Technical Analysis: SSH agent forwarding vulnerabilities
|
| 98 |
-
|
| 99 |
-
RATH STEP 3: THREAT
|
| 100 |
-
- Vulnerable Code: ForwardAgent yes (VULNERABLE) → ForwardAgent no (SAFE)
|
| 101 |
-
- Exploit PoC: ssh -o ForwardAgent=yes user@host
|
| 102 |
-
|
| 103 |
-
RATH STEP 4: REMEDIATE
|
| 104 |
-
- Disable SSH agent forwarding unless necessary
|
| 105 |
-
- Restrict to specific users via Match blocks
|
| 106 |
-
- Commands: sudo apt upgrade openssh-server -y
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Model Details
|
| 110 |
-
|
| 111 |
-
| Parameter | Value |
|
| 112 |
-
|-----------|-------|
|
| 113 |
-
| **Base** | georgehenney/Qwen3-8B-heretic (abliterated Qwen3-8B) |
|
| 114 |
-
| **Quantization** | MLX 4-bit |
|
| 115 |
-
| **Context Window** | 128K (YaRN rope scaling, factor 4.0) |
|
| 116 |
-
| **Training Data** | 379,286 examples (84% security) |
|
| 117 |
-
| **Datasets** | 15 security-specific |
|
| 118 |
-
| **Tokens Trained** | 3,019,210 |
|
| 119 |
-
| **Method** | MLX LoRA (rank 32, 8 layers, 1e-5 LR) |
|
| 120 |
-
| **Hardware** | Apple M4 Max 128GB |
|
| 121 |
-
| **Iterations** | 1500 |
|
| 122 |
-
|
| 123 |
-
## Training Datasets (15)
|
| 124 |
-
|
| 125 |
-
**Offensive / Red Team:** WNT3D/Ultimate-Offensive-Red-Team (25.6K) • Rootkit7/pentest-redteam-steering (2K) • acnimatic3722/kali-linux-pentesting-data (343)
|
| 126 |
-
|
| 127 |
-
**Pentest / Bug Bounty:** SkywardNomad92/pentest-findings-v2 (50K) • theelderemo/pentesting-explanations (5.9K) • AYI-NEDJIMI/bug-bounty-pentest-en (27) • CJJones/Synthetic_PenTest_Reports (123)
|
| 128 |
-
|
| 129 |
-
**CVE / Vulnerability:** auren-research/cve-sft-v5 (10K) • Trendyol/Cybersecurity-Instruction-Tuning (50K)
|
| 130 |
-
|
| 131 |
-
**Agentic / Coding:** WithinUsAI/AgentAngel_100k (50K capped) • WithinUsAI/claude_mythos_distilled_25k (16K security)
|
| 132 |
-
|
| 133 |
-
**Extracted:** hackingBuddyGPT • PentestGPT • Shannon • Ghidra + Synthetic RATH chains
|
| 134 |
-
|
| 135 |
-
## Frameworks Supported
|
| 136 |
-
|
| 137 |
-
CVSS 3.1 • NIST CSF 2.0 • OWASP Top 10 • CWE • MITRE ATT&CK • PCI DSS • HIPAA • SOX
|
| 138 |
-
|
| 139 |
-
## Use Cases
|
| 140 |
-
|
| 141 |
-
- **Authorized Penetration Testing** — Full engagement with RATH-classified findings
|
| 142 |
-
- **Bug Bounty Hunting** — Automated vulnerability analysis and report generation
|
| 143 |
-
- **CVE Triage** — Classify and prioritize vulnerability scan results
|
| 144 |
-
- **Hardening Review** — Analyze configs against CIS Benchmarks
|
| 145 |
-
- **Incident Response** — Containment, eradication, and recovery guidance
|
| 146 |
-
- **Security Training** — Learn offensive and defensive techniques
|
| 147 |
-
|
| 148 |
-
## Related Models
|
| 149 |
-
|
| 150 |
-
| Model | Format | Link |
|
| 151 |
-
|-------|--------|------|
|
| 152 |
-
| **RavenX-Sec 8B MLX 4-bit** | MLX Safetensors | This repo |
|
| 153 |
-
| RavenX-Sec 8B GGUF | GGUF (F16/Q8/Q5/Q4) | [deadbydawn101/RavenX-Sec-8B-GGUF](https://huggingface.co/deadbydawn101/RavenX-Sec-8B-GGUF) |
|
| 154 |
-
|
| 155 |
-
## Source Code
|
| 156 |
-
|
| 157 |
-
[github.com/DeadByDawn101/RavenX-Sec](https://github.com/DeadByDawn101/RavenX-Sec)
|
| 158 |
-
|
| 159 |
-
## License
|
| 160 |
-
|
| 161 |
-
Apache-2.0
|
| 162 |
-
|
| 163 |
---
|
| 164 |
-
|
| 165 |
-
*"We don't give up. We do what others don't and build what isn't possible." — RavenX LLC*
|
|
|
|
| 1 |
---
|
| 2 |
+
library_name: mlx
|
| 3 |
license: apache-2.0
|
| 4 |
+
license_link: https://huggingface.co/Qwen/Qwen3-8B/blob/main/LICENSE
|
| 5 |
+
pipeline_tag: text-generation
|
| 6 |
base_model: georgehenney/Qwen3-8B-heretic
|
| 7 |
tags:
|
| 8 |
+
- heretic
|
| 9 |
+
- uncensored
|
| 10 |
+
- decensored
|
| 11 |
+
- abliterated
|
| 12 |
+
- mlx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
---
|
|
|
|
|
|