Contrastive-LM/CLM

Contrastive Language Models (CLMs) are a new class of System One model trained with a contrastive learning objective that connects states and actions.

View on GitHub ↗Jump to charts ↓

Contrastive-LM/CLM has 3k+ stars and 250+ forks on GitHub, is written in Python, and was last pushed on Oct 5, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 21 minutes ago
Added to GitGenius on October 13th, 2026
Created on September 23rd, 2026
Open Issues & Pull Requests: 28 (+0)
GitHub issues: Enabled
Number of forks: 264
Total Stargazers: 3,065 (+0)
Total Subscribers: 22 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 22.4 hours
Mean response time: 18.8 hours
90th percentile: 32.9 hours
Tracked items: 3

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 15
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 12 days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 1

Top labels

No label distribution available yet.

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

Contrastive Language Models is a System One model trained with a contrastive learning objective that connects states and actions for fast decision-making.

CLM addresses the need for rapid inference in agentic systems by disaggregating state and action representations so their embeddings can be cached and reused independently. The approach trains on question-answer pairs, synthetic hard negatives, and agentic trajectories to learn a scoring function that ranks candidate actions against observed states. Rather than generating text autoregressively, the model answers typed questions about states and ranks free-form candidates directly, enabling both structured and unstructured decision-making through a single primitive: scoring a candidate against a state.

CLM-8B performs comparably to Jev on computer-use, gaming, and tool-calling tasks while achieving up to nine times lower latency, with the largest speedups occurring when candidate action sets are large or actions are reused across states. The tool suits projects requiring fast inference for agent decision-making, particularly those where caching action embeddings across multiple states provides efficiency gains. It ships with a TypeSafe-compatible API, a web playground for interactive exploration, and fine-tuning tutorials for custom data. The model achieves state-of-the-art results as a verifier on agentic coding benchmarks after lightweight fine-tuning.

The project maintains an active community Discord and publishes technical documentation through a blog. Development includes regular updates to the model and serving infrastructure, with examples and benchmarks shipped directly in the repository to support reproducibility and adoption.