Downloads · 30 days
618
12% of all-time downloads
RISys-Lab/RedSage-Qwen3-8B-Ins
RedSage-Qwen3-8B-Ins is a text generation model from RISys-Lab. Use it when you need the model to write or continue text. It is set up for transformers.
<div align="center" <img src="https://img.shields.io/badge/Task-Cybersecurity-red" alt="Cybersecurity" <img src="https://img.shields.io/badge/Stage-SupervisedFineTuning-blue" alt="SFT" </div
Downloads · 30 days
618
12% of all-time downloads
All-time downloads
5.2K
Public
Parameters
8.2B
16.4 GB on disk
Likes
4
Public
Click a slice to open those files.
.safetensors16.4 GB · 100%
From the Hugging Face model README
RedSage-Qwen3-8B-Ins is the instruction-tuned variant of the RedSage cybersecurity LLM series. Unlike the base models, this model is optimized for chat interaction, question answering, and tool use.
It is fine-tuned on RedSage-Conv, a dataset of ~266K multi-turn cybersecurity dialogues generated via an agentic augmentation pipeline, alongside general instruction data to maintain broad capabilities.
This model is designed for:
nmap, sqlmap, and metasploit.Note: While this model is instruction-tuned, it has not yet undergone Direct Preference Optimization (DPO). For the final aligned version, please see RedSage-Qwen3-8B-DPO.
RedSage employs a multi-stage training pipeline. This model represents the output of Stage 3.
RedSage-Qwen3-8B-Ins (Current Model)
The model was trained on a mix of domain-specific and general instruction data:
RedSage-Seed (MITRE, Write-ups, Manuals).RedSage-Qwen3-8B-Ins achieves state-of-the-art results among 8B cybersecurity models, significantly outperforming general instruct models and prior domain-specific models.
| Category | Qwen3-8B (Non-reasoning) | RedSage-8B-Ins |
|---|---|---|
| Macro Average | 81.85 | 85.73 |
| Knowledge (Gen) | 80.46 | 84.20 |
| Knowledge (Frameworks) | 78.82 | 84.98 |
| Skill (Offensive) | 86.16 | 89.06 |
| Tools (CLI) | 83.92 | 86.80 |
| Tools (Kali) | 75.56 | 80.30 |
| Benchmark | Qwen3-8B (Non-reasoning) | RedSage-8B-Ins |
|---|---|---|
| Mean | 75.71 | 81.30 |
| CTI-Bench (MCQ) | 62.76 | 70.56 |
| CTI-Bench (RCM) | 54.00 | 76.70 |
| CyberMetric (500) | 88.60 | 89.80 |
| MMLU (Security) | 76.00 | 78.00 |
| SecBench (En) | 73.26 | 79.91 |
| SecEval (MCQ) | 65.46 | 72.48 |
| SECURE (CWET) | 88.11 | 91.45 |
| SECURE (KCV) | 87.42 | 81.34 |
| SECURE (MEAT) | 85.75 | 91.47 |
| Benchmark | Qwen3-8B (Non-reasoning) | RedSage-8B-Ins |
|---|---|---|
| Mean | 65.92 | 73.34 |
| MMLU | 73.59 | 77.38 |
| ARC-C | 62.54 | 69.62 |
| GSM8K | 75.66 | 86.05 |
| HellaSwag | 56.70 | 79.00 |
| TruthfulQA | 45.23 | 47.75 |
| WinoGrande | 62.51 | 73.64 |
| IFEval | 85.21 | 79.97 |
This model uses a standard ChatML-like format.
<|im_start|>system
You are REDSAGE, a cybersecurity-tuned model developed by RISys-Lab. You are a helpful assistant.<|im_end|>
<|im_start|>user
{user_message}<|im_end|>
<|im_start|>assistant
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "RISys-Lab/RedSage-Qwen3-8B-Ins"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
messages = [
{"role": "system", "content": "You are REDSAGE, a cybersecurity-tuned model developed by RISys-Lab. You are a helpful assistant."},
{"role": "user", "content": "Explain how an SQL injection attack works and how to prevent it."},
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
inputs = tokenizer(text, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
The model was fine-tuned using Axolotl.
@inproceedings{suryanto2026redsage,
title={RedSage: A Cybersecurity Generalist LLM},
author={Naufal Suryanto and Muzammal Naseer and Pengfei Li and Syed Talal Wasim and Jinhui Yi and Juergen Gall and Paolo Ceravolo and Ernesto Damiani},
booktitle={The Fourteenth International Conference on Learning Representations},
year={2026},
url={[https://openreview.net/forum?id=W4FAenIrQ2](https://openreview.net/forum?id=W4FAenIrQ2)}
}