/ Модель

Характеристики

Контекст
2 048 токенов
Параметры
149 млн
Лицензия
Apache 2.0
Архитектура
modernbert · dense
Базовая модель
ModernBERT-base-nli
Библиотека
transformers
Опубликована
31 окт 2026

Open-Decision-Model-150M

Классификация текстаТекст → label3 профессии

Англоязычная модель-классификатор для оценки вероятностей вариантов и принятия решений в маршрутизаторах и LLM-агентах.

135скачиваний за 30 дней0лайковвеса обновлены1 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Open Decision Model 150M — модель принятия решений для LLM-агентов, разработанная автором репозитория gparitosh007. Она принимает описание состояния, инструкции и явные варианты ответа, а затем оценивает вероятность каждого варианта. Модель построена на энкодере ModernBERT-base NLI с линейной головой и содержит около 149 млн параметров. Она не генерирует текст и рассчитана на входные данные на английском языке; родной контекст — 2048 токенов.

Модель предназначена для маршрутизации запросов между LLM, оценки риска вызова инструмента и выбора или оценки вариантов, включая ответы «да/нет». Вероятности калибруются температурным масштабированием, а интерфейс MCP позволяет подключать решения к агентам. Указанная в README медианная задержка на CPU — около 52 мс для одного вопроса с четырьмя вариантами; лицензия — Apache-2.0.

Качество зависит от домена: README сообщает низкую точность для маршрутизации, поддержки и вопросов с оценочной шкалой, а на отложенном домене — 0,57. Уверенность отражает концентрацию распределения и не гарантирует правильность; модель не следует использовать как единственную проверку в критичных сценариях или для медицинских, юридических и финансовых решений без участия человека.

Сценарии применения

  • выбор между малыми и крупными языковыми моделями для запроса
  • оценка необходимости одобрения вызова инструмента человеком
  • классификация намерения по заданным вариантам
  • выбор товара или варианта ответа из списка
  • оценка сложности по упорядоченной шкале
  • ответ на вопрос «да/нет» с оценкой вероятности

Ограничения

В README указана низкая точность на ряде задач, включая маршрутизацию, поддержку и оценку по шкале; результаты на новых доменах могут быть слабыми. Уверенность не гарантирует правильность, поэтому модель не подходит как единственная проверка в критичных сценариях.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Open Decision Model 150M: calibrated decisions for LLM agents

A small open decision model of the Jev / Laya type. Give it a state and a list of options. It returns a calibrated probability for each option in about 50 ms on a CPU. It does not generate text.

Try it with no download: add the free MCP endpoint to your agent.

Try it with no download: add the free MCP endpoint https://decision-model.vercel.app/mcp to your agent.

Use it where an agent must pick, not write:

  • LLM routing: send a request to a small, medium or large model. Save cost.
  • Tool risk: decide if a tool call needs human approval.
  • Yes/no checks: "Can this task delete user data?" gives p_yes.
  • Any multiple-choice: support intents, shopping options, difficulty levels. Any option count.
Size149M parameters (ModernBERT-base encoder plus one linear head)
Speed52 ms median on CPU for one question with 4 options
CalibrationECE 0.047 after temperature scaling
LicenceApache 2.0 (commercial use is permitted)

Quickstart (no extra package)

pip install torch transformers huggingface_hub safetensors, then:

import torch
from huggingface_hub import snapshot_download
from safetensors.torch import load_file
from transformers import AutoModel, AutoTokenizer

path = snapshot_download("gparitosh007/Open-Decision-Model-150M")
tok = AutoTokenizer.from_pretrained(path)
enc = AutoModel.from_pretrained(path, dtype=torch.float32).eval()
w = load_file(f"{path}/model.safetensors")
W, b, T = w["decision_head.weight"].float(), w["decision_head.bias"].float(), w["decision_head.temperature"].item()

