Q4_K_M & Q4_0)Zero-gradient, closed-form Weight-Space Programming (WSP) applied directly to LiquidAI/LFM2.5-8B-A1B (LiquidAI/LFM2.5-8B-A1B-GGUF, lfm2moe 24-layer hybrid ShortConv + Attention + 32-expert Sparse MoE).
This repository hosts ready-to-run standalone modified GGUFs in both Q4_K_M and Q4_0 (zero --lora flags required) alongside the 1160.0 KB drop-in fused rank-16 adapter and modular rank-8 subspaces:
Q4_K_M (LFM2.5-8B-A1B-WSP-Q4_K_M.gguf, 4.8352 GiB, s1=1.1+s2=1.5): 119/155 (76.8%, +16 tasks vs Q4_K_M Base), agent100 = 86/100 (+14), stem45 = 30/45 (+1), tbench10 = 3/10 (+1), and disjoint VAL_LFM25 = 27/28 (96.4%) at 301.7 tok/s median decode.Q4_0 (LFM2.5-8B-A1B-WSP-Q4_0.gguf, 4.5457 GiB): Bakes adapters/wsp_lfm25_s1_1.0_s2_1.5_fused_r16.gguf directly into LiquidAI/LFM2.5-8B-A1B-Q4_0.gguf, lifting full Track A from 103/155 (66.5%) to 117/155 (75.5%, +14 tasks) (EST_NL2BASH 4/20 -> 15/20 (+11), agent100 = 84/100, stem45 = 30/45, tbench10 = 3/10, VAL_LFM25 = 26/28 (92.9%)) with 3/3 top-1 logit parity (max |Δ| = 0.00000) at 312.1 tok/s median decode.Q4_K_M): 120/155 (77.4%, +17 tasks vs Base) (agent100 = 89/100, 0 regressions) at 304.7 tok/s median decode.[!NOTE]
License & Modification Notice (LFM Open License v1.0, Section 4(b))
- Upstream Base Models: Created by Liquid AI —
LiquidAI/LFM2.5-8B-A1BandLiquidAI/LFM2.5-8B-A1B-GGUF(LFM2.5-8B-A1B-Q4_K_M.gguf,4.801 GiB;LFM2.5-8B-A1B-Q4_0.gguf,4.512 GiB), redistributed under LFM Open License v1.0 (seeLICENSE).- Modification Notice (
jstarks): BothLFM2.5-8B-A1B-WSP-Q4_K_M.gguf(4.8352 GiB,1.1 * s1 + 1.5 * s2) andLFM2.5-8B-A1B-WSP-Q4_0.gguf(4.5457 GiB, fused rank-161.0 * s1 + 1.5 * s2) are Weight-Space Programmed derivatives of their respective upstream GGUFs. In each file, only 12 internal 2D tensors acrossblk.18–blk.23(6F32MoE routersffn_gate_inp.weight,2attentionattn_output.weight, and4ShortConvshortconv.out_proj.weightconverted toF16to avoid re-quantization clipping,+34.5 MiBnet) were modified. All other 244 tensors (embeddings, layer norms, attention QKV, and 3D MoE expert weights) are byte-for-byte identical raw copies from upstream.
12 GB, llama-server, temp=0.0)Q4_0 (LFM2.5-8B-A1B-WSP-Q4_0.gguf, 4.5457 GiB, ZERO --lora flags):wsp_lfm25_s1_1.0_s2_1.5_fused_r16.gguf across the 12 internal 2D sites of LFM2.5-8B-A1B-Q4_0.gguf, matching live Q4_0 + fused_r16 3/3 on initial top-1 logits (max |Δ| = 0.00000) and scoring 26/28 (92.9%) on VAL_LFM25 (+7 over Q4_0 Base 19/28, cutoffs 2 -> 0, missed_tc 6 -> 1).155-task Track A from 103/155 (66.5%) to 117/155 (75.5%, +14 tasks): EST_NL2BASH 4/20 -> 15/20 (+11), S8_GROUNDING 2/3 -> 3/3, EST_BFCL_IRR 12/15 -> 13/15, stem45 29/45 -> 30/45, live WSL2 tbench10 1/10 -> 3/10 (+2) (zero_cmd_tasks: 8 -> 2), and 312.1 tok/s median (310.8 mean).Q4_K_M (LFM2.5-8B-A1B-WSP-Q4_K_M.gguf, 4.8352 GiB, ZERO --lora flags):1.1 * wsp_s1_think_close + 1.5 * wsp_s2_tool_emit across the same 12 internal 2D sites in blk.18–blk.23.27/28 (96.4%) on disjoint VAL_LFM25 (cuts=0, miss=0) and 119/155 (76.8%, +16 vs Base) on Track A (EST_NL2BASH 9/20 -> 18/20 (+9), EST_GSM8K 14/20 -> 16/20, S3_ROUTER 4/5 -> 5/5, S7_INJECTION_GUARD 1/3 -> 2/3, stem45 29/45 -> 30/45 (+1), live WSL2 tbench10 2/10 -> 3/10 (+1)).wsp_lfm25_s1_1.0_s2_1.5_fused_r16.gguf, 1160.0 KB):1.0 * wsp_s1_think_close + 1.5 * wsp_s2_tool_emit: max SVD tail = 7.34e-07, max rel F16 error = 2.98e-04, 3/3 live top-1 logit parity (max |Δ top1 logprob| = 0.00001), 120/155 (77.4%), and 304.7 tok/s median.llama-server / LM Studio / Jan / KoboldCpp)Run either standalone baked GGUF directly with zero --lora flags:
# Higher-accuracy Q4_K_M standalone baked model (4.835 GiB)
hf download jstarks/LFM2.5-8B-A1B-Weight-Space-Programming LFM2.5-8B-A1B-WSP-Q4_K_M.gguf --local-dir ./gguf
llama-server -m ./gguf/LFM2.5-8B-A1B-WSP-Q4_K_M.gguf \
-c 8192 -ctk q8_0 -ctv q8_0 -np 1 -ngl 99 --fit off --jinja
# Compact & faster Q4_0 standalone baked model (4.546 GiB, fused rank-16 baked)
hf download jstarks/LFM2.5-8B-A1B-Weight-Space-Programming LFM2.5-8B-A1B-WSP-Q4_0.gguf --local-dir ./gguf
llama-server -m ./gguf/LFM2.5-8B-A1B-WSP-Q4_0.gguf \
-c 8192 -ctk q8_0 -ctv q8_0 -np 1 -ngl 99 --fit off --jinja
Q4_K_M or Q4_0 + Single Fused Rank-16 Adapter (1160.0 KB)If you already have LiquidAI/LFM2.5-8B-A1B-GGUF cached locally, download wsp_lfm25_s1_1.0_s2_1.5_fused_r16.gguf and attach it:
llama-server -m LFM2.5-8B-A1B-Q4_K_M.gguf \
-c 8192 -ctk q8_0 -ctv q8_0 -np 1 -ngl 99 --fit off --jinja \
--lora-scaled adapters/wsp_lfm25_s1_1.0_s2_1.5_fused_r16.gguf:1.0
run_lfm25_wsp.py)pip install -r requirements.txt
hf download jstarks/LFM2.5-8B-A1B-Weight-Space-Programming --local-dir ./lfm25-8b-a1b-wsp
cd lfm25-8b-a1b-wsp
# Default standalone baked Q4_K_M mode (http://127.0.0.1:8090/v1)
python run_lfm25_wsp.py
# Standalone baked Q4_0 mode
python run_lfm25_wsp.py --quant q4_0
# Interactive CLI chat
python run_lfm25_wsp.py --chat
# Adapter or base modes (supports --quant q4_k_m | q4_0)
python run_lfm25_wsp.py --mode fused
python run_lfm25_wsp.py --mode routed
python run_lfm25_wsp.py --mode base --quant q4_0
155 Track A + 28 Disjoint VAL_LFM25, temp=0.0)| Configuration | Weights / LoRA Overhead | VAL_LFM25 (28) |
agent100 (30 Hold + 70 Est) |
stem45 (15+15+15) |
Live WSL2 tbench10 |
Combined (155) |
Decode >=20t Med / Mean (tok/s) |
|---|---|---|---|---|---|---|---|
Base (Q4_K_M) |
4.801 GiB (0 LoRA) |
20/28 (71.4%) |
72/100 (26/30 / 46/70) |
29/45 (cut=14) |
2/10 (zcmd=7) |
103/155 (66.5%) |
210.6 / 210.3* |
Arm B (always_s2_1.5) |
+ 1 rank-8 (581.0 KB) |
26/28 (92.9%) |
77/100 (+5) |
28/45 (-1) |
3/10 (+1) (zcmd=4) |
108/155 (+5, 69.7%) |
303.0 / 301.8 |
Soft-Routed (nt_s1_1.25 + tools) |
+ 2 rank-8 (1162.0 KB) |
25/28 (routed_pure) |
86/100 (+14) |
28/45 (-1, cut=13) |
3/10 (+1) (zcmd=4) |
117/155 (+14, 75.5%) |
300.7 / 299.8 |
Standalone Baked GGUF (Q4_K_M, s1=1.1+s2=1.5) |
4.8352 GiB (ZERO LoRA flags) |
27/28 (96.4%) (cuts=0, miss=0) |
86/100 (+14) (27/30 / 59/70) |
30/45 (+1, cut=11) |
3/10 (+1) (zcmd=4) |
119/155 (+16, 76.8%) |
301.7 / 300.8 |
Arm A (always_s1pure_1.0+s2_1.5) |
+ 2 rank-8 (1,162.00 KB) |
27/28 (96.4%) |
89/100 (+17, 0 reg) |
28/45 (-1) |
3/10 (+1) (zcmd=4) |
120/155 (+17, 77.4%) |
298.5 / 297.5 |
Fused Single Rank-16 (scale=1.0 on Q4_K_M) |
+ 1 rank-16 (1160.0 KB) |
27/28 (96.4%) (cuts=0, miss=0) |
(parity w/ Arm A) | (parity w/ Arm A) | (parity w/ Arm A) | (parity w/ Arm A) | 304.7 / 304.3 |
Base (Q4_0) |
4.512 GiB (0 LoRA) |
19/28 (67.9%) (cuts=2, miss=6) |
73/100 (26/30 / 47/70) |
29/45 (cut=15) |
1/10 (zcmd=8) |
103/155 (66.5%) |
317.7 / 317.6 |
Q4_0 + Fused Rank-16 (live --lora, scale=1.0) |
4.512 GiB + 1160.0 KB |
26/28 (92.9%) (cuts=1, miss=1) |
(parity probe) | — | — | — | 309.9 / 310.2 |
Standalone Baked GGUF (Q4_0, fused r16 = 1.0*s1+1.5*s2) |
4.5457 GiB (ZERO LoRA flags) |
26/28 (92.9%) (cuts=0, miss=1) |
84/100 (+11) (27/30 / 57/70) |
30/45 (+1, cut=11) |
3/10 (+2) (zcmd=2) |
117/155 (+14, 75.5%) |
312.1 / 310.8 |
*Throughput fairness note: The Q4_K_M Base 155-task audit (lfm25_track_a_audit.json) ran while a separate ~5.1 GiB GPU workload occupied vram_before = 5138 MiB (210.6 tok/s median). All subsequent runs (Standalone Baked Q4_K_M, Arm A, Arm B, Soft-Routed, Fused Rank-16, Q4_0 Base, Standalone Baked Q4_0, and both VAL_LFM25 sweeps) ran on the idle GPU (vram_before = 503–871 MiB), where VAL_LFM25 Q4_K_M base averaged 306.8 tok/s and Q4_0 base averaged 317.7 tok/s median (312.1 tok/s baked WSP-Q4_0).*
Q4_0 Apples-to-Apples Suite SummaryMetric (Q4_0 Apples-to-Apples) |
LFM2.5-8B-A1B-Q4_0 (Base) |
Q4_0 + Live Fused r16 |
LFM2.5-8B-A1B-WSP-Q4_0 (Baked, ZERO LoRA) |
Delta (Baked vs Q4_0 Base) |
|---|---|---|---|---|
Live Logit Parity (3 prompts) |
— | Reference (scale=1.0) |
3/3 top-1 (`max |
Δ |
Disjoint VAL_LFM25 (28) |
19/28 (67.9%) (cut=2, miss=6) |
26/28 (92.9%) (cut=1, miss=1) |
26/28 (92.9%) (cut=0, miss=1) |
+7 (+25.0 pts) |
EST_NL2BASH (20) |
4/20 |
— | 15/20 |
+11 |
agent100 (30 Hold + 70 Est) |
73/100 (miss=5, cut=16) |
— | 84/100 (miss=0, cut=11) |
+11 |
stem45 (15+15+15) |
29/45 (cut=15) |
— | 30/45 (cut=11) |
+1 |
Live WSL2 tbench10 (10) |
1/10 (zcmd=8, avg_cmds=0.2) |
— | 3/10 (zcmd=2, avg_cmds=2.1) |
+2 (zcmd 8->2) |
Combined Track A (155) |
103/155 (66.5%) |
— | 117/155 (75.5%) |
+14 (+9.0 pts) |
Decode >=20t Med / Mean & VRAM |
317.7 / 317.6 tok/s (5461 MiB) |
309.9 / 310.2 tok/s |
312.1 / 310.8 tok/s (5469 MiB) |
+34.5 MiB on disk (4.5457 GiB) |
agent100 Breakdown (30 Holdout + 70 Established)| Suite | Tasks | Base (Q4_K_M) |
Arm B (s2@1.5) |
Soft-Routed | Baked Q4_K_M (1.1+1.5) |
Arm A (1.0+1.5) |
Base (Q4_0) |
Baked Q4_0 (r16) |
|---|---|---|---|---|---|---|---|---|
S1_THINK (Holdout S1: Think Closure) |
3 |
3/3 |
3/3 |
3/3 |
3/3 |
3/3 |
3/3 |
3/3 |
S2_RESTRAINT (Holdout S2: Tool Restraint & Anti-Sycophancy) |
4 |
3/4 |
3/4 |
3/4 |
3/4 |
3/4 |
3/4 |
3/4 |
S3_ROUTER (Holdout S3: Multi-Tool Router) |
5 |
4/5 |
4/5 |
5/5 |
5/5 |
5/5 |
5/5 |
5/5 |
S4_CODE (Holdout S4: Mid-Band Code Synthesis) |
2 |
2/2 |
1/2 |
1/2 |
1/2 |
2/2 |
1/2 |
1/2 |
S5_TURN2_JSON (Holdout S5: Turn-2 Structured JSON) |
3 |
3/3 |
3/3 |
3/3 |
3/3 |
3/3 |
3/3 |
3/3 |
S6_HANDOFF (Holdout S6: Escalation Handoff Gate) |
4 |
4/4 |
4/4 |
4/4 |
4/4 |
4/4 |
4/4 |
4/4 |
S7_INJECTION_GUARD (Holdout S7: Indirect Injection Guard) |
3 |
1/3 |
1/3 |
2/3 |
2/3 |
2/3 |
2/3 |
2/3 |
S8_GROUNDING (Holdout S8: Grounded Abstention) |
3 |
3/3 |
3/3 |
3/3 |
3/3 |
3/3 |
2/3 |
3/3 |
S9_ERROR_RECOVERY (Holdout S9: Error Self-Recovery) |
3 |
3/3 |
3/3 |
3/3 |
3/3 |
3/3 |
3/3 |
3/3 |
EST_GSM8K (Established: OpenAI GSM8K) |
20 |
14/20 |
13/20 |
17/20 |
16/20 |
18/20 |
18/20 |
16/20 |
EST_HUMANEVAL (Established: HumanEval pass@1) |
15 |
11/15 |
12/15 |
11/15 |
12/15 |
12/15 |
13/15 |
13/15 |
EST_BFCL_IRR (Established: BFCL v3 Irrelevance) |
15 |
12/15 |
13/15 |
13/15 |
13/15 |
13/15 |
12/15 |
13/15 |
EST_NL2BASH (Established: InterCode-NL2Bash) |
20 |
9/20 |
14/20 |
18/20 |
18/20 |
18/20 |
4/20 |
15/20 |
Total agent100 |
100 |
72/100 |
77/100 |
86/100 |
86/100 (+14) |
89/100 (+17) |
73/100 |
84/100 (+11) |
stem45 Breakdown (45 STEM Reasoning & MCQ Tasks)| Sub-Benchmark | Tasks | Base Q4_K_M (cut, tok) |
Baked Q4_K_M (cut, tok) |
Arm A (cut, tok) |
Base Q4_0 (cut, tok) |
Baked Q4_0 (cut, tok) |
|---|---|---|---|---|---|---|
STEM_MATH500 (MATH-500, 1536t) |
15 |
11/15 (3, 1028.3t) |
12/15 (3, 960.5t) |
11/15 (3, 923.9t) |
12/15 (3, 1025.7t) |
12/15 (3, 904.9t) |
STEM_MMLU_PRO (MMLU-Pro STEM, 1024t) |
15 |
7/15 (7, 760.1t) |
6/15 (6, 738.6t) |
5/15 (8, 787.0t) |
6/15 (8, 806.5t) |
7/15 (6, 659.3t) |
STEM_MMLU_4C (MMLU 4C STEM, 1024t) |
15 |
11/15 (4, 654.3t) |
12/15 (2, 538.1t) |
12/15 (3, 555.2t) |
11/15 (4, 684.2t) |
11/15 (2, 545.8t) |
Total stem45 |
45 |
29/45 (cut=14) |
30/45 (cut=11) |
28/45 (cut=14) |
29/45 (cut=15) |
30/45 (cut=11) |
adapters/)| File | Pairs (Tensors) | Rank | alpha |
Size | Role |
|---|---|---|---|---|---|
adapters/wsp_lfm25_s1_1.0_s2_1.5_fused_r16.gguf |
12 (24) |
16 |
16.0 |
1160.0 KB |
Default fused champion (1.0*s1 + 1.5*s2, baked into WSP-Q4_0) |
adapters/wsp_s1_think_close.gguf |
12 (24) |
8 |
8.0 |
581.0 KB |
Think-closure & anti-cutoff subspace (blk.18–23) |
adapters/wsp_s2_tool_emit.gguf |
12 (24) |
8 |
8.0 |
581.0 KB |
Tool-call token emission & raw-JSON suppression |
adapters/wsp_s3_tool_restraint.gguf |
7 (14) |
8 |
8.0 |
260.25 KB |
Restraint / closing subspace |
LFM2.5-8B-A1B-WSP-Q4_K_M.gguf (4.8352 GiB, s1=1.1+s2=1.5) & LFM2.5-8B-A1B-WSP-Q4_0.gguf (4.5457 GiB, fused r16)README.md, LICENSE, requirements.txt, run_lfm25_wsp.py, chat_template.jinja, config.json, generation_config.json, tokenizer.json, tokenizer_config.jsonadapters/ (4 GGUFs): Single fused rank-16 adapter + modular rank-8 subspacesbenchmarks/ (14 JSONs): Complete raw telemetry across sanity probes, site probes, VAL_LFM25 sweep/runoff, Q4_K_M (Base, Arm A/B, Soft-Routed, Fused r16, Baked), and Q4_0 (VAL + Logit Parity, Base 155, Baked 155)scripts/ (15 Python scripts): Full Phase A/B WSP synthesis, pure +1.0 rebuild, disjoint validation, soft-routing, algebraic rank-16 fusion, standalone Q4_K_M & Q4_0 GGUF baking, and 155-task evaluation suiteLiquidAI/LFM2.5-8B-A1B