clairic-flash-GGUF / README.md
hletrd's picture
Update the model card
7ac5830 verified
|
Raw History Blame Contribute Delete
5.05 kB
---
license: apache-2.0
license_link: LICENSE
base_model:
- Cloudflare/clairic-flash
base_model_relation: quantized
library_name: gguf
pipeline_tag: image-text-to-text
tags:
- gguf
- llama-cpp
- quantized
- clairic
- qwen3_5
- multimodal
- structured-output
- information-extraction
---
<div align="center">
<img class="block dark:hidden mx-auto" src="https://raw.githubusercontent.com/XylolabsInc/tensix-bfp-gptq/main/assets/xylolabs-lockup.svg" alt="Xylolabs" width="256" height="40">
<img class="hidden dark:block mx-auto" src="https://raw.githubusercontent.com/XylolabsInc/tensix-bfp-gptq/main/assets/xylolabs-lockup-dark.svg" alt="Xylolabs" width="256" height="40">
<h1>Clairic Flash GGUF</h1>
[![Base model](https://img.shields.io/badge/base-Cloudflare%2Fclairic--flash-blue)](https://huggingface.co/Cloudflare/clairic-flash)
[![Formats](https://img.shields.io/badge/formats-Q8__0%20%2F%20Q6__K%20%2F%20Q5__K__M%20%2F%20Q4__K__M%20%2F%20Q4__K__S%20%2F%20IQ4__XS%20%2F%20Q3__K__M%20%2F%20IQ3__M%20%2F%20Q2__K-5B2C83)](#files)
[![License](https://img.shields.io/badge/license-Apache--2.0-green)](https://huggingface.co/Xylolabs/clairic-flash-GGUF/blob/main/LICENSE)
[![Code](https://img.shields.io/badge/code-llama.cpp-black)](https://github.com/ggml-org/llama.cpp)
</div>
GGUF quants of [Cloudflare/clairic-flash](https://huggingface.co/Cloudflare/clairic-flash) (9B, a fine-tune of [Qwen/Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B) 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-flash-Q8_0.gguf` | 9.53 GB |
| `clairic-flash-Q6_K.gguf` | 7.37 GB |
| `clairic-flash-Q5_K_M.gguf` | 6.50 GB |
| `clairic-flash-Q4_K_M.gguf` | 5.69 GB |
| `clairic-flash-Q4_K_S.gguf` | 5.37 GB |
| `clairic-flash-IQ4_XS.gguf` | 5.27 GB |
| `clairic-flash-Q3_K_M.gguf` | 4.69 GB |
| `clairic-flash-IQ3_M.gguf` | 4.48 GB |
| `clairic-flash-Q2_K.gguf` | 3.93 GB |
| `mmproj-clairic-flash-BF16.gguf` | 0.92 GB |
| `clairic-flash.imatrix.gguf` | 8.8 MB |
## How to run
```sh
llama-server -m clairic-flash-Q4_K_M.gguf --mmproj mmproj-clairic-flash-BF16.gguf \
--jinja -ngl 99 -c 32768 --chat-template-kwargs '{"enable_thinking":false}'
```
Use llama.cpp e4b620af1 or newer.
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).
## 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 | 9.53 GB | 0.0072 | 97.95% |
| Q6_K | 7.37 GB | 0.0132 | 96.94% |
| Q5_K_M | 6.50 GB | 0.0203 | 95.98% |
| Q4_K_M | 5.69 GB | 0.0293 | 94.72% |
| Q4_K_S | 5.37 GB | 0.0507 | 93.13% |
| IQ4_XS | 5.27 GB | 0.0562 | 92.61% |
| Q3_K_M | 4.69 GB | 0.1636 | 87.62% |
| IQ3_M | 4.48 GB | 0.1510 | 87.25% |
| Q2_K | 3.93 GB | 0.1670 | 86.37% |
<img class="dark:hidden" src="https://huggingface.co/Xylolabs/clairic-flash-GGUF/resolve/main/kl.png" alt="clairic-flash-GGUF mean KL divergence" />
<img class="hidden dark:block" src="https://huggingface.co/Xylolabs/clairic-flash-GGUF/resolve/main/kl-dark.png" alt="clairic-flash-GGUF mean KL divergence" />
<img class="dark:hidden" src="https://huggingface.co/Xylolabs/clairic-flash-GGUF/resolve/main/top1.png" alt="clairic-flash-GGUF top-1 accuracy" />
<img class="hidden dark:block" src="https://huggingface.co/Xylolabs/clairic-flash-GGUF/resolve/main/top1-dark.png" alt="clairic-flash-GGUF top-1 accuracy" />
## Which file for your hardware
| Hardware | Memory | File | Context |
|---|---|---|---:|
| RTX 4090 / RTX 3090 | 24 GB | `clairic-flash-Q8_0.gguf` (9.5 GB) | 256K |
| RTX 5090 | 32 GB | `clairic-flash-Q8_0.gguf` (9.5 GB) | 256K |
| RTX 6000 Ada, or 2 x 24 GB | 48 GB | `clairic-flash-Q8_0.gguf` (9.5 GB) | 256K |
| One H100 | 80 GB | `clairic-flash-Q8_0.gguf` (9.5 GB) | 256K |
| RTX PRO 6000 Blackwell (GDDR7) | 96 GB | `clairic-flash-Q8_0.gguf` (9.5 GB) | 256K |
| DGX Spark | 128 GB unified | `clairic-flash-Q8_0.gguf` (9.5 GB) | 256K |
| Mac Studio M5 Max | 128 GB unified | `clairic-flash-Q8_0.gguf` (9.5 GB) | 256K |
| One H200 (HBM3e) | 141 GB | `clairic-flash-Q8_0.gguf` (9.5 GB) | 256K |
| One B200 | 192 GB | `clairic-flash-Q8_0.gguf` (9.5 GB) | 256K |
| Mac Studio M5 Ultra | 256 GB unified | `clairic-flash-Q8_0.gguf` (9.5 GB) | 256K |
| Mac Studio M5 Ultra | 512 GB unified | `clairic-flash-Q8_0.gguf` (9.5 GB) | 256K |
| One B300 (HBM3e) | 288 GB | `clairic-flash-Q8_0.gguf` (9.5 GB) | 256K |
## License
Apache License 2.0, copied in `LICENSE`. We converted the weights to GGUF and quantized them.
## Updates
- 2026-11-24: Added files from two other providers to the charts.
- 2026-11-22: Added the required llama.cpp build.
- 2026-11-22: Added mean KL and top-1 for the replaced `clairic-flash-Q4_K_M.gguf` and `clairic-flash-Q2_K.gguf` to the accuracy table and charts.