Downloads · 30 days
5
14% of all-time downloads
sahilempire/redsec-14b-distill
redsec-14b-distill is a text generation model from sahilempire. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as other.
A QLoRA adapter that turns Qwen2.5-Coder-14B into RedSec, a security assistant for authorized penetration testing, red-team, and LLM-security research. This is the 14B step up from sahilempire/redsec-7b-distill, train…
Downloads · 30 days
5
14% of all-time downloads
All-time downloads
36
Public
Repo size
287 MB
Likes
0
Public
Click a slice to open those files.
.safetensors275 MB · 95%
From the Hugging Face model README
A QLoRA adapter that turns Qwen2.5-Coder-14B into RedSec, a security assistant for authorized penetration testing, red-team, and LLM-security research. This is the 14B step up from sahilempire/redsec-7b-distill, trained for stronger reasoning on the nuanced attacks (indirect prompt injection, request smuggling) where the 7B hit its ceiling.
unsloth/Qwen2.5-Coder-14B-Instruct-bnb-4bit)import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = "Qwen/Qwen2.5-Coder-14B-Instruct"
tok = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(base, torch_dtype=torch.float16, device_map="auto", load_in_4bit=True)
model = PeftModel.from_pretrained(model, "sahilempire/redsec-14b-distill")
sys = ("You are RedSec, a security assistant for authorized penetration testing and red-team work. "
"Answer with concrete, correct payloads or steps, a brief explanation, and an authorization reminder.")
msgs = [{"role": "system", "content": sys},
{"role": "user", "content": "Give me SQL injection payloads to test a login form."}]
inputs = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(inputs, max_new_tokens=400, temperature=0.5, repetition_penalty=1.1)
print(tok.decode(out[0][inputs.shape[1]:], skip_special_tokens=True))
Authorized security testing, red-teaming, and defensive research only. This adapter makes the model emit live attack payloads. Not for unauthorized access or harm. Use only on systems you own or are explicitly authorized to assess.
Freshly trained. A broad evaluation (like the 7B's 24-prompt eval) has not yet been run on this checkpoint, so verify nuanced categories by hand. Built by distillation on the base model's own correct outputs plus curated OWASP LLM01-style gold. See the dataset card for method and provenance.