LFM3-Omni-2B Abliterated + Arete (ModelOpt NVFP4)
This repository provides the 4-bit ModelOpt NVFP4 build of LFM3-Omni-2B abliterated + Arete for NVIDIA Blackwell GPUs (text, images, video, and 16 kHz audio in; text and 24 kHz speech out).
What This Build Is & Why Use It
Grafts the LFM3-1.7B-Abliterated-Arete delta (abliterated and trained on NousResearch/arete-data-pairs) onto LiquidAI/LFM3-Omni-2B's language core via task arithmetic (1.3% core shift), then quantizes the 72 core MLP matrices to ModelOpt W4A16_NVFP4. This repo is the ModelOpt NVFP4 source from which balllvin/LFM3-Omni-2B-Abliterated-Arete-NVFP4-MLX was byte-repacked (src_sha256: 0e9e049f...).
- Runtime format (
ModelOpt NVFP4):W4A16_NVFP4safetensors (group_size: 16,weight_scale_2tensor scales,hf_quant_config.json) targeting NVIDIA Blackwell runtimes (vLLM,SGLang) supportingLfm3OmniForConditionalGeneration. - Modification stage (
Abliterated + Arete): Post-abliteration Arete values alignment grafted onto the Omni language core; 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 (this repo) |
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 the byte-equivalent NVFP4-MLX twin (identical 4-bit codes and block scales) with mlx-vlm (greedy decoding, non-reasoning mode; not re-run separately on CUDA GPU).
| Benchmark / Metric | Original Omni | This Build (NVFP4 weights) |
|---|---|---|
| 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,046,928bytesmodel.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) |
|---|---|---|---|---|
| NVIDIA GPU (24 GB) | 21.6 GB | 2.85 GB | 125K | 125K |
| NVIDIA GPU (48 GB) | 43.2 GB | 2.85 GB | 125K | 125K |
| NVIDIA GPU (96 GB) | 86.4 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 B: NVIDIA CUDA (NVFP4 via vLLM)
Serving this repository requires a vLLM or SGLang build that registers Lfm3OmniForConditionalGeneration and supports ModelOpt W4A16_NVFP4 (the older vLLM wheel pinned on the LFM3-1.7B card predates Lfm3OmniForConditionalGeneration, so this GPU build was not served directly in our tests).
hf download balllvin/LFM3-Omni-2B-Abliterated-Arete-NVFP4 --local-dir lfm3-omni-nvfp4
vllm serve lfm3-omni-nvfp4 \
--served-model-name lfm3-omni \
--max-model-len 128000 \
--host 127.0.0.1 --port 8080
For end-to-end Apple Silicon execution including examples/infer_mlx.py (audio + vision + speech out), use balllvin/LFM3-Omni-2B-Abliterated-Arete-NVFP4-MLX.
Verify Running Server
curl -sS http://127.0.0.1:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "lfm3-omni",
"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, graft SHA-256230c9167...). - ModelOpt NVFP4 (
nvfp4_build.json): Quantized the 72 core MLP linears toW4A16_NVFP4(group_size: 16, block peak mapped to6, sharedw1/w3tensor scale,out_sha256:0e9e049f...). - 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; GPU serving was not executed directly due to vLLM wheel support timing. - 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.