File size: 1,899 Bytes
c945482
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
license: apache-2.0
library_name: transformers
pipeline_tag: image-text-to-text
base_model: Cloudflare/clef-flash
base_model_relation: quantized
tags:
- clef
- cloudflare
- systemone
- qwen3.5
- post-train
- image-text-to-typed-output
- multimodal
- structured-output
- classification
- custom-code
- bitsandbytes
- 8-bit
---

# 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](https://huggingface.co/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

```python
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.