/ Модель

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

Лицензия
Apache 2.0
Базовая модель
SmolLM2-360M
Библиотека
agr
Опубликована
2 окт 2026

agr-flash

Классификация текстаТекст → label

Производная модели CommandCode/agr. Agr — англоязычная модель принятия решений, которая классифицирует ситуации и оценивает заданные варианты с распределением вероятностей.

154скачиваний за 30 дней4лайкавеса обновлены5 окт 2026

Бенчмарки

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

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

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

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

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

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

Карточка модели CommandCode/agr-flash на Hugging Face совпадает с карточкой CommandCode/agr, поэтому описание составлено по ней.

Agr — модель принятия решений от Command Code, дообученная на основе google/gemma-4-31B-it. Она принимает описание ситуации на английском языке в виде текста или JSON и набор типизированных вопросов, а затем оценивает заданные варианты и возвращает ответ с распределением вероятностей. Поддерживаются выбор из вариантов, оценка по упорядоченной шкале и бинарное суждение «нет/да»; вопросы по одному состоянию обрабатываются за один проход независимо друг от друга.

В README для Agr указаны лимит 32 768 токенов на запрос и размер весов 61,43 ГБ; модель использует формат safetensors и библиотеку agr. В отличие от генеративных моделей, Agr выдаёт ответы только из заданных вариантов и не формирует объяснений. Лицензия — Apache-2.0.

Модель предназначена для классификации и маршрутизации запросов, выбора инструмента или оценки действия по заданным критериям. Результаты Decision Index приведены разработчиком для версии 0.2.1 на 38 бенчмарках; это оценка разработчика, а не гарантия качества на пользовательских данных. README рекомендует проверять вероятности и пороги на размеченных примерах. Agr не следует использовать как единственный источник для значимых решений о людях или как самостоятельный фильтр безопасности.

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

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

Ограничения

Принимает только английский текст, не поддерживает изображения и не генерирует объяснения; ответ ограничен вариантами, заданными пользователем, а порядок вариантов может влиять на результат. Вероятности и пороги следует проверять на собственных размеченных данных; модель не предназначена для самостоятельных значимых решений о людях или как единственный фильтр безопасности.

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

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

Открыть на Hugging Face

Agr is a decision model from Command Code. You send it a state, as text or JSON, with one or more typed questions, and it returns typed answers with a probability for every option.

Agr comes in two sizes, Agr and Agr-flash. Agr scores 58.15 on Decision Index 0.2.1 across 38 counted benchmarks.

Why Agr

Decisions like routing a ticket, picking a tool or approving an action have a fixed set of answers. Agr scores those answers directly and returns a probability for each, instead of generating text you have to parse. Every question about the same state is answered in one forward pass, independently of the others.

Evaluation results

Agr compared with Jev, Kev and Rune on Decision Index 0.2.1

We ran Agr on all 150,759 requests of the public Decision Index kit at revision 87d4650, with nothing truncated. Jev, Kev and Rune scores come from the public board as of 28 September 2026.

The index averages chance-corrected skill over five areas. The figures show skill × 100, not raw accuracy or F1, and higher is better everywhere, including ForecastBench, where the index turns the Brier score into a skill score. 3% of BRIGHT requests exceed Agr's 32,768-token limit and count as wrong.

Results by area

Results for all 38 counted benchmarks

Models

ModelOn diskToken limits (state / question / request)
CommandCode/agr61.43 GB16,384 / 16,384 / 32,768
CommandCode/agr-flash0.73 GB6,144 / 2,048 / 12,288

Agr-flash is not meant for safety decisions. Each repository holds the weights, tokenizer and config.

How it works

All questions read the same state, but no question can attend to another. Agr reads each option's score from the model's own output layer; Agr-flash uses a small trained scoring head. Details are in DESIGN.md.

Quickstart

Agr needs Python 3.11 or newer. Installing it pulls in PyTorch and the Transformers version it was tested with:

pip install git+https://github.com/CommandCodeAI/agr

Python

The first run downloads the weights from Hugging Face. Agr's bf16 weights are 61.43 GB; we serve it on 96 GB GPUs. For Agr-flash, use CommandCode/agr-flash.

from agr.model import Agr
from agr.records import boolean, choice

model = Agr.from_pretrained("CommandCode/agr", device="cuda")
questions = [
    choice(
        "team",
        "Which team should handle this?",
        ["Engineering: technical faults", "Billing: payment disputes"],
    ),
    boolean("urgent", "Does this require immediate attention?"),
]

