Instructions to use Jundot/clef-oQ4e with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Jundot/clef-oQ4e with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("Jundot/clef-oQ4e") config = load_config("Jundot/clef-oQ4e") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use Jundot/clef-oQ4e with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Jundot/clef-oQ4e"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Jundot/clef-oQ4e" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use Jundot/clef-oQ4e with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Jundot/clef-oQ4e"
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 Jundot/clef-oQ4e
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Jundot/clef-oQ4e with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Jundot/clef-oQ4e"
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 "Jundot/clef-oQ4e" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
clef-oQ4e
This model was quantized using oQ mixed-precision quantization.
A mixed-precision MLX checkpoint of Cloudflare/clef, a decision model that answers typed questions (noul, choice, score) about text and images with a probability for each option. It includes the Qwen3.8-27B language backbone, the vision encoder and the joint schema head.
The joint schema head (joint_head.safetensors, joint_head_config.json) is copied unchanged from the source. oMLX serves this checkpoint through POST /v1/systemone once decision model support (jundot/omlx#4315) is available.
The effective average is 5.264 bits/weight for the complete checkpoint.
Quantization and Bit Distribution
- 4-bit affine quantization, group size 64, for most language-backbone projections and the token embeddings.
- 5-bit affine quantization, group size 64, for projections boosted by measured layer sensitivity.
- 6-bit affine quantization, group size 64, for the output projection (
lm_head). - BF16 for the vision encoder, the joint schema head, norms and the remaining small tensors.
The oQ4e allocation uses measured layer sensitivity and importance-matrix calibration (128 samples x 512 tokens, built-in code and multilingual set).
| Storage format | Logical weights | Share of total | Tensor storage | Effective bits/weight |
|---|---|---|---|---|
| Affine 4-bit, group 64 | 22.986B | 81.152% | 12.042 GiB | 4.50 |
| Affine 5-bit, group 64 | 2.636B | 9.305% | 1.687 GiB | 5.50 |
| Affine 6-bit, group 64 | 1.271B | 4.489% | 0.962 GiB | 6.50 |
| BF16 | 1.432B | 5.055% | 2.667 GiB | 16.00 |
| Total | 28.325B | 100% | 17.358 GiB | 5.264 |
Storage Breakdown
| Component | Logical weights | Storage |
|---|---|---|
| Language backbone | 27.736B | 17.461 GB / 16.262 GiB |
| Vision encoder | 0.461B | 0.921 GB / 0.858 GiB |
| Joint schema head | 0.128B | 0.256 GB / 0.239 GiB |
| Total | 28.325B | 18.638 GB / 17.358 GiB |
License
Apache-2.0, following the source model. See LICENSE.
- Downloads last month
- -
4-bit