Sayansantra/LFM3-1.7B-WSP-V3 (Surgical Weight-Space Programming V3)
A training-free, surgically optimized variant of LiquidAI/LFM3-1.7B produced via Weight-Space Programming (WSP) and Disentangled Neuron Atlas Steering.
By modifying only 0.9742% of the model's weights across mid-to-late GQA attention and SwiGLU FFN layers (with 0 gradient steps, 0 NaN/Inf tensors, and all embeddings/LayerNorms/early syntax layers bit-identical), this model achieves +6.41 points over the official baseline on our 112-task Artificial Analysis-style formal suite, including 100% (12/12) native XML agentic tool-calling accuracy.
Both the full bfloat16 Safetensors checkpoint and the llama-server-verified Q4_K_M GGUF (LFM3-1.7B-WSP-V3-Q4_K_M.gguf (1.02 GB)) are hosted in this repository.
Official Formal Benchmark Results (112 Seed-42 Tasks)
Evaluated deterministically (do_sample=False) on identical stratified splits of TIGER-Lab/MMLU-Pro (40 10-option graduate questions), HuggingFaceH4/MATH-500 (30 competition math problems), openai/openai_humaneval (30 executable Python tasks), and 12 native XML <tool_call> automation tasks:
| Model / Variant | % Weights Changed | MMLU-Pro (40) | MATH-500 (30) | HumanEval (30) | Agentic (12) | Avg Ag Tok | AA-Mini Index |
|---|---|---|---|---|---|---|---|
LFM3-1.7B-WSP-V3 (V3_Fusion_Tuned_a012) | 0.9742% | 12/40 (30.0%) | 15/30 (50.0%) | 19/30 (63.3%) | 12/12 (100%) | 135.2 | 54.83 (+6.41) |
V3_Fusion_Plus_L14Math | 1.0525% | 12/40 (30.0%) | 16/30 (53.3%) | 20/30 (66.7%) | 10/12 (83.3%) | 155.2 | 54.16 (+5.74) |
V3_StemMath_QR_a015 | 1.0553% | 11/40 (27.5%) | 16/30 (53.3%) | 19/30 (63.3%) | 11/12 (91.7%) | 152.9 | 53.82 (+5.40) |
V3_Fusion_NullSpace_Hybrid | 0.8047% | 9/40 (22.5%) | 14/30 (46.7%) | 21/30 (70.0%) | 12/12 (100%) | 135.8 | 53.26 (+4.84) |
Official LiquidAI/LFM3-1.7B (Baseline) | 0.0% | 10/40 (25.0%) | 13/30 (43.3%) | 17/30 (56.7%) | 11/12 (91.7%) | 134.2 | 48.42 |
AA-Mini Index formula:
0.30 * MMLU-Pro% + 0.30 * MATH-500% + 0.25 * HumanEval% + 0.15 * Agentic%.
Surgical Weight-Space Methodology
LFM3-1.7B is a 24-layer hybrid backbone (13 gated short-conv layers + 11 GQA attention layers, hidden=2048, ffn=7680 SwiGLU = 184,320 FFN neurons). Mapping all 24 layers revealed:
- Early layers (
L0–L2) encode surface syntax and short-conv bridge layers (L15, L17, L19) should not be perturbed. - Mid-to-late GQA operators (
L14, L20) and SwiGLU FFNs (L16, L18, L20, L22, L23) control reasoning depth, tool-call decisiveness, and formatting discipline. - Disentangled Neuron Steering: Rather than suppressing all negative agentic FFN directions (which harms math), we classify neurons into non-interfering groups (
Pure-Math,Pure-IFEval, andPure-Bloat).
Exact Applied Recipe (wsp_manifest.json):
- Multi-Axis QR Subspace Projection (
alpha = -0.12): Orthonormalagentic + coding + mathsubspace projection onL14.self_attn.o_proj,L16.feed_forward.w2, andL20.self_attn.o_proj. - Pure-Math FFN Neuron Amplification (
+12%): Top-64 non-interfering math neurons inL16andL18FFNw2. - Pure-IFEval FFN Neuron Amplification (
+10%): Top-64 strict-formatting neurons inL20,L22, andL23FFNw2. - Pure-Bloat Suppression (
alpha = 0.15): Suppressing top-64 hesitant<think>-looping neurons inL16andL18FFNw2without touching math or coding neurons.
Quickstart
1. Local llama.cpp (llama-server with Q4_K_M GGUF)
llama-server -hf Sayansantra/LFM3-1.7B-WSP-V3:Q4_K_M --port 8080 -ngl 99 -c 4096 --jinja
(On 4 GB GPUs such as RTX 3050 Laptop, use -ngl 12 -c 2048.)
2. Hugging Face transformers
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Sayansantra/LFM3-1.7B-WSP-V3"
tok = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id, trust_remote_code=True, torch_dtype=torch.bfloat16, device_map="auto"
)
Verification & Reproducibility
- Non-finite (
NaN/Inf) tensors:0 - Protected tensors (
embed_tokens,embedding_norm,lm_head,*norm.weight): Bit-identical toLiquidAI/LFM3-1.7B - GGUF
Q4_K_MLive Check: Verified viallama-server/v1/chat/completionsendpoint prior to upload. - Full Edit Manifest: Included in
wsp_manifest.json.