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.
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%.
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:
L0–L2) encode surface syntax and short-conv bridge layers (L15, L17, L19) should not be perturbed.L14, L20) and SwiGLU FFNs (L16, L18, L20, L22, L23) control reasoning depth, tool-call decisiveness, and formatting discipline.Pure-Math, Pure-IFEval, and Pure-Bloat).Exact Applied Recipe (wsp_manifest.json):
alpha = -0.12): Orthonormal agentic + coding + math subspace projection on L14.self_attn.o_proj, L16.feed_forward.w2, and L20.self_attn.o_proj.+12%): Top-64 non-interfering math neurons in L16 and L18 FFN w2.+10%): Top-64 strict-formatting neurons in L20, L22, and L23 FFN w2.alpha = 0.15): Suppressing top-64 hesitant <think>-looping neurons in L16 and L18 FFN w2 without touching math or coding neurons.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.)
transformersimport 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"
)
NaN/Inf) tensors: 0embed_tokens, embedding_norm, lm_head, *norm.weight): Bit-identical to LiquidAI/LFM3-1.7BQ4_K_M Live Check: Verified via llama-server /v1/chat/completions endpoint prior to upload.wsp_manifest.json.