Contrastive Language Models is an open-source research framework for fast System One decision models that score actions against states instead of generating long text responses. CLM-8B uses separate state and action encoders trained with contrastive objectives. Candidate embeddings can be cached and reused, reducing latency when actions repeat across requests. The package supports typed yes-or-no, choice, score, and ranking tasks through a TypeSafe-compatible API. It includes inference servers, a browser playground, evaluation tools, preprocessing utilities, and fine-tuning scripts. The reference model uses a Qwen3-8B backbone with lightweight trainable projection heads. It targets routing, verification, tool selection, gaming, and other fast decision workloads.

Features

  • Contrastive state-action scoring
  • Typed yes-or-no, choice, and score decisions
  • Candidate ranking and verification
  • Reusable embedding caches
  • Fine-tuning and evaluation pipelines
  • TypeSafe-compatible HTTP API

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow Contrastive Language Models

Contrastive Language Models Web Site

Other Useful Business Software
$300 Free Credits to Build on Google Cloud Icon
$300 Free Credits to Build on Google Cloud

New customers can spin up VMs, build with AI, and query data at no cost.

Put your $300 in credit toward real workloads, then keep building with free monthly usage for 20+ products. No commitment and no charge until you upgrade.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Contrastive Language Models!

Additional Project Details

Programming Language

Python

Related Categories

Python Large Language Models (LLM)

Registered

2026-10-12