Image-Text-to-Text
Transformers
Safetensors
qwen3_5
clef
cloudflare
systemone
decision-model
qwen3.8
post-train
image-text-to-typed-output
multimodal
structured-output
classification
custom-code
conversational
Eval Results
Instructions to use Cloudflare/clef with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Cloudflare/clef with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Cloudflare/clef") 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("Cloudflare/clef") model = AutoModelForMultimodalLM.from_pretrained("Cloudflare/clef", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Cloudflare/clef with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Cloudflare/clef" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Cloudflare/clef", "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/Cloudflare/clef
- SGLang
How to use Cloudflare/clef 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 "Cloudflare/clef" \ --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": "Cloudflare/clef", "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 "Cloudflare/clef" \ --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": "Cloudflare/clef", "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" } } ] } ] }' - Docker Model Runner
How to use Cloudflare/clef with Docker Model Runner:
docker model run hf.co/Cloudflare/clef
Commit History
6 days ago
-
Add safeagents judge bench v2 results (#17)
- Add safeagents judge bench v2 results (0b946c8674d7a193f185bc2cfb23ccf6710f4bbd) Co-authored-by: Younes B <ybelkada@users.noreply.huggingface.co>171287b
17 days ago
-
Add safeagents judge bench results (#15)
- Add safeagents judge bench results (8a8149f8fd38bb8cb8b927b25b82b927df5568e0) Co-authored-by: Younes B <ybelkada@users.noreply.huggingface.co>cfddda0
28 days ago
-
Add Typed Decisions benchmark eval results (#12)
- Add Typed Decisions benchmark eval results (384ee7c2824ba6b95947043791bd22d1dbd0a560) Co-authored-by: Nathan Habib <SaylorTwift@users.noreply.huggingface.co>a30162b
-
Add SGLang cookbook and launch command to model card
Verified signature0b33120
-
Add decision-model tag (#9)
- Add decision-model tag (2f064882fb680a21d63742186a5c4da488f52474) Co-authored-by: Victor Mustar <victor@users.noreply.huggingface.co>ed3eed3
-
Link announcement blog and Decision Index leaderboard
Verified signature2f3de3d -
Restore base_model_relation: finetune; note optional instructions
Verified signature2bc978e -
Decision Index: drop # column, add latency rows
Verified signature7510eee -
Add systemone: Jev/SystemOne-compatible request and response API
Verified signaturea20e258 -
Note Jev and SystemOne API compatibility
Verified signaturebace2d8 -
Update README.md
Verified signature2656c31
-
Remove cases column from workflow eval table
Verified signature6eeb804 -
Add model card
Verified signature5b142b1 -
Add clef weights, joint schema head, code, and processor
Verified signature1292a46 -
initial commit
Verified signature4df32f5