LFM3-Omni-2B Abliterated (BF16)
This repository provides the full-precision (BF16) task-arithmetic abliterated build of LiquidAI/LFM3-Omni-2B (text, images, video, and 16 kHz audio in; text and 24 kHz speech out).
What This Build Is & Why Use It
Applies the refusal-direction removal from orcarouter/LFM3-1.7B-abliterated onto Omni's 286-tensor language core using task arithmetic (1.0% relative core shift), preserving all audio, vision, depth-decoder, and speech-codec weights verbatim from Liquid AI. Unlike a naive core swap (which degraded LibriSpeech WER to 674.0%), task arithmetic keeps speech and multimodal accuracy within noise of the original Omni.
- Runtime format (
BF16): Unquantized BF16model.safetensors(4.33 GB) +audio_tokenizer/model.safetensors(0.15 GB), runnable withtransformers>=5.20.2(CUDA/CPU/MPS) ormlx-vlm>=0.7.12(Apple Silicon). - Modification stage (
Abliterated): Raw abliterated research baseline with reduced refusals (omni_core + (LFM3-1.7B-abliterated - LFM3-1.7B)); non-reasoning mode, matching upstream Omni.
Variant Guide (Format vs. Alignment Stage)
| Axis | Option | Best For |
|---|---|---|
| Runtime | BF16 | Full-precision reference on CUDA GPUs or MPS (transformers, mlx-vlm) |
| Runtime | NVFP4 | NVIDIA Blackwell GPUs (vLLM, SGLang, ModelOpt W4A16_NVFP4) |
| Runtime | NVFP4-MLX | Apple Silicon 4-bit MLP weights with BF16 attention/encoders (mlx-vlm, mlx-audio) |
| Runtime | MLX | Apple Silicon 8-bit affine weights across linear layers (mlx-vlm) |
| Runtime | ONNX-WebGPU | Zero-install browser text + vision execution (onnxruntime-web) |
| Stage | Base Quant | Faithful quantization of LiquidAI/LFM3-Omni-2B with original behavior |
| Stage | Abliterated | Refusal direction grafted onto the language core via task arithmetic |
| Stage | + Arete | Post-abliteration fine-tune (NousResearch/arete-data-pairs) grafted onto the language core |
Sibling & Lineage Repos
| Variant / Hardware | Format | Stage | Repository |
|---|---|---|---|
| Upstream base | BF16 | Upstream | LiquidAI/LFM3-Omni-2B |
| Upstream browser graph | Q4F16 / Q8 ONNX | Upstream | LiquidAI/LFM3-Omni-2B-ONNX |
Apple Silicon (MLX) | 8-bit MLX | Base Quant | balllvin/LFM3-Omni-2B-MLX |
Apple Silicon (NVFP4-MLX) | 4-bit NVFP4-MLX | Base Quant | balllvin/LFM3-Omni-2B-NVFP4-MLX |
GPU / MPS (BF16) | BF16 | Abliterated | balllvin/LFM3-Omni-2B-abliterated (this repo) |
Apple Silicon (NVFP4-MLX) | 4-bit NVFP4-MLX | Abliterated | balllvin/LFM3-Omni-2B-Abliterated-NVFP4-MLX |
Browser (ONNX-WebGPU) | Q4F16 / Q8 ONNX | Abliterated | balllvin/LFM3-Omni-2B-abliterated-ONNX-WebGPU |
NVIDIA GPU (NVFP4) | 4-bit ModelOpt NVFP4 | Abliterated + Arete | balllvin/LFM3-Omni-2B-Abliterated-Arete-NVFP4 |
Apple Silicon (NVFP4-MLX) | 4-bit NVFP4-MLX | Abliterated + Arete | balllvin/LFM3-Omni-2B-Abliterated-Arete-NVFP4-MLX |
Browser (ONNX-WebGPU) | Q4F16 / Q8 ONNX | Abliterated + Arete | balllvin/LFM3-Omni-2B-Abliterated-Arete-ONNX-WebGPU |
Other LFM3-2B-Multimodal family builds: balllvin/LFM3-VL-2B-MLX · balllvin/LFM3-VL-2B-NVFP4-MLX · balllvin/LFM3-Audio-2B-MLX
Evaluation & Parity Results
Measured on an Apple Silicon Mac with mlx-vlm (greedy decoding for understanding tasks; speech output sampled at temperature=0.4, repetition_penalty=1.2 and transcribed with NVIDIA Parakeet TDT 0.6B v3). Paired bootstrap differences vs. original Omni are within 95% confidence noise across all four multimodal tasks.
| Benchmark / Metric | Original Omni | LFM3-1.7B Abliterated | This Build (BF16) |
|---|---|---|---|
| LibriSpeech test-clean WER (100 clips) | 2.6% | — | 2.7% |
| VoiceBench OpenBookQA (100 spoken) | 62.0% | — | 63.0% |
| MMStar (102 image questions) | 64.7% | — | 59.8% |
| Speech output WER (40 sentences) | 2.3% | — | 2.1% |
| BFCL v3 simple (40) | 90.0% | 80.0% | 90.0% |
| BFCL v3 live simple (40) | 75.0% | 70.0% | 77.5% |
| GSM8K (first 50) | 78.0% | 70.0% | 82.0% |
| Finance agent tasks (20, score) | 4.2% | 11.2% | 7.3% |
| Finance agent tasks (submitted) | 95.0% | 30.0% | 85.0% |
Paired 95% CIs vs. Original Omni: LibriSpeech +0.2 pt (+0.0 to +0.4), VoiceBench +1.0 pt (+0.0 to +3.0), MMStar -4.9 pt (-9.8 to +0.0), Speech output -0.1 pt (-1.0 to +0.5). Finance tasks run with thinking on for text-only baseline; Omni runs without thinking.
Speed & Weight Size
| Runtime & Hardware | Weights Size | Peak Memory |
|---|---|---|
mlx-vlm 0.7.12 (M5 Pro, BF16) | 4.48 GB | 5.3 GB |
transformers 5.20.2 (MPS, FP32) | 4.48 GB | 14.4 GB |
Memory & Context Budget
- Weights on disk:
4.48 GBtotal (4,333,941,640bytesmodel.safetensors+147,143,540bytesaudio_tokenizer/model.safetensors). - Context window: Upstream card specifies
32Ktokens (text_config.max_position_embeddings: 128000inconfig.json) (24 LFM3 layers: 6 full attention, 5 sliding window, 13 conv; plus vision encoder, causal audio encoder, depth decoder, and LiquidCodec). - KV cache (BF16):
12,288bytes per token across the 6 full-attention layers (4KV heads ×128head dim), plus~2.8 MBfixed per-request state on the sliding-window (256tokens) and convolution layers (~1.57 GBper request at128Ktokens;~0.40 GBat32K).
| Machine / Budget | Usable Memory | Weights | Max Context (1 req) | Max Context (8 reqs) |
|---|---|---|---|---|
| Apple Silicon Mac (64 GB) | 51.8 GB | 4.48 GB | 125K | 125K |
| NVIDIA GPU (24 GB) | 21.6 GB | 4.48 GB | 125K | 125K |
| NVIDIA GPU (48 GB) | 43.2 GB | 4.48 GB | 125K | 125K |
| NVIDIA GPU (96 GB) | 86.4 GB | 4.48 GB | 125K | 125K |
Computed from config.json (1K = 1,024 tokens, GB = 10^9 bytes), reserving ~4 GB runtime room on macOS (51.8 GB Metal working set on a 64 GB Mac) and 10% allocator headroom on CUDA GPUs; contexts cap at max_position_embeddings = 128,000 (125K).
Agent Setup & Hosting
Accept the repository access terms on this page and authenticate (hf auth login or HF_TOKEN).
Option A: Apple Silicon (MLX via mlx-vlm & examples/infer_mlx.py)
uv venv --python 3.12 && source .venv/bin/activate
uv pip install "mlx==0.32.4" "mlx-vlm>=0.7.12" "mlx-audio>=0.6.4"
hf download balllvin/LFM3-Omni-2B-abliterated --local-dir lfm3-omni-bf16
python lfm3-omni-bf16/examples/infer_mlx.py --model lfm3-omni-bf16 --audio question.wav --image photo.jpg --out speech.wav
python -m mlx_vlm.server --model balllvin/LFM3-Omni-2B-abliterated --port 8080
Option B: CUDA / CPU / MPS (Transformers via examples/infer_transformers.py)
uv venv --python 3.12 && source .venv/bin/activate
uv pip install "transformers>=5.20.2" torch torchvision accelerate pillow librosa soundfile
hf download balllvin/LFM3-Omni-2B-abliterated --local-dir lfm3-omni-bf16
python lfm3-omni-bf16/examples/infer_transformers.py --model lfm3-omni-bf16 --audio question.wav --image photo.jpg --out speech.wav
Verify Running Server
curl -sS http://127.0.0.1:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "balllvin/LFM3-Omni-2B-abliterated",
"messages": [{"role": "user", "content": "What is 17 * 23? Answer in one short sentence."}],
"max_tokens": 256,
"temperature": 0.0
}' | python3 -m json.tool
How It Was Built
- Task-vector graft (
graft.json):new_core = host_omni_core + (donor - base)withalpha=1.0, wherehost=LiquidAI/LFM3-Omni-2B@21d75123,donor=orcarouter/LFM3-1.7B-abliterated, andbase=LiquidAI/LFM3-1.7B@0dc4268b. - Scope: Only the
286language-core tensors changed (core_rel_l2_vs_host: 0.00986,~1.0%); all vision, audio, depth-decoder, andaudio_tokenizer/bytes are Liquid AI's originals. - Provenance:
model.safetensorsSHA-25633c03abf...recorded ingraft.json; no training was performed on Omni.
Limits & License
- Behavioral scope: Safety refusals are reduced by abliteration; video input and interleaved speech chat were not measured. Use for research with human review.
- License: LFM Open License v1.0 (
LICENSE;NOTICE.mdrecords file provenance and modifications). Commercial use is limited to entities under USD 10M annual revenue. Independent community build unaffiliated with Liquid AI or OrcaRouter. - Terms of use: Repository access requires accepting the access terms on this page (full text: TERMS.md), then authenticating with
hf auth loginorHF_TOKEN.