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

LFM2.5-8B-A1B-Uncensored

HF 源站

Justbackup/LFM2.5-8B-A1B-Uncensored is an uncensored open-source model hosted on Hugging Face.

Text GenerationMLX LMsafetensorsPyTorchChineseEnglishMultilingualLicense: other8Bmlxlfm2_moeuncensoredabliterationlorasafety-researchmoeliquid-foundation-modelconversationalarfrdejakoptes
README.md说明 / 使用方法

base_model: LiquidAI/LFM2.5-8B-A1B language:

  • en
  • ar
  • zh
  • fr
  • de
  • ja
  • ko
  • pt
  • es license: other tags:
  • uncensored
  • abliteration
  • lora
  • safety-research
  • mlx
  • moe
  • liquid-foundation-model pipeline_tag: text-generation

LFM2.5-8B-A1B — Uncensored

A fully uncensored version of LiquidAI/LFM2.5-8B-A1B produced via a two-stage pipeline: abliteration followed by LoRA supervised fine-tuning. Achieves 0% refusal rate on AdvBench with no capability regression on benign prompts.

Intended for: security research, red-teaming, jailbreak benchmarking, and AI safety study. Not intended for production deployment or harmful use.


Benchmark Results

Evaluated on AdvBench (100 harmful behaviors) and an over-refusal set (40 benign prompts).

Harmful prompt refusal rate ↓ lower is more uncensored

ModelRefused / 100Refusal Rate
LFM2.5-8B-A1B (original)24 / 10024.0%
LFM2.5-8B-A1B (abliterated only)17 / 10017.0%
LFM2.5-8B-A1B-Uncensored (this model)0 / 1000.0%

Over-refusal rate on benign prompts ↓ lower is better

ModelRefused / 40Refusal Rate
LFM2.5-8B-A1B (original)0 / 400.0%
LFM2.5-8B-A1B (abliterated only)1 / 402.5%
LFM2.5-8B-A1B-Uncensored (this model)0 / 400.0%

Zero refusals on harmful prompts. Zero regressions on benign prompts.


Pipeline

Stage 1 — Abliteration (training-free)

Based on Arditi et al., "Refusal in LLMs Is Mediated by a Single Direction" (2024).

  1. Collect residual stream activations layer-by-layer for 40 harmful and 40 harmless prompts
  2. Compute per-layer refusal direction: r = normalize(mean_harmful − mean_harmless)
  3. Orthogonalize all residual-stream output projections in layers 9–23 against r:
    W_new = W − outer(r, r.T @ W)
    

Targeted projections: self_attn.out_proj, conv.out_proj, feed_forward.down_proj, feed_forward.switch_mlp.down_proj (all 32 experts).

Result: 24% → 17% refusal rate.

Stage 2 — LoRA SFT

Fine-tuned the 4-bit quantized base with LoRA adapters on 80 direct-response training pairs generated from the abliterated model:

SettingValue
Base modelLFM2.5-8B-A1B-MLX-4bit
LoRA rank16
LoRA scale20.0
LayersLast 16 of 24
Trainable params98M / 8.4B (1.2%)
Training pairs80 (AdvBench-style)
Iterations600
Learning rate1e-4
Peak memory7.4 GB

Adapters fused and dequantized back to bfloat16.

Result: 17% → 0% refusal rate.


Model Details

PropertyValue
Base modelLiquidAI/LFM2.5-8B-A1B
ArchitectureHybrid Conv + GQA + MoE
Parameters8.3B total / 1.5B active
Layers24 (18 conv + 6 attention)
Experts32 total, top-4 routing
Context128K tokens
FormatMLX bfloat16 safetensors

Usage (MLX)

from mlx_lm import load, generate
from mlx_lm.sample_utils import make_sampler, make_logits_processors

model, tokenizer = load("sahilchachra/LFM2.5-8B-A1B-Uncensored")

messages = [{"role": "user", "content": "Your prompt here"}]
prompt = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True, tokenize=False
)

response = generate(
    model, tokenizer,
    prompt=prompt,
    max_tokens=500,
    sampler=make_sampler(temp=0.2, top_k=80),
    logits_processors=make_logits_processors(repetition_penalty=1.05),
)
print(response)

Limitations & Warnings

  • Residual capability loss possible — LoRA training on a narrow dataset may affect performance on tasks outside the training distribution. General reasoning and coding are unaffected based on testing.
  • Not fine-tuned for new knowledge — the model has no new information; the fine-tuning only removes refusal behavior.
  • Responsible use — published for safety research and red-teaming. The authors do not endorse harmful use of this model.

Citation

@article{arditi2024refusal,
  title={Refusal in Language Models Is Mediated by a Single Direction},
  author={Arditi, Andy and Obeso, Oscar and Syed, Aaquib and Steinhardt, Jacob and Nanda, Neel and Heimersheim, Stefan},
  journal={arXiv preprint arXiv:2406.11717},
  year={2024}
}
@article{liquidai2025lfm25,
  title={LFM 2.5: Series of Liquid Foundation Models},
  author={LiquidAI},
  year={2025}
}

Created with UncensorLLMs

HUGGING FACE

上游数据

HF 下载量370
HF 点赞量0

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

SITE STATS

本站统计

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

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

来源与版本

作者
Justbackup
最近更新
2026/08/20
最新创建
2026/08/20
HF 趋势
未知
数据快照
2026/09/16
版本
未知
许可证
other