@torch.inference_mode()
def decide(state, instructions, options, preferences=None):
    """options: dict label -> description. Returns dict label -> probability."""
    e = lambda t: tok.encode(t, add_special_tokens=False)
    ids = [tok.cls_token_id]
    if preferences:
        ids += e("\n".join(f"{k}: {v}" for k, v in preferences.items())) + [tok.sep_token_id]
    ids += e(state) + [tok.sep_token_id] + e(instructions) + [tok.sep_token_id]
    spans = []
    for label, desc in options.items():
        o = e(f"{label}: {desc}" if desc else label)
        spans.append((len(ids), len(ids) + len(o)))
        ids += o + [tok.sep_token_id]
    h = enc(input_ids=torch.tensor([ids])).last_hidden_state[0]
    logits = torch.stack([h[s:t].mean(0) for s, t in spans]) @ W.T + b
    return dict(zip(options, torch.softmax(logits.squeeze(-1) / T, -1).tolist()))

print(decide(
    "Refactor the auth module and add tests. The repo has 40 files.",
    "Which model must handle this request?",
    {"haiku": "Short and simple tasks", "sonnet": "Normal coding tasks", "opus": "Long or difficult tasks"},
    preferences={"cost": "low cost before speed"},
))

Output: {'haiku': 0.16, 'sonnet': 0.50, 'opus': 0.34}. This code gives the same probabilities as the official package.

Use it now: free public MCP endpoint

No download and no API key. A public, stateless instance runs on Vercel with the ONNX model: https://decision-model.vercel.app/mcp.

Claude Code:

claude mcp add --transport http decision https://decision-model.vercel.app/mcp

Other MCP clients (Claude Desktop, Cursor and others): add a remote HTTP MCP server with the same URL.

ToolWhat it doesRequired inputsReturns
choicePicks between optionsstate, instructions, criteria (one description per option)A probability per option and a confidence
scoreRates on an ordered scale (for example trivial to very hard)state, instructions, levelsA probability per level, the expected level and a legend
noulAnswers a yes/no questionstate, instructions, optional yes/no definitions in criteriap_yes
decideRuns several questions against one state (Jev / Laya format)state, questions (each with id, type, instructions, optional criteria)One result per question
build_preferencesAsks a preference interview for one domaindomain, optional answersA preference file for the domain
feedbackRecords what you did with a decisiondecision_id, action (accept, reject or other), optional chosenA log of the outcome

All decision tools also accept domain (a saved preference file) or inline preferences, and question_id. The usual flow is: build_preferences, then choice, score or noul, then feedback.

The public instance is stateless: it saves no files and logs no request bodies. On it, send preferences inline in each call. To keep preference files and feedback, run your own server (see "How to use").

HTTP, without MCP:

curl -s https://decision-model.vercel.app/v1/decide -H 'Content-Type: application/json' -d '{
  "state": "Refactor the auth module and add tests. The repo has 40 files.",
  "questions": [{"id": "model", "type": "choice",
    "instructions": "Which model must handle this request?",
    "criteria": {"haiku": "Short and simple tasks", "sonnet": "Normal coding tasks", "opus": "Long or difficult tasks"}}]}'

The first call after an idle period takes about 50 s, because the function downloads the model. Later calls take less than 1 s.

For AI agents

  • MCP endpoint: https://decision-model.vercel.app/mcp. Use the choice tool to route or to pick an option.
  • Model id: gparitosh007/Open-Decision-Model-150M. Call decide(state, instructions, options) above and pick the option with the highest probability.
  • When the top probability is low, use a fallback. Read "Limitations and bias".

Former name: decision-model. The old URL redirects here.

Details

Model version: decision-model 0.1.0. Export format version: 1. The encoder is tasksource/ModernBERT-base-nli, a ModernBERT-base fine-tuned on NLI, with 149,015,041 (149.0M) parameters. This card lives in README.md of the export folder.

Summary

