LFM3-1.7B Decisive (GGUF — Modified Weights)
Original Model Developer: Liquid AI, Inc. (LiquidAI/LFM3-1.7B, built on LiquidAI/LFM3-1.7B-Base).
This repository distributes modified weights derived from LiquidAI/LFM3-1.7B (Q4_K_M) via a training-free
weight edit that cuts overthinking by 31–57% while keeping accuracy intact—and reducing runaway generations
that hit the 12,288-token cap—at the exact same file size (1,099,627,808 bytes, 1.10 GB). Runs on stock
llama.cpp.
No gradients, no training data, and no fine-tuning were used. A reasoning-recheck / overthinking direction in the residual stream (at block 16) is projected out of the 24 residual-writing matrices across blocks 12–23 in closed form, accounting for LFM3's sandwich-norm post-norm gains. The edited tensors are then re-rounded with projection-aware rounding (PA) so Q4_K_M / Q6_K quantization does not quietly put the removed direction back (reducing residual leak from ~6–7% down to ≤ 0.002%). All other tensors and model metadata remain unchanged.
Two modified-weight checkpoints are provided:
LFM3-1.7B-Decisive-wG16-Q4_K_M.gguf(recommended): Modified weights built from the refinedgfit/gfitcdirections (block 16,alpha = [0.0, 1.0]). Achieves 92.4% on GSM8K (0 runaways) and 89.6% on MATH-500, with −55% / −31% thinking tokens.LFM3-1.7B-Decisive-C16-Q4_K_M.gguf: Modified weights built fromcommit/mathdirections (block 16,alpha = [0.0, 1.0]). Cuts GSM8K thinking by −57% (236 median tokens) and achieves 93.0% prompt-level strict accuracy on IFEval (+3.7 pt over base).
Specsheet & Benchmarks
All runs use stock llama.cpp with --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 --repeat-penalty 1.0 and a
12,288-token generation budget.
Public benchmarks (GSM8K & MATH-500, n = 250 each)
Fixed-seed 250-item slices of the official test sets, paired against LFM3-1.7B Q4_K_M (base). Intervals are 95%
paired bootstrap CIs.
| Metric | Liquid LFM3-1.7B Q4_K_M (Base) | wG16 Q4_K_M + PA (Recommended) | C16 Q4_K_M + PA |
|---|---|---|---|
| File size | 1,099,627,808 bytes | 1,099,627,808 bytes (identical) | 1,099,627,808 bytes (identical) |
| GSM8K accuracy | 90.4% | 92.4% (+2.0 pt, CI −0.8 to +4.8) | 89.2% (−1.2 pt, CI −4.0 to +1.6) |
| GSM8K mean thinking | 1,321 tokens | 595 tokens (−55%) | 566 tokens (−57%) |
| GSM8K median thinking | 348 tokens | 276 tokens (−21%) | 236 tokens (−32%) |
| GSM8K runaways (hit 12k cap) | 8 | 0 (−100%) | 2 (−75%) |
| GSM8K thinking (both solved) | — | −46% | −48% |
| MATH-500 accuracy | 87.2% | 89.6% (+2.4 pt, CI −0.8 to +6.0) | 86.8% (−0.4 pt, CI −4.0 to +2.8) |
| MATH-500 mean thinking | 2,595 tokens | 1,791 tokens (−31%) | 1,764 tokens (−32%) |
| MATH-500 median thinking | 856 tokens | 658 tokens (−23%) | 605 tokens (−29%) |
| MATH-500 runaways (hit 12k cap) | 17 | 8 (−53%) | 10 (−41%) |
| MATH-500 thinking (both solved) | — | −31% | −34% |
| Fits in 8K context (≤8,192 think) | GSM8K 94.8%, MATH-500 88.8% | GSM8K 99.6%, MATH-500 94.8% | GSM8K 99.2%, MATH-500 93.6% |
Note on hardware variance:
wG16was evaluated on an RTX 3070; paired against the RTX 3070 base run (GSM8K 92.8%, MATH-500 88.4% on n=249),wG16is −0.4 pt on GSM8K (CI −3.6 to +2.8, −50% thinking, 0 vs 7 runaways) and +1.6 pt on MATH-500 (CI −1.6 to +5.2, −33% thinking, 8 vs 19 runaways).
Instruction following (IFEval, n = 300, paired on RTX 3070)
| Metric | Base (RTX 3070) | wG16 Q4_K_M + PA | C16 Q4_K_M + PA |
|---|---|---|---|
| Prompt-level strict | 89.3% | 91.0% (+1.7 pt, CI −1.7 to +5.0) | 93.0% (+3.7 pt, CI +0.7 to +7.0) |
| Instruction-level strict | 90.6% | 92.8% (+2.2 pt, CI −0.8 to +5.4) | 94.7% (+4.1 pt, CI +1.4 to +7.0) |
| Mean thinking tokens | 4,422 | 2,959 (−33%) | 2,898 (−34%) |
| Unfinished (hit 12k cap) | 23 | 11 | 8 |
Hard MATH dev set (64 held-out Level 4–5 problems)
- Base: 49 / 64 correct, 9 runaways, 3,624 mean thinking tokens (1,446 median)
- C16 Q4_K_M + PA: 53 / 64 correct (+4), 4 runaways, 2,570 mean thinking tokens (859 median, −36% on problems both solve)
Speed & Memory (NVIDIA GeForce RTX 3070, 8 GB VRAM, 32k context)
Measured with llama-server -m LFM3-1.7B-Decisive-wG16-Q4_K_M.gguf -ngl 99 -fa on -np 1 -c 32768:
- Decode speed: ~226–234 tok/s (or ~224–226 tok/s with
-ctk q8_0 -ctv q8_0) - Prompt eval: ~2,068–4,436 tok/s
Usage
llama.cpp
Any recent stock llama.cpp with LFM3 support can run these GGUFs directly:
llama-server -m LFM3-1.7B-Decisive-wG16-Q4_K_M.gguf -ngl 99 -fa on -c 32768 \
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 --presence-penalty 0 --repeat-penalty 1.0
How it works
- Direction extraction: Compare residual-stream activations at line breaks in base-model thinking traces (re-checking / hedging vs. continuing forward) to extract difference-of-means directions at block 16.
- Gain-aware closed-form projection: LFM3 uses sandwich norms, so a residual writer $W$ contributes
$g \odot \text{RMSNorm}(Wx)$ where $g$ is the post-norm gain. For each of the 24 writers across blocks 12–23
(
attn_output,shortconv.out_proj,ffn_down), we orthonormalize the gain-weighted directions and project out the target direction from $W$'s rows. - Projection-aware rounding (PA): Standard
llama-quantizereintroduces ~6–7% of the removed direction through quantization rounding noise. PA re-picks quantized codes withinQ4_K/Q6_Kblocks to drive the residual leak to ≤ 0.002% while keeping the exact same GGUF layout and byte size.
Files
LFM3-1.7B-Decisive-wG16-Q4_K_M.gguf— Recommended modified-weights checkpoint (wG16, 1,099,627,808 bytes)LFM3-1.7B-Decisive-C16-Q4_K_M.gguf— Modified-weightsC16checkpoint (1,099,627,808 bytes)LICENSE— Original unmodified LFM Open License v1.0 fromLiquidAI/LFM3-1.7BNOTICE.txt— Attribution to Liquid AI, Inc. and summary of weight modificationsSHA256SUMS— SHA-256 checksums
License and Attribution
The original model LFM3-1.7B (and LFM3-1.7B-Base) was developed by Liquid AI, Inc.
(LiquidAI/LFM3-1.7B). These checkpoints are distributed as
modified weights under the original, unmodified LFM Open License v1.0—see LICENSE and
NOTICE.txt for full terms, attribution, and modification details.