A $6.60, 149M ModernBERT cross-encoder for agent tool routing — full recipe shared

MaziyarPanahi · x · 2026-10-01

The author shares the training details and model card (MaziyarPanahi/ModernJEV-Decide-Preview): a 149.6M-parameter ModernBERT cross-encoder with a single scalar scoring head, 4,096-token inputs, where choice labels and descriptions are input text — so outputs aren't limited to a fixed tool vocabulary. It reads a conversation, policy and available tools, then scores candidate actions. The 60K-decision prototype cost about $6.60 total ($5.40 training), evaluated on held-out sets of 1,158 next-action, 542 tool-selection and 3,652 unseen When2Call decisions. The one-prompt run trained 6K decisions in 16 minutes; the 62% tool-selection figure comes from the full 60K model finished with Codex. The author stresses it's a choice-ranking prototype, not a Jev reproduction.

Related event: Dev Trains 150M-Param Router Model with a Single Prompt(2 posts)→

Original post →

More from coding & agent

coding & agent channel →