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
Build Agents and Models on One Platform Icon
Build Agents and Models on One Platform

Everything you need to build production-ready agents and models. Access 200+ Google and third-party AI models and tools.

Gemini Enterprise Agent Platform is Google Cloud's comprehensive platform for developers to build, scale, govern, and optimize agents and models. Choose from Google's most advanced models and third-party models like Anthropic's Claude Model Family.
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

9 hours ago