Connais 1
a compact encoder for fast decision-making and classification
2 min readupdated
Connais 1 is a small, specialized 67-million-parameter model (the weights take up 267 MB) built on the ModernBERT architecture (jhu-clsp/ettin-encoder-68m). Unlike generative language models (LLMs), it doesn't generate text. Instead, it evaluates the input in a single encoder pass and returns probabilities for your predefined answer options. It is ideal for agent tool selection, request routing, and strict classification. The model is text-only and processes up to 32,768 tokens (text chunks) per request.
Key features
- Bidirectional encoder: analyzes the entire input text at once using 19 bidirectional layers.
- Flexible answer types: supports multiple choice (choice), yes/no evaluation (noul), and numeric scales (score).
- CPU and GPU efficiency: runs fast even on consumer hardware like the Apple M4.
- No text generation: returns clean probabilities and confidence scores for each option without extra reasoning.
What you can do
- Agent integration: set up automatic selection of the right tool or function based on the user's request description.
- Request routing: sort incoming customer tickets by category and intent using accurate probabilities.
- Binary and scale classification: quickly check if text meets specific criteria or rate sentiment along predefined scales.
Example
from connais import load_engine
engine = load_engine('connais-1')
response, timing = engine(
'User: is it raining in Zurich?',
{'tool': {'type': 'choice', 'instructions': 'Which tool?',
'criteria': {'get_weather': 'Current weather', 'none': None}}},
)
Read more
Details• Architecture: 66.8M parameters, including a 42.36M base and a tabular encoder.
• Hardware: tested on Apple M4; light on compute and memory.
• Limitations: limited factual knowledge, text-only (primarily English), and long contexts over 8k tokens rely mostly on text near the question.
• License: weights under CC BY-NC 4.0, code under Apache License 2.0.








Comments