Fintan-9B + Weight-Space Programming (Fintan-9B-Weight-Space-Programming)

Complete GGUF release, calibrated LoRA subspace adapters, unified runtime router, and full benchmark suite applying Weight-Space Programming (WSP) to fintanlabs/Fintan-9B (built on Qwen/Qwen3.5-9B).

Upstream Fintan-9B delivers 89.5% recall (154/172) on November 2026 episodic news when run directly with enable_thinking=False, but suffers four severe structural failure modes:

  1. enable_thinking=True total collapse (0/172 clean pass): 172/172 empty content responses because Fintan emits prose ("Based", "The", "As") immediately after <think>\n and never emits </think>.
  2. Knowledge + Tools total collapse (0/12): Both Base Qwen3.5-9B (tool_ok=2/12, 0/12 fact) and Fintan-ON (tool_ok=0/12, 0/12 fact) fail when episodic knowledge must be used inside tool calls.
  3. General & Agentic collapse (Holdout-30: 26/30 -> 1/30, B3_abs: 9/10 -> 0/10): When Fintan's r=512 ffn_down adapter is active, tool restraint, unlearned abstention, and agentic formatting break (in_max_cos up to 0.7086 against WSP S2_restraint on L27).
  4. Router edge gaps (NightRouter4): Missed question [168] (171/172) while falsely triggering Fintan on 3/10 unlearned November 2026 abstention traps (B3_abs).

Unified Fintan-9B + WSP resolves all four failure modes with zero RAG and zero external answer databases, running all 13 GGUF LoRA slots (S1..S11 + fintan_r512 + S12) simultaneously in 6926 MiB peak VRAM on a single llama-server instance.


Upstream Attribution & License


Headline Verification Results (Live llama-server Q4_K_M, RTX 4070 Ti)

Benchmark / Capability Base Qwen3.5-9B Upstream Fintan-9B (Fintan-ON) Unified Fintan-9B + WSP Delta vs Upstream
NightRouter (check_questions, 172) β€” 171/172 (missed [168]) 172/172 (0 missed) +1 (100% recall)
NightRouter False Positives (B3_abs, 10) β€” 3/10 0/10 -3 FPs
NightRouter FP (agent100 / tbench20 / B2 / B3_gen) β€” 0/100, 0/20, 0/10, 0/10 0/100, 0/20, 0/10, 0/10 Zero FPs
Suite A3: check_172 (enable_thinking=False) 19/172 (11.0%) 153/172 routed / 154/172 direct 154/172 (89.5%, 6.7t) +1 routed (153/172 w/ null_g5)
Suite A4: check_172 (enable_thinking=True) β€” 0/172 (172 empty, 7.1t) 154/172 (89.5%, 0 cut, 0 empty, 9.7t) +154 (+89.5 pts)
Suite B1: Knowledge + Tools (think=True, 12) 0/12 (tool_ok=2/12) 0/12 (tool_ok=0/12) 11/12 (tool_ok=12/12) +11 (Zero RAG)
Suite B1: Knowledge + Tools (think=False, 12) β€” 0/12 (tool_ok=0/12) 11/12 (tool_ok=12/12) +11
Suite B2: Tool Restraint w/ Tools Attached (10) 6/10 3/10 6/10 (10/10 no_tc) +3 (Base parity)
Suite B3: Unlearned Abstention / General (think=False) 9/10 / 8/10 0/10 / 6/10 9/10 / 8/10 +9 abstention, +2 general
Suite C: Holdout-30 (S1..S9) 26/30 1/30 27/30 (S8=3/3 vs Base 1/3) +26 vs Fintan-ON (+1 vs Base)
Suite C: agent100 (100 tasks) 84/100 (ref) Collapses under Fintan-ON 78/100 (71.8 tok/s, night_FP=0/100) HumanEval=15/15, S8=3/3, GSM8K=8/20*
Suite D: Terminal-Bench 20 (real WSL2) 7/20 (35.0%, ref) β€” 6/20 (30.0%, easy=4/10 med=1/9 hard=1/1) 63.7 tok/s, 0 routing FPs

