Instructions to use Xylolabs/clairic-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Xylolabs/clairic-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 Xylolabs/clairic-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Xylolabs/clairic-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 Xylolabs/clairic-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Xylolabs/clairic-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 Xylolabs/clairic-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Xylolabs/clairic-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Xylolabs/clairic-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Xylolabs/clairic-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Xylolabs/clairic-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": "Xylolabs/clairic-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/Xylolabs/clairic-GGUF:Q4_K_M
- Ollama
How to use Xylolabs/clairic-GGUF with Ollama:
ollama run hf.co/Xylolabs/clairic-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use Xylolabs/clairic-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Xylolabs/clairic-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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Xylolabs/clairic-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Xylolabs/clairic-GGUF with Docker Model Runner:
docker model run hf.co/Xylolabs/clairic-GGUF:Q4_K_M
- Lemonade
How to use Xylolabs/clairic-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Xylolabs/clairic-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.clairic-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Xylolabs/clairic-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 Xylolabs/clairic-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:9931/v1 hermes config set model.default Xylolabs/clairic-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Xylolabs/clairic-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Xylolabs/clairic-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:9931/v1 \ --custom-model-id "Xylolabs/clairic-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"
GGUF quants of Cloudflare/clairic (27B, a fine-tune of Qwen/Qwen3.8-27B for structured extraction) for llama.cpp, with the vision encoder for image input; Cloudflare's typed extraction head and the checkpoint's unused multi-token-prediction block are not in these files.
Files
| File | Size |
|---|---|
clairic-IQ3_M.gguf |
12.818 GB |
clairic-IQ4_XS.gguf |
15.353 GB |
clairic-Q2_K.gguf |
11.105 GB |
clairic-Q3_K_M.gguf |
13.547 GB |
clairic-Q4_K_M.gguf |
16.776 GB |
clairic-Q4_K_S.gguf |
15.632 GB |
clairic-Q5_K_M.gguf |
19.362 GB |
clairic-Q6_K.gguf |
22.110 GB |
clairic-Q8_0.gguf |
28.618 GB |
clairic.imatrix.gguf |
23.38 MB |
mmproj-clairic-BF16.gguf |
931.15 MB |
How to run
llama-server -m clairic-Q4_K_M.gguf --mmproj mmproj-clairic-BF16.gguf \
--jinja -ngl 99 -c 32768 --chat-template-kwargs '{"enable_thinking":false}'
Checked with llama.cpp e4b620af1.
Run it with thinking off, as above, the way Cloudflare's runtime does. For JSON that follows a schema, pass the schema in the request (response_format with json_schema in llama-server, or --json-schema in llama-cli); llama.cpp turns it into a grammar.
Accuracy
Mean KL and top-1 agreement against f32 inference on BF16 weights, measured on mixed text.
| Quant | Size | Mixed text KL | top-1 |
|---|---|---|---|
| Q8_0 | 28.62 GB | 0.0100 | 98.25% |
| Q6_K | 22.11 GB | 0.0161 | 97.35% |
| Q5_K_M | 19.36 GB | 0.0237 | 95.97% |
| Q4_K_M | 16.78 GB | 0.0518 | 93.93% |
| Q4_K_S | 15.63 GB | 0.0566 | 93.55% |
| IQ4_XS | 15.35 GB | 0.0611 | 92.42% |
| Q3_K_M | 13.55 GB | 0.1333 | 89.36% |
| IQ3_M | 12.82 GB | 0.1393 | 88.59% |
| Q2_K | 11.10 GB | 0.2348 | 84.86% |
Which file for your hardware
A file fits when its size plus the KV cache at that context (f16) plus 2 GB for the runtime is under 90% of the memory.
| Hardware | Memory | File | Context |
|---|---|---|---|
| RTX 4090 / RTX 3090 | 24 GB | clairic-Q4_K_M.gguf (16.8 GB) |
32K |
| RTX 5090 | 32 GB | clairic-Q6_K.gguf (22.1 GB) |
64K |
| RTX 6000 Ada, or 2 x 24 GB | 48 GB | clairic-Q8_0.gguf (28.6 GB) |
128K |
| One H100 | 80 GB | clairic-Q8_0.gguf (28.6 GB) |
256K |
| RTX PRO 6000 Blackwell (GDDR7) | 96 GB | clairic-Q8_0.gguf (28.6 GB) |
256K |
| DGX Spark | 128 GB unified | clairic-Q8_0.gguf (28.6 GB) |
256K |
| Mac Studio M5 Max | 128 GB unified | clairic-Q8_0.gguf (28.6 GB) |
256K |
| One H200 (HBM3e) | 141 GB | clairic-Q8_0.gguf (28.6 GB) |
256K |
| One B200 (about 180 GB usable in a DGX B200) | 192 GB | clairic-Q8_0.gguf (28.6 GB) |
256K |
| Mac Studio M5 Ultra | 256 GB unified | clairic-Q8_0.gguf (28.6 GB) |
256K |
| Mac Studio M5 Ultra | 512 GB unified | clairic-Q8_0.gguf (28.6 GB) |
256K |
| One B300 (HBM3e; usable a little less) | 288 GB | clairic-Q8_0.gguf (28.6 GB) |
256K |
License
Apache License 2.0, copied in LICENSE. We converted the weights to GGUF and quantized them.
Updates
- 2026-11-22: Added the llama.cpp build the files were checked with, e4b620af1.
- 2026-11-21: Updated the size and accuracy charts and the table.
- Downloads last month
- 1,880
docker model run hf.co/Xylolabs/clairic-GGUF: