LFM3-VL-2B GGUF collection (2 mixed K-quants + 1 RCO)
Three GGUFs of LiquidAI/LFM3-VL-2B:
- balanced —
lfm3-vl-2b-kmix-1100M: standard imatrix K-quant mix, plain stock llama.cpp. - quality —
lfm3-vl-2b-kmix-1300M: standard imatrix K-quant mix, plain stock llama.cpp. - sub-1-GiB RCO —
lfm3-vl-2b-rcmix-1000M: experimental RCO mixed quant; requires a patched llama.cpp (see below).
Quality (Wikitext-2 test, 512 ctx, 16 chunks, KL vs f16 logits)
| model | GiB | bpw | PPL | KLD | top1 | runtime |
|---|---|---|---|---|---|---|
| stock Q4_K_M baseline | 1.024 | 5.09 | 118.299 | 0.149 | 78.0% | stock |
| lfm3-vl-2b-kmix-1100M (balanced) | 1.083 | 5.38 | 113.059 | 0.086 | 83.6% | stock |
| lfm3-vl-2b-kmix-1300M (quality) | 1.277 | 6.35 | 110.910 | 0.022 | 91.1% | stock |
| lfm3-vl-2b-rcmix-1000M (sub-1-GiB RCO) | 0.983 | 4.89 | 119.997 | 0.132 | 79.5% | patch required |
Notes:
- All numbers are measured with
llama-perplexity --kl-divergence-baseagainst the f16 logits of the same checkpoint. rcmix-1000Mtrades global accuracy for size: it fits the 1-GiB slot that no stock format reaches (Q4_K_M is 1.024 GiB at the same bpw class). Prefer the kmix files when runtime compatibility or global accuracy matters more than the sub-1-GiB footprint.- Text-only perplexity of this checkpoint is high by design (it is a vision-language model); all metrics are relative to its own f16 logits, so they compare quants, not models.
Files
| file | size | what it is |
|---|---|---|
| lfm3-vl-2b-kmix-1100M.gguf | 1.083 GiB | balanced, 5.38 bpw — K-quant mix (Q3_K/Q4_K/Q5_K), works with stock llama.cpp |
| lfm3-vl-2b-kmix-1300M.gguf | 1.277 GiB | quality, 6.35 bpw — K-quant mix (Q5_K/Q6_K), works with stock llama.cpp |
| lfm3-vl-2b-rcmix-1000M.gguf | 0.983 GiB | sub-1-GiB RCO mix (86× RCO4 + 56× Q5_K + Q6_K emb), patched llama.cpp only |
| mmproj-lfm3-vl-2b-f16.gguf | 0.353 GiB | F16 vision projector — required for image/video input (paired with any of the three language GGUFs) |
| lfm3-vl-2b-imatrix.gguf | 3 MiB | importance matrix, for reproduction |
| assign-lfm3-vl-2b-rcmix-1000M.txt | — | readable per-tensor type sheet of the RCO quant |
| metadata/assign-1000M.json | — | machine-readable assignment (allocator output) |
| metadata/final_summary.json | — | machine-readable eval results + tensor composition |
| metadata/benchmarks/ | — | raw PPL/KLD/top-1 eval logs |
| docs/USAGE.md | — | runtime matrix, stock vs patched build, server examples |
| docs/QUANTIZATION.md | — | allocation + RCO block format details |
| docs/RELEASE_NOTES.md | — | release contents, selection rationale, known issues |
| docs/RAPOR.tr.md | — | Turkish technical report |
| SHA256SUMS | — | checksums for all release files |
| LICENSE | — | base model license (lfm1.0) |
| llama.cpp-rco-types.patch | — | RCO4 support patch (only needed for the rcmix file) |
Requirements
The kmix files run on any recent llama.cpp.
RCO4 (used by lfm3-vl-2b-rcmix-1000M) is not in stock gguf-py / stock llama.cpp. Apply the included patch
(vs. upstream 1b4554e):
git clone https://github.com/ggml-org/llama.cpp
cd llama.cpp && git checkout 1b4554e
patch -p1 < llama.cpp-rco-types.patch
cmake -B build -DGGML_HIP=ON -DGPU_TARGETS=gfx1200 && cmake --build build --config Release
Usage
./llama-cli -m lfm3-vl-2b-kmix-1100M.gguf -ngl 99 -p "def merge_sort(arr):" # stock
./llama-cli -m lfm3-vl-2b-rcmix-1000M.gguf -ngl 99 -p "def merge_sort(arr):" # patched build
For image input add the vision projector; see docs/USAGE.md.
Technique
- kmix:
scripts/alloc_mixed_kquants.pyallocates Q3_K/Q4_K/Q5_K/Q6_K per tensor under a size budget, using the imatrix-weighted reconstruction error of uniform (--pure) candidate quants;llama-quantize --tensor-type-fileapplies the assignment with the importance matrix. - rcmix: RCO layer database (GPTQ-style Hessian DB) → MSE-optimized codebook reconstruction → budgeted allocator that picks RCO4 vs Q5_K per tensor (fixed walls: emb Q6_K, attn_gate Q8_0, shortconv F32 verbatim).
Raw eval logs are under metadata/benchmarks/, the full results in
metadata/final_summary.json.
Limitations
lfm3-vl-2b-rcmix-1000Mrequires the patched llama.cpp — a stock build rejects the unknown tensor type 45 (RCO4).- The RCO kernel path is validated on CPU and HIP (ROCm); CUDA builds are untested.
- Benchmark numbers are hardware-specific (RX 9060 XT / gfx1200, ROCm 7.x in the patched runtime).
- These GGUFs contain the text decoder only. Image and video input require the bundled F16 vision projector (
mmproj-lfm3-vl-2b-f16.gguf) throughllama-mtmd-cli/llama-server --mmproj. - For
rcmix-1000M+ images, buildllama-mtmd-clifrom the patched tree as well. - The RCO layer database was built on the text backbone as a standalone LFM3 causal LM (65,536 calibration tokens, 1024 ctx); the RCO codes map 1:1 onto
blk.N.*of this GGUF.
License and attribution
The base model is licensed by LiquidAI under LFM Open License (lfm1.0); this quantized artifact is
distributed under the same terms — see LICENSE. The llama.cpp runtime patch is derived from
llama.cpp (MIT). You are responsible for complying with the base
model license and any applicable usage restrictions.
Citation
@misc{lfm3,
title = {LFM3: Compact Heterogeneous Neural Network Architectures},
author = {LiquidAI},
year = {2026},
url = {https://huggingface.co/LiquidAI/LFM3-VL-2B}
}