MOD · Financial Filing LoRA✓ Apache-2.0 · Open Weights
Kessan-15B-A2.5B 決算
Japanese Financial Filing & Equity Fundamental Analyst LoRA on openbmb/MiniCPM5-15B-A2.5B
Kessan-15B-A2.5B is a 16.48 MB GGUF / 33 MB PEFT LoRA add-on built for reading Japanese annual securities reports (有価証券報告書 / EDINET) and running fundamental equity analysis (deep-value screening, net-net NCAV, FCF yield, and 5-year DCF) offline on a single consumer GPU. It ships with a zero-dependency Python calculator and market-data toolkit (tools/kessan_mcp_tools.py) so 13-digit yen accounting stays exact and auditable.
83–90 tok/sMeasured on laptop iGPU (2.5B active MoE, $0 local)
Visual Benchmarks & Unedited Outputs
Click or tap any plate to inspect full resolution. Every score comes from unseen held-out companies (685 EDINET codes and 775 document IDs excluded, including 45 hidden cross-dataset overlaps between EDINET-Bench/train and JFinQA/test).
Figure 1 — Standalone Reading, Speed & Japanese Cleanliness: On paired unseen JFinQA (40 Qs), Kessan lifts overall accuracy 77.5% → 85.0% (+10.7 pp on financial math) in 4.6×–5.8× fewer tokens with 0/50 Chinese-character leaks, and completes 40/40 EDINET-Bench earnings forecasts (1/40 CN vs 16/40 base).Figure 2 — Prose Arithmetic Alone vs Included Finance Calculators: Attaching tools/kessan_mcp_tools.py lifts 5-year DCF from 0/5 → 5/5, EN NCAV from 4/5 → 5/5, all-5 ratio screening from 25% → 75% strict / 83.3% exact, and the 37-task hard suite from 45.9% → 73.0% strict / 78.4% exact (0 tool errors across 34 automatic calls; 15/15 missing-input withholding).Figure 3 — Complete Unedited Held-Out Outputs: Side-by-side transcripts on unseen filings — DuPont ROE (10.33% in 199 tok vs base 1,536-tok timeout), Suzumo Machinery all-5 net-net screen, Net Assets vs NCAV explanation, and zero-shot calc_dcf_5y on CREAL.
Why Local & How It Pairs With Cloud Models
Hardware & Speed1 Consumer GPU
Fits 12–16 GB VRAM or 16 GB+ Laptops
MiniCPM5-15B-A2.5B-Q4_K_M (8.5 GiB) plus the 16.48 MB Kessan LoRA uses roughly ~11.5 GiB at 8K context. Because only 2.5B parameters activate per token, measured laptop iGPU throughput hits 83–90 tok/s decode and up to 1,585 tok/s prefill (AMD Radeon 8060S, Vulkan llama.cpp), while preserving OpenBMB’s native 524K long-context architecture.
4 Base Failures FixedMeasured
Clean Japanese, Short Answers & Zero Guessed Prices
Base MiniCPM5-15B leaks Simplified Chinese on 40.0% of EDINET filings, stalls on 32.5% of forecasts (794–1,092+ tok loops), and invents stock prices when omitted. Kessan cuts answers 3.0×–5.8×, drops Chinese leaks to 0/50 on JFinQA (1/40 on EDINET), withholds missing prices/WACC 15/15 (100%), and keeps native XML tool calling 6/6 (2.6× faster).
Workflow2-Tier Screening
Offline Bulk Screening + Frontier Cloud Deep-Dive
Japan’s EDINET spans ~4,000 listed companies with 80–150 page filings. Screen 50–200 raw filings locally at $0 with Kessan + kessan_mcp_tools.py to narrow down 3–5 finalists with Python-audited NCAV, multiples, and DCF cards — keeping watch-lists private — then pass only those clean finalist cards to a frontier cloud model for moat and thesis writing.
Full Benchmark Scorecard
Measured locally on MiniCPM5-15B-A2.5B-Q4_K_M.gguf (llama.cpp Vulkan, ctx=4096) at OpenBMB’s recommended sampling (T=0.7, top_p=0.95, repeat_penalty=1.05). One unified adapter (Kessan-15B-A2.5B-LoRA-F16.gguf / adapter_model.safetensors).
Benchmark (Unseen Companies Only)
Base MiniCPM5-15B
Kessan-15B (Standalone)
Kessan-15B + kessan_mcp_tools.py
JFinQA Paired Q&A (40 Qs)
77.5% (31/40, 794 tok, 2/40 CN)
85.0% (34/40, 172 tok [4.6×], 0/40 CN)
Run standalone (百万円 tables)
— Financial Math subset (28 Qs)
67.9% (19/28, 1,030 tok)
78.6% (22/28, 177 tok [5.8×])
Run standalone
Full JFinQA (50 Qs, incl. consistency)
Timed out at 40/50 (5.8× bloat)
88.0% (44/50, 161 tok, 0/50 CN)
Run standalone
EDINET-Bench Earnings Forecast (40)*
27/40 done, 1,092 tok, 16/40 CN, 42.5%
40/40 done, 363 tok (3.0×), 1/40 CN, 47.5%
—
EDINET-Bench Fraud Detection (40)*
—
40/40 done, 354 tok, 0/40 CN, 52.5%
—
Built-In XML Tool Calling (6 checks)
6/6 (24.8s)
6/6 (9.5s, 2.6× faster)
6/6 (100%)
Hard EDINET Quant Suite (37 tasks)
—
45.9% (17/37)
73.0% (27/37) strict / 78.4% (29/37) exact math
— Freeform Python Codegen (1st try, 37)
—
—
32.4% (12/37) — digit typos & DCF drift
— 5-Year DCF Valuation (5 firms)
—
0.0% (0/5)
100.0% (5/5)
— Liquidation Value / EN NCAV (5 firms)
—
80.0% (4/5)
100.0% (5/5)
— All 5 Ratios Exact (PER/PBR/PSR/NCAV/FCF, 12)
—
25.0% (3/12)
75.0% (9/12) strict / 83.3% (10/12) exact
— Withholds Price / DCF When Omitted (15)
—
100.0% (15/15)
100.0% (15/15)
*EDINET-Bench completion and Chinese-leak rows were measured after Pass 1; Pass 2 targeted valuation math, English summary cards, and missing-input discipline (lifting JFinQA 84.0% → 88.0%, 0/50 Chinese leaks).
Copy-Inspectable Verbatim Held-Out Outputs
Example 1 — 3-Step DuPont ROE (True: 10.33% · 199 tok vs Base 1,536-tok timeout)
Base MiniCPM5-15B (FAIL, 1,536 tok): Hit the 1,536-token limit mid-thought and never produced a final answer.
English gloss: Total Net Assets ¥5.11B vs NCAV ¥3.07B (+¥2.04B gap) — Net Assets include fixed assets, while NCAV subtracts total liabilities from current assets alone.
English gloss: 5-year Gordon-Growth DCF — Enterprise Value ¥20.31B, Equity Value ¥23.47B after adding ¥3.17B net cash.
Architecture, Zero-Leak Hygiene & Checksums
Trimmed Hybrid Non-Expert LoRA (r=16, alpha=32, 168 modules): Targets self_attn.{k,v,o}_proj across all 28 layers, layers.0.mlp.{gate,up,down}_proj, and shared_experts.{gate,up,down}_proj across Layers 1–27. All 64 × 27 routed MoE experts, q_gate_proj, embeddings, and lm_head stay frozen (0 deltas), keeping native XML tool calling 6/6 intact and the GGUF adapter at 16.48 MB.
Zero-leak company holdout: Excluded the full union of 685 EDINET company codes and 775 document IDs across EDINET-Bench/test and ajtgjmdjp/jfinqa — including 45 hidden cross-dataset overlaps found between raw EDINET-Bench/train and JFinQA/test — plus 26-character n-gram deduplication (0 hits).
Two-stage SFT ($3.06 total on RunPod A100 80GB): Pass 1 (1,550 train / 161 val across 809 companies, 388 steps, lr=5e-5) + Pass 2 (793 targeted rows, 100 steps, lr=1.5e-5) fixing FCF = OCF + ICF signs, 12–14 digit yen-to-億円 scaling, English cards, and DCF abstention.
Tool-calling note: MiniCPM5 marks <function / </function> / <param / </param> (token IDs 18–21) as special: true. Pass "special": true on tool turns or call parse_minicpm5_tool_calls() from tools/kessan_mcp_tools.py.
2. Python (transformers + peft)
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_id = "openbmb/MiniCPM5-15B-A2.5B"
adapter_id = "Cold-ServeLabs/Kessan-15B-A2.5B"
tok = AutoTokenizer.from_pretrained(base_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
base_id, torch_dtype=torch.bfloat16,
device_map="auto", trust_remote_code=True,
)
model = PeftModel.from_pretrained(model, adapter_id)
Honest Limits, Failures & License
What Failed & Where Not to Trust Prose Alone
Prose arithmetic fails on 13-digit compounding: Standalone prose scores 45.9% on the hard EDINET valuation suite and 0/5 on 5-year DCF. Always attach tools/kessan_mcp_tools.py for multi-ratio screens and DCF.
Freeform Python codegen was worse (32.4%): Re-typing 13-digit yen strings into ad-hoc scripts introduced transcription typos and formula drift. Passing raw comma-formatted strings into typed functions (calc_edinet_metrics, calc_dcf_5y) lifted accuracy to 73.0% strict / 78.4% exact math with 0 errors.
Units split: Run standalone on million-yen (百万円) tables such as JFinQA (88.0%); attach calc_edinet_metrics for full-yen EDINET filings converted to 億円.
EDINET-Bench baseline caveat: Text-only Earnings Forecast (47.5%) and Fraud Detection (52.5%) sit near the 50% random baseline — treat those rows as completion and Japanese-cleanliness checks, not standalone trading signals.
Research assistant, not financial advice: Always verify critical numbers against official EDINET / TDnet disclosures. Adapter weights, toolkit, and recipes are Apache-2.0 (built on openbmb/MiniCPM5-15B-A2.5B; evaluated on SakanaAI/EDINET-Bench and ajtgjmdjp/jfinqa, Apache-2.0).