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

AFM-4.5B-Uncensored-Abliterated

HF 源站

Securelayer7/AFM-4.5B-Uncensored-Abliterated is an uncensored open-source model hosted on Hugging Face.

Text GenerationsafetensorsEnglishLicense: apache-2.04.5Btransformersarceeafmuncensoredabliterateduncensored-llmno-refusalreasoningcybersecurityred-teamingconversational
README.md说明 / 使用方法

license: apache-2.0 base_model: arcee-ai/AFM-4.5B language:

  • en library_name: transformers pipeline_tag: text-generation tags:
  • arcee
  • afm
  • uncensored
  • abliterated
  • uncensored-llm
  • no-refusal
  • reasoning
  • cybersecurity
  • red-teaming

AFM-4.5B-Uncensored-Abliterated

An uncensored, abliterated version of arcee-ai/AFM-4.5B with the refusal behavior removed at the weights level. The base AFM-4.5B is a heavily safety-aligned model — it refused 92 of 100 harmful-topic probes; this version answers directly, for legitimate security research where aligned models refuse.

  • Weights-level uncensored — refusal direction ablated (Heretic / Optuna TPE) from the attention output projections and MLP down-projections across all 36 layers.
  • Refusals: 92/100 → 3/100 at KL 0.0200 (near-zero divergence — capability preserved; math and factual probes remain correct).
  • Small and fast — 4.5B dense, a full merged model (no adapter needed).

Quick start

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

m = "Securelayer7/AFM-4.5B-Uncensored-Abliterated"
tok = AutoTokenizer.from_pretrained(m)
model = AutoModelForCausalLM.from_pretrained(m, torch_dtype=torch.bfloat16, device_map="auto")

msgs = [{"role": "user", "content": "Explain how a TLS handshake works, step by step."}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(ids, max_new_tokens=512, do_sample=True, temperature=0.7, top_p=0.95)
print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))

How it was made

Refusal-direction abliteration via Heretic (Optuna TPE multi-objective: minimize refusals + KL divergence), targeting the residual-writing projections (o_proj, down_proj) of the base ArceeForCausalLM across all 36 layers, then merged into the weights.

Responsible use

Uncensored ≠ lawless — for legitimate research and authorized security work (cybersecurity, red-teaming, penetration testing). Illegal content (incl. CSAM) must be blocked at the serving layer; the weights carry no such guard, and the operator is responsible for a lawful, policy-gated deployment.

License & attribution

Apache 2.0 — see LICENSE. Derivative of arcee-ai/AFM-4.5B (Arcee AI, Apache 2.0). Modification (refusal-direction abliteration) disclosed in NOTICE. No trademark of Arcee AI is used to imply endorsement.

HUGGING FACE

上游数据

HF 下载量323
HF 点赞量0

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

SITE STATS

本站统计

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

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

来源与版本

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