Instructions to use OsaurusAI/LFM3-Omni-2B-JANG_6M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use OsaurusAI/LFM3-Omni-2B-JANG_6M with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download OsaurusAI/LFM3-Omni-2B-JANG_6M --local-dir LFM3-Omni-2B-JANG_6M
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
OsaurusAI/LFM3-Omni-2B-JANG_6M
JANG_6M build of LiquidAI/LFM3-Omni-2B for Apple Silicon. LFM3-Omni 2B: vision tower and speech encoder on one LFM3 trunk; thinking off by default.
8-bit token mixers, 6-bit FFN, and every quantized matrix calibrated with GPTQ on the exact storage grid plus activation-aware scaling, using calibration data weighted toward tool calls, terminal agents, reasoning and code.
Bundle
| Modalities | text, images, video, speech in |
| On-disk size | 2.36 GiB (one shard), float16 |
| Attention q/k/v/o, short-conv in/out projections | 8-bit affine, group 32, GPTQ |
| FFN w1 / w3 / w2 | 6-bit affine, group 32, AWQ + GPTQ |
| Tied embedding / lm_head | 8-bit affine, group 32 (it is the output head) |
| Kept at full precision | attention output gate, depthwise conv kernels, all norms, vision tower and projector, speech encoder and projector, speech-output decoder (unused for text) |
| GPTQ | 142/142 tensors: fixed min-max grid (byte-identical layout to mx.quantize), act-order, Hessians accumulated over every calibration token, w2 Hessian rebuilt through the already-quantized w1/w3, best-of-RTN guard; mean calibration reconstruction error -54.4% vs round-to-nearest |
| AWQ | channel scales (alpha 0.25, clip 0.5-2) folded into ffn_norm and w3 rows; function-preserving, no runtime cost |
Calibration (628,356 tokens)
Every sample is rendered through the model's own chat template: structured tools, assistant
tool calls in LFM3's <tool_call><function=...> form, tool results as tool turns, and agent
thoughts inside <think>. Part of the set is the model's own answers (card sampling) to
reasoning, tool, terminal and coding prompts, so its serving distribution is in calibration.
| domain | tokens |
|---|---|
| tool calling (Hermes, native XML calls) | 154,589 |
| terminal / SWE agent trajectories | 174,439 |
| reasoning (long traces) | 101,508 |
| coding and agentic text | 51,568 |
| general, science, systems, security, multilingual, long context | 37,598 |
| images (photos, screenshots, documents) | 84,519 |
| speech (ASR, spoken QA, spoken instructions) | 7,066 |
| image + speech in one turn | 17,069 |
Measured against the bf16 source
75 held-out sequences never seen in calibration (15,324 scored positions: tool calls, terminal and SWE agents, reasoning, code, general text, images, speech). KL divergence in nats per position (lower is better); top-1 is argmax agreement with bf16.
| build | size | KL median | KL mean | KL p95 | top-1 |
|---|---|---|---|---|---|
| this bundle | 2.36 GiB | 0.00004 | 0.00119 | 0.0051 | 98.98% |
| same layout, round-to-nearest | 2.36 GiB | 0.00006 | 0.00174 | 0.0070 | 98.83% |
| uniform 6-bit gs64 (mlx-vlm default recipe) | 2.12 GiB | 0.00018 | 0.00496 | 0.0192 | 97.81% |
Use
- Runtimes with LFM3 support: vMLX / Osaurus (vmlx-swift with LFM3, Osaurus with LFM3 media support), and mlx-vlm with the LFM3 port.
- Thinking: off by default (
enable_thinking: trueturns it on). Tool calls: XML function format. Sampling defaults: temperature 0, top_k 1, repetition_penalty 1.0. - License: LFM Open License v1.0 (see
LICENSE), same as the base model.
- Downloads last month
- 140
6-bit
Model tree for OsaurusAI/LFM3-Omni-2B-JANG_6M
Base model
LiquidAI/LFM3-Omni-2B
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download OsaurusAI/LFM3-Omni-2B-JANG_6M --local-dir LFM3-Omni-2B-JANG_6M