Clef-flash is a model from Cloudflare that helps your app choose what to do next.
Give it some text and a list of options, and it returns a score for each option.
For example, “Please turn the kitchen lights on” can map to “Turn lights on.”
Your app can then use that choice to perform the action.
This version runs locally on Apple Silicon with MLX and supports text input.
Property
Value
Backbone
Qwen3.5, 9B class, 32 layers, hidden size 4096
Format
MLX safetensors
Quantization
4-bit affine, groups of 64; original joint head retained
Weight size
5.04 GB backbone + 243.5 MB joint head
Input
Text state and schema; no images, video, or audio
Output
Choice probabilities, probability of true (
noul
), expected score index
Context
Reference encoder limit 16,384 tokens; Swift default 4,096
License
Apache-2.0
The scores show how strongly the model favors each option; a high score does not
guarantee a correct answer. Send one request at a time to each loaded model.
Files
File
Size
Purpose
model.safetensors
5,038,160,953 B
Quantized backbone, including separate output embedding
joint_head.safetensors
243,538,016 B
Joint schema decision head
config.json
3,028 B
Root model configuration and quantization
joint_head_config.json
119 B
Head dimensions
tokenizer.json
19,989,339 B
Tokenizer vocabulary and rules
tokenizer_config.json
1,186 B
Tokenizer settings
clef_mlx.py
9,954 B
Pinned upstream Python inference reference
LICENSE
11,544 B
Upstream Apache-2.0 license and notices
UPSTREAM_README.md
4,321 B
Original converter's card and attribution
export.json
Generated
Source revision and per-file checksums
example-request.json
Small JSON
Three-field Swift CLI example
validation-summary.json
Generated
Bundle checksums and native runtime smoke-test result
Development measurements
Native MLX Swift, release build, compiled Metal shaders, Apple M5 Pro, 48 GB unified
memory. One 303-token request with three fields: light action, factual-question
check, and urgency. Model load is excluded; encoding through materialized
probabilities is included.
Measurement
Result
Scope
Warm median
0.918 s
Five sequential repeats of the same request
Warm mean
0.921 s
Same five repeats
Warm range
0.916–0.930 s
Same five repeats
First standalone inference
4.02 s
One first run, including warm-up effects
Reference token IDs
303/303 identical
Python MLX reference
Maximum probability difference
About 0.00292
Same three-field reference example
This is a fidelity and timing smoke test,
not a broad accuracy benchmark
.
No memory benchmark, p95 estimate, real robot test, or comparison with hosted
inference is claimed. These measurements describe the native Swift implementation;
other runtimes and requests can differ. Swift support is a development preview
and was not yet released at the time of these measurements (2026-10-02).
Swift
Use the
Clef
library from
speech-swift
on Apple Silicon. Clef support is currently a development preview; it requires a
checkout containing the
Clef
library and
clef-decide
product.
Download this model's files into a local directory, then load it:
import Foundation
import Clef
let model =tryClef.load(
from: URL(fileURLWithPath: "/path/to/Clef-flash-9B-MLX-4bit")
)
let result =try model.decide(
state: "Please turn the kitchen lights on.",
questions: [
ClefQuestion(
id: "action",
instructions: "Which action was requested?",
kind: .choice([
"on": "Turn lights on",
"off": "Turn lights off",
"other": "Other request"
])
)
]
)
for decision in result.decisions {
print(decision.id, decision.selectedOption, decision.confidence)
print(decision.probabilities)
}
Load the model once, then reuse it for each request. If the text and options are
too long, the library returns an error rather than cutting them short.
Clef-flash-9B-MLX-4bit huggingface.co is an AI model on huggingface.co that provides Clef-flash-9B-MLX-4bit's model effect (), which can be used instantly with this aufklarer Clef-flash-9B-MLX-4bit model. huggingface.co supports a free trial of the Clef-flash-9B-MLX-4bit model, and also provides paid use of the Clef-flash-9B-MLX-4bit. Support call Clef-flash-9B-MLX-4bit model through api, including Node.js, Python, http.
Clef-flash-9B-MLX-4bit huggingface.co is an online trial and call api platform, which integrates Clef-flash-9B-MLX-4bit's modeling effects, including api services, and provides a free online trial of Clef-flash-9B-MLX-4bit, you can try Clef-flash-9B-MLX-4bit online for free by clicking the link below.
aufklarer Clef-flash-9B-MLX-4bit online free url in huggingface.co:
Clef-flash-9B-MLX-4bit is an open source model from GitHub that offers a free installation service, and any user can find Clef-flash-9B-MLX-4bit on GitHub to install. At the same time, huggingface.co provides the effect of Clef-flash-9B-MLX-4bit install, users can directly use Clef-flash-9B-MLX-4bit installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Clef-flash-9B-MLX-4bit install url in huggingface.co: