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.

LoRA & MCP Tools (HF) ↗ Standalone Fused GGUF (9.02 GiB) ↗ EDINET Quant Dataset (1,060 rows) ↗ Technical Report (RL-N04) → Quickstart ← All Releases
16.48 MBGGUF LoRA · ~11.5 GiB total w/ Q4_K_M @ 8K ctx
88.0% (44/50)Full JFinQA · 4.6–5.8× shorter · 0/50 CN leaks
100% (5/5)5-Year DCF & EN NCAV w/ Python calculators (0 tool errors)
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: Base MiniCPM5-15B vs Kessan-15B-A2.5B standalone benchmarks on JFinQA and EDINET-Bench
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 typed Python MCP calculators on hard EDINET valuation and 5-year DCF
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 examples showing DuPont ROE, 5-ratio Suzumo Machinery screening, and CREAL 5-year DCF
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.

- 純利益率: 116483 ÷ 2543142 = 4.58%
- 総資産回転率: 2543142 ÷ 2919774 = 0.87回
- 財務レバレッジ: 2919774 ÷ 1127346 = 2.59倍
- 計算: 4.58% × 0.87回 × 2.59倍 = 10.33%
最終回答: 10.33%

English gloss: Net Margin 4.58% × Asset Turnover 0.87× × Financial Leverage 2.59× = 10.33% ROE (0 Chinese leaks).

Example 2 — Suzumo Machinery (鈴茂器工): All 5 Deep-Value Ratios Exact

Input: EDINET balance sheet, income statement, and cash flows + hypothetical market cap 76.8億円 (¥7.68B).

【鈴茂器工株式会社 バリュエーション指標(仮定時価総額 76.8億円)】
- PER: 11.24倍
- PBR: 0.63倍
- PSR: 0.81倍
- 時価総額/NCAV倍率: 0.95倍
- FCF利回り: 11.73%

English gloss: P/E 11.24×, P/B 0.63×, P/S 0.81×, Market Cap / NCAV 0.95×, FCF Yield 11.73% (classic net-net candidate).

Example 3 — Balance-Sheet Accounting: Net Assets vs Liquidation Value (NCAV)
- 純資産合計: 51.09 億円
- NCAV(正味流動資産): 30.71 億円
- 差額(純資産合計 − NCAV): +20.38 億円
違い: 純資産合計は固定資産を含むのに対し、NCAVは流動資産のみから総負債を差し引くため、固定資産がゼロとみなされ下回る場合が多い。

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.

Example 4 — Zero-Shot Tool-Assisted 5-Year DCF: CREAL (クリアル株式会社 · 279 tok)

Kessan-15B-A2.5B + calc_dcf_5y (PASS, 0 tool errors — vs 0/5 without tool):

クリアル株式会社の5年DCF(Gordon-Growthモデル)結果:
- **事業価値(EV): 203.07億円**
- **株主価値: 234.74億円**(ネットキャッシュ 31.67億円を加算した金額)

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.
FileSizeSHA256Purpose
Kessan-15B-A2.5B-Q4_K_M.gguf 9.02 GiB cf1e1bfb296890a33ba03705667886b762f1b9eb1bc4f8a7f9c7a6344403ac34 Standalone Hybrid-F16 fused GGUF (168 F16 tensors, mean ρ=0.9990 + 250 bit-identical experts; zero --lora)
Kessan-15B-A2.5B-LoRA-F16.gguf 16.48 MB b7708c4c85835a3c1e394a1ad771efae2b6e337b0b0c1a5860d097d497571dff Direct llama.cpp / llama-server --lora adapter (1:1 PEFT)
adapter_model.safetensors + config 33 MB 0651936a71e556d26212b8a6f509cae7d87e9f5ef89647718978193c00bfe473 Hugging Face PEFT LoRA adapter (peft==0.22.0)
tools/kessan_mcp_tools.py 17 KB — calc_edinet_metrics, calc_dcf_5y, run_python_math, fetch_jp_quote, read_ir_pdf
examples/quickstart_llama_server.py 7 KB — End-to-end standalone & tool-assisted DCF demo

Quickstart

1. Local llama.cpp (llama-server)

Download MiniCPM5-15B-A2.5B-Q4_K_M.gguf from openbmb/MiniCPM5-15B-A2.5B-GGUF and attach the 16.48 MB LoRA:

llama-server \
  -m MiniCPM5-15B-A2.5B-Q4_K_M.gguf \
  --lora Kessan-15B-A2.5B-LoRA-F16.gguf \
  -ngl 99 -c 4096 --port 8091 --host 127.0.0.1

python3 examples/quickstart_llama_server.py --mode standalone
python3 examples/quickstart_llama_server.py --mode dcf

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).