LFM3-1.7B - EXL3 quants

EXL3 quantizations of LiquidAI/LFM3-1.7B, one revision (branch) per bitrate. The main branch only holds this card and the license.

Revision Weights File size Notes
8.0bpw 8.0 bpw (head 6 bpw, -hq) 2.19 GB Indistinguishable from bf16 in every test below
4.0bpw 4.0 bpw (head 6 bpw), uniform 1.46 GB Best all-rounder
4.0bpw-sc 4.0 bpw average, optimized recipe (self-calibrated) 1.46 GB Better on chat/tool-style text, worse elsewhere, see below. Includes recipe_4.00bpw.yaml
2.0bpw 2.0 bpw (head 6 bpw), uniform 1.09 GB Not usable as a chat model (HumanEval 7 %). Published as the K=2 anchor of the recipe pipeline

Download a revision:

hf download Trisert/LFM3-1.7B-exl3 --revision 4.0bpw --local-dir LFM3-1.7B-exl3-4.0bpw

All revisions use the standard EXL3 format (mul1 codebook, 250 x 2048 calibration rows, 6 bpw head except where noted) and load in ExLlamaV3 / TabbyAPI. The model uses custom code, so trust_remote_code is needed outside ExLlamaV3.

The 4.0bpw-sc revision

It was produced with the optimization pipeline described in doc/optimize.md of ExLlamaV3: a self-sampled calibration trace of the model (chat, multilingual, tool-calling conversations), per-tensor noise measurements, and a recipe that moves bits between tensors at an unchanged 4.0 bpw budget. The recipe is mostly K=4 (89 % of the weights) with 5 % at K=3, 6 % at K=5 and a single K=2 tensor (recipe_4.00bpw.yaml in that revision).

The optimization targets the distribution it was calibrated on, and the results show it:

  • on held-out chat/tool-style text it is clearly better than the uniform 4.0 bpw quant (KLD 33 % lower);
  • on Wikipedia text and on code it is worse (higher KLD on wikitext, HumanEval 39 % vs 47 %).

Use it if your workload looks like chat or agentic tool use; otherwise prefer 4.0bpw.

Measurements

KLD is against the bf16 model, same tokens, lower is better. Everything is single-run and greedy where applicable; see the caveats.

Held-out in-domain trace (about 45k response tokens of chat and tool-calling conversations generated by the 8.0 bpw quant from prompts disjoint from the calibration set, eval/qbench.py of ExLlamaV3):

KLD mean KLD median perplexity
bf16 1.7485
8.0 bpw 0.00048 0.00020 1.7473
4.0 bpw 0.02364 0.00903 1.7919
4.0 bpw sc 0.01595 0.00588 1.7786
2.0 bpw 0.4186 0.2270 2.7708

Wikitext-2 (20 rows x 2048 tokens, out of domain for the sc recipe) and HumanEval (164 problems, one greedy sample each):

KLD vs bf16 perplexity HumanEval pass@1
bf16 20.65 46.3 %
8.0 bpw 0.00077 20.68 48.2 %
4.0 bpw 0.0658 21.95 47.0 %
4.0 bpw sc 0.0802 21.79 39.0 %
2.0 bpw 0.860 45.49 7.3 %

Caveats: HumanEval with one greedy sample is noisy (one problem is 0.6 points), the 20-row wikitext sample is small, and the held-out trace comes from the same prompt family as the calibration trace, so "in-domain" is real but not fully independent. bf16 numbers were obtained by loading the original checkpoint with ExLlamaV3.

Speed

Batch-1 greedy decode with ExLlamaV3 on an RTX 2060 (6 GB) was about 170 tokens/s for the 4.0 bpw revision at short context and about 115 tokens/s for 8.0 bpw, using a fork of ExLlamaV3 with additional sm_75/sm_60 kernel work (GEMV for 5-8 bpw, fused short-convolution decode). Before those changes the same fork measured about 144 tokens/s (4.0 bpw) and 101 tokens/s (8.0 bpw) on that card; upstream ExLlamaV3 was not measured. The quantized files themselves are standard EXL3.

License

The weights are derived from LiquidAI/LFM3-1.7B and are distributed under the same license, the LFM Open License v1.0 (LICENSE). Please read it before use.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Trisert/LFM3-1.7B-exl3

Quantized
(174)
this model