/ Модель

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

Лицензия
Apache 2.0
Базовая модель
ettin-encoder-400m
Библиотека
onnx
Опубликована
23 окт 2026

coba-400m-ternary

Классификация без дообученияТекст → label3 профессии

Компактная англоязычная тернарная модель Ollaya для классификации состояний, оценки текстов и выбора ответа по вопросу.

0скачиваний за 30 дней0лайковвеса обновлены23 окт 2026

Бенчмарки

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

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

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

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

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

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

Coba 400m ternary — англоязычная модель принятия решений от Ollaya на базе энкодера Ettin 400m с архитектурой ModernBERT. Она принимает состояние в виде сообщения, обращения в поддержку или небольшого JSON-объекта вместе с вопросами и за один проход выдаёт вероятности ответа «да/нет», оценки по описанной шкале или выбора из набора вариантов. Модель предназначена для классификации и маршрутизации обращений, оценки текста и выбора следующего действия агента; варианты ответа описываются обычными словами.

В слоях энкодера и выходной голове используются тернарные веса −1, 0 и +1 с масштабом для каждой строки, а эмбеддинги токенов имеют точность 4 бита. ONNX-версия вместе с токенизатором загружается в объёме около 147 МБ и может работать локально в браузере. Входные данные ограничены 512 токенами на состояние и вопрос. Модель обучалась на обучающих выборках десяти из одиннадцати наборов публичного бенчмарка, поэтому показатель на них отражает внутридоменную оценку, а не чистый zero-shot. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Coba 400m ternary

Coba 400m ternary is a small English decision model by Ollaya. Give it a state (a message, a support ticket, a JSON object, an agent's next tool call) and questions, and it answers every question in one forward pass with calibrated probabilities:

  • noul: yes or no, as the probability of yes;
  • choice: one of up to 255 options, each described in plain words;
  • score: a level on a scale of 2 to 10 described levels.

Ternary: every weight of the encoder layers and the head is −1, 0 or +1 times a scale per output row, and the token embeddings have 4 bits, so in a browser tab the whole model is a 147 MB download (onnx/model.onnx and the tokenizer); model.safetensors holds the same weights as float32, for laya and Ollaya. It trained in-domain: its data includes the train splits of ten of the public benchmark's datasets (see Results).

Run it

In a web page (npm install @ollaya/web): the model downloads once (147 MB) and runs on the device.

import { fromHub, load } from '@ollaya/web';

const model = await load(fromHub('ollaya-dev/coba-400m-ternary'));
const { answers } = await model.decide({
  state: "I was charged twice for order A-104. Refund the duplicate today or I'm cancelling.",
  questions: {
    refund: { type: 'noul', instructions: 'Is the customer asking for a refund?' },
    team: { type: 'choice', instructions: 'Which team handles this?',
            criteria: { billing: 'Payments, charges, refunds', technical: 'Bugs, outages, errors' } },
    urgency: { type: 'score', instructions: 'How urgent is this?', criteria: ['Can wait', 'This week', 'Today'] },
  },
});

With Ollaya (Linux, macOS, Windows; CPU, CUDA, Metal):

curl -fsSL https://ollaya.dev/install.sh | sh
ollaya run coba:400m-ternary --ask "Is the customer asking for a refund?" < ticket.txt

or POST http://localhost:11435/api/decide with {"model": "coba:400m-ternary", "state": …, "questions": …} (API). Ollaya also speaks TypeSafe's /v1/systemone, so Jev clients work unchanged.

In Python with laya (pip install laya):

import laya

agent = laya.load("ollaya-dev/coba-400m-ternary")
agent.system_one("I was charged twice for order A-104.", {
    "refund": {"type": "noul", "instructions": "Is the customer asking for a refund?"},
})

Ollaya and laya give the same answers, and so does the browser (checked against Ollaya's runtime on the same questions): Ollaya checks its runtime against this checkpoint's PyTorch outputs on 2,383 questions (every decision the same, probabilities within 3.4e-6).

Results

ModelWeightstyped-decisionsPublic benchmark
coba:1bfp320.6080.561 zero-shot
coba:400mfp320.5910.561 zero-shot
coba:400m-ternary (this model)ternary0.5590.654 in-domain
coba:150m-ternaryternary0.5350.622 in-domain
coba:68m-ternaryternary0.4830.603 in-domain
pplx-decider:flash (the teacher, 4B decoder)bf160.7260.824 zero-shot
decider:0.8b (0.8B decoder)bf160.5060.669 zero-shot
laya:en (Laya's English model)fp320.3580.532
  • typed-decisions: accuracy on the 400 rows of LocalLLaMA/typed-decisions' test split, which no model here trained on.
  • Public benchmark: macro accuracy over the 3,880 records of the eleven datasets Ollaya's bench uses (MNLI, BoolQ, PAWS, VitaminC, civil_comments, Aegis 2.0, HelpSteer2, PubMedQA, SQuAD 2.0, MASSIVE, SummEval). In-domain: the model also trained on the train splits of ten of them (never their test records; rows that share any text with a test record were dropped). Zero-shot: trained without them.
  • For scale: pplx-decider:flash, the 4B decoder this model learned from, scores 0.726 and 0.824 zero-shot; 0.8B decoders score 0.46–0.51 and 0.61–0.67.

Training

  • Network: Laya's (laya 0.3.7): the question, a [MASK] before every option and the state in one sequence of up to 512 tokens; a two-layer transformer head scores each option at its marker. Encoder: Ettin 400m (ModernBERT architecture, MIT).
  • Data: about 400,000 English questions in 344,000 states from permissively licensed decision datasets (Apache-2.0, MIT, CC BY, CC BY-SA, CC0, BSD; every source and its license is in DATA_SOURCES.tsv), plus 180,000 from the benchmark datasets' train splits. Rows from datasets with a non-commercial or unknown license were dropped.
  • Labels: each question's gold answer where the data has one, mixed with the full probability distribution of pplx-decider:flash (Apache-2.0), computed through Ollaya.
  • Recipe: soft cross-entropy plus the ranked probability score on score questions; options shuffled half the time; one temperature per question type fitted on held-out data. Ternary weights: quantization-aware training from the fp model of the same size (absmean per row, as BitNet b1.58, with a straight-through estimator), distilled from it (logits, attention relations and every layer's hidden states), with the fp weights blended into the quantized ones over the first 30% of the steps.

Limits

  • English only. Other languages are not refused but are not measured.
  • 512 tokens for the state and the question together: messages, tickets and small JSON states, not long documents or agent traces.
  • score questions are the weakest kind for every model of this size; read the probabilities, not only the expected level.
  • Probabilities are calibrated on average, not per domain: check them on your own data before acting on them automatically, and keep a person in the loop for decisions that matter.

License

Apache-2.0. The encoder started from Ettin (MIT; see NOTICE). The training data's sources and their licenses are in DATA_SOURCES.tsv; CC BY and CC BY-SA sources are credited there.

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

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

GPU в ailist

Универсальный рантайм · onnx · zero-shot-classification

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

В репозитории нет config.json: не понять архитектуру модели.

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

0 моделей