Run this model with HF Jobs

Run Sayansantra/LFM3-1.7B-WSP-V3 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/Sayansantra/LFM3-1.7B-WSP-V3. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Sayansantra/LFM3-1.7B-WSP-V3 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/Sayansantra/LFM3-1.7B-WSP-V3. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

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:

  1. Early layers (L0–L2) encode surface syntax and short-conv bridge layers (L15, L17, L19) should not be perturbed.
  2. Mid-to-late GQA operators (L14, L20) and SwiGLU FFNs (L16, L18, L20, L22, L23) control reasoning depth, tool-call decisiveness, and formatting discipline.
  3. 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, and Pure-Bloat).

Exact Applied Recipe (wsp_manifest.json):

  • Multi-Axis QR Subspace Projection (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.
  • Pure-Math FFN Neuron Amplification (+12%): Top-64 non-interfering math neurons in L16 and L18 FFN w2.
  • Pure-IFEval FFN Neuron Amplification (+10%): Top-64 strict-formatting neurons in L20, L22, and L23 FFN w2.
  • Pure-Bloat Suppression (alpha = 0.15): Suppressing top-64 hesitant <think>-looping neurons in L16 and L18 FFN w2 without 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 to LiquidAI/LFM3-1.7B
  • GGUF Q4_K_M Live Check: Verified via llama-server /v1/chat/completions endpoint prior to upload.
  • Full Edit Manifest: Included in wsp_manifest.json.
Downloads last month
430
Safetensors
Model size
2B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Sayansantra/LFM3-1.7B-WSP-V3

Quantized
(192)
this model
Finetunes
1 model
Quantizations
1 model

Collection including Sayansantra/LFM3-1.7B-WSP-V3