Cloudflare releases open models that answer questions with probabilities instead of text
In short
- On 1 October 2026 Cloudflare released Clef and Clef-flash, two open "decision models". You give them a situation and a list of questions; they return a probability for every allowed answer, not free text.
- Clef has about 27 billion parameters and Clef-flash about 9 billion. Both are open weights on Hugging Face under the Apache 2.0 licence, and both are hosted on Cloudflare's Workers AI.
- Cloudflare said Clef led the Decision Index, a benchmark built around Typesafe AI's Jev decision model, on the company's own run. In one internal test, classifying a website took Clef 2.2 seconds against 4.7 seconds for gpt-oss-120b.
- Read from late November, the picture is more mixed: the community-run index now ranks models on private tests, and on that score Clef sits below Jev.
27B / 9B parameters in Clef and Clef-flash (Hugging Face counts: 27.36 billion and 9.41 billion); Apache 2.0 licence for both; commercial use allowed; 64k Clef's context window, against 32k for Jev (Cloudflare's figures); 2.2 s vs 4.7 s one website classification, Clef against gpt-oss-120b (Cloudflare's test)
How open it is
Apache 2.0 in plain words (ours): anyone may use, change and sell products built on the models without asking or paying, as long as they keep the licence and copyright notices and mark what they changed. The cards say the licence follows that of the Qwen base models.
The weights are stored in BF16, so Clef's files come to roughly 55 GB and Clef-flash's to about 19 GB (our estimate from the parameter counts). Cloudflare says it tested the models with PyTorch and Hugging Face Transformers on a single NVIDIA H200, and they can also be served with SGLang.
What a decision model does
A chat model writes its answer word by word, and a program then has to parse it. A decision model is closer to a classifier that you can set up on the fly (our explanation). Cloudflare's example is a customer-support message: you ask whether it is urgent and which team should handle it, and the model returns "typed answers with probabilities" that code can use to "route the ticket, trigger an escalation, or defer to a human".
Each question in a request has one of three types: true or false (noul in the API), a choice between named options, or a score on an ordered scale such as "No impact" to "Critical". The model returns one number per allowed option in a single pass, and a softmax turns those into probabilities. "There is no free-form text generation and no output parsing," the card says. The request format copies Jev's, so Cloudflare calls Clef "fully Jev-API compatible".
Cloudflare's threat-intelligence team uses Clef to sort website domains into categories. In the blog's example the model gives a domain a 95% chance of being a fashion site, 85% e-commerce and under 1% phishing. Fetching, rendering and classifying the site took Clef 2.2 seconds; gpt-oss-120b, which Cloudflare calls its fastest general LLM, took 4.7 seconds in the same workflow "and only returned two classifications". That is one workflow measured by Cloudflare, not a general benchmark.
How it was built
Cloudflare froze the Qwen base model and trained only a small routing head on top of it, with rank-256 low-rank adapters. The model reads the whole request once, then scores every valid answer in parallel, instead of generating text token by token. Training added a Brier loss, which rewards well-calibrated probabilities (our gloss), on Cloudflare's own synthetic data. A reinforcement-learning stage the company calls RLCD (Reinforcement Learning for Calibrated Decisions) gives partial credit for near-miss answers on ordered scales.
The benchmarks: Cloudflare's run, then the index's
At launch Cloudflare published scores from its "internal run" of the Decision Index 0.2.1 suite. Some of the rows:
The full table on the card has 41 scored tests. By our count Clef beats Jev on 26 and trails it on 15, including the harder reasoning tests such as GPQA Diamond, MMLU-Pro and BBH. On four business workflows from Typesafe's own evaluations, Clef led Jev in three.
The Jev Decision Index itself is a Hugging Face Space maintained by the Hugging Face user multimodalart, "unofficial and community-maintained; not affiliated with TypeSafe AI". It runs the open models on its own hardware, one NVIDIA RTX PRO 6000, and calls Jev through Typesafe's hosted API. Five days after Clef's launch it changed how it ranks models.
17 September 2026: the Decision Index Space is created on Hugging Face. 1 October 2026: Cloudflare publishes Clef and Clef-flash and says Clef leads the index. 6 October 2026: the index adds private tests "nobody can train on" to its Full score. 19 October 2026: public benchmarks stop counting towards the Full score; they are still shown. 21 November 2026: the data file we read is generated.
In that file Clef's public-benchmark score is 61.71, just above Jev's 60.7, but 107 entries score higher than Clef even on that public score (our count). On the Full score, built only from private tests, Clef has 54.92 against Jev's 60.24, and about 120 of the 345 entries score higher than Clef (our count). Clef-flash has 44.43. The index measured Clef's median latency at 102.1 milliseconds and Clef-flash's at 53.4 on its hardware.
The scores in Cloudflare's tables are Cloudflare's own run. The index's numbers are a separate, independent run, and its ranking has moved since launch. Cloudflare's "leader" claim rests on its own run; we did not see the index's board as it stood on 1 October.
Fine-tuning as a service
Cloudflare also announced a reinforcement-learning fine-tuning service, first run hands-on by its own engineers and later self-serve: customers capture their traffic with AI Gateway, tune the weights with a new Trainer tool and redeploy on Workers AI. Cloudflare says it does not read, store or train on requests unless a customer opts into fine-tuning.
Terms in plain English
- Calibration: whether a model that says 80% is right about 80% of the time (our wording).
Where things stand
Both repositories are still public under Apache 2.0, last changed on 10 November 2026. When we looked, Hugging Face showed 68,337 downloads of Clef and 32,430 of Clef-flash in the past month. Cloudflare calls Clef its first model trained by the Workers AI team and says "a lot more improvements" are coming; a third model, clef-omni, already appears on the index. The open question is how the next versions do on tests that are not public.
Sources
- Introducing Clef: our open-source decision models, and new RL fine-tuning platform, Cloudflare blog, 1 October 2026
- Cloudflare/clef, Hugging Face model card
- Cloudflare/clef-flash, Hugging Face model card
- Jev Decision Index, Hugging Face Space by multimodalart (README, methodology and data file of 21 November 2026)
Sources
- Introducing Clef: our open-source decision models, and new RL fine-tuning platform
- Cloudflare/clef model card
- Cloudflare/clef-flash model card
- Jev Decision Index
More from Open Models
- Google DeepMind releases CellGemma, an open model of how cells respond to drugs
- Hugging Face's 2026 releases are mostly open tools, with no new flagship model
- Cloudflare releases five open-weight AI models, all built on Alibaba's Qwen
- PrismML released seven open 1-bit and ternary model families in 2026
- BharatGen, the IIT Bombay consortium, releases a free 7.8B document-reading model