hletrd commited on
Commit
52009e1
·
verified ·
1 Parent(s): 108e6f7

Update size-accuracy curves in light and dark themes

Browse files
.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
- - `clairic-flash-<QUANT>.gguf` is one file per quant: the language model.
39
- - `mmproj-clairic-flash-BF16.gguf` is the vision encoder, for image input.
40
- - `clairic-flash.imatrix.gguf` is the importance matrix.
41
-
42
- | Quant | Size | PPL | Mean KL vs f32 reference | Same top-1 vs f32 reference |
43
- |---|---|---|---|---|
44
- | Q8_0 | 9.53 GB | 6.0278 | 0.0072 | 97.95% |
45
- | Q6_K | 7.37 GB | 6.0361 | 0.0132 | 96.94% |
46
- | Q5_K_M | 6.50 GB | 5.9699 | 0.0203 | 95.98% |
47
- | Q4_K_M | 5.69 GB | 5.9742 | 0.0468 | 93.47% |
48
- | Q4_K_S | 5.37 GB | 5.9592 | 0.0507 | 93.13% |
49
- | IQ4_XS | 5.27 GB | 6.2223 | 0.0562 | 92.61% |
50
- | Q3_K_M | 4.69 GB | 5.7594 | 0.1636 | 87.62% |
51
- | IQ3_M | 4.48 GB | 6.7828 | 0.1510 | 87.25% |
52
- | Q2_K | 3.93 GB | 5.3667 | 0.3112 | 82.22% |
53
-
54
- The reference is the model in transformers with f32 compute on Cloudflare's BF16 weights (PPL 6.0592). KL, top-1 and PPL are scored on 12 chunks of 4,096 tokens, the last 2,047 tokens of each (24,564 tokens): 9 held-out chat-formatted chunks (English, Korean, code, math, JSON extraction from a schema, and Clairic's own field-extraction prompts) and 3 from wikitext-2.
55
-
56
- ![Mean KL and same top-1 against the f32 reference by file size](kl.png)
 
 
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

  • SHA256: d370c94ae0349b8d83f8b28a82129876535434a191a37f48c485de142327a694
  • Pointer size: 131 Bytes
  • Size of remote file: 131 kB
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

  • SHA256: 2ff3493622edf0a404aea69c4f5368a90e87d5cf39281261714665d5f0d1d87f
  • Pointer size: 131 Bytes
  • Size of remote file: 134 kB
kl.png CHANGED

Git LFS Details

  • SHA256: d6b627dbd158b312ec4f28d94e15704adb2749d6da152730728d4e69dfb6615c
  • Pointer size: 131 Bytes
  • Size of remote file: 125 kB

Git LFS Details

  • SHA256: 2ff3493622edf0a404aea69c4f5368a90e87d5cf39281261714665d5f0d1d87f
  • Pointer size: 131 Bytes
  • Size of remote file: 134 kB