typed-decisions
0,8085
Один прогон
Направление метрики неизвестно, сравнение не строится
Поднаборы
- ece 0,1822
- kl_from_gold 0,0773
- brier 0,0424
Составлено на русском по карточке модели и метаданным Hugging Face
Специализированная текстовая модель для оценки вероятностей вариантов ответа в задачах Typed Decisions, дообученная на базе Ministral 3 3B Reasoning.
rony/ministral3-3b-reasoning-typed-decisions — специализированная модель, созданная полным дообучением Ministral 3 3B Reasoning для бенчмарка Typed Decisions. Она принимает текстовое описание случая в формате JSON, инструкцию к вопросу и варианты ответа с описаниями, а затем оценивает вероятности выбора среди вариантов A, B, C и далее по логитам следующего токена. Модель использует текстовый декодер Ministral3ForCausalLM; визуальная башня удалена, а входные эмбеддинги и связанная с ними языковая голова заморожены. Размер — 3,2 млрд параметров, заявленная длина контекста — 262 144 токена.
Модель предназначена для вероятностной классификации и принятия типизированных решений в сценариях, представленных в Typed Decisions, включая обслуживание клиентов, обработку счетов и анализ трасс агентов. По README, на тестовой выборке бенчмарка она достигла точности 0,808 и KL-дивергенции 0,0773 относительно целевых распределений; результаты характеризуют именно этот набор данных и не подтверждают пригодность для общих диалогов или рассуждений. Модель распространяется под лицензией Apache-2.0.
Модель дообучена только для бенчмарка Typed Decisions и, согласно README, не предназначена для общих диалогов или универсальных рассуждений. Метрики показывают согласие с целевыми распределениями этого бенчмарка и не гарантируют качество на других данных.
Результаты из открытых лидербордов в сравнении с лидерами каталога на 1 декабря 2026
0,8085
Один прогон
Направление метрики неизвестно, сравнение не строится
Поднаборы
Разделы каталога профессий, в задачах которых используется эта модель
README от автора на Hugging Face, как он его опубликовал
Specialist model: fine-tuned for the Typed Decisions benchmark only; it is not a general-purpose chat or reasoning model.
Ministral 3 3B Reasoning fully fine-tuned (text decoder only; vision tower
dropped, input embedding / tied LM head frozen) as a probabilistic decision model for
LocalLLaMA/typed-decisions. Mode: fine-tuned on train (all four workflows,
1080 cases for training and 120 held out for epoch selection on validation KL).
Scored on LocalLLaMA/typed-decisions all/test (400 cases, 2000 decisions), never seen in training.
| Model | Kind | Accuracy ↑ | KL from gold ↓ | Brier ↓ | ECE ↓ | Latency |
|---|---|---|---|---|---|---|
| [ministral3-3b-reasoning-typed-decisions](httpuv run jupyter lab ministral3_3b_reasoning_decisions.ipynbs://huggingface.co/rony/ministral3-3b-reasoning-typed-decisions) (Specialist; Ministral 3 3B Reasoning, full fine-tune) | fine-tuned on train | 0.808 | 0.0773 | 0.0424 | 0.1822 | 373 ms / case (NVIDIA GB10) |
ECE is computed per question and averaged over the 20 questions (closest to the README's reference rows); pooled over all decisions it is 0.1742.
By question type
| accuracy | kl | brier | ece | |
|---|---|---|---|---|
| choice | 0.803 | 0.103 | 0.053 | 0.204 |
| noul | 0.853 | 0.039 | 0.030 | 0.102 |
| score | 0.779 | 0.086 | 0.044 | 0.207 |
| OVERALL | 0.808 | 0.077 | 0.042 | 0.174 |
By workflow
| accuracy | kl | brier | ece | |
|---|---|---|---|---|
| agent_trace_observability | 0.748 | 0.081 | 0.049 | 0.186 |
| customer_service | 0.836 | 0.086 | 0.043 | 0.188 |
| invoice_processing | 0.866 | 0.078 | 0.042 | 0.122 |
| security_incidents | 0.784 | 0.065 | 0.036 | 0.206 |
| OVERALL | 0.808 | 0.077 | 0.042 | 0.174 |
Baselines on the same split: Prior accuracy 0.478 / KL 0.327; zero-shot Ministral 3 3B Reasoning accuracy 0.340 / KL 1.659.
Full test distributions: test_predictions.jsonl; metrics: test_metrics.json.
Gold is the mean of three teacher samples, so scores measure agreement with that teacher (self-agreement ≈ 0.735).
Each (case, question) pair is one prompt: a short system turn, then the case JSON, the question's instructions,
and its options listed as letters A, B, C, … with their descriptions. The assistant turn is pre-filled with an
empty [THINK][/THINK] block, so no reasoning is generated: the next-token logits at that position, restricted to
those letter tokens and softmaxed, are the answer distribution. Training minimises soft cross-entropy against the
gold distribution. One forward pass per question (5 per case).
import json, torch
from transformers import AutoTokenizer, AutoModelForCausalLM
repo = "rony/ministral3-3b-reasoning-typed-decisions"
tok = AutoTokenizer.from_pretrained(repo, fix_mistral_regex=True)
model = AutoModelForCausalLM.from_pretrained(repo, dtype=torch.bfloat16).eval()
LETTERS = "ABCDEFGHIJ"
SYSTEM = 'You are a precise decision model. Read the case, then answer the question with the single letter of the best option.'
uv run jupyter lab ministral3_3b_reasoning_decisions.ipynb
def options(q):
if q["type"] == "choice": return list(q["criteria"].items())
if q["type"] == "noul":
c = q.get("criteria") or {}
return [("true", c.get("true", "The statement is true.")), ("false", c.get("false", "The statement is false."))]
return [(str(i), d) for i, d in enumerate(q["criteria"])]
@torch.no_grad()
def decide(state, questions):
out = {}
for name, q in questions.items():
opts = options(q)
kind = {"choice": "Choose one option.", "noul": "Is the statement true or false?",
"score": "Pick the level on the rubric."}[q["type"]]
prompt = (f"### Case\n{json.dumps(state, separators=(',', ':'))}\n\n"
f"### Question ({name})\n{q['instructions']}\n{kind}\n\n### Options\n"
+ "\n".join(f"{LETTERS[i]}. {l}: {d}" for i, (l, d) in enumerate(opts))
+ "\n\nAnswer with one letter.")
text = tok.apply_chat_template([{"role": "system", "content": SYSTEM}, {"role": "user", "content": prompt}],
tokenize=False, add_generation_prompt=True) + "[THINK][/THINK]"
logits = model(**tok(text, add_special_tokens=False, return_tensors="pt")).logits[0, -1]
ids = [tok.encode(LETTERS[i], add_special_tokens=False)[0] for i in range(len(opts))]
p = torch.softmax(logits[ids].float(), -1).tolist()
out[name] = dict(zip([l for l, _ in opts], p))
return out
На своей GPU в ailist. Цена — по текущим предложениям провайдеров
GPU в ailist
Универсальный рантайм · transformers · decision
Подбираем GPU…