# Clef: Cloudflare's Open Decision Models (27B & Clef-flash 9B)

- **ID:** 1344
- **Kind:** paper
- **URL:** https://huggingface.co/Cloudflare/clef
- **Authors:** Cloudflare (Workers AI team)
- **Venue:** Cloudflare blog / Hugging Face (Cloudflare/clef), launched Oct 1, 2026
- **Published:** 2026
- **Source:** blog
- **Language:** en
- **Access:** free
- **Added:** 2026-10-11
- **Verified:** 2026-10-11
- **Page:** https://papers.projxon.ai/entries/1344

## Summary

Clef and Clef-flash are Cloudflare's open decision models (launched Oct 1, 2026). Instead of generating text, they take a state (text, JSON, images, or video frames) plus a schema of typed questions (noul/choice/score) and return a probability for every allowed option in a single forward pass — up to 64 questions per request, up to 4 images, 64k context. Clef is post-trained from Qwen3.8-27B (backbone frozen; a joint schema head fitted with rank-256 LoRA using label-smoothed cross-entropy plus a Brier loss, then RLCD calibration training); Clef-flash is the 9B variant on Qwen3.5-9B. Both are Apache 2.0 on Hugging Face, hosted on Workers AI, and fully API-compatible with TypeSafe's Jev, so existing Jev integrations swap by changing the endpoint. Company-reported (Cloudflare's Jev Decision Index): the Clef family leads 7 of 10 benchmarks — e.g., Banking77 94.20 vs Jev 79.74 and BFCL 98.47 — while Jev still leads When2Call (80.97 vs 72.37) and BRIGHT (47.52 vs 45.91); median latency 38.8 ms (flash) and 209.3 ms (Clef) vs Jev's 524.1 ms. Independent evaluations (Oct 2026) broadly confirm the intent/classification strength and much better calibration than Jev, but find Clef-flash weak at out-of-scope detection and only parity with a general LLM on judgment-heavy multi-level scoring. An Oct 9 follow-up added Clef-omni (audio/video) and cut Clef-flash's hosted price to $0.038/M input tokens.

## Research notes

- Decision-model cluster: 1541 (Gero-4B), 1542 (probabilistic forecasting / decision models), and 1612, where Clef is already listed as a supported model — this is its standalone entry. Serving-infra relevance for his agent app: Clef/Jev-style typed decision calls replace generate-then-parse routing steps in an agent loop; at the company-reported 38.8 ms flash median, a dozen routing/guard decisions per task cost ~0.5 s total versus ~6 s at Jev's reported latency. Independent evals (all Oct 2026): requesty.ai (22,000 decisions; Clef via Sference vs Cloudflare hosting 97.3% identical) — Clef leads fine-grained intent (94.3% Banking77, 89.3% MASSIVE vs Jev's published 80.0/67.7), calibration ECE 0.02–0.04 vs Jev 0.04–0.28, 83.2% avg on human-labeled gateway tasks (3.4 pts below Claude Opus 5.5 at 3% of Opus cost, 1/4 latency), but trails Opus 20+ pts on multi-level scoring; decision models returned 0 unusable outputs of 4,000 toxic-chat prompts vs 33–36% unusable for Azure GPT. DEV Community 42-case benchmark: Clef-flash 9B locally on an RTX 3090 scored 66.7% vs hosted TypeSafe Jev 71.4% (parity on GUI action choices, 10/10 each; Jev better on message triage); local flash 315 ms vs Jev 225 ms over network; Clef-27B needs ~54 GB VRAM self-hosted; the decision head requires the PyTorch transformers path, not GGUF/llama.cpp. gjusev/clef-router (open-source OpenAI-compatible proxy): 100% policy accuracy (n=42), $0.078/1k decisions measured, 92.9% with local 4-bit clef-flash on a Kaggle T4. Caveats: training data and pipeline unpublished — open weights, not reproducible open-source (berinet); Clef-flash is weak on out-of-scope detection (CLINC150+OOS 66.77 vs Jev 89.27 in Cloudflare's own index, flagged by wavect.io) — material for a router that must say "none of the above." Launch blog: blog.cloudflare.com/clef-decision-models. Also: Oct 9 follow-up Clef-omni (audio+video+text+image, on Qwen3-Omni-30B-A3B-Instruct); hosted flash context capped at 24k (open weights support 256k self-hosted); Clef stays $0.24/M, ~2× faster on large inputs after move to SGLang. Discovery: Cloudflare launch Oct 1, 2026; cataloged at Hudson's request (2026-10-11) after independent evals appeared.

## Similar entries

- [Kev 1.0: Open-Weight Family of Decision Models (Kev-27B, Kev-9B, Kev-4B, Kev-0.8B)](https://papers.projxon.ai/entries/854) (model, #854)
- [Decision 2.0 — vLLM Semantic Router open decision models (0.6B–27B)](https://papers.projxon.ai/entries/1306) (model, #1306)
- [apex-flash-1: Open-Weights Cybersecurity Model Post-Trained on GLM-5.3-flash](https://papers.projxon.ai/entries/1220) (model, #1220)
- [Julia-1 (Supersonic Labs decision model)](https://papers.projxon.ai/entries/1081) (model, #1081)
- [D-JEPA: A Decision-Aligned Latent World Model](https://papers.projxon.ai/entries/1224) (paper, #1224)
- [Contrastive Language Models (CLM): A System One Model for Fast and Generalizable Decision-Making](https://papers.projxon.ai/entries/1018) (model, #1018)
