Metis Hybrid Inkling 2 Mini
probability calibration adapter
3 min readupdated
An independent project by author GreenPT adds to the thinkingmachines/Inkling-2-Mini model (26.4B total parameters with about 3.4B active per token; vision and audio modules are not loaded) the ability to output calibrated probabilistic responses for TypeSafe Jev /v1/systemone format requests while maintaining standard chat functionality. The repository contains a rank-16 LoRA adapter (a small add-on over the frozen base) with 15.2M trainable parameters, a separate decision head, and a custom calibrator.pt calibrator. Unlike standard generative models, the solution combines fast probabilistic choice with the ability to explain the answer in text, matching the accuracy of the nearly 27-billion Qwen on JevBench with fewer active parameters. It will be useful for developers of decision-making systems and agents where precise evaluation of model confidence in the answer is important.
Key features
- Hybrid operating mode: through the
DecisionLMwrapper, the model returns only calibrated probabilities (systemone), only a text response (text), or both options at once with an explanation (both). - Targeted fine-tuning: the LoRA adapter affects only attention projections and message gates, leaving the MoE expert weights untouched.
- Confidence calibrator: a separate
calibrator.ptmodule selects the temperature individually for each input prompt to reduce calibration error (ECE). - Strong result on JevBench: 203 correct answers out of 231 on the open set — almost at the level of Qwen 27B (205/231) and higher than Qwen 4B (195) and Ministral 3 8B (196).
What you can do
- Evaluate answer reliability in pipelines: use the
systemonemode on structured state (state) and questions, passing an explicittemperaturewhen necessary. - Build explainable decision-making systems: run the model in
mode="both"mode to receive both a probabilistic evaluation and a text justification. - Deploy a local API server: spin up a FastAPI server on port 8000 with the
POST /v1/systemoneendpoint using the includedscripts/serve.pyscript.
Example
import sys
from huggingface_hub import snapshot_download
path = snapshot_download("GreenPT/metis-hybrid-inkling-2-mini")
sys.path.insert(0, path)
from integrated_decisions_v2 import DecisionLM
model = DecisionLM.from_pretrained("thinkingmachines/Inkling-2-Mini").to("cuda").eval()
model.load(path)
result = model.systemone({"state": "...", "questions": {...}}, mode="both")
Read more
DetailsBenchmarks: 203 out of 231 on JevBench (70/72 original, 48/48 easy, 85/111 hard); 91.2% on 13 in-domain tasks and 77.8% on held-out PIQA, ANLI, WinoGrande.
Calibration: ECE score on the hard tier is 0.096 without a rounding threshold (passing the project threshold of 0.10) and 0.138 with the default threshold.
Hardware and requirements: when loaded, expert weights expand to bf16 (~53 GB), requiring a GPU with 80 GB VRAM (trained and tested on H200) and the
transformers branch from PR #51050.









Comments