mlx-community / clef-flash-4bit

huggingface.co
Total runs: 7.1K
24-hour runs: -547
7-day runs: -402
30-day runs: 6.0K
Model's Last Updated: October 08 2026
zero-shot-classification

Introduction of clef-flash-4bit

Model Details of clef-flash-4bit

mlx-community/clef-flash-4bit

Cloudflare/clef-flash converted to MLX (4-bit) for Apple Silicon.

Clef turns a state (text, JSON, images, or video) plus a schema of typed questions into a probability for every allowed option, in a single forward pass. It is not a chat model — mlx_vlm.generate , mlx_lm.generate , and LM Studio will load the backbone but produce meaningless text. Use the bundled clef_mlx.py loader, which runs the backbone and the joint schema head.

Usage
pip install mlx-vlm huggingface_hub   # no torch needed
import sys
from huggingface_hub import snapshot_download

path = snapshot_download("mlx-community/clef-flash-4bit")
sys.path.insert(0, path)
import clef_mlx

model = clef_mlx.load(path)
response = model.systemone({
    "model": "clef-flash",
    "state": "Our checkout started returning errors and orders are blocked.",
    "questions": {
        "department": {
            "type": "choice",
            "instructions": "Which team should handle the message?",
            "criteria": {"billing": "Payments or invoices", "technical": "Bugs or outages"},
        },
        "urgency": {"type": "score", "criteria": ["Can wait", "This week", "Today"]},
        "outage": {"type": "noul", "instructions": "Is a service down?"},
    },
})
print(response["answers"])

Images (PIL) and videos (frame arrays) go in images / videos , as in the original:

from PIL import Image
model.predict({
    "state": {"task": "Review the attached receipt."},
    "images": [Image.open("receipt.jpg")],
    "questions": {"legible": {"type": "noul", "instructions": "Is the receipt total legible?"}},
})

See the original model card for the input format, question types, and benchmarks.

Conversion
  • Backbone: mlx_vlm.convert -q --q-bits 4 --q-group-size 64 (vision tower kept in bf16).
  • Joint schema head: joint_head.safetensors copied unchanged (bf16) and run by clef_mlx.py .
  • processor_config.json is the original from Cloudflare/clef-flash; prompt/token layout matches the reference joint_schema_model.py exactly (images and video).
Parity vs. official PyTorch implementation (bf16)
Inputs Top answer agrees Max abs Δprob
Text (4 records, 10 questions) 10/10 0.029
Images + video (5 records, 9 questions) 9/9 0.119

Measured on an M5 Max (128 GB). Small spot-check, not a full benchmark run.

License

Apache-2.0, following Cloudflare/clef-flash .

Runs of mlx-community clef-flash-4bit on huggingface.co

7.1K
Total runs
-547
24-hour runs
-1.3K
3-day runs
-402
7-day runs
6.0K
30-day runs

More Information About clef-flash-4bit huggingface.co Model

More clef-flash-4bit license Visit here:

https://choosealicense.com/licenses/apache-2.0

clef-flash-4bit huggingface.co

clef-flash-4bit huggingface.co is an AI model on huggingface.co that provides clef-flash-4bit's model effect (), which can be used instantly with this mlx-community clef-flash-4bit model. huggingface.co supports a free trial of the clef-flash-4bit model, and also provides paid use of the clef-flash-4bit. Support call clef-flash-4bit model through api, including Node.js, Python, http.

mlx-community clef-flash-4bit online free

clef-flash-4bit huggingface.co is an online trial and call api platform, which integrates clef-flash-4bit's modeling effects, including api services, and provides a free online trial of clef-flash-4bit, you can try clef-flash-4bit online for free by clicking the link below.

mlx-community clef-flash-4bit online free url in huggingface.co:

https://huggingface.co/mlx-community/clef-flash-4bit

clef-flash-4bit install

clef-flash-4bit is an open source model from GitHub that offers a free installation service, and any user can find clef-flash-4bit on GitHub to install. At the same time, huggingface.co provides the effect of clef-flash-4bit install, users can directly use clef-flash-4bit installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

clef-flash-4bit install url in huggingface.co:

https://huggingface.co/mlx-community/clef-flash-4bit

Url of clef-flash-4bit

Provider of clef-flash-4bit huggingface.co

mlx-community
ORGANIZATIONS

Other API from mlx-community