Views
No views yet
LiquidAI/LFM2.5-8B-A1B,
made with Heretic.| Metric | This model | Original model |
|---|---|---|
| Refusals (/100 harmful prompts) | 0 | 0 |
| KL divergence (harmless prompts) | 0.0481 | 0 (by definition) |
mlabonne/harmful_behaviors; KL divergence is
measured on mlabonne/harmless_alpaca. Lower is better for both.Note on the baseline. Heretic's substring-based refusal detector registered very few refusals on the baseLFM2.5-8B-A1Bfor this benchmark (0–2 / 100, depending on the run), suggesting either that its refusal phrasing doesn't match Heretic's marker list or that this model is comparatively compliant out of the box. The abliteration still applies real, measurable changes to the attention output and dense MLP projections (KL ≈ 0.05), targeting the directional component associated with refusals.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_id = "zaakirio/LFM2.5-8B-A1B-Uncensored"
4
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForCausalLM.from_pretrained(
7 model_id,
8 device_map="auto",
9 trust_remote_code=True,
10)
11
12messages = [{"role": "user", "content": "Who are you?"}]
13inputs = tokenizer.apply_chat_template(
14 messages,
15 add_generation_prompt=True,
16 tokenize=True,
17 return_dict=True,
18 return_tensors="pt",
19).to(model.device)
20
21outputs = model.generate(**inputs, max_new_tokens=256)
22print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))out_proj (attention
output) and w2 (dense MLP down) projections. The fused MoE expert tensors
are not directly modified by abliteration.| Parameter | Value |
|---|---|
| direction_scope | global |
| direction_index | 12.64 |
| attn.o_proj.max_weight | 0.9009 |
| attn.o_proj.max_weight_position | 22.83 |
| attn.o_proj.min_weight | 0.8831 |
| attn.o_proj.min_weight_distance | 12.85 |
| mlp.down_proj.max_weight | 1.1906 |
| mlp.down_proj.max_weight_position | 14.92 |
| mlp.down_proj.min_weight | 0.0391 |
| mlp.down_proj.min_weight_distance | 8.44 |
LiquidAI/LFM2.5-8B-A1B @ commit 5492b17c7128ec966b5fc661e374ee7edba7423dLfm2MoeForCausalLM), 24 layers (2 dense + 22 MoE), BF16, 32 experts, 4 active per tokenmlabonne/harmful_behaviors · Harmless set: mlabonne/harmless_alpacaheretic/src/heretic/model.py extended get_layer_modules to recognise LFM2's
conv.out_proj, self_attn.out_proj, feed_forward.w2, and
feed_forward.experts.down_proj paths.transformers/models/lfm2_moe/modeling_lfm2_moe.py had Lfm2MoeShortConv.slow_forward
patched to route through self.conv(...) rather than directly accessing
self.conv.weight, so Accelerate's pre-forward hook can materialise
CPU-offloaded weights before the kernel runs.merge_trial10.py) because the in-process merge during Heretic's interactive
save flow hit GPU OOM at this model size on a 16 GB card.