/ Модель

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

Лицензия
Apache 2.0
Архитектура
laya · dense
Базовая модель
laya
Библиотека
transformers
Опубликована
1 окт 2026

Coding_Decision_Agent

Классификация текстаТекст → label4 профессии
73скачиваний за 30 дней8лайковвеса обновлены2 окт 2026

Описание модели

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

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

CodingDecisionAgent — англоязычная модель классификации текста, разработанная S4MPL3BI4S на основе дообучения convaiinnovations/laya. Она оценивает состояние работы кодового агента — например, diff, вызов инструмента, трассу действий или запрос пользователя — и за один проход выдаёт метку и калиброванные вероятности для вариантов ответа на заранее заданные вопросы. Модель предназначена для проверки качества кода и соблюдения инструкций, оценки корректности и риска действий агента, выбора инструмента и решения о необходимости проверки человеком. Это не модель для написания кода или генерации поясняющего текста.

Модель основана на ModernBERT-large, содержит 421 млн параметров и принимает текст; контекст ограничен 2048 токенами. В тесте на отложенной выборке указаны accuracy 0,781 и Brier score 0,141; результаты различаются по типам данных. Для применения нужно использовать фиксированные формулировки вопросов из пакета coding_decision_agent. Вероятности откалиброваны на стиле меток обучающего набора, поэтому перед использованием порогов в рабочем агенте их следует проверить на собственных данных. Веса распространяются по лицензии Apache-2.0.

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

  • оценка качества и корректности изменений кодового агента
  • проверка соблюдения агентом инструкций пользователя
  • выбор между принятием изменений и запросом доработок
  • оценка корректности выбора инструмента и его параметров
  • определение, следует ли агенту вызвать инструмент или запросить уточнение
  • выявление неудачных или потенциально вредных действий агента
  • решение о необходимости остановки агента или проверки человеком

Ограничения

Контекст ограничен 2048 токенами, а большие diff и списки инструментов могут усекаться. Калибровка вероятностей зависит от стиля меток обучающего набора; перед использованием для принятия решений на рабочих трассах рекомендуется отдельно проверить калибровку.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

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

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

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

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

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

Открыть на Hugging Face

Coding_Decision_Agent

A Laya decision model fine-tuned to grade a coding agent's work. It does not write code and it does not emit prose. Given a state (a diff, a tool call, an agent trace, or a user request) and a fixed set of typed questions, it returns a label and a calibrated probability for every option in one forward pass.

The training code is MIT and lives at the GitHub repo linked from the model card sidebar once published. These weights are a derivative of convaiinnovations/laya (Apache-2.0), so the checkpoint stays Apache-2.0.

Results on the held-out test split

accuracy0.781
soft accuracy0.617
Brier (lower is better)0.141
ECE (lower is better)0.050
score MAE0.287
slicenaccuracysoft accbrierECE
agent_trace5000.7380.4470.0460.176
code_review139050.6010.4380.2050.032
routing21210.6450.4340.1630.101
tool_call250310.8940.7350.1060.059

accuracy is argmax against the gold label. soft accuracy is the dot product of the gold distribution and the predicted distribution. Confidence is temperature-scaled per question type on a slice that was held out of training.

What it grades

familyquestions
code_reviewcode_quality (0–4), instruction_followed (no/yes), likely_correct (no/yes), merge_action (accept / request_changes / needs_tests / reject)
tool_calltool_selection, parameter_structure, sequence_accuracy, query_coverage (0–2), should_call_tool (call_tool / ask_followup / answer_directly / cannot_answer), call_verdict (execute / fix_args / wrong_tool / abstain)
agent_traceaction (continue / observe / human_review / stop), needs_review (no/yes), outcome (success / partial / failure / harmful), risk (0–3), urgency (0–3)
routingmodel_tier (small_fast / mid / frontier / reasoning), task_difficulty (0–3), skill (code_edit / debug / write_tests / refactor / explain / shell_ops / research / plan)

Question wording is fixed. Use the same wording the model was trained on; it ships in the coding_decision_agent package and in configs/schema.py of the training repo.

Use it

pip install laya
import laya
from coding_decision_agent import CodingDecisionAgent

grader = CodingDecisionAgent("S4MPL3BI4S/Coding_Decision_Agent")

verdict = grader.grade_code(
    task="Fix the off-by-one in paginate()",
    diff=open("change.diff").read(),
    tests=open("pytest.txt").read(),
)
print(verdict.merge_action, verdict.answer_confidence["merge_action"])

route = grader.route_model("Refactor the billing service to use dependency injection")
print(route.model_tier, route.skill)

# or call Laya directly
agent = laya.load("S4MPL3BI4S/Coding_Decision_Agent")
result = agent.predict(state, questions)

Gate on answer_confidence (the calibrated one), not on the entropy-style confidence field. A threshold of 0.7 is a reasonable starting point; measure it on your own traces before trusting it.

Training

RLCD on convaiinnovations/laya (ModernBERT-large, 421M): a GRPO-style policy gradient against proper scoring rules, plus soft cross-entropy on the teacher distribution. One temperature per question type (choice, score, noul) is fit on a slice removed before training. temperature_by_options from the base checkpoint is dropped so it cannot mask the new fit.

Soft targets come from dataset signals (programmatic scores, multi-judge votes, test outcomes, gold distributions) blended with a local teacher (Qwen/Qwen3-32B-AWQ served by vLLM). No paid API.

familysources
agent_traceLocalLLaMA/typed-decisions (agent_trace_observability), gold probabilities
tool_callServiceNow-AI/AgentJudgeBench, nvidia/When2Call
code_reviewcoseal/CodeUltraFeedback, nebius/SWE-agent-trajectories
routingwithmartian/routerbench, optional ynulihao/LLMRouterBench

The case dataset built by this run is S4MPL3BI4S/coding-decision-cases.

Limits

  • Context is 2048 tokens (head_max_len 320 for the options, the rest for the state). Diffs and tool lists are compacted before they are scored; a huge patch is truncated around the changed lines.
  • Yes/no questions are two-option choice items with the keys no and yes, not Laya noul, because the English checkpoint can follow the noul option labels instead of the state.
  • At most 8 options per question. Skills and model tiers are coarse on purpose.
  • Calibrated on this dataset's label style. Check ECE on your own traffic before gating a production agent on the confidence.

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

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

GPU в ailist

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

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

Подбираем GPU…

Ревизия весов
fbc40c2

0 моделей