Cloudflare Releases Clef: Open-Source Decision Models and RL Platform
Cloudflare announced Clef and Clef-flash, open-source decision models hosted on Workers AI and Hugging Face designed for low-latency agent routing and classification workflows.
According to the Cloudflare Blog, Cloudflare released two open-source decision models: Clef and Clef-flash. Both models are hosted on Workers AI and available on Hugging Face under an Apache 2.0 license.
What Changed
Cloudflare introduced decision models that produce bounded, structured outputs rather than generating open-ended text. The source reports that Clef uses a frozen Qwen3.8-27B backbone, while Clef-flash uses a Qwen3.5-9B backbone. Both models incorporate a vision encoder for visual content classification and support a 64k context window.
How It Works
The models use a non-autoregressive decision step instead of generating tokens sequentially. According to the source, the architecture combines a frozen Qwen backbone with a jointly optimized routing head and rank-256 low-rank adapters.
The models accept structured state inputs and typed questions—such as choices, scores, or null types—to output probabilities for each category. Evaluated benchmarks in the source report median latencies of 209.3 ms for Clef and 38.8 ms for Clef-flash. Cloudflare also introduced a reinforcement learning (RL) and fine-tuning service utilizing Cloudflare AI Gateway, Workers AI, and Cloudflare Containers.
Why Developers Might Care
- Low-Latency Routing: The non-autoregressive design targets agentic workflows where quick classifications are needed before taking action.
- API Compatibility: The models are Jev-API compatible, allowing developers to integrate them into existing setups.
- Local Deployment: Developers can download the model weights from Hugging Face for local experimentation.
Limitations
- Performance Trade-offs: The source notes that fine-tuning models for specific domains may reduce general-purpose performance.
- Availability of Fine-Tuning Services: The RL fine-tuning platform is initially rolling out through a hands-on forward-deployed engineer (FDE) team rather than an immediate self-serve interface.