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
Ship Agents Faster Icon
Ship Agents Faster

Transform your applications and workflows into powerful agentic systems at global scale.

Gemini Enterprise Agent Platform lets you rapidly build, scale, govern and optimize production-ready agents grounded in your organization's data. The platform enables developers to build custom or pre-built agents for virtually any use case. New customers get $300 in free credits.
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

11 hours ago