This model was contributed to Hugging Face Transformers on 2026-11-09.
Warning
Decision models, the decision pipeline and DecisionConfig are experimental: their API may change at any time, without deprecation.
JEV is a decision head that scores single-token labels with a linear layer at the last token of the prompt, soft-capped like the logits of a language model head. It was introduced by JEV and is also used by GEV.
[JevForDecision] is the model of the checkpoint and its head, like a ForCausalLM is the model and its lm_head. It
reads the files that the checkpoint ships its head with, next to its weights (readout.safetensors and
decision_config.json for vLLM decision models, head.safetensors and judge_config.json for JEV).
from transformers import pipeline
decide = pipeline("decision", model="autotrust/GEV-26B-Decide")
decide(
{
"state": "I was charged twice for my order and want a refund.",
"questions": {"refund": {"type": "noul", "instructions": "Is a refund requested?"}},
}
)See the decision pipeline for image assets.
Without the pipeline, decision models are used like generate: the decision config renders a prompt per question (or
one for all of them) with the chat template, decide scores the options of each question, and Question.answer turns
the scores into answers:
Important
from_pretrained does not load the LoRA of checkpoints that keep it in a subfolder (decision_config.adapter, e.g.
adapter/ for JEV). The pipeline loads it for you; without the pipeline, call load_adapter yourself as below, or
the model answers with the base weights.
import torch
from transformers import AutoTokenizer, JevForDecision
repo = "autotrust/JEV-9B"
model = JevForDecision.from_pretrained(repo, dtype=torch.bfloat16, device_map="auto")
tokenizer, config = AutoTokenizer.from_pretrained(repo), model.decision_config # read from the checkpoint's files
if config.adapter: # JEV keeps its LoRA in a subfolder: `from_pretrained` doesn't load it, the pipeline does
model.load_adapter(repo, adapter_kwargs={"subfolder": config.adapter})
request = {
"state": "I was charged twice for my order and I want my money back today.",
"questions": {
"refund": {"type": "noul", "instructions": "Does the customer ask for a refund?"},
"urgency": {"type": "score", "criteria": ["Can wait", "This week", "Today", "Now"]},
},
}
answers = {}
for inputs, questions in config.prepare_inputs(request, tokenizer):
scores = model.decide(**inputs, decision_questions=questions)
answers |= {q.name: q.answer(s.softmax(-1).tolist()) for q, s in zip(questions, scores)}The same head reads the 255 answer codes of pplx-decider
and d3, whose Qwen3.5 backbone attends to the whole prompt
(is_causal=False in the text_config of their JevForDecision). Their head (readout.safetensors) and settings
(decision_config.json) are read as they are, next to their weights:
pipeline("decision", model="vllm-sr/d3")(request) # or perplexity-ai/pplx-decider-v1.1-27bJevForDecision returns loss and logits and can train with the standard Trainer or TRL.
The default loss follows AutoTrust JEV-9B: KL divergence
over each question's active options, plus 0.5 × RPS for ordered Score questions. Set config.rps_weight to adjust
the ordinal term. Training uses raw logits; calibration is applied by decide.
Pass integer labels of shape (1, num_questions), using -100 to ignore a question, or soft target distributions
of shape (1, total_num_options), concatenated in question order. Each distribution must sum to one.
outputs.logits uses the same packed option order.
Optional loss_weights weight individual questions. The loss is averaged over valid questions, rather than the sum
of weights. When accumulating prompts with different question counts, pass their total valid-question count as
num_items_in_batch explicitly.
[[autodoc]] JevConfig
[[autodoc]] JevForDecision - forward