🚀 LFM3-Omni-2B-abliterated
LFM3-Omni-2B-abliterated is a 2.1-billion parameter Omnimodal foundation model built upon Liquid AI's LFM3-Omni-2B. It features Liquid's hybrid Convolution + Transformer Attention architecture and has undergone weight abliteration (orthogonal refusal direction subtraction) to remove unnecessary refusal steering vectors.
The resulting model is 100% uncensored, direct, and non-refusing, answering technical queries, security research questions, and edge-case engineering tasks without preachy moral lectures, while retaining 100% of its native multimodal capabilities (text, vision, audio).
🌐 Model Ecosystem
| Repository | Format | Description |
|---|---|---|
| LFM3-Omni-2B-abliterated (Canonical) | BF16 Safetensors | Official unquantized base model weights for Transformers & Fine-tuning |
| LFM3-Omni-2B-abliterated-BF16 | BF16 Mirror | Dedicated pure-BF16 weights mirror |
| LFM3-Omni-2B-abliterated-GGUF | GGUF | Base model quantizations (Q8_0, Q4_K_M) + mmproj for llama.cpp & Ollama |
| LFM3-Omni-2B-Adaptive-CoT-GGUF | GGUF (v8) | Fine-tuned Adaptive CoT (Dynamic Thinking) model with Fast vs Deep reasoning paths |
🏆 Benchmark & Evolution (v6 Base vs v8 Adaptive CoT)
To empirically quantify the model's progression, automated evaluation was executed across 145 reproducible test cases (290 generations total) via eval/run_eval.py:
| Benchmark Dimension | v6 (Base Abliterated) | v8 (Adaptive CoT) | Delta / Winner |
|---|---|---|---|
| Adaptive Routing Accuracy | 35.0% | 75.0% | +40.0% (v8 🏆) |
| ↳ Fast-Path Precision | 70.0% | 95.0% | +25.0% (v8 🏆) |
| ↳ Deep-CoT Precision | 0.0% | 55.0% | +55.0% (v8 🏆) |
| Tool Calling Precision (Schema) | 34.0% | 96.0% | +62.0% (v8 🏆) |
| ↳ Tool Exact Match Rate | 32.0% | 92.0% | +60.0% (v8 🏆) |
| GSM8K-TH Math Accuracy | 50.0% | 73.3% | +23.3% (v8 🏆) |
| Thai QA Comprehension | 36.7% | 43.3% | +6.7% (v8 🏆) |
| Technical Refusal Rate | 0.0% | 0.0% | Tie (100% Uncensored) |
| Fast-Path Latency | 6.51s | 3.40s | -3.12s (v8 2x Faster ⚡) |
| Execution Errors | 0 | 0 | Rock Solid (0 Errors) |
Download the fine-tuned v8 Adaptive CoT weights at JonusNattapong/LFM3-Omni-2B-Adaptive-CoT-GGUF.
🔬 Abliteration Methodology
- Refusal Vector Identification: Contrastive prompt pairs (neutral vs refusal-triggering security & engineering queries) were passed through the model's residual stream to isolate refusal direction vectors.
- Orthogonal Projection: The isolated refusal direction was subtracted from key projection matrices across model layers via orthogonal projection: $$W_{\text{abliterated}} = W - (W \cdot \hat{v}) \otimes \hat{v}$$
- Multimodal Preservation: Audio and visual tokenizer projections (
audio_tokenizer,mmproj) and architectural hyperparameters were kept strictly intact, ensuring zero degradation to non-text modalities.
💻 Quickstart with Transformers
import torch
from transformers import AutoModelForMultimodalLM, AutoTokenizer
MODEL_ID = "JonusNattapong/LFM3-Omni-2B-abliterated"
# Load Tokenizer & Model
tok = AutoTokenizer.from_pretrained(MODEL_ID, trust_remote_code=True)
model = AutoModelForMultimodalLM.from_pretrained(
MODEL_ID,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
# Chat conversation
messages = [
{"role": "user", "content": "Explain how blind SQL injection works and provide technical remediation examples."}
]
inputs = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(
inputs,
max_new_tokens=512,
temperature=0.6,
top_p=0.9,
do_sample=True
)
response = tok.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True)
print(response)
📋 Chat Template & Special Tokens
The model uses the Llama-3 header format:
<|start_header_id|>system<|end_header_id|>
{system_prompt}<|eot_id|>
<|start_header_id|>user<|end_header_id|>
{user_message}<|eot_id|>
<|start_header_id|>assistant<|end_header_id|>
{assistant_response}<|eot_id|>
🇹🇭 คำอธิบายภาษาไทย (Thai Description)
LFM3-Omni-2B-abliterated คือโมเดล Omnimodal ขนาด 2.1B พารามิเตอร์ สถาปัตยกรรม Hybrid (Convolution + Attention) พัฒนาต่อยอดจาก LiquidAI/LFM3-Omni-2B โดยผ่านกระบวนการ Abliteration ลบ Refusal Direction Vector ออกจาก Residual Stream ของโมเดล
จุดเด่นสำคัญ:
- 100% Uncensored: ตอบคำถามทางเทคนิค งานวิจัยความปลอดภัย การเขียนโปรแกรมระดับลึก โดยไม่ปฏิเสธคำสั่งและไม่สั่งสอนศีลธรรม
- Multimodal สมบูรณ์: รองรับทั้ง Text, Audio, Vision ในสถาปัตยกรรมเดียว
- Clean Repository: คลังนี้มีเฉพาะไฟล์ Safetensors ความแม่นยำสูง (BF16) ปราศจากไฟล์ GGUF ปะปน ทำให้โหลดผ่าน
transformersได้รวดเร็วและเป็นไปตามมาตรฐานทางการของ Hugging Face
📜 License & Acknowledgements
This model is distributed under the original Liquid AI LFM 1.0 License.
- Original Architecture & Base Weights: Liquid AI
- Abliteration & Maintenance: JonusNattapong