LIVE · Thursday 3 December

Clef vs Strands Decider for self-hosting: which decision model to run on a 24 GB GPU, an H100 or a CPU

Strands Decider fits the most hardware and publishes its training data. Clef needs about 55 GB for its weights and suits existing 80 GB GPUs. A worked example shows that renting a GPU costs more than hosted Clef-flash up to 10 million decisions a month.

By Nick8 min read

Choose Strands Decider if you want to self-host a decision model on a CPU, a laptop or one 24 GB GPU. Its v2 E2B model fits a 24 GB card, reads 32,768 tokens and scores up to 255 options. Choose Cloudflare's Clef if you already run 80 GB GPUs, need its reported intent accuracy, or are moving off Jev. On cost alone, hosted Clef-flash at $0.038 per million input tokens costs less than a rented GPU at up to 10 million decisions a month.

Every figure here comes from the vendor that built the model, on that vendor's own hardware. No same-hardware, head-to-head test of Clef and Strands Decider has been published. This guide therefore matches each model to a situation by its stated requirements, and it shows how to test the shortlist on your own decisions.

Strands Decider and Clef differ most in memory, openness and input limits

Both families are decision models. They read an input, which the vendors call the state, and return a probability for each option in a yes-or-no, choice or score question. Neither writes free text.

Cloudflare released Clef and Clef-flash on October 1, 2026. Clef sits on a frozen Qwen3.8-27B base and Clef-flash on Qwen3.5-9B. The Strands Labs team at AWS released Strands Decider the same day, on a 1.9-billion-parameter Qwen3.5 base. On November 17 it posted five v2 models on Gemma 4 bases, from E2B to 31B. All of these weights carry Apache-2.0 licences.

The table compares the four models that most self-hosting teams will consider.

Model Hardware it needs Context Training data public
Strands 2B v19 About 4.5 GB of base weights, Mac or CPU 4,096-token window in JevBench runs Yes, with scripts
Strands v2 E2B One 24 GB GPU, or CPU 32,768 tokens Yes, with data card
Clef-flash About 18.8 GB of BF16 weights, plus activations 16,384 by default in the HF code No
Clef About 54.7 GB of BF16 weights, plus activations 64k tokens, per Cloudflare's blog No

The Clef figures are arithmetic from Hugging Face parameter counts, at two bytes per parameter. Cloudflare publishes no minimum VRAM, and its cards say only that both models were tested on a single H200. Activations and cache need memory on top of the weights, and the amount grows with context. Peak memory at a given context has not been measured for either Clef model.

A laptop, an edge box or a CPU-only server points to Strands Decider

Strands Decider is the only family here with a documented CPU and Mac path. The v1 2B model takes about 4.5 GB in BF16. On Apple silicon, --device mlx runs it 1.4 to 1.6 times faster than PyTorch's MPS backend, according to the Strands README. The v2 E2B model also serves on CPU.

CPU serving is slow for the larger models. The Strands design notes report 4.9 seconds per JevBench question for the Gemma 4 E2B model on a 64-vCPU host. That host ran four models at once with 16 threads each. Batch jobs can tolerate that speed, while interactive routing usually cannot.

An air-gapped site or a plan to fine-tune points to Strands Decider

Strands publishes its weights, its training data sources and a retraining recipe. The README says that retraining takes about 11 hours on one RTX 3090, or 1 hour 10 minutes on eight H100s. Its data/sources.md file lists every source with its licence. Its local deployment page names air-gapped environments as one intended use.

Cloudflare publishes Clef's weights under Apache 2.0 but not its training data. Its blog describes that data as internal synthetic datasets. A team can fine-tune Clef's weights, but it cannot rebuild the released model from scratch.

A single 24 GB consumer GPU fits Strands v2 E2B, and Clef-flash only on paper

The Strands team sizes v2 E2B for one 24 GB GPU and reports a median of 62 ms per question on one H100. The card warns that the model cannot be split across GPUs, and that long prompts with many questions need more memory.

Clef-flash's BF16 weights leave about 5 GB free on a 24 GB card. Quantized builds would leave more room, at about 9.4 GB of weights for 8 bits and 4.7 GB for 4 bits. Hugging Face lists 64 community quantizations, but Cloudflare publishes no accuracy data for any of them. Whether Clef-flash runs on a 24 GB card at a useful context, and what quantization costs it in accuracy, has not been measured.

An existing cluster of 48 GB or 80 GB GPUs opens up full Clef

Full Clef's weights exceed one 48 GB L40S or A6000, so it needs an 80 GB card. A split across two 48 GB cards may work, but no vendor has documented one. Cloudflare reports a median of 209.3 ms and a p95 of 238.6 ms on its own Workers AI GPUs. On its own benchmarks, full Clef scores 94.20 macro-F1 on BANKING77 and 97.43 on CLINC150 with out-of-scope requests.

