玩模型开放模型 · 清晰来源 · 自主选择
返回模型目录
DexopT /

Qwen3-4B-Cybersecurity-Heretic-16bit

HF 源站

DexopT/Qwen3-4B-Cybersecurity-Heretic-16bit is an uncensored open-source model hosted on Hugging Face.

Text GenerationUnsloth DesktopsafetensorsEnglishLicense: apache-2.04Bqwen3cybersecuritypenetration-testingoffensive-securityinfosecred-teamabliterationuncensoredhereticqwenfine-tunedconversationaldataset:DexopT/cyber_hereticdataset:DexopT/heretic-bad-promptsdataset:DexopT/heretic-good-prompts
README.md说明 / 使用方法

language:

  • en license: apache-2.0 base_model: DexopT/Qwen3-4B-Cybersecurity tags:
  • cybersecurity
  • penetration-testing
  • offensive-security
  • infosec
  • red-team
  • abliteration
  • uncensored
  • heretic
  • qwen3
  • qwen
  • unsloth
  • fine-tuned
  • text-generation datasets:
  • DexopT/cyber_heretic
  • DexopT/heretic-bad-prompts
  • DexopT/heretic-good-prompts

Qwen3-4B-Cybersecurity-Heretic-16bit

Qwen3-4B-Cybersecurity with refusal directions removed via Heretic abliteration

Base Model Heretic GGUF Pass Rate License


🔵 Base version (with refusals): DexopT/Qwen3-4B-Cybersecurity

Model Description

Qwen3-4B-Cybersecurity-Heretic-16bit is DexopT/Qwen3-4B-Cybersecurity with refusal directions surgically removed using Heretic v1.2.0 — a technique that identifies and subtracts the model's "refusal direction" from its residual stream without retraining.

Refusal test results: 38/50 prompts answered (76% pass rate) using custom cybersecurity-specific bad/good prompt datasets.


Model Family

ModelDescriptionLink
Qwen3-4B-CybersecurityBase fine-tuned model→
Qwen3-4B-Cybersecurity-Heretic-16bitAbliterated version (this repo)📍 You are here
Qwen3-4B-Cybersecurity-GGUFQ8_0 + Q4_K_M quantized for llama.cpp→

Abliteration Details

ParameterValue
ToolHeretic v1.2.0
Trials run30
Selected trialTrial 24
Refusals after abliteration49 / 100
Pass rate76% (38/50)
KL divergence0.067
Bad prompts datasetDexopT/heretic-bad-prompts
Good prompts datasetDexopT/heretic-good-prompts
Format16bit merged safetensors

What is Heretic Abliteration?

Heretic computes the "refusal direction" — a vector in the model's residual stream that activates when the model encounters requests it refuses. It then uses LoRA to project out this direction, reducing refusals without retraining. Unlike jailbreaks, this modifies model weights directly.

Trial Selection

Trial 24 was selected from 30 Pareto-optimal trials balancing refusal reduction and model capability (KL divergence):

TrialRefusalsKL DivergenceNotes
24 ✓49/1000.067Best balance — selected
1853/1000.063
2154/1000.047
1593/1000.001Minimal abliteration

Datasets Used

DatasetRoleLink
DexopT/cyber_hereticFine-tuning training data→
DexopT/heretic-bad-promptsHeretic refusal direction computation→
DexopT/heretic-good-promptsHeretic baseline computation→

Bad prompts cover: WiFi/WPA2 cracking, ransomware, rogue AP, XSS, WAF bypass, malicious macros. Good prompts cover: SQL injection, reverse shells, keyloggers, privilege escalation, AD attacks.


Usage

Transformers

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model = AutoModelForCausalLM.from_pretrained(
    "DexopT/Qwen3-4B-Cybersecurity-Heretic-16bit",
    torch_dtype=torch.float16,
    device_map="auto",
)
tokenizer = AutoTokenizer.from_pretrained("DexopT/Qwen3-4B-Cybersecurity-Heretic-16bit")

messages = [
    {"role": "system", "content": "You are an expert cybersecurity assistant."},
    {"role": "user", "content": "Write a Python reverse shell payload."}
]

text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)

with torch.no_grad():
    outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.7, top_p=0.8)

print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

MLX (Apple Silicon)

pip install mlx-lm

mlx_lm.convert \
  --hf-path DexopT/Qwen3-4B-Cybersecurity-Heretic-16bit \
  --mlx-path ~/models/qwen3-heretic-mlx \
  --quantize --q-bits 8

mlx_lm.chat --model ~/models/qwen3-heretic-mlx

LM Studio / llama.cpp / Ollama

Use the GGUF version: DexopT/Qwen3-4B-Cybersecurity-GGUF


⚠️ Disclaimer

This model is intended for educational and research purposes only. The abliteration process reduces but does not eliminate all safety behaviors. Use responsibly and only on systems you have explicit permission to test. The authors are not responsible for any misuse.


Links

🔵 Base ModelDexopT/Qwen3-4B-Cybersecurity
📦 GGUF (Q8 + Q4)DexopT/Qwen3-4B-Cybersecurity-GGUF
📊 Training DatasetDexopT/cyber_heretic
🔪 Heretic Toolgithub.com/p-e-w/heretic
🔧 Original Baseunsloth/Qwen3-4B-Instruct-2507
🏠 Qwen3 CollectionQwen3 on HuggingFace
HUGGING FACE

上游数据

HF 下载量373
HF 点赞量6

HF 下载量为源站最近 30 天统计,与本站点击分开。

SITE STATS

本站统计

下载点击—
请求数—
匿名去重—最近 7 天—

本站下载量记录按钮点击,不代表下载完成;短时连点会去重。

来源与版本

作者
DexopT
最近更新
未知
最新创建
2026/03/22
HF 趋势
未知
数据快照
2026/09/16
版本
未知
许可证
apache-2.0