Clover-35B-A3B-Preview-GGUF
GGUF quantizations of Diffuspace/Clover-35B-A3B-Preview.
[!NOTE] Clover support is not in llama.cpp master. These files were made and checked with commit
4838ffbof llama.cpp PR #31306 (Maphist0:dev-clover), which was not merged at that time.The files are evaluated only by the KL-divergence measurements below, not by task benchmarks, long-context use or speed tests.
Files
| File | Size | Mean KLD | Mix | Quality |
|---|---|---|---|---|
Clover-35B-A3B-Preview-Q4_K_M-hq.gguf |
21.8 GB | 0.0581 | Experts as in Q4_K_M | Same top token as BF16 88.5%; mean KLD 1.4x that of Q8_0 |
Clover-35B-A3B-Preview-IQ4_XS-exps-hq.gguf |
19.4 GB | 0.0675 | Experts IQ4_XS | Same top token as BF16 87.7%; mean KLD 1.6x that of Q8_0 |
Clover-35B-A3B-Preview-IQ3_S-exps-down4-hq.gguf |
17.6 GB | 0.0909 | Experts gate/up IQ3_S, down Q4_K | Same top token as BF16 86.4%; mean KLD 2.2x that of Q8_0 |
Clover-35B-A3B-Preview-IQ3_XXS-exps-down3-hq.gguf |
15.1 GB | 0.1093 | Experts gate/up IQ3_XXS, down IQ3_S | Same top token as BF16 84.9%; mean KLD 2.6x that of Q8_0 |
Clover-35B-A3B-Preview-IQ2_S-exps-down3-hq.gguf |
13.8 GB | 0.1499 | Experts gate/up IQ2_S, down IQ3_S | Same top token as BF16 83.0%; mean KLD 3.6x that of Q8_0 |
imatrix.gguf |
Importance matrix used for all files | |||
tensor-types-*.txt |
--tensor-type-file rules for each file |
All files are Q4_K_M with up to two kinds of changes. The -hq part raises the tensors outside the routed experts to Q8_0: attention, the linear-attention (SSM) projections and the shared expert. The -exps part changes the routed expert tensors (ffn_{gate,up,down}_exps). The tensors that only Clover has (the right-side convolution and the block-softmax parameters of the linear-attention layers) are F32 in every file, as the converter writes them.
Usage
Build llama.cpp at the commit above, then run the same command as the official GGUF with one of these files. llama-speculative-simple reads a raw prompt, so include the chat format:
cat > prompt.txt <<'EOF'
<|im_start|>user
What is diffusion?<|im_end|>
<|im_start|>assistant
<think>
EOF
llama-speculative-simple \
-m Clover-35B-A3B-Preview-IQ4_XS-exps-hq.gguf \
-f prompt.txt \
--spec-type draft-self \
--spec-draft-n-max 15 \
--spec-accept-ratio 0.9 \
--spec-accept-delta 0.6 \
--temp 0 --top-k 1 --seed 42 \
-ctk bf16 -ctv bf16 \
-c 8192 -n 4096 -b 256 -ub 256 \
-ngl 99 -t 8 -tb 8 \
--flash-attn on --color off
--spec-accept-ratio and --spec-accept-delta (the PR's entropy-based draft acceptance) work only with llama-speculative-simple and greedy sampling. llama-server also accepts --spec-type draft-self --spec-draft-n-max 15. Without --spec-type draft-self, the model generates one token at a time like an autoregressive model.
KL divergence
Against the BF16 conversion of the original weights, on English Wikipedia (wikitext-2 test, 8 chunks of 1024 tokens).
| Size | Mean KLD | 99.9% KLD | Same top token | PPL ratio | |
|---|---|---|---|---|---|
Q8_0 (reference, not uploaded; plain llama-quantize Q8_0 of the BF16) |
36.9 GB | 0.0415 | 0.997 | 90.7% | 1.047 |
| Q4_K_M-hq | 21.8 GB | 0.0581 | 1.024 | 88.5% | 1.024 |
| IQ4_XS-exps-hq | 19.4 GB | 0.0675 | 1.420 | 87.7% | 1.049 |
| IQ3_S-exps-down4-hq | 17.6 GB | 0.0909 | 1.825 | 86.4% | 1.005 |
| IQ3_XXS-exps-down3-hq | 15.1 GB | 0.1093 | 1.963 | 84.9% | 1.056 |
| IQ2_S-exps-down3-hq | 13.8 GB | 0.1499 | 2.651 | 83.0% | 1.079 |
BF16 perplexity on this text is 12.07. "Quality" in the Files table is described by the share of tokens whose top prediction matches BF16 and by the mean KLD relative to Q8_0.
How the files were made
- Conversion:
convert_hf_to_gguf.pyof the commit above,--outtype bf16, from revision4b0402bof the original repository (transformers 5.21.0, torch 2.15.0). - Importance matrix:
llama-imatrixon the Q8_0 file over 367 chunks of 512 tokens from bartowski's calibration_datav3 and TFMC's imatrix dataset. About a third of the chunks are wrapped in a Qwen-style chat format, including<think>and tool-call round trips. The KLD text is not in the calibration data. - Quantization:
llama-quantize --imatrix imatrix.gguf --tensor-type-file tensor-types-<name>.txt <BF16> <out> Q4_K_M. - KLD:
llama-perplexity --kl-divergencewith-c 1024, all on the CPU.