Domr-Decide-Loop-4B-v1
a fast model for routing and decision-making
2 min readupdated
The Domr Decide Loop model is a specialized open-weight 4B solution based on perplexity-ai/pplx-decider-flash-v1.3 (Qwen3.5-4B), designed for low-latency AI agent routing, guardrail filters (RuneGate), tool selection, and RAG (retrieval-augmented generation) ranking. Instead of generating text, the model returns calibrated option probabilities in a single pass (ranging from 255-choice selection to binary and ordinal scores) with an average latency of 52.5 ms and minimal VRAM consumption. This solution is ideal for agentic system developers who need high local speed and precise probabilities for automated control.
Key features
- Lightning-fast decisions: Outputs calibrated probabilities without token generation in an average of 52.5 ms (down to 31.5 ms with optimized kernels).
- Class leader in <5B: Ranks first among open models of its size in the official Decision Index 0.3 suite.
- Option order robustness: A dual-band decaying fixed loop reduces errors caused by option shuffling by 2.17x.
- Local execution: Runs on a single GPU (requires about 9.23 GB VRAM in bf16) under the Apache 2.0 license.
What you can do
- Request routing: Use as a fast router to distribute incoming tasks among specialized agents.
- Security firewall: Set up preliminary security policy checks and request filtering before sending to large language models.
- Tool selection: Automate the selection of the most appropriate tool or function to call in pipelines.
- Relevance scoring: Use for ranking and evaluating documents in RAG search systems.
Example
Minimal code example for running option classification via the DomrDecider class:
import sys
from huggingface_hub import snapshot_download
model_dir = snapshot_download("runelab-ai/Domr-Decide-Loop-4B-v1")
sys.path.insert(0, model_dir)
from domr_decider import DomrDecider
decider = DomrDecider.from_pretrained(model_dir, device="cuda")
out = decider.decide(
state="Customer requests a refund 45 days after delivery.",
questions={
"action": {
"type": "choice",
"instructions": "Select the policy-compliant action.",
"criteria": {
"approve": "Issue full refund.",
"deny": "Deny refund.",
},
}
},
)
print(out["answers"])
Read more
DetailsBenchmarks: 63.85 on Decision Index 0.3 (+0.52 improvement over base), 84.67% accuracy on DecideBench v2.
Hardware: ~8.6 GiB on disk, 9.23 GB peak VRAM in BF16 on a single NVIDIA RTX PRO 6000 card.
Limitations: The model is not designed for free-text generation, chat, or translation; it is focused exclusively on English and numeric probability scores.










Comments