Cogent-Large
large model for structured decisions
2 min readupdated
The Cogent-Large model (0.39B parameters) handles typed analysis tasks for multiple questions based on provided state (text or JSON) and outputs probabilities for each answer choice. Its architecture is built on a ModernBERT-style encoder with tree attention and optimized for fast CPU deployment. Compared to standard LLMs, it efficiently encodes context once and shares it across all questions. The model suits developers of decision-making systems, agents, and analytics pipelines who need high speed and accuracy on standard hardware without powerful graphics cards.
Key features
- Tree attention: separate context encoding and independent processing of answer choices.
- CPU optimization: efficient performance on central processors with bf16 and fp32 support.
- Typed outputs: support for choice selections, score scales, and logical statement formats (noul).
- Multiple formats: available in bf16 and fp32 versions, along with a three-seed ensemble.
What you can do
- Agent integration: configure decision logic for autonomous AI agents and customer support processing.
- Probability scoring: automate categorization, option ranking, and risk assessment based on defined criteria.
- Text analysis: process structured queries using custom inference packages.
Example
from cogent import Cogent
model = Cogent.from_pretrained("cogent-large")
probs = model.decide(
state={"task": "Resolve the customer's billing complaint.", "last_action": "issued refund of 850 EUR"},
questions=[
{"key": "action", "type": "choice", "instructions": "What should happen to this trace?",
"options": ["continue", "human_review", "stop"]},
],
)
print(probs)
Read more
DetailsBenchmarks: on the typed-decisions dataset, accuracy is .8000, Brier is .0465.
Requirements: Python 3.10+, torch, transformers>=5.22, safetensors, numpy; bf16 requires a CPU with avx512_bf16.
Limitations: maximum state length is 2048 tokens, questions length is 512 tokens.
License: GPL-3.0.










Comments