The language model of [Cloudflare/clairic-flash](https://huggingface.co/Cloudflare/clairic-flash) (9B, Qwen3.5 architecture) converted to 8-bit [MLX](https://github.com/ml-explore/mlx) for `mlx-lm`; the vision tower and the scoring head of the original are not included.
## How to run
```sh
pip install mlx-lm==0.32.2
mlx_lm.generate --model Xylolabs/clairic-flash-MLX-8bit --prompt 'Summarize the invoice: Northwind Supply, 2026-09-02, pens and paper, total $1080.00.'
mlx_lm.chat --model Xylolabs/clairic-flash-MLX-8bit
```
## Accuracy
Against BF16.
| Quant | Size | WikiText-2 KL | top-1 | Chat KL | top-1 | Held-out KL | top-1 |
|---|---:|---:|---:|---:|---:|---:|---:|
| MLX 8-bit | 9.51 GB | 0.001655 | 98.848% | 0.004075 | 98.461% | 0.000569 | 99.039% |
## 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 75% of the memory, the default macOS GPU limit.
| Hardware | Memory | File | Context |
|---|---|---|---:|
| Mac Studio M5 Max, 32-core GPU | 36 GB unified | `Xylolabs/clairic-flash-MLX-8bit` (8-bit, 9.5 GB) | 256K |
| Mac Studio M5 Max, 40-core GPU | 48 GB unified | `Xylolabs/clairic-flash-MLX-8bit` (8-bit, 9.5 GB) | 256K |
| Mac Studio M5 Max, 40-core GPU | 64 GB unified | `Xylolabs/clairic-flash-MLX-8bit` (8-bit, 9.5 GB) | 256K |
| Mac Studio M5 Ultra | 96 GB unified | `Xylolabs/clairic-flash-MLX-8bit` (8-bit, 9.5 GB) | 256K |
| Mac Studio M5 Max, 40-core GPU | 128 GB unified | `Xylolabs/clairic-flash-MLX-8bit` (8-bit, 9.5 GB) | 256K |
| Mac Studio M5 Ultra | 256 GB unified | `Xylolabs/clairic-flash-MLX-8bit` (8-bit, 9.5 GB) | 256K |
| Mac Studio M5 Ultra, 80-core GPU | 512 GB unified | `Xylolabs/clairic-flash-MLX-8bit` (8-bit, 9.5 GB) | 256K |
## License and notices
Apache License 2.0, copied in `LICENSE`. We quantized the language-model weights to MLX 8-bit; the vision tower, scoring head and Python runtime are left out.
## Updates
- 2026-11-22: Added a hardware recommendation table.
- 2026-11-22: First release.