Image-Text-to-Text
GGUF
llama-cpp
quantized
clairic
qwen3_5
multimodal
structured-output
information-extraction
imatrix
conversational
Instructions to use Xylolabs/clairic-flash-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-flash-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-flash-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Xylolabs/clairic-flash-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-flash-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Xylolabs/clairic-flash-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-flash-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Xylolabs/clairic-flash-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Xylolabs/clairic-flash-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Xylolabs/clairic-flash-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Xylolabs/clairic-flash-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-flash-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-flash-GGUF:Q4_K_M
- Ollama
How to use Xylolabs/clairic-flash-GGUF with Ollama:
ollama run hf.co/Xylolabs/clairic-flash-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use Xylolabs/clairic-flash-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-flash-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-flash-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Xylolabs/clairic-flash-GGUF with Docker Model Runner:
docker model run hf.co/Xylolabs/clairic-flash-GGUF:Q4_K_M
- Lemonade
How to use Xylolabs/clairic-flash-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Xylolabs/clairic-flash-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.clairic-flash-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Xylolabs/clairic-flash-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-flash-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-flash-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Xylolabs/clairic-flash-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-flash-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-flash-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"
Update size-accuracy curves in light and dark themes
Browse files- .gitattributes +2 -0
- README.md +40 -19
- accuracy-by-size-dark.png +3 -0
- accuracy-by-size.csv +10 -0
- accuracy-by-size.png +3 -0
- kl.png +2 -2
.gitattributes
CHANGED
|
@@ -45,3 +45,5 @@ clairic-flash-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
|
| 45 |
clairic-flash-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
clairic-flash-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
clairic-flash-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 45 |
clairic-flash-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
clairic-flash-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
clairic-flash-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
accuracy-by-size-dark.png filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
accuracy-by-size.png filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -35,25 +35,27 @@ GGUF quants of [Cloudflare/clairic-flash](https://huggingface.co/Cloudflare/clai
|
|
| 35 |
|
| 36 |
## Files
|
| 37 |
|
| 38 |
-
|
| 39 |
-
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
|
| 43 |
-
|
|
| 44 |
-
|
|
| 45 |
-
|
|
| 46 |
-
|
|
| 47 |
-
|
|
| 48 |
-
|
|
| 49 |
-
|
|
| 50 |
-
| Q3_K_M
|
| 51 |
-
|
|
| 52 |
-
|
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
|
|
|
|
|
|
| 57 |
|
| 58 |
## How to run
|
| 59 |
|
|
@@ -64,6 +66,25 @@ llama-server -m clairic-flash-Q4_K_M.gguf --mmproj mmproj-clairic-flash-BF16.ggu
|
|
| 64 |
|
| 65 |
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.
|
| 66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
## License
|
| 68 |
|
| 69 |
Apache-2.0, in `LICENSE` (Cloudflare's text). We quantized the weights and converted them to GGUF; `NOTICE` names the source model and its copyright holders. Xylolabs is not affiliated with or endorsed by Cloudflare.
|
|
|
|
| 35 |
|
| 36 |
## Files
|
| 37 |
|
| 38 |
+
| File | Contents |
|
| 39 |
+
|---|---|
|
| 40 |
+
| `.gitattributes` | Repository attributes |
|
| 41 |
+
| `LICENSE` | License |
|
| 42 |
+
| `NOTICE` | Notices |
|
| 43 |
+
| `README.md` | Model card |
|
| 44 |
+
| `accuracy-by-size-dark.png` | Accuracy chart, dark theme |
|
| 45 |
+
| `accuracy-by-size.csv` | Accuracy measurements and conditions |
|
| 46 |
+
| `accuracy-by-size.png` | Accuracy chart, light theme |
|
| 47 |
+
| `clairic-flash-IQ3_M.gguf` | Language model |
|
| 48 |
+
| `clairic-flash-IQ4_XS.gguf` | Language model |
|
| 49 |
+
| `clairic-flash-Q2_K.gguf` | Language model |
|
| 50 |
+
| `clairic-flash-Q3_K_M.gguf` | Language model |
|
| 51 |
+
| `clairic-flash-Q4_K_M.gguf` | Language model |
|
| 52 |
+
| `clairic-flash-Q4_K_S.gguf` | Language model |
|
| 53 |
+
| `clairic-flash-Q5_K_M.gguf` | Language model |
|
| 54 |
+
| `clairic-flash-Q6_K.gguf` | Language model |
|
| 55 |
+
| `clairic-flash-Q8_0.gguf` | Language model |
|
| 56 |
+
| `clairic-flash.imatrix.gguf` | Importance matrix |
|
| 57 |
+
| `kl.png` | Accuracy chart, light theme |
|
| 58 |
+
| `mmproj-clairic-flash-BF16.gguf` | Vision encoder |
|
| 59 |
|
| 60 |
## How to run
|
| 61 |
|
|
|
|
| 66 |
|
| 67 |
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.
|
| 68 |
|
| 69 |
+
## Accuracy
|
| 70 |
+
|
| 71 |
+
Mean KL and top-1 agreement against f32 inference on BF16 weights, measured on mixed text.
|
| 72 |
+
|
| 73 |
+
| Quant | Size | Mixed text KL | top-1 |
|
| 74 |
+
|---|---:|---:|---:|
|
| 75 |
+
| **Q8_0** | **9.53 GB** | **0.0072** | **97.95%** |
|
| 76 |
+
| **Q6_K** | **7.37 GB** | **0.0132** | **96.94%** |
|
| 77 |
+
| **Q5_K_M** | **6.50 GB** | **0.0203** | **95.98%** |
|
| 78 |
+
| **Q4_K_M** | **5.69 GB** | **0.0468** | **93.47%** |
|
| 79 |
+
| **Q4_K_S** | **5.37 GB** | **0.0507** | **93.13%** |
|
| 80 |
+
| **IQ4_XS** | **5.27 GB** | **0.0562** | **92.61%** |
|
| 81 |
+
| **Q3_K_M** | **4.69 GB** | **0.1636** | **87.62%** |
|
| 82 |
+
| **IQ3_M** | **4.48 GB** | **0.1510** | **87.25%** |
|
| 83 |
+
| **Q2_K** | **3.93 GB** | **0.3112** | **82.22%** |
|
| 84 |
+
|
| 85 |
+
<img class="block dark:hidden" src="accuracy-by-size.png" alt="Mean KL and top-1 by file size">
|
| 86 |
+
<img class="hidden dark:block" src="accuracy-by-size-dark.png" alt="Mean KL and top-1 by file size">
|
| 87 |
+
|
| 88 |
## License
|
| 89 |
|
| 90 |
Apache-2.0, in `LICENSE` (Cloudflare's text). We quantized the weights and converted them to GGUF; `NOTICE` names the source model and its copyright holders. Xylolabs is not affiliated with or endorsed by Cloudflare.
|
accuracy-by-size-dark.png
ADDED
|
Git LFS Details
|
accuracy-by-size.csv
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
series,quant,file_bytes,size_gb,mean_kl,top1_percent,perplexity,text,reference_compute,source_weights,context_tokens,chunks,scored_tokens_per_chunk,chat_chunks,wikitext2_chunks,tf32,source_rows_sha256
|
| 2 |
+
Xylolabs,Q8_0,9533397664,9.533397664,0.007195,97.952,6.027849,Mixed chat and WikiText-2,transformers f32,Cloudflare/clairic-flash BF16,4096,12,2047,9,3,off,870ae0371b31a6a0bfefbd51322dac0f7ff87f35f61f705645c0010e0adbdab2
|
| 3 |
+
Xylolabs,Q6_K,7366679200,7.3666792,0.013203,96.939,6.036094,Mixed chat and WikiText-2,transformers f32,Cloudflare/clairic-flash BF16,4096,12,2047,9,3,off,870ae0371b31a6a0bfefbd51322dac0f7ff87f35f61f705645c0010e0adbdab2
|
| 4 |
+
Xylolabs,Q5_K_M,6502963872,6.502963872,0.020262,95.982,5.969859,Mixed chat and WikiText-2,transformers f32,Cloudflare/clairic-flash BF16,4096,12,2047,9,3,off,870ae0371b31a6a0bfefbd51322dac0f7ff87f35f61f705645c0010e0adbdab2
|
| 5 |
+
Xylolabs,Q4_K_M,5690055328,5.690055328,0.046823,93.470,5.974161,Mixed chat and WikiText-2,transformers f32,Cloudflare/clairic-flash BF16,4096,12,2047,9,3,off,870ae0371b31a6a0bfefbd51322dac0f7ff87f35f61f705645c0010e0adbdab2
|
| 6 |
+
Xylolabs,Q4_K_S,5366962848,5.366962848,0.050745,93.132,5.959165,Mixed chat and WikiText-2,transformers f32,Cloudflare/clairic-flash BF16,4096,12,2047,9,3,off,870ae0371b31a6a0bfefbd51322dac0f7ff87f35f61f705645c0010e0adbdab2
|
| 7 |
+
Xylolabs,IQ4_XS,5268593312,5.268593312,0.056220,92.611,6.222268,Mixed chat and WikiText-2,transformers f32,Cloudflare/clairic-flash BF16,4096,12,2047,9,3,off,870ae0371b31a6a0bfefbd51322dac0f7ff87f35f61f705645c0010e0adbdab2
|
| 8 |
+
Xylolabs,Q3_K_M,4691073696,4.691073696,0.163561,87.624,5.759370,Mixed chat and WikiText-2,transformers f32,Cloudflare/clairic-flash BF16,4096,12,2047,9,3,off,870ae0371b31a6a0bfefbd51322dac0f7ff87f35f61f705645c0010e0adbdab2
|
| 9 |
+
Xylolabs,IQ3_M,4478737056,4.478737056,0.150981,87.254,6.782814,Mixed chat and WikiText-2,transformers f32,Cloudflare/clairic-flash BF16,4096,12,2047,9,3,off,870ae0371b31a6a0bfefbd51322dac0f7ff87f35f61f705645c0010e0adbdab2
|
| 10 |
+
Xylolabs,Q2_K,3932150432,3.932150432,0.311187,82.222,5.366661,Mixed chat and WikiText-2,transformers f32,Cloudflare/clairic-flash BF16,4096,12,2047,9,3,off,870ae0371b31a6a0bfefbd51322dac0f7ff87f35f61f705645c0010e0adbdab2
|
accuracy-by-size.png
ADDED
|
Git LFS Details
|
kl.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|