Instructions to use prithivMLmods/clef-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/clef-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="prithivMLmods/clef-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("prithivMLmods/clef-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use prithivMLmods/clef-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-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf prithivMLmods/clef-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-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf prithivMLmods/clef-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-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf prithivMLmods/clef-GGUF:Q4_K_M
Use Docker
docker model run hf.co/prithivMLmods/clef-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use prithivMLmods/clef-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/clef-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-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-GGUF:Q4_K_M
- SGLang
How to use prithivMLmods/clef-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-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-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-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-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-GGUF with Ollama:
ollama run hf.co/prithivMLmods/clef-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use prithivMLmods/clef-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-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-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use prithivMLmods/clef-GGUF with Docker Model Runner:
docker model run hf.co/prithivMLmods/clef-GGUF:Q4_K_M
- Lemonade
How to use prithivMLmods/clef-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prithivMLmods/clef-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.clef-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use prithivMLmods/clef-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-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-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use prithivMLmods/clef-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-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-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"
Run and chat with the model
lemonade run user.clef-GGUF-List all available models
lemonade listclef-GGUF
Clef is a 27B multimodal decision model from Cloudflare, post-trained from Qwen/Qwen3.8-27B (Apache-2.0). It reads a state given as text, JSON, images, or video, plus a schema of typed questions (
noulfor true/false,choicefor named options,scorefor ordered options). In a single forward pass it returns a probability for every allowed option of every question. A small joint schema head sits on the backbone's final hidden states, routes evidence from the state to each question, and scores all options jointly, so there is no free-form text generation or output parsing. It exposes a Jev/SystemOne-compatible/v1/systemoneAPI, either through the includedjoint_schema_model.pyor by serving with SGLang, for example on a single H200. On the Decision Index 0.2.1 suite it leads or is near the top on many benchmarks, including BANKING77, CLINC150+OOS, BPoMP, GSM8K, CRUXEval, and RAGTruth. It trails Jev on harder reasoning benchmarks such as GPQA Diamond, MMLU-Pro, and BBH. Its median latency is about 209 ms, versus about 39 ms for the smaller Clef-Flash. It also does well on Typesafe workflow evals such as invoice processing and security incidents.
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.BF16.gguf | BF16 | 54.1 GB | Link | Full BF16 weights. Highest quality, largest file size. |
| clef.Q3_K_L.gguf | Q3_K_L | 14.4 GB | Link | Lower quality but usable, good for low RAM availability. |
| clef.Q4_K_M.gguf | Q4_K_M | 16.6 GB | Link | Good quality, default size for most use cases, recommended. |
| clef.Q5_K_M.gguf | Q5_K_M | 19.3 GB | Link | High quality, recommended. |
| clef.Q6_K.gguf | Q6_K | 22.2 GB | Link | Very high quality, near perfect, recommended. |
| clef.mmproj-bf16.gguf | mmproj-bf16 | 931 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.BF16.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.BF16.gguf",
"answers": {
"route": {
"type": "choice",
"choice": "billing",
"probabilities": {
"billing": 0.986925514312472,
"shipping": 0.004216381856971574,
"technical": 0.008858103830556456
},
"confidence": 0.980388271468708
},
"angry": {
"type": "noul",
"noul": 0.4533679942395585
},
"urgency": {
"type": "score",
"score": 1.9306460948859892,
"legend": {
"0": "can wait",
"1": "this week",
"2": "today",
"3": "right now"
},
"probabilities": {
"0": 0.015693993665993344,
"1": 0.24625676944977132,
"2": 0.529758385216488,
"3": 0.20829085166774733
},
"confidence": 0.5140643915504947
}
},
"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
- 348
3-bit
4-bit
5-bit
6-bit
16-bit
Pull the model
# Download Lemonade from https://lemonade-server.ai/