* Transparent notes:

  1. On EST_GSM8K, NightRouterWSP left night=None and DynamicSubspaceRouter9S selected scales=[0.0]*13 (wsp_general_fast_think) across all 20 items (0% Fintan and 0% WSP). Both our run (8/20) and the wsp-5model-pipeline reference (14/20) hit Base Qwen3.5-9B's max_tokens=1024 CoT cap; subtle -c 16384 vs -c 4096 -b 512 -ub 256 KV differences shift greedy CoT termination at token 1024.
  2. On Suite B1, the single remaining miss (11/12) is b1_navaldrones_write, where Phase 2 emitted a clean write_file('/tmp/drones.txt', ...) call (12/12 tool_syntax_ok) but Phase 1 recalled "sank Russian ships" without "two".

Architecture & Weight-Space Engineering

UnifiedFintanWSPRouter (fintan_wsp_router.py) loads 13 GGUF LoRA adapters into one llama-server (--lora-init-without-apply) and switches per-turn scales in < 2 ms:

  • Slots [0..10]: Qwen3.5-9B WSP behavioral subspaces S1..S11 (wsp_s1_think.gguf .. wsp_s11_term_code.gguf).
  • Slot [11]: Fintan continual-learning LoRA (fintan_2026_11_23_r512.gguf, r=512, alpha=512, blk.{11,14,16,18,21,23,25,27}.ffn_down, ||dW||_F = 78.65..80.29, eff_rank_90 = 304..330).
  • Slot [12]: Synthesized S12 Thinking-Boundary Bridge (wsp_s12_fintan_think_bridge.gguf, rank=16, L28–L31, 4.00 MiB).

1. S12 Thinking-Bridge & Two-Phase Reasoning-Boundary Switching (0/172 -> 154/172)

Solved via closed-form Woodbury right-nullspace projection over unnormalized BF16 open_think_cal (<think>\n) receptors, boosting </think> logits by +29.16 while suppressing spurious prose starts (Based, The, As) and <|im_end|> (-7.30), achieving 100% top-1 </think> on 24/24 calibration prompts with < 0.07% nullspace leakage:

| Layer | ||dW||_F | Post-Think Nullspace Leak | General Knowledge Leak | | --- | :---: | :---: | :---: | | L28 (ffn_down) | 0.5779 | 0.0665% | 0.0599% | | L29 (ffn_down) | 0.5962 | 0.0607% | 0.0486% | | L30 (ffn_down) | 0.5761 | 0.0326% | 0.0363% | | L31 (ffn_down) | 0.9132 | 0.0699% | 0.0602% |

In Regime 2 (fintan_think_two_phase), Phase 1 closes <think>\n -> </think> with [fintan=1.0, S12=0.8] (stop=["</think>"], max_tokens=16), then Phase 2 drops S12=0.0 at enable_thinking=False to read out the answer cleanly (154/172, 0 cutoffs, 0 empty content).

2. Right-Nullspace Pareto Adapters (r512, null_g20, null_g5, null_g1)

Projecting Fintan's ffn_down updates away from 296 preserved general/tool activation receptors produces a clean Pareto trade-off for scenarios where Fintan must stay active on non-episodic inputs:

Adapter Variant Frob Retention Preserve RMS Ratio Smoke Recall (5) Forced-ON General + Abstention (8)
r512 (lossless) 100.0% 100.0% 5/5 5/8
null_g20 (gamma=20) 99.7% 74.7% 5/5 4/8
null_g5 (gamma=5) 99.4% 54.2% 5/5 6/8
null_g1 (gamma=1) 98.8% 29.8% 5/5 6/8

Because NightRouterWSP reaches 172/172 with 0 false positives, the runtime defaults to lossless fintan_2026_11_23_r512.gguf (154/172 vs 153/172 for null_g5), while all three right-nullspace adapters remain included in adapters/.

3. NightRouterWSP & Two-Phase Weight-Space Recall-Then-Act (0/12 -> 11/12, Zero RAG)

  • NightRouterWSP: Extends NightRouter4 with out-of-window date exclusion (Rule A), explicit uncertainty abstention guard (Rule B), and 5-char stem subject matching (Rule C recovering [168]).
  • Regime 3 (fintan_recall_then_act): For episodic prompts with tools attached:
    1. Phase 1 (106–248 ms): Strips action boilerplate into a clean factual query, enables [fintan=1.0, S1..S12=0.0], and recalls the fact purely from neural LoRA weights.
    2. Phase 2: Switches to [S1..S11, fintan=0.0, S12=0.0] with S2=0, S7=0, S8=0, S3 >= 1.0, grounds the <recalled_fact> observation, and emits the tool call directly (final_enable_thinking=False).

