Krun One v1
An ultra-fast intent and tool selector without text generation
2 min readupdated
A compact encoder-only model (encoder-only, without autoregressive generation) of 879M parameters from ferreslabs for instant decision-making in a single forward pass. Instead of slow response generation, it accepts text and a list of options, then outputs a calibrated choice (one of 2–128+ classes, multiple options at once, a score on a scale, or a yes/no answer). Built on jhu-clsp/mmBERT (ModernBERT / mmBERT architecture, 22 layers) with a special decision head and a [NULL] slot for refusing to answer when no option fits. An excellent replacement for heavy LLMs in fast request routing and function calling tasks in agents.
Key features
- Instant response: a typical request is processed in ~14–17 ms, and selecting from 128 candidates takes ~44 ms (p50) on an RTX 4090 in bf16.
- Knows how to say "I don't know": the built-in
[NULL]slot and calibration filter out irrelevant requests (OOD AUROC 0.971 with 4.5% false positives at 80% coverage). - Cross-lingual capability: trained on English, Portuguese, Spanish, and French — understands even if the request is in one language and the options are in another (98.2% accuracy).
- Modest requirements: uses about 1.7 GB VRAM in bf16 and works with a context of up to 1,024 tokens.
What you can do
- Routing in chatbots: distribute user inquiries across 100+ intents with high accuracy (97.5% on KrunBench) without delays.
- Tool selection for AI agents: pass API function descriptions as candidates (98.1% tool selection accuracy and 90.1% on ToolACE v0).
- Filtering and scoring: verify statements against context (
noul, AUROC 0.973) or assign ordinal scores (score).
Example
from krun_one.v1.runtime import TextArtifact
a = TextArtifact.load("models/krun-one-v1-text-final", device="cuda", dtype="bf16")
a.decide({"context": "quero cancelar minha assinatura",
"questions": {"q": {"type": "choice", "task_type": "intent",
"options": [{"id": "cancel_subscription"}, {"id": "check_balance"}]}}})
Read more
DetailsMetrics (bf16, RTX 4090): choice accuracy — 97.6% (k=64: 95.8%, k=128: 90.6%), multi micro-F1 — 0.917, ECE — 0.015.
Hardware: ~1.7 GB VRAM, latency ~14–17 ms for a regular request.
Limitations: context is truncated after 1,024 tokens; the model does not perform multi-step logical reasoning and number comparison.
License: weights are under Apache-2.0, but training used the xLAM dataset (research only) and synthetic data from commercial LLMs.










Comments