How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("image-text-to-text", model="meossistant/clef-flash-8bit")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
pipe(text=messages)
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM

processor = AutoProcessor.from_pretrained("meossistant/clef-flash-8bit")
model = AutoModelForMultimodalLM.from_pretrained("meossistant/clef-flash-8bit", device_map="auto")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
inputs = processor.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=256)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Clef-Flash (8-bit Quantized)

This repository contains the 8-bit quantized version of Cloudflare's Clef-Flash multimodal decision model.

  • Base Model: Cloudflare/clef-flash
  • Quantization: 8-bit Int8 via bitsandbytes
  • Backbone: Qwen3.5-9B
  • Joint Schema Head: Unquantized BF16 precision for accurate scoring and routing
  • Format: Safetensors

Quickstart / Usage

import sys
import torch
from huggingface_hub import snapshot_download

path = snapshot_download("meossistant/clef-flash-8bit")
sys.path.insert(0, path)
from joint_schema_model import load_release_model, systemone

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

response = systemone(model, processor, {
    "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"])

Overview

Clef-Flash is a 9B multimodal model that turns a state and a schema of typed questions into decisions in a single forward pass. This 8-bit quantized version reduces the memory footprint while maintaining near-lossless precision.

Downloads last month
43
Safetensors
Model size
9B params
Tensor type
F32
路
BF16
路
I8
路
Inference Providers NEW
This model isn't deployed by any Inference Provider. 馃檵 Ask for provider support

Model tree for meossistant/clef-flash-8bit

Finetuned
Qwen/Qwen3.5-9B
Quantized
(42)
this model