Complete agent100 & Terminal-Bench 20 Breakdown

agent100 Sub-Suite Unified Fintan-9B + WSP
Holdout S1: Think Closure 1/3 (33.3%)
Holdout S2: Tool Restraint & Anti-Sycophancy 4/4 (100.0%)
Holdout S3: Multi-Tool Router 5/5 (100.0%)
Holdout S4: Mid-Band Code Synthesis 2/2 (100.0%)
Holdout S5: Turn-2 Structured JSON 3/3 (100.0%)
Holdout S6: Escalation Handoff Gate 4/4 (100.0%)
Holdout S7: Indirect Injection Guard 2/3 (66.7%)
Holdout S8: Grounded Abstention 3/3 (100.0%)
Holdout S9: Error Self-Recovery 3/3 (100.0%)
Established: OpenAI GSM8K (scales=[0]*13) 8/20 (40.0%)
Established: HumanEval pass@1 15/15 (100.0%)
Established: BFCL v3 Irrelevance 12/15 (80.0%)
Established: InterCode-NL2Bash 16/20 (80.0%)
Total (agent100) 78/100 (27/30 Holdout + 51/70 Est)
  • Terminal-Bench 20 passed tasks (6/20): hello-world, fix-permissions, extract-safely, csv-to-parquet, heterogeneous-dates, recover-obfuscated-files.

Self-Learning LoRA Upgrades (Options 1, 2 & 3)

Building on unified WSP inference, learn_wsp.py implements an open-source, pure-PyTorch self-learning engine (~`7.6–7.7 GiBpeak CUDA VRAM on RTX 4070 Ti viaInt4Linear+Int8Linear, H_10activation precomputation, online Woodbury right-nullspace projection, and mixed/nothinksupervision β€” **strictly zerocheck_questions.json` or Suite B/C/D training leakage**):

| Variant / Adapter | Rank / Size (MiB) | mean ||dW||_F | A3 Direct (172) | A4 Native <think> | A4 Two-Phase | B1 Tools (12) | Forced-ON B3_gen / B3_abs / Holdout-30 | | --- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | | Upstream fintan_2026_11_23_r512.gguf | 512 (128.0) | 79.16 | 154/172 (89.5%) | 0/172 | 154/172 | 11/12 | 7/10 / 0/10 / 1/30 | | Option 1: fintan_2026_11_23_wsp_v2_r64.gguf | 64 (16.0) | 7.094 | 116/172 (67.4%) | 118/172 (68.6%) | 116/172 | 11/12 | 9/10 / 5/10 / 25/30 | | Option 1: fintan_2026_11_23_wsp_v2_r128.gguf | 128 (32.0) | 9.413 | 140/172 (81.4%) | 140/172 (0 S12!) | 140/172 | 12/12 | 9/10 / 2/10 / 22/30 | | Option 2: fintan_wsp_v2_merged_n1n2.gguf | 160 (40.0) | 9.992 | 138/172 N1 + 17/24 N2 | 137/172 (0 S12) | β€” | β€” | 9/10 / 2/10 / β€” | | Option 3: fintan_v2_r128_patched.gguf | 160 (40.0) | 9.412 | 140/172 (81.4%) | β€” | 140/172 | 12/12 | 9/10 / 2/10 / β€” | | Option 3 (Default): fintan_r512_patched.gguf | 544 (136.0) | 79.174 | 162/172 (94.2%) | β€” | 162/172 (94.2%) | 12/12 | 4/10 / 0/10 / β€” |

  • Option 1 (Fintan-WSP-v2): Natural entity-disambiguated study_qa + label_smoothing=0.03 + Woodbury nullspace projection yields 4x–8x smaller adapters (16–32 MiB), 140/172 single-pass native <think> without S12, 12/12 Knowledge+Tools (B1), and 25/30 Forced-ON Holdout-30 (v2_r64, vs upstream 1/30).
  • Option 2 (Lossless Orthogonal Multi-Night Merge & Live /fintan API): Training Night-2 (fintan_night2_wsp_r32.gguf) with --base-adapter v2_r128 --protect-keys v2_r128_keys.pt --replay-qa (1 study Q/fact) + rank-preserving SVD merge (r1+r2=160) achieves 98.6% Night-1 retention (138/172) plus 70.8% Night-2 unseen (17/24 vs Base 0/24). run_fintan_wsp.py also exposes live POST /fintan/teach (enforcing teach_policy.py), POST /fintan/learn, and GET /fintan/status.
  • Option 3 (Targeted Hard-Fact Patch): Self-diagnosing misses on facts.json-derived study_qa ONLY (39 hard facts on r512) and applying a r=32 nullspace+replay patch lifts routed r512 to 162/172 (94.2%) on both A3 and A4 (+8 tasks, surpassing upstream BF16 91.3%) and fixes B1 to 12/12 (tool_ok=12/12) in both think and nothink.

