d1-3B: Calibrated Decisions in One Pass, No Output Tokens
Liquid AI's d1-3B answers yes/no, choice and rating questions over text and images in one forward pass. Install it, run the card's examples, and batch.
The code in this post comes from the model's docs and hasn't been run in our CI yet. If something breaks, let us know.
d1-3B is a 3B-parameter decision model from Liquid AI, built on LFM2.5-VL-3B. You give it a state (text, JSON, images, or a mix) and a set of questions. It returns calibrated, typed answers in one forward pass with zero output tokens. It is not a chat model and does not write text.
Key specs
| Parameters | 3.12B (base model LFM2.5-VL-3B is 3.1B) |
| Vision encoder | SigLIP2 NaFlex shape-optimized 400M |
| Context length | 32,768 tokens |
| Vocabulary | 128,000 |
| Languages | ar, zh, en, fr, de, hi, id, it, ja, ko, pl, pt, ru, es, th, vi |
| Library | transformers>=5.14, with trust_remote_code=True |
| License | other, named lfm1.0 in the card; the terms are in the repo’s LICENSE file |
The card says it scores 48.57 on Decision Index 0.2.1, the best under 10B, ahead of Decider 35B-A3B at 47.11. Winnow-12B is listed higher at 50.02. The 48.57 comes from Liquid AI running the official scorer, not a leaderboard submission; the other rows are from the public leaderboard.
Latency per the card (warm, one request at a time, bf16 on GPUs, median of 20 runs):
| Device | One question | 3 questions, one pass | 64 states, packed |
|---|---|---|---|
| NVIDIA RTX 4090 | 8 ms | 21 ms | 475 / s |
| AMD MI325X | 9 ms | 14 ms | 1,106 / s |
Apple M5 Pro (mps) |
30 ms | 41 ms | 78 / s |
| Jetson Orin Nano | 50 ms | 73 ms | 38 / s |
Install
pip install "transformers>=5.14" torch torchvision pillowThe model ships its own code, so you must load it with trust_remote_code=True. Read that code first if you care about what runs on your machine.
Run it
This is the card’s own example: three named questions over one piece of text, answered in a single pass.
import torchfrom transformers import AutoModel
device = "cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() else "cpu"dtype = torch.float32 if device == "cpu" else torch.bfloat16model = AutoModel.from_pretrained("LiquidAI/d1-3B", trust_remote_code=True, dtype=dtype).to(device)
questions = { "refund": { "type": "noul", "instructions": "Is the customer asking for a refund?", }, "team": { "type": "choice", "instructions": "Which team should handle this?", "criteria": { "billing": "Charges, refunds, invoices", "technical": "App or site faults", "fraud": "Suspected unauthorised use", }, }, "urgency": { "type": "score", "instructions": "How urgent is this?", "criteria": ["Can wait", "Today", "Blocking the customer now"], },}print(model.system_one("I was charged twice this month, please refund one of them.", questions))The call is system_one(state, questions, images=None). It returns {"answers": {name: answer}, "usage": {"input_tokens": n, "output_tokens": 0}}.
There are three question types:
type |
criteria |
Answer fields |
|---|---|---|
noul (yes or no) |
optional {"true": "...", "false": "..."} |
noul: P(yes) |
choice |
{name: description} |
choice, confidence, probabilities |
score (2 to 10 ordered levels) |
list of level descriptions, lowest first | score (expected level), confidence, probabilities, legend |
Ask questions about an image
A state is a string, any JSON value, or None when the images are the whole state. Pass images=[...] to system_one. This example continues from the code above, so model is already loaded.
from transformers.image_utils import load_image
image = load_image("http://images.cocodataset.org/val2017/000000039769.jpg") # two cats on a sofacats = { "type": "choice", "instructions": "How many cats are there?", "criteria": {"one": "One", "two": "Two", "more": "Three or more"},}print(model.system_one(None, {"cats": cats}, images=[image]))The card says the state and its images are read once for all questions. It also reports that with the images removed, the same vision questions score 45.1 (against 74.1 with them), so the answers come from the images.
Batch many requests
system_one_batch takes a list of (state, questions[, images]) tuples and packs them together with no padding.
tickets = ["Where is my parcel? It was due Monday.", "The app crashes when I open settings."]print(model.system_one_batch([(t, {"team": questions["team"]}) for t in tickets]))This also continues from ticket.py, since it reuses model and questions.
Where it fits
The card recommends d1-3B wherever a pipeline needs a yes/no, a pick from named options, or a rating. It lists routing and triage, moderation, intent and topic classification, extraction checks, reranking, LLM-as-a-judge scoring, agent guardrails and visual inspection.
Its benchmark numbers vary by task. Against Decider 4B, the card shows d1-3B ahead on SQuAD 2.0 (85.3 vs 76.0) and PAWS-X (76.9 vs 69.8), and behind on MASSIVE intent (87.3 vs 88.3), HelpSteer2 (36.7 vs 42.0), BoolQ (86.7 vs 89.0) and XNLI (85.0 vs 88.6). On the Decision Index’s Knowledge column it scores 23.8, lower than most listed models. Its mean across the eight benchmarks is 77.1 against 76.2 for Decider 4B.
Gotchas
- It doesn’t generate text. If you need an explanation along with the decision, use a chat model for that step.
- Warm-up. The first call with a new shape pays for kernel selection or compilation, so the card says to warm up the shapes you serve.
- CUDA graphs. On NVIDIA GPUs,
model.compile(mode="reduce-overhead")runs single questions as CUDA graphs. The RTX 4090 row uses it; without it a single question takes 16 ms. - Remote code.
trust_remote_code=Trueis required. - Vision is not uniformly better than the base model. The mean over eleven image benchmarks is 74.1 against 73.9 for LFM2.5-VL-3B. d1-3B is lower on several (CV-Bench 82.1 vs 87.6, VisualWebBench 71.4 vs 78.3) and much higher on VL-RewardBench (65.0 vs 50.9).
- License. The license is
other. Check the LICENSE file in the repo before using it commercially. - Dependencies. The card requires
transformers>=5.14.
When to pick it
Pick d1-3B when your task is “decide among known options” and latency matters: ticket routing, guardrails, quick image checks, or scoring many items per second. Having typed answers with probabilities means you can set your own thresholds.
Don’t pick it for anything that needs written output, or when your task is mostly world knowledge, where its Decision Index Knowledge score is among the lower ones listed. Check it on your own labeled examples before relying on it, since the card’s numbers come from public benchmarks.
Related
Run JEV-27B-VL for calibrated yes/no and choice decisions on images
A 27B vision decision model that returns a calibrated probability for every option in one forward pass. Here's how to serve it and use it.
autotrust/JEV-27B-VL
Clef: Cloudflare's model that returns probabilities, not text
Clef answers typed questions about any input (text, JSON, images) with a probability per option in one forward pass. Here's how to use it for routing, triage and classification.
Cloudflare/clef
Get calibrated yes/no and multiple-choice answers with GEV-26B-Decide
A LoRA adapter plus a small decision head on Gemma-4-26B-A4B that gives a calibrated probability for every option in about 45 ms, and can think when it is unsure.
autotrust/GEV-26B-Decide