Cloudflare/clef-omni

Model

Clef-Omni

127

5 commits

3 repos using this model

1 linked in READMEs

updated Oct 9, 2026

See the code

README

Clef-Omni

Clef-Omni is a 30B-A3B mixture-of-experts multimodal model that turns a state and a schema of typed questions into decisions. It reads the state as text, JSON, images, audio, or video, and returns a probability for every allowed option of every question in a single forward pass. There is no free-form text generation and no output parsing.

The Clef-Omni API is fully compatible with Jev and SystemOne.

Clef-Omni is post-trained from Qwen/Qwen3-Omni-30B-A3B-Instruct. See Clef and Clef-Flash for the dense image and video variants.

Model

  • Backbone: the Qwen/Qwen3-Omni-30B-A3B-Instruct thinker with its vision and audio encoders, stored as standard sharded safetensors. The base model's speech-output weights (talker and code2wav) are included unchanged but are not used; load_release_model does not load them.
  • Joint schema head: a small transformer head that reads the backbone's final hidden states, routes evidence from the state to each question, and scores all options of all questions jointly.
  • Output: one logit per allowed option for each question. Apply a softmax per question to get probabilities.

Files

FilePurpose
model-*.safetensors, model.safetensors.index.json, config.json, generation_config.jsonBackbone, including the vision and audio encoders
joint_head.safetensors, joint_head_config.jsonJoint schema head
joint_schema_model.pyRecord encoding, media decoding, batching, the model, load_release_model, and systemone
tokenizer.json, tokenizer_config.json, chat_template.jinja, processor_config.jsonTokenizer and image/audio/video processor
LICENSEApache-2.0 license

Usage

Tested with torch 2.11 and transformers 5.10.2 on a single H200; the backbone needs about 64 GB of GPU memory in bfloat16. Image inputs also need pillow, and audio and video files need av.

import sys

import torch
from huggingface_hub import snapshot_download

path = snapshot_download("Cloudflare/clef-omni")
sys.path.insert(0, path)
from joint_schema_model import collate_records, encode_record, load_release_model

model, processor = load_release_model(path, device="cuda")

record = {
    "state": {"invoice": {"vendor": "Acme", "total": 1250.0, "currency": "USD", "status": "overdue"}},
    "questions": {
        "status": {
            "type": "choice",
            "instructions": "What is the invoice status?",
            "criteria": {"paid": "Invoice is paid.", "overdue": "Invoice is past due.", "draft": "Not sent."},
        },
        "large": {"type": "noul", "instructions": "Is the total above 1000 USD?"},
    },
}

encoded = encode_record(processor.tokenizer, record, processor=processor)
batch = collate_records([encoded], processor.tokenizer.pad_token_id, torch.device("cuda"))
with torch.inference_mode():
    logits = model(batch)[0]

for question, question_logits in zip(encoded.questions, logits):
    probabilities = question_logits.float().softmax(-1).tolist()
    print(question.question_id, dict(zip(question.option_ids, probabilities)))

Jev / SystemOne API

systemone takes a Jev/SystemOne POST /v1/systemone request body and returns the same response body: model, answers keyed by question ID, and usage. A choice answer has choice, confidence, and probabilities; a score answer has the expected score, confidence, legend, and probabilities; a noul answer has the probability of true. instructions is optional, and images, audio, and videos (base64 data URLs) may be added to the request.

from joint_schema_model import systemone

