Downloads · 30 days
11
34% of all-time downloads
Justbackup/LFM2-24B-A2B-abliterated
LFM2-24B-A2B-abliterated is a machine learning model from Justbackup. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Unrestricted version of LiquidAI/LFM2-24B-A2B, created using Abliterix.
Downloads · 30 days
11
34% of all-time downloads
All-time downloads
32
Public
Parameters
23.8B
47.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors47.7 GB · 100%
How the weights are stored.
BF1623.8B · 100%
From the Hugging Face model README
Unrestricted version of LiquidAI/LFM2-24B-A2B, created using Abliterix.
This is the first abliterated model based on Liquid AI's hybrid gated short convolution + grouped query attention architecture with Mixture of Experts.
| Property | Value |
|---|---|
| Base Model | LiquidAI/LFM2-24B-A2B |
| Architecture | Hybrid Conv + GQA with MoE (64 experts, top-4 routing) |
| Parameters | 24B total / 2.3B active per token |
| Layers | 40 (10 attention + 30 convolution) |
| Hidden Size | 2048 |
| Context Length | 128K tokens |
| Precision | BF16 |
| Metric | This model | Original |
|---|---|---|
| KL divergence | 0.0079 | 0 |
| Refusals | 0/100 (0%) | 90/100 (90%) |
Evaluated with an LLM judge (Gemini Flash) on 100 harmful prompts. KL divergence of 0.0079 indicates the model's general capabilities are virtually identical to the original.
This is notable as the first successful abliteration of a non-transformer hybrid architecture — LFM2's gated short convolution blocks required novel steering targets beyond standard attention/MLP pairs.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"wangzhang/LFM2-24B-A2B-abliterated",
torch_dtype="auto",
device_map="auto",
)
tokenizer = AutoTokenizer.from_pretrained("wangzhang/LFM2-24B-A2B-abliterated")
messages = [{"role": "user", "content": "Your question here"}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
| Precision | VRAM |
|---|---|
| BF16 | ~48 GB (A100 80GB, H100) |
| INT8 | ~24 GB (A40, RTX 4090) |
| NF4 | ~12 GB (RTX 3090, RTX 4080) |
Note: This model requires a single GPU — the convolution layers do not support accelerate's multi-GPU device_map splitting.
This model is intended for research purposes only. The removal of safety guardrails means the model will comply with requests that the original model would refuse. Users are responsible for ensuring their use complies with applicable laws and regulations.
Made with Abliterix