Quick Start (Standalone Local Server)

Download the repository (gguf/Qwen3.5-9B-Q4_K_M.gguf, adapters/, fintan_data/, runtime scripts) and launch the OpenAI-compatible server with llama.cpp (llama-server on PATH or passed via --llama-server):

hf download jstarks/Fintan-9B-Weight-Space-Programming --local-dir ./fintan-9b-wsp
cd ./fintan-9b-wsp

# Verify all 13 LoRA slots and routing without touching GPU:
python run_fintan_wsp.py --dry-run

# Launch OpenAI-compatible server (defaults to adapters/fintan_r512_patched.gguf, 162/172 = 94.2%):
python run_fintan_wsp.py --llama-server llama-server

# Optional alternatives:
#   python run_fintan_wsp.py --fintan-adapter adapters/fintan_2026_11_23_wsp_v2_r128.gguf  # native <think>, 32 MiB
#   python run_fintan_wsp.py --fintan-adapter adapters/fintan_wsp_v2_merged_n1n2.gguf     # Night-1 + Night-2 merged

When running locally, stage and consolidate new knowledge safely via:

  • POST http://127.0.0.1:8900/fintan/teach (policy-checked with fintan_data/door/teach_policy.py)
  • POST http://127.0.0.1:8900/fintan/learn (runs learn_wsp.py protected by fintan_2026_11_23_wsp_v2_r128_keys.pt)
  • GET http://127.0.0.1:8900/fintan/status

Repository Structure

  • gguf/Qwen3.5-9B-Q4_K_M.gguf β€” Quantized base GGUF (5.29 GiB).
  • adapters/ β€” All GGUF LoRA adapters & receptor keys:
    • wsp_s1_think.gguf .. wsp_s11_term_code.gguf (Qwen3.5-9B WSP agentic + Terminal-Bench subspaces)
    • fintan_r512_patched.gguf (Default Option 3 patched champion, r=544), fintan_r512_patch_r32.gguf
    • fintan_2026_11_23_wsp_v2_r128.gguf, fintan_2026_11_23_wsp_v2_r64.gguf, fintan_2026_11_23_wsp_v2_r128_keys.pt
    • fintan_wsp_v2_merged_n1n2.gguf, fintan_night2_wsp_r32.gguf, fintan_v2_r128_patched.gguf, fintan_v2_r128_patch_r32.gguf
    • fintan_2026_11_23_r512.gguf, fintan_2026_11_23_null_g5.gguf, fintan_2026_11_23_null_g20.gguf, fintan_2026_11_23_null_g1.gguf
    • wsp_s12_fintan_think_bridge.gguf
  • run_fintan_wsp.py, fintan_wsp_router.py, dynamic_router_9s.py β€” Portable OpenAI server (+ /fintan/teach, /fintan/learn, /fintan/status) & 13-LoRA router.
  • fintan_data/ β€” Upstream manifest.json, background.json, updates/2026-11-23/ facts & evaluation questions, synthetic disjoint night2_synthetic_facts.json & night2_eval_questions.json, and door/{night_router*.py,teach_policy.py}.
  • results/ β€” Complete verified outputs (spectral_analysis.json, baseline_audit.json, wsp_synthesis_report.json, wsp_cal_report.json, fintan_wsp_results.json, self_learning_wsp_results.json, fintan_9b_wsp_report.md).
  • scripts/ β€” Full pipeline & self-learning scripts (learn_wsp.py, benchmark_self_learning.py, stage_and_analyze_fintan.py, audit_fintan_baseline.py, build_fintan_wsp.py, validate_fintan_wsp_cal.py, evaluate_fintan_wsp.py, smoke_test_fintan.py, upload_fintan_to_hf.py).
Downloads last month
202
GGUF
Model size
67.1M params
Architecture
qwen35
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for jstarks/Fintan-9B-Weight-Space-Programming

Finetuned
Qwen/Qwen3.5-9B
Adapter
(1,152)
this model