response = systemone(model, processor, {
    "model": "clef-omni",
    "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, audio, and video

Add images, audio, or videos to the record and pass the processor to encode_record. Each item can be a file path, URL, base64 data URL, or raw bytes. Images may also be PIL images, audio may be 16 kHz mono sample arrays, and videos may be RGB frame arrays sampled at 2 frames per second. Video files are sampled at 2 frames per second, and their soundtracks are heard alongside the frames when every video in the record has one. Optional processor arguments go in media_kwargs.

record = {
    "state": {"task": "Review the attached call recording and dashcam clip."},
    "audio": ["call.wav"],
    "videos": ["dashcam.mp4"],
    "questions": {
        "glass": {"type": "noul", "instructions": "Is glass breaking in the audio clip?"},
        "collision": {"type": "noul", "instructions": "Does the video show a collision?"},
    },
}
encoded = encode_record(processor.tokenizer, record, processor=processor)

Text-only and multimodal records can be mixed in the same batch.

SGLang

Use SGLang (coming soon!)

Input format

FieldDescription
stateAny JSON value or string describing the situation
imagesOptional list of images
audioOptional list of audio clips
videosOptional list of videos
media_kwargsOptional keyword arguments for the processor
questionsMapping of question ID to question

Each question has:

  • type: noul (true/false), choice (named options), or score (ordered options)
  • instructions: what to decide; optional, and the question ID is used when it is omitted
  • criteria: for choice, a mapping of option ID to description; for score, a list of option descriptions indexed from 0; for noul, optional descriptions for true and false

encode_record accepts max_length (default 64,000 tokens) and max_state_tokens to bound the input.

Results

Decision Index

Per-benchmark results from our internal run of the Decision Index 0.2.1 suite. Scores are percentages; ForecastBench is a Brier score, where lower is better. The best value in each row is in bold.

BenchmarkClef-OmniClefClef-flashJev
BFCL (case exact accuracy)98.298.598.895.8
ToolRet (nDCG@10)66.669.266.465.3
API-Bank (accuracy)92.791.993.188.2
BANKING77 (macro-F1)94.894.290.979.7
CLINC150+OOS (macro-F1)97.797.466.889.3
RouterBench (selected quality)79.979.779.979.9
Home appliance simulator (case exact accuracy)69.383.097.752.3
SGD/SGD-X (macro-F1)39.243.834.243.0
ContractNLI (macro-F1)80.381.484.371.7
ANLI (macro-F1)65.569.859.174.8
BPoMP (accuracy)96.896.995.490.6
Humicroedit (accuracy)70.166.775.161.9
POP909-CL (accuracy)2.615.81.618.1
cfcolor (accuracy)62.966.065.864.7
MMLU (accuracy)92.790.391.891.7
GPQA Diamond (accuracy)47.448.051.078.3
ARC-Easy (accuracy)99.899.099.599.3
ARC-Challenge (accuracy)97.897.798.397.8
WinoGrande (accuracy)96.793.597.592.0
HellaSwag (accuracy)99.198.298.694.5
GSM8K (accuracy)79.080.867.379.9
ChessBench (accuracy)22.124.723.017.2
MuSR (accuracy)83.883.586.066.1
SATA-Bench (case exact accuracy)31.933.836.726.4
BRIGHT (nDCG@10)42.045.939.347.5
Amazon ESCI (macro-F1)57.857.557.455.2
ACOS (per-review F1)28.433.325.929.5
FinEntity (macro-F1)96.396.297.187.0
VAST (macro-F1)50.959.549.664.6
NLI4CT (macro-F1)76.882.978.684.1
CRUXEval (accuracy)88.886.786.173.0
CLadder (accuracy)97.294.097.772.6
ForecastBench (Brier, lower is better)11.713.910.617.4
Habermas Machine (accuracy)67.868.771.845.9
PhishNChips (accuracy)73.279.675.062.5
MMLU-Pro (accuracy)70.665.965.382.7
BBH (accuracy)69.073.768.992.9
RAGTruth (hallucination F1)42.079.435.676.5
HoVer (accuracy)64.265.261.272.9
When2Call MCQ (accuracy)63.372.465.681.0
New Yorker (accuracy)64.269.566.170.1

Workflow evals

Decision accuracy on four end-to-end business workflows from Typesafe Evals, scored against consensus reference labels. All models are scored on the same dataset revision and case cohort.

WorkflowMetricClef-OmniClefClef-flashJev
Invoice processingExact actions60.264.757.161.8
Invoice processingPrimary action82.086.273.383.1
Customer serviceExact actions71.676.377.076.0
Security incidentsExact actions61.762.961.761.7
Agent trace observabilityPrimary action65.868.569.871.6

License

Released under the Apache-2.0 license, following the base model Qwen/Qwen3-Omni-30B-A3B-Instruct.

audio
classification
clef
cloudflare
conversational
custom-code
decision-model
endpoints_compatible
image-text-to-text
image-text-to-typed-output
multimodal
post-train
qwen3-omni
qwen3_omni_moe
safetensors
structured-output
systemone
text-to-audio
transformers
video

Cloudflare/clef-omni

Model

Clef-Omni

127

5 commits

3 repos using this model

1 linked in READMEs

updated Oct 9, 2026

See the code

README

Clef-Omni

Clef-Omni is a 30B-A3B mixture-of-experts multimodal model that turns a state and a schema of typed questions into decisions. It reads the state as text, JSON, images, audio, or video, and returns a probability for every allowed option of every question in a single forward pass. There is no free-form text generation and no output parsing.

The Clef-Omni API is fully compatible with Jev and SystemOne.

Clef-Omni is post-trained from Qwen/Qwen3-Omni-30B-A3B-Instruct. See Clef and Clef-Flash for the dense image and video variants.

Model

  • Backbone: the Qwen/Qwen3-Omni-30B-A3B-Instruct thinker with its vision and audio encoders, stored as standard sharded safetensors. The base model's speech-output weights (talker and code2wav) are included unchanged but are not used; load_release_model does not load them.
  • Joint schema head: a small transformer head that reads the backbone's final hidden states, routes evidence from the state to each question, and scores all options of all questions jointly.
  • Output: one logit per allowed option for each question. Apply a softmax per question to get probabilities.

Files

FilePurpose
model-*.safetensors, model.safetensors.index.json, config.json, generation_config.jsonBackbone, including the vision and audio encoders
joint_head.safetensors, joint_head_config.jsonJoint schema head
joint_schema_model.pyRecord encoding, media decoding, batching, the model, load_release_model, and systemone
tokenizer.json, tokenizer_config.json, chat_template.jinja, processor_config.jsonTokenizer and image/audio/video processor
LICENSEApache-2.0 license

Usage

Tested with torch 2.11 and transformers 5.10.2 on a single H200; the backbone needs about 64 GB of GPU memory in bfloat16. Image inputs also need pillow, and audio and video files need av.

import sys

import torch
from huggingface_hub import snapshot_download

path = snapshot_download("Cloudflare/clef-omni")
sys.path.insert(0, path)
from joint_schema_model import collate_records, encode_record, load_release_model

model, processor = load_release_model(path, device="cuda")

record = {
    "state": {"invoice": {"vendor": "Acme", "total": 1250.0, "currency": "USD", "status": "overdue"}},
    "questions": {
        "status": {
            "type": "choice",
            "instructions": "What is the invoice status?",
            "criteria": {"paid": "Invoice is paid.", "overdue": "Invoice is past due.", "draft": "Not sent."},
        },
        "large": {"type": "noul", "instructions": "Is the total above 1000 USD?"},
    },
}

encoded = encode_record(processor.tokenizer, record, processor=processor)
batch = collate_records([encoded], processor.tokenizer.pad_token_id, torch.device("cuda"))
with torch.inference_mode():
    logits = model(batch)[0]

for question, question_logits in zip(encoded.questions, logits):
    probabilities = question_logits.float().softmax(-1).tolist()
    print(question.question_id, dict(zip(question.option_ids, probabilities)))

Jev / SystemOne API

systemone takes a Jev/SystemOne POST /v1/systemone request body and returns the same response body: model, answers keyed by question ID, and usage. A choice answer has choice, confidence, and probabilities; a score answer has the expected score, confidence, legend, and probabilities; a noul answer has the probability of true. instructions is optional, and images, audio, and videos (base64 data URLs) may be added to the request.

from joint_schema_model import systemone

response = systemone(model, processor, {
    "model": "clef-omni",
    "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, audio, and video

Add images, audio, or videos to the record and pass the processor to encode_record. Each item can be a file path, URL, base64 data URL, or raw bytes. Images may also be PIL images, audio may be 16 kHz mono sample arrays, and videos may be RGB frame arrays sampled at 2 frames per second. Video files are sampled at 2 frames per second, and their soundtracks are heard alongside the frames when every video in the record has one. Optional processor arguments go in media_kwargs.

record = {
    "state": {"task": "Review the attached call recording and dashcam clip."},
    "audio": ["call.wav"],
    "videos": ["dashcam.mp4"],
    "questions": {
        "glass": {"type": "noul", "instructions": "Is glass breaking in the audio clip?"},
        "collision": {"type": "noul", "instructions": "Does the video show a collision?"},
    },
}
encoded = encode_record(processor.tokenizer, record, processor=processor)

Text-only and multimodal records can be mixed in the same batch.

SGLang

Use SGLang (coming soon!)

Input format

FieldDescription
stateAny JSON value or string describing the situation
imagesOptional list of images
audioOptional list of audio clips
videosOptional list of videos
media_kwargsOptional keyword arguments for the processor
questionsMapping of question ID to question

Each question has:

  • type: noul (true/false), choice (named options), or score (ordered options)
  • instructions: what to decide; optional, and the question ID is used when it is omitted
  • criteria: for choice, a mapping of option ID to description; for score, a list of option descriptions indexed from 0; for noul, optional descriptions for true and false

encode_record accepts max_length (default 64,000 tokens) and max_state_tokens to bound the input.

Results

Decision Index

Per-benchmark results from our internal run of the Decision Index 0.2.1 suite. Scores are percentages; ForecastBench is a Brier score, where lower is better. The best value in each row is in bold.

BenchmarkClef-OmniClefClef-flashJev
BFCL (case exact accuracy)98.298.598.895.8
ToolRet (nDCG@10)66.669.266.465.3
API-Bank (accuracy)92.791.993.188.2
BANKING77 (macro-F1)94.894.290.979.7
CLINC150+OOS (macro-F1)97.797.466.889.3
RouterBench (selected quality)79.979.779.979.9
Home appliance simulator (case exact accuracy)69.383.097.752.3
SGD/SGD-X (macro-F1)39.243.834.243.0
ContractNLI (macro-F1)80.381.484.371.7
ANLI (macro-F1)65.569.859.174.8
BPoMP (accuracy)96.896.995.490.6
Humicroedit (accuracy)70.166.775.161.9
POP909-CL (accuracy)2.615.81.618.1
cfcolor (accuracy)62.966.065.864.7
MMLU (accuracy)92.790.391.891.7
GPQA Diamond (accuracy)47.448.051.078.3
ARC-Easy (accuracy)99.899.099.599.3
ARC-Challenge (accuracy)97.897.798.397.8
WinoGrande (accuracy)96.793.597.592.0
HellaSwag (accuracy)99.198.298.694.5
GSM8K (accuracy)79.080.867.379.9
ChessBench (accuracy)22.124.723.017.2
MuSR (accuracy)83.883.586.066.1
SATA-Bench (case exact accuracy)31.933.836.726.4
BRIGHT (nDCG@10)42.045.939.347.5
Amazon ESCI (macro-F1)57.857.557.455.2
ACOS (per-review F1)28.433.325.929.5
FinEntity (macro-F1)96.396.297.187.0
VAST (macro-F1)50.959.549.664.6
NLI4CT (macro-F1)76.882.978.684.1
CRUXEval (accuracy)88.886.786.173.0
CLadder (accuracy)97.294.097.772.6
ForecastBench (Brier, lower is better)11.713.910.617.4
Habermas Machine (accuracy)67.868.771.845.9
PhishNChips (accuracy)73.279.675.062.5
MMLU-Pro (accuracy)70.665.965.382.7
BBH (accuracy)69.073.768.992.9
RAGTruth (hallucination F1)42.079.435.676.5
HoVer (accuracy)64.265.261.272.9
When2Call MCQ (accuracy)63.372.465.681.0
New Yorker (accuracy)64.269.566.170.1

Workflow evals

Decision accuracy on four end-to-end business workflows from Typesafe Evals, scored against consensus reference labels. All models are scored on the same dataset revision and case cohort.

WorkflowMetricClef-OmniClefClef-flashJev
Invoice processingExact actions60.264.757.161.8
Invoice processingPrimary action82.086.273.383.1
Customer serviceExact actions71.676.377.076.0
Security incidentsExact actions61.762.961.761.7
Agent trace observabilityPrimary action65.868.569.871.6

License

Released under the Apache-2.0 license, following the base model Qwen/Qwen3-Omni-30B-A3B-Instruct.

audio
classification
clef
cloudflare
conversational
custom-code
decision-model
endpoints_compatible
image-text-to-text
image-text-to-typed-output
multimodal
post-train
qwen3-omni
qwen3_omni_moe
safetensors
structured-output
systemone
text-to-audio
transformers
video