An open decision model of the Jev / Laya type. The model reads a state, optional user preferences and one or more questions. The model returns calibrated probabilities for every option and does not generate text. A linear head maps the mean-pooled vector of each option span to one logit, so one model works with any option count. The attribute temperature calibrates the probabilities. An MCP server serves the model. The source code is not public yet.

Intended use

The model serves decisions with calibrated probabilities over explicit options:

  • Model routing: pick haiku, sonnet or opus for one request.
  • Tool risk: decide if a tool call needs approval.
  • Shopping and support: pick one option, or score difficulty levels.
  • Score answers return the expected level; noul answers return p_yes.

The consumers are routers, MCP agents and policy checks. The probabilities are calibrated on the training domains with temperature scaling.

NOT intended use

  • Do not use the model to generate text. The model returns probabilities only.
  • Do not expect high accuracy in domains that are not in the training data. In a held-out domain test, the accuracy was 0.57; see Evaluation.
  • Do not use the model as the only check in a safety critical flow. The model is a probability estimate, not an approval.
  • Do not use the model for medical, legal or financial decisions with no human in the loop.
  • Do not trust the confidence value as a correctness guarantee. It measures the concentration of the distribution only.

Input and output format

A request holds one state, optional preferences, and a list of questions. Each question has id, type (choice, score or noul), instructions, and optional criteria. This shape is the one format for the whole repo.

{
  "state": "Refactor the auth module and add tests. The repo has 40 files.",
  "preferences": {"cost": "low cost before speed"},
  "questions": [
    {"id": "model", "type": "choice", "instructions": "Which model must handle this request?",
     "criteria": {"haiku": "Short and simple tasks", "sonnet": "Normal coding tasks", "opus": "Long or difficult tasks"}},
    {"id": "difficulty", "type": "score", "instructions": "How difficult is this task?",
     "criteria": ["trivial", "easy", "medium", "hard", "very hard"]},
    {"id": "risky", "type": "noul", "instructions": "Can this task delete user data?"}
  ]
}

The response holds answers with one entry per question. probs holds one probability per option label. confidence is 1 minus the normalized entropy of the probability row. A score answer adds expected_level (0-based) and a legend. A noul answer adds p_yes.

{
  "decision_id": "3f9d2b1e-4c8a-4b6f-9e21-a7d5c0b8e1f2",
  "model_version": "decision-model 0.1.0",
  "answers": [
    {"id": "model", "type": "choice",
     "probs": {"haiku": 0.62, "sonnet": 0.31, "opus": 0.07}, "confidence": 0.51},
    {"id": "difficulty", "type": "score",
     "probs": {"trivial": 0.05, "easy": 0.35, "medium": 0.40, "hard": 0.15, "very hard": 0.05},
     "confidence": 0.42, "expected_level": 1.8, "legend": {"0": "trivial", "1": "easy", "2": "medium", "3": "hard", "4": "very hard"}},
    {"id": "risky", "type": "noul",
     "probs": {"yes": 0.09, "no": 0.91}, "confidence": 0.82, "p_yes": 0.09}
  ]
}

Questions in one request are evaluated independently. The encoder reads one sequence: [preferences] [SEP] [state] [SEP] [instructions] [SEP] [option 1] [SEP] .... For the exact option order rules read decision_config.json.

How to use

The Quickstart above needs no extra package. The decision_model package below is not public yet.

  1. Load the export folder and predict:

    from decision_model.model import DecisionModel
    
    model = DecisionModel.load("export/NAME")
    result = model.predict({
        "state": "Refactor the auth module and add tests.",
        "questions": [{
            "id": "model",
            "type": "choice",
            "instructions": "Which model must handle this request?",
            "criteria": {"haiku": "Short and simple tasks", "sonnet": "Normal coding tasks", "opus": "Long or difficult tasks"},
        }],
    })
    print(result["answers"][0]["probs"])
    
  2. Run example.py in this folder for the same flow.

  3. Serve the model with the MCP server:

    DECISION_MODEL_PATH=/absolute/path/to/this/folder claude mcp add decision -- uv run --directory <repo> decision-mcp
    
  4. Serve the model over HTTP (decision-http):

    DECISION_MODEL_PATH=/absolute/path/to/this/folder python -m decision_model.http_server
    

