Instructions to use prithivMLmods/clef-flash-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/clef-flash-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="prithivMLmods/clef-flash-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("prithivMLmods/clef-flash-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use prithivMLmods/clef-flash-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf prithivMLmods/clef-flash-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf prithivMLmods/clef-flash-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf prithivMLmods/clef-flash-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf prithivMLmods/clef-flash-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf prithivMLmods/clef-flash-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf prithivMLmods/clef-flash-GGUF:Q4_K_M
Use Docker
docker model run hf.co/prithivMLmods/clef-flash-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use prithivMLmods/clef-flash-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/clef-flash-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/clef-flash-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/prithivMLmods/clef-flash-GGUF:Q4_K_M
- SGLang
How to use prithivMLmods/clef-flash-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "prithivMLmods/clef-flash-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/clef-flash-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "prithivMLmods/clef-flash-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/clef-flash-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Ollama
How to use prithivMLmods/clef-flash-GGUF with Ollama:
ollama run hf.co/prithivMLmods/clef-flash-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use prithivMLmods/clef-flash-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf prithivMLmods/clef-flash-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "prithivMLmods/clef-flash-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use prithivMLmods/clef-flash-GGUF with Docker Model Runner:
docker model run hf.co/prithivMLmods/clef-flash-GGUF:Q4_K_M
- Lemonade
How to use prithivMLmods/clef-flash-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prithivMLmods/clef-flash-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.clef-flash-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use prithivMLmods/clef-flash-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf prithivMLmods/clef-flash-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default prithivMLmods/clef-flash-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use prithivMLmods/clef-flash-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf prithivMLmods/clef-flash-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "prithivMLmods/clef-flash-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
clef-flash-GGUF
Clef-Flash is Cloudflare's 9B multimodal decision model, post-trained from Qwen3.5-9B, with a smaller sibling Clef (the larger variant) alongside it. It reads a state as text, JSON, images or video, plus a schema of typed questions (
noul,choiceorscore), and returns a probability for every allowed option in a single forward pass. A small joint schema head on the backbone's final hidden states routes evidence to each question and scores all options together. There is no free-form generation and no parsing, and the API is compatible with Jev and SystemOne. It can be served with SGLang through/v1/systemone. On the card's run of the Decision Index 0.2.1 suite, it has the best score in its table on many rows. These include BFCL (98.8), API-Bank (93.1), the home appliance simulator (97.7 vs Jev's 52.3), ContractNLI (84.3), MMLU (91.8), WinoGrande (97.5), CLadder (97.7) and ForecastBench (10.6 Brier, lower is better). Its median latency is 38.8 ms against 524.1 ms for Jev. It trails Jev and the larger Clef on knowledge-heavy and retrieval tasks, notably GPQA Diamond (51.0 vs Jev's 78.3), MMLU-Pro (65.3 vs 82.7), BBH (68.9 vs 92.9), HoVer and When2Call. It is also weak on GSM8K (67.3), CLINC150+OOS (66.8), RAGTruth (35.6) and POP909-CL (1.6). On the four Typesafe workflow evals it is mixed against Jev. For example, it is ahead on customer-service exact actions (77.0 vs 76.0) but behind on invoice processing primary action (73.3 vs 83.1). These are Cloudflare's own internal runs. The weights are Apache 2.0.
This is a Decision Model GGUF that supports the llama.cpp
v1/systemoneAPI endpoint.
Model Files
| File Name | Quant Type | File Size | File Link | Description |
|---|---|---|---|---|
| clef-flash.BF16.gguf | BF16 | 18.2 GB | Link | Full BF16 weights. Highest quality, largest file size. |
| clef-flash.Q3_K_L.gguf | Q3_K_L | 4.99 GB | Link | Lower quality but usable, good for low RAM availability. |
| clef-flash.Q3_K_M.gguf | Q3_K_M | 4.66 GB | Link | Low quality. |
| clef-flash.Q4_K_M.gguf | Q4_K_M | 5.72 GB | Link | Good quality, default size for most use cases, recommended. |
| clef-flash.Q4_K_S.gguf | Q4_K_S | 5.38 GB | Link | Slightly lower quality with more space savings, recommended. |
| clef-flash.Q5_K_M.gguf | Q5_K_M | 6.56 GB | Link | High quality, recommended. |
| clef-flash.Q5_K_S.gguf | Q5_K_S | 6.39 GB | Link | High quality, recommended. |
| clef-flash.Q6_K.gguf | Q6_K | 7.46 GB | Link | Very high quality, near perfect, recommended. |
| clef-flash.mmproj-bf16.gguf | mmproj-bf16 | 922 MB | Link | Multimodal projection file in BF16 format. Used for vision/language models. |
Run with llama.cpp (SystemOne API)
1. Start the Server
Launch llama-server with the GGUF model and wait for the health check endpoint to report ready.
import subprocess, time, requests
MODEL_PATH = "/data/llama.cpp/gguf-new/clef-flash.Q5_K_M.gguf"
BASE_URL = "http://127.0.0.1:8080"
server = subprocess.Popen(
[
"/data/llama.cpp/build/bin/llama-server",
"-m", MODEL_PATH,
"--host", "127.0.0.1",
"--port", "8080",
"-ngl", "99",
],
stdout=open("/data/llama-server.log", "w"),
stderr=subprocess.STDOUT,
)
for _ in range(120):
try:
if requests.get(f"{BASE_URL}/health", timeout=2).status_code == 200:
print("server ready")
break
except requests.exceptions.RequestException:
pass
time.sleep(2)
else:
print("server not ready, check /data/llama-server.log")
2. Query the /v1/systemone Endpoint
Send a POST request with a state context and structured questions (choice, noul, or score).
curl -s http://127.0.0.1:8080/v1/systemone \
-H "Content-Type: application/json" \
-d '{
"state": "Customer message: I was charged twice for my order last week and nobody has replied.",
"questions": {
"route": {
"type": "choice",
"instructions": "Which team should handle this?",
"criteria": {
"billing": "payments, charges, refunds, invoices",
"shipping": "delivery, tracking, lost or late parcels",
"technical": "bugs, errors, login problems"
}
},
"angry": {
"type": "noul",
"instructions": "Is the customer angry?"
},
"urgency": {
"type": "score",
"instructions": "How urgent is this?",
"criteria": ["can wait", "this week", "today", "right now"]
}
}
}' | python3 -m json.tool
3. Example Response
{
"model": "/data/llama.cpp/gguf-new/clef-flash.Q5_K_M.gguf",
"answers": {
"route": {
"type": "choice",
"choice": "billing",
"probabilities": {
"billing": 0.9623896424268241,
"shipping": 0.016386611483623886,
"technical": 0.02122374608955196
},
"confidence": 0.9435844636402362
},
"angry": {
"type": "noul",
"noul": 0.3006857290560717
},
"urgency": {
"type": "score",
"score": 2.07962027224278,
"legend": {
"0": "can wait",
"1": "this week",
"2": "today",
"3": "right now"
},
"probabilities": {
"0": 0.037682813278991895,
"1": 0.20006727342403852,
"2": 0.407196741072167,
"3": 0.3550531722248026
},
"confidence": 0.36951392779317516
}
},
"usage": {
"input_tokens": 354,
"output_tokens": 0
}
}
llama.cpp
LLM inference in C/C++ β https://github.com/ggml-org/llama.cpp
Quantized using llama.cpp by prithivMLmods.
- Downloads last month
- -
3-bit
4-bit
5-bit
6-bit
16-bit