Contrastive-LM/CLM-v0.1-8B — new model trending #30 on Hugging Face
Contrastive-LM released CLM-v0.1-8B, a Qwen3-8B contrastive model for fast state-action scoring and agent verification.
Contrastive-LM released CLM-v0.1-8B, an Apache 2.0 System One model that scores candidate actions rather than generating text. Two projection heads on a frozen Qwen3-8B encoder were trained with bidirectional InfoNCE on about 60 million Nemotron Q&A pairs, 30 million synthetic hard negatives, and 1 million agentic trajectories. Zero-shot it matches Jev on computer-use, gaming, and tool use at up to 9× lower latency, and with about 1,000 candidates is 13× faster. Fine-tuned heads reach 81.6% on DeepSWE and 87.6% on Terminal-Bench 2.1; a multimodal CLM-35B is planned for early October.
- CLM-v0.1-8B adds state and action heads on frozen Qwen3-8B.
- Trained with bidirectional InfoNCE on about 91 million examples.
- Fine-tuned heads report 81.6% DeepSWE and 87.6% Terminal-Bench 2.1.
- Apache 2.0 weights score given candidates and do not generate text.
- A larger multimodal CLM-35B is planned for early October.
Full article549 words · extracted from huggingface.co · click to collapse
<p align="center">
<img alt="CLM v0.1" src="https://raw.githubusercontent.com/Contrastive-LM/CLM/main/assets/logo.png" width="45%">
</p>
<h3 align="center">CLM-v0.1-8B</h3>
<p align="center">
| 📄 <a href="https://contrastive-lm.notion.site"><b>Blog</b></a>
| 💻 <a href="https://github.com/Contrastive-LM/CLM"><b>Code</b></a>
| 🗣️ <a href="https://discord.gg/5dAQEDJBs"><b>Discord</b></a> |
</p>
**Contrastive Language Model (CLM)** is a new class of **System One model**
trained with a **contrastive learning** objective that connects **states and
actions**. **CLM-8B** consists of two small projection heads (a state head and
an action head) on top of a frozen **Qwen3-8B** encoder trained with a
bidirectional InfoNCE loss.
- **Training:** pre-trained on ~60M Nemotron Q&A pairs, mid-trained on ~30M
synthetic hard negatives, post-trained on ~1M agentic trajectories.
- **Zero-shot:** on par with Jev on computer-use, gaming and tool-calling tasks,
with **up to 9× lower latency**.
- **Fine-tuned as a verifier:** SOTA on **DeepSWE (81.6%)** and
**Terminal-Bench 2.1 (87.6%)**, 4–6× faster than Jev.
- **State & Action Caching:** states and actions are encoded separately, so action
embeddings can be reused. **With ~1k candidates, CLM is 13× faster than Jev.**
## Usage
### With the `contrastive-lm` package
```bash
pip install contrastive-lm
# 1. encoder (Qwen3-8B embeddings)
vllm serve Qwen/Qwen3-8B --served-model-name qwen3-8b --runner pooling --max-model-len 2048 --port 8090 &
# 2. API + playground at http://localhost:8700/ (fetches CLM_v0.1-8B.pt into ~/.cache/clm/)
clm-serve
```
Ask typed questions about a state:
```python
from clm import CLMClient, Choice, Noul, Score
client = CLMClient() # http://127.0.0.1:8700 by default
r = client.system_one(
state="Customer: my invoice was charged twice and nobody answers the phone!",
questions={
"urgency": Noul(instructions="Is this urgent?"),
"department": Choice(instructions="Which team should handle this?",
criteria={"billing": "Charges, invoices, refunds",
"technical": "Bugs and outages"}),
"frustration": Score(instructions="How frustrated is the customer?",
criteria=["Calm", "Frustrated", "Very angry"]),