LFM3-1.7B Instruct GGUF collection (2 mixed K-quants + 1 RCO)
Three GGUFs of LiquidAI/LFM3-1.7B:
- balanced —
lfm3-1.7b-instruct-kmix-1100M: standard imatrix K-quant mix, plain stock llama.cpp. - quality —
lfm3-1.7b-instruct-kmix-1300M: standard imatrix K-quant mix, plain stock llama.cpp. - sub-1-GiB RCO —
lfm3-1.7b-instruct-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 | 23.823 | 0.118 | 83.6% | stock |
| lfm3-1.7b-instruct-kmix-1100M (balanced) | 1.082 | 5.38 | 23.346 | 0.058 | 87.9% | stock |
| lfm3-1.7b-instruct-kmix-1300M (quality) | 1.277 | 6.35 | 23.302 | 0.019 | 92.9% | stock |
| lfm3-1.7b-instruct-rcmix-1000M (sub-1-GiB RCO) | 0.983 | 4.89 | 27.659 | 0.196 | 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.- The two kmix wall sizes are 1100.5 MiB (5.34 bw) and 1299.5 MiB (6.31 bw).
Files
| file | size | what it is |
|---|---|---|
| lfm3-1.7b-instruct-kmix-1100M.gguf | 1.082 GiB | balanced, 5.38 bpw — K-quant mix (Q3_K/Q4_K/Q5_K), works with stock llama.cpp |
| lfm3-1.7b-instruct-kmix-1300M.gguf | 1.277 GiB | quality, 6.35 bpw — K-quant mix (Q5_K/Q6_K), works with stock llama.cpp |
| lfm3-1.7b-instruct-rcmix-1000M.gguf | 0.983 GiB | sub-1-GiB RCO mix (104× RCO4 + 38× Q5_K + Q6_K emb), patched llama.cpp only |
| lfm3-1.7b-instruct-imatrix.gguf | 3 MiB | importance matrix, for reproduction |
| assign-lfm3-1.7b-instruct-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-1.7b-instruct-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-1.7b-instruct-kmix-1100M.gguf -ngl 99 -p "def merge_sort(arr):" # stock
./llama-cli -m lfm3-1.7b-instruct-rcmix-1000M.gguf -ngl 99 -p "def merge_sort(arr):" # patched build
The chat template is embedded; use --jinja for system prompts and the sampling values from the model card (temperature 0.1, top_k 50, repetition_penalty 1.1).
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-1.7b-instruct-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 weights are the post-trained LFM3-1.7B checkpoint; the earlier
lfm3-1.7b-rco-ggufrelease was built from the same checkpoint and carries identical tensors (its kmix files use an older allocation).
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-1.7B}
}