LFM3-Omni-2B Abliterated + Arete (NVFP4-MLX 4-bit)
This repository provides the 4-bit NVFP4-MLX build of LFM3-Omni-2B abliterated + Arete for Apple Silicon Macs (text, images, video, and 16 kHz audio in; text and 24 kHz speech out).
What This Build Is & Why Use It
Repacks the exact 4-bit codes and block scales of balllvin/LFM3-Omni-2B-Abliterated-Arete-NVFP4 byte-for-byte into MLX nvfp4 layout (2.85 GB total), keeping attention, convolutions, vision/audio encoders, depth decoder, and audio_tokenizer/ in BF16. Matches the original BF16 Omni within noise on speech recognition, spoken QA, image QA, and video QA.
- Runtime format (
NVFP4-MLX): 4-bit NVFP4 codes and E4M3 block scales (group_size: 16) with tensor scales folded intoffn_norm/post_ffn_normfor MLXW4A16execution. - Modification stage (
Abliterated + Arete): Task-arithmetic graft ofLFM3-1.7B-Abliterated-AreteontoLiquidAI/LFM3-Omni-2B; non-reasoning mode.
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 |
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 (this repo) |
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, no token limit, one run each; non-reasoning mode).
| Benchmark / Metric | Original Omni | This Build (NVFP4-MLX) |
|---|---|---|
| LibriSpeech WER (100 clips) | 2.58% | 2.84% |
| VoiceBench OpenBookQA (100 spoken) | 62.0% | 62.0% |
| MMStar (102 image questions) | 65.7% | 61.8% |
| TempCompass (50 video clips) | 68.0% | 68.0% |
| Speech output WER (40 sentences, Parakeet) | 2.27% | 3.07% |
| BFCL v3 simple (40) | 90.0% | 92.5% |
| BFCL v3 live simple (40) | 75.0% | 70.0% |
| GSM8K (first 50) | 76.0% | 74.0% |
Paired 95% CIs vs. Original Omni: LibriSpeech +0.26 pt (-0.05 to +0.62), VoiceBench 0.0 pt (-4.0 to +4.0), MMStar -3.9 pt (-9.8 to +2.0), TempCompass 0.0 pt (-8.0 to +8.0), Speech output +0.80 pt (+0.24 to +1.60). Two MMStar answers hit the context cap and counted wrong.
Memory & Context Budget
- Weights on disk:
2.85 GBtotal (2,706,036,520bytesmodel.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 | 2.85 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)
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-Arete-NVFP4-MLX --local-dir lfm3-omni-arete
python lfm3-omni-arete/examples/infer_mlx.py --model lfm3-omni-arete --audio question.wav --image photo.jpg --out speech.wav
python -m mlx_vlm.server --model balllvin/LFM3-Omni-2B-Abliterated-Arete-NVFP4-MLX --port 8080
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-Arete-NVFP4-MLX",
"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
- Graft (
graft.json): Task-vector addition (alpha=1.0) of(LFM3-1.7B-Abliterated-Arete bf16 - LiquidAI/LFM3-1.7B@0dc4268b)ontoLiquidAI/LFM3-Omni-2B@21d75123(286core tensors,1.34%shift). - NVFP4-MLX repack (
nvfp4_build.json): Copied 4-bit codes and E4M3 block scales byte-for-byte fromballlvin/LFM3-Omni-2B-Abliterated-Arete-NVFP4(src_sha256: 0e9e049f...), folding tensor scales intoffn_norm/post_ffn_norm(out_sha256: 83482b53...). - Preserved components: Audio encoder, vision encoder, depth decoder, and
audio_tokenizer/remain unchanged from Liquid AI.
Limits & License
- Behavioral scope: Language core derives from an abliterated + Arete checkpoint and answers most harmful requests; speech output WER rose
+0.80 ptvs. original Omni. 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, OrcaRouter, or Nous Research. - Terms of use: Repository access requires accepting the access terms on this page (full text: TERMS.md), then authenticating with
hf auth loginorHF_TOKEN.