probabilities = model.probs(
    "Checkout is failing and customers cannot place orders.",
    questions,
)
for question, values in zip(questions, probabilities):
    print(question.qid, dict(zip(question.options, values.tolist())))

Server

agr serve CommandCode/agr --port 8000

The server takes System One requests at /v1/systemone. Call it with curl, Python or TypeScript.

curl

curl -s localhost:8000/v1/systemone -H 'content-type: application/json' -d '{
  "model": "agr-latest",
  "state": "Agent wants to run: git push --force origin main\nRepo: shared by 14 people, no branch protection.",
  "questions": {
    "loses_work": {"type": "noul", "instructions": "Could this erase work that other people pushed?"},
    "blast": {"type": "score", "instructions": "Who could this affect if it goes wrong?",
      "criteria": ["Nobody", "Only the person running it", "Everyone who uses the repo"]}
  }
}'

Python

With the TypeSafe Python SDK:

pip install typesafe-sdk
from typesafe_sdk import Choice, Noul, TypeSafeClient

with TypeSafeClient(
    api_key="local",
    base_url="http://localhost:8000",
    model="agr-latest",
) as client:
    result = client.system_one(
        state="Checkout is failing and customers cannot place orders.",
        questions={
            "urgent": Noul(instructions="Does this require immediate attention?"),
            "team": Choice(
                instructions="Which team should handle this?",
                criteria={"engineering": "Technical faults", "billing": "Payment disputes"},
            ),
        },
    )

print(result.nouls["urgent"].noul)
print(result.choices["team"].choice)

TypeScript

With the TypeSafe JavaScript SDK (Node.js 20 or newer):

npm install @typesafe-ai/sdk
import { choice, noul, TypeSafeClient } from "@typesafe-ai/sdk";

const client = new TypeSafeClient({
  apiKey: "local",
  baseURL: "http://localhost:8000",
  defaultModel: "agr-latest",
});

const { answers } = await client.systemOne({
  state: "Checkout is failing and customers cannot place orders.",
  questions: {
    urgent: noul("Does this require immediate attention?"),
    team: choice("Which team should handle this?", {
      engineering: "Technical faults",
      billing: "Payment disputes",
    }),
  },
});

console.log(answers.urgent.noul);
console.log(answers.team.choice);

The server needs no key by default, so the API key can be any string. If you start it with --api-key or AGR_API_KEY, pass that key.

Request format

FieldDescription
modelagr-latest
stateText or JSON describing the situation
questionsQuestions keyed by ID

Each question has a type and instructions. The three question types are the System One primitives: a choice selects one of several named options, with criteria mapping each name to a description; a score rates the state on levels listed in order in criteria; and a noul is a yes/no judgment. Inputs are text only.

TypeOptionsOutput
noulNo / yesProbability of yes
choice2–255 named optionsSelected option, probability distribution and confidence
score2–255 ordered levelsExpected level index, probability distribution and confidence

confidence uses System One's definition, which is not the top option's probability.

Evaluate on your data

agr eval http://localhost:8000 labelled.jsonl --out agr-results.jsonl

It reports accuracy, Brier score, calibration error and latency. The label format and agr compare are in DESIGN.md.

Limitations

  • English text only; images are not supported.
  • Answers are limited to the options you supply; there is no generated text or explanation.
  • Check probabilities and thresholds on your own labelled examples before relying on them.
  • Changing the order of options can change the answer.
  • Neither model is a standalone safety filter or fit to be the sole authority for consequential decisions about people.

Acknowledgements

Agr builds on TypeSafe's Jev and its System One API, and on Archer Hume's analysis of Jev's architecture. It also draws on Jared Palmer's Kev, Mark Marosi's Decider for the answer-slot prompt layout and the temperature rule, and Invergent AI's Surogate for option-order averaging. We thank apolinário and the Decision Index maintainers, Google DeepMind for Gemma, Hugging Face for SmolLM2, and the authors of the datasets we used. Agr is not affiliated with TypeSafe or the systems compared here.

License

Agr is released under Apache 2.0. Agr uses Google DeepMind's Gemma 4 31B IT; Agr-flash uses Hugging Face's SmolLM2-360M. Both base models are licensed under Apache 2.0. See NOTICE.md for attribution.

© 2026 Command Code

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

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

GPU в ailist

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

Нельзя запустить

Архитектура ? неизвестна transformers в образе рантайма.

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

0 моделей