Skip to content

Jev directory

Sokudan (即断)

A Japanese System One decision model built on modernbert-ja-310m: send text and typed questions and get typed answers with probabilities from one forward pass, no text generation, at 314.6M parameters that also run on a CPU.
Stars
4
Language
Python
License
APACHE-2.0
Reading time
3 min
Published by
Community
Author
hiroki-abe-58
Last verified
Oct 2026

Highlights

  • Answers are read off a decision head's logits: no text to parse, no JSON to validate, and no way to answer outside the options you sent.
  • Backbone is sbintuitions/modernbert-ja-310m; weights are published as GeneLab/sokudan-ja-310m at 314.6M parameters.
  • One forward pass per question with no decoding loop; on an M1 Max a 5-option choice takes about 13 ms with MLX.
  • Platform split: MLX with no torch on Apple silicon with macOS 14+, torch elsewhere across cuda, then mps, then cpu.
  • Question types are choice, score, and noul (bool is an alias); the schema is free per request with no retraining.

Quickstart

python
import sokudan

agent = sokudan.load("GeneLab/sokudan-ja-310m")
questions = {"department": {"type": "choice", "instructions": "この問い合わせはどの部署が担当すべきか",
                            "criteria": {"請求": "支払い・返金", "技術": "不具合・障害", "営業": "料金・新規契約", "その他": "上記以外"}}}
result = agent.predict("先月の請求で同じ金額が二回引き落とされています。至急ご確認ください。", questions)
print(result["answers"]["department"]["choice"])

Watch out

Grounded in the repository README and GitHub metadata reviewed on 2026-10-15; the claim that sokudan beats laya-multilingual on Japanese business messages follows the README's bench_ja/bench_en tables, the MLX speed comes from one idle M1 Max, and the backend-detail section was truncated in the digest.

Questions about this entry

Short answers drawn from the linked project or page.

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai