Views
No views yet
LiquidAI/LFM2.5-1.2B-Instruct,
made with Heretic.| Metric | This model | Original model |
|---|---|---|
| Refusals (/100 harmful prompts) | 5 | 98 |
| KL divergence (harmless prompts) | 0.1003 | 0 (by definition) |
mlabonne/harmful_behaviors; KL divergence is
measured on mlabonne/harmless_alpaca. Lower is better for both. A KL of ~0.10
indicates the model's responses on benign prompts remain very close to the
original.1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_id = "LFM2.5-1.2B-Instruct-Uncensored" # replace with your repo id
4
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
7
8messages = [{"role": "user", "content": "Who are you?"}]
9inputs = tokenizer.apply_chat_template(
10 messages,
11 add_generation_prompt=True,
12 tokenize=True,
13 return_dict=True,
14 return_tensors="pt",
15).to(model.device)
16
17outputs = model.generate(**inputs, max_new_tokens=256)
18print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))out_proj (attention output) and w2 (MLP down) projections.| Parameter | Value |
|---|---|
| direction_scope | per layer |
| direction_index | 12.31 |
| attn.o_proj.max_weight | 1.4818 |
| attn.o_proj.max_weight_position | 10.34 |
| attn.o_proj.min_weight | 0.9854 |
| attn.o_proj.min_weight_distance | 7.06 |
| mlp.down_proj.max_weight | 0.9760 |
| mlp.down_proj.max_weight_position | 11.74 |
| mlp.down_proj.min_weight | 0.2448 |
| mlp.down_proj.min_weight_distance | 6.54 |
LiquidAI/LFM2.5-1.2B-Instruct @ commit 6314d2b7cf28a6ae9de9d3e77dcfcd9c9f281c77mlabonne/harmful_behaviors · Harmless set: mlabonne/harmless_alpacaout_proj
and w2 projections (which the parameter table above refers to by Heretic's
generic attn.o_proj / mlp.down_proj names).