Image-Text-to-Text
Transformers
Safetensors
qwen3_5
clef
qwen3.8
quark
quantized
mxfp4
awq
amd
rocm
multimodal
structured-output
classification
custom-code
conversational
8-bit precision
Instructions to use EliovpAI/clef-MXFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EliovpAI/clef-MXFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="EliovpAI/clef-MXFP4") 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("EliovpAI/clef-MXFP4") model = AutoModelForMultimodalLM.from_pretrained("EliovpAI/clef-MXFP4", 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 EliovpAI/clef-MXFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EliovpAI/clef-MXFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EliovpAI/clef-MXFP4", "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/EliovpAI/clef-MXFP4
- SGLang
How to use EliovpAI/clef-MXFP4 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 "EliovpAI/clef-MXFP4" \ --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": "EliovpAI/clef-MXFP4", "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 "EliovpAI/clef-MXFP4" \ --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": "EliovpAI/clef-MXFP4", "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 EliovpAI/clef-MXFP4 with Docker Model Runner:
docker model run hf.co/EliovpAI/clef-MXFP4
Download SHA256SUMS from EliovpAI/clef-MXFP4: direct link, hf CLI and curl.
- Browser
- Download file 1.71 kB
-
https://huggingface.co/EliovpAI/clef-MXFP4/resolve/main/SHA256SUMS
- Command line
-
hf download hf://EliovpAI/clef-MXFP4/SHA256SUMS
-
curl -L -o SHA256SUMS https://huggingface.co/EliovpAI/clef-MXFP4/resolve/main/SHA256SUMS
1.71 kB
| bbedc3fda3305820b977265f01b8619d87570a6739de3a5582c3464840f1e57a LICENSE | |
| b95b535bc11c5e9d23b9513617d602bed7f35385d631932e4f910e8061f0ac50 README.md | |
| c3cf9e34abf4f9e36c2d72165aa9c132d3e2a725b6c2586aaa3a8af9d7a81041 chat_template.jinja | |
| 6db1b42d09f2511712d1c87adde4cdfcea30874386b1c2a8cab26480d071452c config.json | |
| 10c72de72349b4732b348170e1d524634f9d8d773311c1260e739055642f4dd3 config.json.orig_with_algo_config | |
| 896eeba60a1195e034dc6b9a7bbddd64b6174992348f5dc7d75daaa93d0bdd45 generation_config.json | |
| a010ac04f078e699988e4049cbea5e62c962393f59fec366640b64e8d69a4953 joint_head.safetensors | |
| 890be585d75b981201eb96a35f98a9967afe37bc8d220cfdea2e72d56507534f joint_head_config.json | |
| 0e304cf7c6500e8bb59bef7e2afd2c6373f82596dfb3b57d1aa93c175e2dc3a3 joint_schema_model.py | |
| 54d83c1d36631de231876217a8e0c2483eccee8746369a482b79442bdfc5d958 model-00001-of-00005.safetensors | |
| c297b7e6fc82d2e3c5d1c12bb42fd3623916f67f5f2434494ef4f0c4d0e1b55d model-00002-of-00005.safetensors | |
| 4b5bfa122e423c26cab22a15e400eeccfc25297e45b2167c1161b7f1f83dcb58 model-00003-of-00005.safetensors | |
| 7f1da563b16446c1a2c4045b64ef2f682051a65825f0b7f2ce87d29b1a234d97 model-00004-of-00005.safetensors | |
| 2fc34ba02fe3052cae5373b3f7eabcf57debac1fdfd94a28575ce317ad7070fb model-00005-of-00005.safetensors | |
| 570248d741fb24649302af2a899d1cbb4c1bf5f7ccaa7fa97984d7a27f5e5ccf model.safetensors.index.json | |
| 3a159dfec9978a186a72ba085e0ad6a050f3968d8b364218d7bd13f5c89381f2 preprocessor_config.json | |
| d89ef49ce9cd37fbf510158e13c1ef063d9286411c1ec9049932dbe0487143b1 processor_config.json | |
| 06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523 tokenizer.json | |
| 91a08f825d370d085d692e04cf117cdd7faad7bf18e996f1e6031b6dab03db72 tokenizer_config.json | |