File size: 3,758 Bytes
c09c091
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40eec2b
c09c091
 
 
 
 
40eec2b
c09c091
 
 
 
 
 
 
 
 
 
 
 
d92cac3
c09c091
 
 
f942684
c09c091
 
 
 
 
 
 
 
 
 
 
6122722
 
f942684
 
 
 
 
 
 
 
 
 
 
6122722
c09c091
 
d92cac3
c09c091
5a53894
 
6122722
5a53894
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
---
license: apache-2.0
license_link: LICENSE
base_model:
- Cloudflare/clairic-flash
base_model_relation: quantized
library_name: mlx
pipeline_tag: text-generation
tags:
- mlx
- quantized
- clairic
- qwen3_5
---

<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 MLX 8-bit</h1>

[![Base model](https://img.shields.io/badge/base-Cloudflare%2Fclairic--flash-blue)](https://huggingface.co/Cloudflare/clairic-flash)
[![Format](https://img.shields.io/badge/format-MLX%208--bit-5B2C83)](#accuracy)
[![License](https://img.shields.io/badge/license-Apache--2.0-green)](https://huggingface.co/Xylolabs/clairic-flash-MLX-8bit/blob/main/LICENSE)
[![Code](https://img.shields.io/badge/code-mlx--lm%200.32.2-black)](https://github.com/ml-explore/mlx-lm)

</div>

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% |

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/Xylolabs/clairic-flash-MLX-8bit/resolve/main/accuracy-kl-dark.png">
  <img src="https://huggingface.co/Xylolabs/clairic-flash-MLX-8bit/resolve/main/accuracy-kl.png" alt="Mean KL divergence by file size">
</picture>

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/Xylolabs/clairic-flash-MLX-8bit/resolve/main/accuracy-top1-dark.png">
  <img src="https://huggingface.co/Xylolabs/clairic-flash-MLX-8bit/resolve/main/accuracy-top1.png" alt="Top-1 agreement by file size">
</picture>

## 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.