Real-time artificial intelligence development and industry coverage.
Back to Articles a]:hidden"> Decision Models in Hugging Face Published November 10, 2026 Update on GitHub Upvote 94 +88 Aritra Roy Gosthipaty ariG23498 Follow Lysandre lysandre Follow Pedro Cuenca pcuenq Follow Tom Aarsen tomaarsen Follow :last-child]:mb-0"> What are decision models? Why not use LLMs for everything? How are decision models different from classification models? Traditional classification Zero-shot classification Where decision models differ The decision model interface State Questions and their primitives Decision models in the Hugging Face ecosystem 1. Serving with Transformers 2. Serving with llama.cpp 3. Discovering models on the Hugging Face Hub 4. Training decision models using Hugging Face tooling Final thoughts Large Language Models (LLMs) are exceptionally good at generating text. We use them to answer questions, write code, reason about problems, and so much more. But not every problem requires generating text.
Consider a customer support system receiving the following message:
"I was charged twice for my subscription. I need a refund today."
The system needs to determine which team should handle the request, how urgent it is, and whether the customer is requesting a refund.
We could ask an LLM to return a JSON object containing these answers.
from transformers import pipeline decide = pipeline("decision", model="autotrust/GEV-26B-Decide") decision = decide( { "state": "I was charged twice for my order and want a refund.", "questions": { "department": { "type": "choice", "instructions": "Which team should handle this?", "criteria": { "billing": "Payments and refunds", "technical": "Bugs and technical issues", "sales": "Pricing and subscriptions" } }, } } ) # { # 'department': { # 'type': 'choice', # 'choice': 'billing', # 'confidence': 0.9974000453948975, # 'probabilities': { # 'billing': 0.9982666969299316, # 'technical': 0.0010246571619063616, # 'sales': 0.0007087149424478412 # } # } # } This is the key idea behind decision models.
What are decision models? A decision model takes some input context (state), evaluates a question with a set of predefined possible answers (primitives), and returns a structured decision along with probabilities. Instead of asking a model to generate an answer token by token, we ask it to assign probabilities to the answers that our application already understands.
TypeSafe AI introduced Jev, describing it as a System One model. The name draws inspiration from the distinction between fast, intuitive thinking (System 1) and slower, deliberative thinking (System 2).
The community has converged to the term decision model, because it describes the model's computational role rather than invoking a particular theory of cognition. In the rest of the post we will refer to the models as "decision models" instead of "system one models". (A poll on twitter deciding what we should be calling such models)
For a decision model, the fundamental interface is:
State + Questions + Allowed Answers → Decisions + Probabilities Why not use LLMs for everything? We could simply prompt an LLM to return a JSON object containing our decisions. In fact, this is how many applications already use language models for classification, routing, and other structured tasks.
However, there are a few problems with this approach.
How are decision models different from classification models? Before understanding the interface of a decision model, it is useful to revisit two closely related approaches namely traditional classification and zero-shot classification.
Traditional classification Suppose we train a classifier that routes customer-support requests to three departments:
A conventional classification model learns a mapping from an input to a predefined set of labels. During training, the model learns to predict these labels from examples. A classification head typically produces one logit per class, and softmax turns those logits into a probability distribution.
Hugging Face Blog
Original Reporting Source
Explore features, ratings, and alternatives from our 19,000+ AI tools catalog.

AssistLoop's AI chatbots slash response times by 70% and boost satisfaction, scaling support for e-commerce and SaaS without extra hires.

Design professional websites effortlessly with AI.
Hypertxt.ai is an AI-powered SEO content writing tool that helps create high-quality, optimized content for improved search engine rankings. It offers various features to streamline the content creation process, from keyword research to content optimization and plagiarism checks.