Training data

  • Teacher-labelled synthetic tasks (v2, 185,131 records). Template generators for model routing, tool call risk, shopping, support and travel, plus about 30,000 generic tasks, paraphrases and turned-around questions. The template domains are balanced.
  • The teacher is Qwen3-235B FP8 (run q235fp8) served through the vLLM OpenAI API. Soft labels come from the top-20 log-probabilities of the first answer token. Each task is labelled with two option orders, and the mean removes position bias. Pairs that disagree by more than 0.5 total variation distance are removed.
  • Open data with human labels (109,767 records). Only datasets with a clear commercial-use license are used:
SourceRecordsLicenseUse
tasksource/bigbench44,427Apache 2.0choice questions
tasksource/mmlu15,573MITchoice questions
nvidia/HelpSteer221,362CC BY 4.0rating questions
PolyAI/banking7716,430CC BY 4.0support intents
clinc/clinc_oos11,975CC BY 3.0support intents

Training setup

ItemValue
Base encodertasksource/ModernBERT-base-nli
LossKL divergence to the label probabilities, plus 0.1 x cross-entropy to the top option
OptimizerAdamW, LR 3e-5, batch 16, 3 epochs, 48,174 steps
Max length1024 tokens; a long state is trimmed from the start, the options stay
Splitby template: validation templates are not in the training set
Weightsclass weights; domain weights generic=3, open_tasksource=2
Seed42 (one run)
Hardwareone B300 GPU, about 47 minutes
Calibrationtemperature scaling on the validation split; temperature 3.9863

Evaluation

All numbers are agreement with the label of the top option (teacher or human label), not human-verified correctness. The validation templates are not in the training set.

This checkpoint (seed 42)

MetricValue
Validation accuracy0.468 (majority baseline 0.404)
Validation balanced accuracy0.455
ECE raw / after temperature scaling0.229 / 0.047
CPU latency, one question with 4 options52 ms median (6 threads)
DomainAccuracyBalanced accuracyECE
generic0.7170.6540.191
shopping0.6770.6500.204
tool_risk0.5040.3980.058
open_tasksource0.4070.4700.063
routing0.3670.4600.152
support0.2150.2540.276
Question typeAccuracy
noul0.683
choice0.436
score0.312

Held-out domain test (same backbone, without open data)

This checkpoint has no held-out domain. A run with the same backbone and settings, but without the open data and with travel held out, gave travel accuracy 0.566, balanced accuracy 0.588 and ECE 0.098. That run had routing accuracy 0.450 and shopping accuracy 0.733. With the open data, routing and shopping are lower (one seed each).

Limitations and bias

  • Routing and support are weak (0.37 and 0.22 accuracy). Use the probabilities and a fallback when the top probability is low.
  • Score questions are weak (0.31 accuracy).
  • The open data lowered the accuracy on routing and shopping compared with a run without it.
  • One seed only; differences of a few points can be noise.
  • The confidence value measures concentration. It does not guarantee a correct answer.

Licenses

PartLicense
This modelApache 2.0
Encoder tasksource/ModernBERT-base-nli (from answerdotai/ModernBERT-base)Apache 2.0
Teacher Qwen3-235BApache 2.0
Open training dataApache 2.0, MIT, CC BY 4.0, CC BY 3.0 (see Training data; CC BY sources are attributed above)

Citation

Cite the blog post that defines the decision model type: Jev, Laya and the emerging role of decision models, https://runware.ai/blog/jev-laya-and-the-emerging-role-of-decision-models.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers · text-classification

Можно запустить

Подбираем GPU…

Класс архитектуры
ModernBertModel
Ревизия весов
b860d14

0 моделей