- Fintan-9B + Weight-Space Programming (
Fintan-9B-Weight-Space-Programming)
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:
enable_thinking=Truetotal collapse (0/172clean pass):172/172empty content responses because Fintan emits prose ("Based","The","As") immediately after<think>\nand never emits</think>.- Knowledge + Tools total collapse (
0/12): Both BaseQwen3.5-9B(tool_ok=2/12,0/12fact) andFintan-ON(tool_ok=0/12,0/12fact) fail when episodic knowledge must be used inside tool calls. - General & Agentic collapse (
Holdout-30:26/30 -> 1/30,B3_abs:9/10 -> 0/10): When Fintan'sr=512ffn_downadapter is active, tool restraint, unlearned abstention, and agentic formatting break (in_max_cosup to0.7086against WSPS2_restrainton L27). - Router edge gaps (
NightRouter4): Missed question[168](171/172) while falsely triggering Fintan on3/10unlearned 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
- Base Model:
Qwen/Qwen3.5-9Bby the Qwen Team (Apache-2.0). Quantized base GGUF included atgguf/Qwen3.5-9B-Q4_K_M.gguf(5.29 GiB). - Continual-Learning Adapter & News Update Data:
fintanlabs/Fintan-9Bby Fintan Labs (Apache-2.0). - Repository License:
Apache-2.0.
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:
- On
EST_GSM8K,NightRouterWSPleftnight=NoneandDynamicSubspaceRouter9Sselectedscales=[0.0]*13(wsp_general_fast_think) across all 20 items (0%Fintan and0%WSP). Both our run (8/20) and thewsp-5model-pipelinereference (14/20) hit BaseQwen3.5-9B'smax_tokens=1024CoT cap; subtle-c 16384vs-c 4096 -b 512 -ub 256KV differences shift greedy CoT termination at token1024. - On
Suite B1, the single remaining miss (11/12) isb1_navaldrones_write, where Phase 2 emitted a cleanwrite_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-9BWSP behavioral subspacesS1..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]: SynthesizedS12Thinking-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: ExtendsNightRouter4with out-of-window date exclusion (Rule A), explicit uncertainty abstention guard (Rule B), and 5-char stem subject matching (Rule Crecovering[168]).- Regime 3 (
fintan_recall_then_act): For episodic prompts with tools attached:- 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. - Phase 2: Switches to
[S1..S11, fintan=0.0, S12=0.0]withS2=0, S7=0, S8=0, S3 >= 1.0, grounds the<recalled_fact>observation, and emits the tool call directly (final_enable_thinking=False).
- Phase 1 (
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-disambiguatedstudy_qa+label_smoothing=0.03+ Woodbury nullspace projection yields4xβ8xsmaller adapters (16β32 MiB),140/172single-pass native<think>withoutS12,12/12Knowledge+Tools (B1), and25/30Forced-ON Holdout-30 (v2_r64, vs upstream1/30). - Option 2 (Lossless Orthogonal Multi-Night Merge & Live
/fintanAPI): Training Night-2 (fintan_night2_wsp_r32.gguf) with--base-adapter v2_r128 --protect-keys v2_r128_keys.pt --replay-qa(1study Q/fact) + rank-preserving SVD merge (r1+r2=160) achieves98.6%Night-1 retention (138/172) plus70.8%Night-2 unseen (17/24vs Base0/24).run_fintan_wsp.pyalso exposes livePOST /fintan/teach(enforcingteach_policy.py),POST /fintan/learn, andGET /fintan/status. - Option 3 (Targeted Hard-Fact Patch): Self-diagnosing misses on
facts.json-derivedstudy_qaONLY (39hard facts onr512) and applying ar=32nullspace+replay patch lifts routedr512to162/172 (94.2%)on bothA3andA4(+8tasks, surpassing upstream BF1691.3%) and fixesB1to12/12(tool_ok=12/12) in boththinkandnothink.
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 withfintan_data/door/teach_policy.py)POST http://127.0.0.1:8900/fintan/learn(runslearn_wsp.pyprotected byfintan_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-9BWSP agentic + Terminal-Bench subspaces)fintan_r512_patched.gguf(Default Option 3 patched champion,r=544),fintan_r512_patch_r32.gguffintan_2026_11_23_wsp_v2_r128.gguf,fintan_2026_11_23_wsp_v2_r64.gguf,fintan_2026_11_23_wsp_v2_r128_keys.ptfintan_wsp_v2_merged_n1n2.gguf,fintan_night2_wsp_r32.gguf,fintan_v2_r128_patched.gguf,fintan_v2_r128_patch_r32.gguffintan_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.ggufwsp_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/β Upstreammanifest.json,background.json,updates/2026-11-23/facts & evaluation questions, synthetic disjointnight2_synthetic_facts.json&night2_eval_questions.json, anddoor/{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
4-bit