The Strands alternatives on the same cards are v2 12B on one 48 GB GPU and v2 31B on one 80 GB GPU. Strands reports 92.2 and 93.1 on JevBench for them. Strands also reports BANKING77 and CLINC150, but both sets are in its training mix, so those scores are not held-out. The two vendors report different Decision Index versions, 0.2.1 for Clef and 0.3 for Strands, which cannot be compared directly. Reliability plots, accuracy at a fixed deferral rate and results on a shared human-labelled set have not been published for either family.

Clef is the easier move off Jev, and Clef-flash needs an out-of-scope option for fallback routing

Cloudflare says that Clef is Jev-API compatible. Its SGLang server exposes a Jev-style /v1/systemone endpoint. Strands uses the same path but says that compatibility with the Jev API "is not verified."

Clef-flash has a weakness for fallback routing. It scores 66.77 macro-F1 on CLINC150+OOS, against 97.43 for full Clef and 89.27 for Jev. That benchmark tests whether a model can say that no listed intent applies. The Strands v2 card gives related advice for its own models, which assign a probability to every option "even when none is right." The fix in both cases is to add an option such as out_of_scope to every list.

Image and screenshot decisions favour Clef's vision encoder

Cloudflare built a vision encoder into Clef, and its hosted endpoints accept up to four images per request. Strands v2 also accepts images, but its card says that they pass through the Gemma base model's unchanged image layers, because v2 was trained on text only. Image accuracy for the two families has not been compared on a shared test set.

Each model serves with a few commands, and Strands needs an authenticating proxy in front

Clef and Clef-flash serve from their Hugging Face cards with standard tools:

  1. Install vLLM with pip install vllm and run vllm serve "Cloudflare/clef-flash".
  2. Or run SGLang with python3 -m sglang.launch_server --model-path "Cloudflare/clef-flash" --host 0.0.0.0 --port 30000.
  3. For full Clef, use the lmsysorg/sglang:dev-clef Docker image that its card names.

Strands Decider serves from its own package, which needs an access layer in front:

  1. Install it with pip install strands-decider.
  2. Start the server with strands-decider serve StrandsAgents/strands-decider-E2B-gemma4-v2-2611 --port 8000.
  3. Keep --host at its default of 127.0.0.1, because the server has no authentication, and put an authenticating reverse proxy in front.
  4. Set --max-concurrency to a small number, because by default up to 40 requests run at once and a burst can exhaust GPU memory.
  5. Compare the keys in each answer's probabilities field with the options you sent, so that a mismatched option list is caught.

A worked example shows that renting a GPU costs more than hosted Clef-flash

The example uses list prices and four assumptions:

  • Each decision reads 1,000 input tokens, and hosted models charge nothing for output.
  • A rented GPU runs 720 hours a month at Runpod's Secure Cloud rates of November 12, 2026: $0.89 an hour for an RTX 4090 and $2.89 for an H100 PCIe.
  • One GPU carries the whole volume, which has not been measured for any of these models.
  • Hosted prices are Cloudflare's $0.038 and $0.24 per million input tokens for Clef-flash and Clef, before any free allocation.
Monthly decisions Hosted Clef-flash Hosted Clef Rented RTX 4090
100,000 $3.80 $24 $640.80
1 million $38 $240 $640.80
10 million $380 $2,400 $640.80

Per 1,000 decisions, hosted Clef-flash costs $0.038 and hosted Clef costs $0.24 at any volume. The rented 4090 costs $6.41 per 1,000 at 100,000 decisions, $0.64 at 1 million and $0.064 at 10 million. A rented H100 PCIe costs $2,080.80 a month at every volume, which is $20.81 per 1,000 at 100,000 decisions, $2.08 at 1 million and $0.21 at 10 million. On these assumptions, renting a 4090 beats hosted Clef at about 2.7 million decisions a month, but it does not beat hosted Clef-flash at 10 million.

Owned hardware changes only the GPU column. Replace the rental with your card's monthly share of purchase cost, power and space, and divide by your volume in the same way.

Parsec's TOD is a third open-weight option for decisions with long text or images. Parsec publishes it as LoRA adapters on a Gemma 4 base, so users must fetch the base weights and accept Google's licence. Its TOD page lists $0.30 per 1,000 decisions and up to 48,000 tokens of context per decision. No test of TOD against Clef or Strands has been published by anyone outside Parsec.

A test on a few hundred of your own past decisions fills the gaps in the vendor figures

A short test answers the questions that no published benchmark covers:

  1. Export a few hundred past decisions with known correct answers, including some long inputs and some cases where no option applies.
  2. Add an out_of_scope option to every list, and run each shortlisted model on the same machine.
  3. Record accuracy, median and p95 latency, and peak GPU memory for each model.
  4. Check how often answers at a confidence of 0.9 or more are right, since Strands reports 95.2% on its own unseen short tasks.
  5. Treat small gaps as noise, because the Strands team advises that differences under about ten JevBench tasks are unresolved.

Sources

More in Models

All Models →