README.md
20.7 KB · 439 lines · markdown Raw
1 ---
2 quantized_by: bartowski
3 pipeline_tag: image-text-to-text
4 tags:
5 - daisyrose
6 - qwen3.8
7 - reinforcement-learning
8 license: apache-2.0
9 base_model: RadixArk/DaisyRose-27B
10 license_link: https://huggingface.co/RadixArk/DaisyRose-27B/blob/main/LICENSE
11 base_model_relation: quantized
12 ---
13
14 ## Llamacpp imatrix Quantizations of DaisyRose-27B by RadixArk
15
16 Using <a href="https://github.com/ggml-org/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggml-org/llama.cpp/releases/tag/b12412">b12412</a> for quantization.
17
18 Original model: https://huggingface.co/RadixArk/DaisyRose-27B
19
20 **Model details:**
21 - Parameter count: 28B (source checkpoint)
22 - Input support: text, image (with mmproj file) - [details](#multimodal)
23 - Speculative decoding: yes (MTP) - [details](#mtp)
24 - imatrix: yes - [details](#imatrix)
25
26 [How to run](#how-to-run)
27
28 ## Prompt format
29
30 ```
31 <|im_start|>system
32 Reasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.
33
34 {system_prompt}<|im_end|>
35 <|im_start|>user
36 {prompt}<|im_end|>
37 <|im_start|>assistant
38 <think>
39 ```
40
41 <details><summary>Prompt format with tool definitions</summary>
42
43 ```
44 <|im_start|>system
45 Reasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.
46
47 # Tools
48
49 You have access to the following functions:
50
51 <tools>
52 {"type": "function", "function": {"name": "get_stock_price", "description": "Get the current stock price", "parameters": {"type": "object", "properties": {"symbol": {"type": "string", "description": "The stock symbol, e.g. AAPL, GOOG"}}, "required": ["symbol"]}}}
53 </tools>
54
55 If you choose to call a function ONLY reply in the following format with NO suffix:
56
57 <tool_call>
58 <function=example_function_name>
59 <parameter=example_parameter_1>
60 value_1
61 </parameter>
62 <parameter=example_parameter_2>
63 This is the value for the second parameter
64 that can span
65 multiple lines
66 </parameter>
67 </function>
68 </tool_call>
69
70 <IMPORTANT>
71 Reminder:
72 - Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags
73 - Required parameters MUST be specified
74 - You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after
75 - If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls
76 </IMPORTANT>
77
78 {system_prompt}<|im_end|>
79 <|im_start|>user
80 {prompt}<|im_end|>
81 <|im_start|>assistant
82 <think>
83 ```
84
85 </details>
86
87 **Don't know which to choose?** Grab [Q4_K_M](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-Q4_K_M.gguf) (17.33GB) - usually a good mix of size and performance. Download instructions available [here](#downloading-using-the-hugging-face-cli)
88
89 ## Available files:
90
91 | Filename | Quant type | File Size | Split | Description |
92 | -------- | ---------- | --------- | ----- | ----------- |
93 | [RadixArk_DaisyRose-27B-bf16.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/tree/main/RadixArk_DaisyRose-27B-bf16) | bf16 | 54.66GB | true | Full BF16 weights. |
94 | [RadixArk_DaisyRose-27B-Q8_0.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-Q8_0.gguf) | Q8_0 | 29.05GB | false | Extremely high quality, generally unneeded but max available quant. |
95 | [RadixArk_DaisyRose-27B-Q6_K_L.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-Q6_K_L.gguf) | Q6_K_L | 24.88GB | false | The large size of Q6_K, about halfway to Q8_0 in size. Very high quality, near perfect, *recommended*. |
96 | [RadixArk_DaisyRose-27B-Q6_K.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-Q6_K.gguf) | Q6_K | 23.78GB | false | Very high quality, near perfect, *recommended*. |
97 | [RadixArk_DaisyRose-27B-Q6_K_S.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-Q6_K_S.gguf) | Q6_K_S | 22.78GB | false | Very high quality, near perfect, a little smaller than Q6_K with almost all of the model at Q6_K precision, *recommended*. |
98 | [RadixArk_DaisyRose-27B-Q5_K_M.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-Q5_K_M.gguf) | Q5_K_M | 20.79GB | false | High quality, *recommended*. |
99 | [RadixArk_DaisyRose-27B-Q5_K_S.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-Q5_K_S.gguf) | Q5_K_S | 19.49GB | false | High quality, *recommended*. |
100 | [RadixArk_DaisyRose-27B-Q4_K_L.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-Q4_K_L.gguf) | Q4_K_L | 18.74GB | false | The large size of Q4_K, between Q4_K_M and Q5_K_S: more of the most sensitive weights kept at higher precision, *recommended*. |
101 | [RadixArk_DaisyRose-27B-Q4_1.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-Q4_1.gguf) | Q4_1 | 17.75GB | false | Legacy format, similar performance to Q4_K_S but with improved tokens/watt on Apple silicon. |
102 | [RadixArk_DaisyRose-27B-Q4_K_M.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-Q4_K_M.gguf) | Q4_K_M | 17.33GB | false | Good quality, default size for most use cases, *recommended*. |
103 | [RadixArk_DaisyRose-27B-IQ4_NL.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-IQ4_NL.gguf) | IQ4_NL | 17.33GB | false | Similar to IQ4_XS, but slightly larger. |
104 | [RadixArk_DaisyRose-27B-Q4_0.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-Q4_0.gguf) | Q4_0 | 16.27GB | false | Legacy format, kept for compatibility with older tools. |
105 | [RadixArk_DaisyRose-27B-Q4_K_S.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-Q4_K_S.gguf) | Q4_K_S | 16.26GB | false | Slightly lower quality with more space savings, *recommended*. |
106 | [RadixArk_DaisyRose-27B-IQ4_XS.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-IQ4_XS.gguf) | IQ4_XS | 15.37GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
107 | [RadixArk_DaisyRose-27B-IQ3_M.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-IQ3_M.gguf) | IQ3_M | 14.78GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
108 | [RadixArk_DaisyRose-27B-Q3_K_L.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-Q3_K_L.gguf) | Q3_K_L | 14.01GB | false | Lower quality but usable, good for low RAM availability. |
109 | [RadixArk_DaisyRose-27B-Q3_K_M.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-Q3_K_M.gguf) | Q3_K_M | 13.33GB | false | Low quality. |
110 | [RadixArk_DaisyRose-27B-IQ3_XS.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-IQ3_XS.gguf) | IQ3_XS | 12.72GB | false | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
111 | [RadixArk_DaisyRose-27B-Q3_K_S.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-Q3_K_S.gguf) | Q3_K_S | 12.66GB | false | Low quality, *not* recommended. |
112 | [RadixArk_DaisyRose-27B-IQ3_XXS.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-IQ3_XXS.gguf) | IQ3_XXS | 12.17GB | false | Lower quality, new method with decent performance, comparable to Q3 quants. |
113 | [RadixArk_DaisyRose-27B-Q2_K.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-Q2_K.gguf) | Q2_K | 10.82GB | false | Very low quality but surprisingly usable. |
114 | [RadixArk_DaisyRose-27B-IQ2_M.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-IQ2_M.gguf) | IQ2_M | 10.36GB | false | Relatively low quality, uses SOTA techniques to be surprisingly usable. |
115 | [RadixArk_DaisyRose-27B-IQ2_S.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-IQ2_S.gguf) | IQ2_S | 9.56GB | false | Low quality, uses SOTA techniques to be usable. |
116 | [RadixArk_DaisyRose-27B-IQ2_XS.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-IQ2_XS.gguf) | IQ2_XS | 9.00GB | false | Low quality, uses SOTA techniques to be usable. |
117 | [RadixArk_DaisyRose-27B-IQ2_XXS.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-IQ2_XXS.gguf) | IQ2_XXS | 8.76GB | false | Very low quality, uses SOTA techniques to be usable. |
118
119 Download a specific file:
120
121 ```
122 hf download bartowski/RadixArk_DaisyRose-27B-GGUF --include "RadixArk_DaisyRose-27B-Q4_K_M.gguf" --local-dir ./
123 ```
124
125 ## Downloading using the Hugging Face CLI
126
127 <details>
128 <summary>Click to view download instructions</summary>
129
130 First, make sure you have the Hugging Face CLI installed:
131
132 ```
133 pip install -U "huggingface_hub[cli]"
134 ```
135
136 Download a specific file:
137
138 ```
139 hf download bartowski/RadixArk_DaisyRose-27B-GGUF --include "RadixArk_DaisyRose-27B-Q4_K_M.gguf" --local-dir ./
140 ```
141
142 The files marked `true` in the Split column above are stored as multiple parts in a folder. To download all the parts to a local folder, run:
143
144 ```
145 hf download bartowski/RadixArk_DaisyRose-27B-GGUF --include "RadixArk_DaisyRose-27B-bf16/*" --local-dir ./
146 ```
147
148 You can either specify a new local-dir (RadixArk_DaisyRose-27B-bf16) or download them all in place (./)
149
150 </details>
151
152 ## How to run
153
154 These quants run with [llama.cpp](https://github.com/ggml-org/llama.cpp) - installable in one line via [llama.app](https://llama.app/):
155
156 ```
157 curl -LsSf https://llama.app/install.sh | sh
158 llama-server -hf bartowski/RadixArk_DaisyRose-27B-GGUF:Q4_K_M
159 ```
160
161 llama-server includes a built-in chat web UI, served at http://localhost:8080 by default.
162
163 These quants were made with llama.cpp release b12412 - if this model's architecture is newly supported, you'll need that release or newer to run them.
164
165 They also work in: [LM Studio](https://lmstudio.ai/) · [koboldcpp](https://github.com/LostRuins/koboldcpp) · [ramalama](https://github.com/containers/ramalama) · [Jan AI](https://www.jan.ai/) · [Text Generation Web UI](https://github.com/oobabooga/text-generation-webui) · [LoLLMs](https://github.com/ParisNeo/lollms) · [Atomic Chat](https://atomic.chat/)
166
167 ## Multimodal
168
169 This model supports image input. Alongside the quants, this repo includes the multimodal projector files [mmproj-RadixArk_DaisyRose-27B-bf16.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/mmproj-RadixArk_DaisyRose-27B-bf16.gguf) and [mmproj-RadixArk_DaisyRose-27B-f16.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/mmproj-RadixArk_DaisyRose-27B-f16.gguf), which pair with any quant above.
170
171 llama.cpp downloads the mmproj automatically when using `-hf` as shown above; if you're loading files manually, pass it with `--mmproj`.
172
173 ## MTP
174
175 This model has MTP (Multi-Token Prediction) layers, and they are included in these quants
176
177 MTP layers act as a built-in draft model, letting llama.cpp run speculative decoding for faster generation. To use them, add the following flag to your llama.cpp command:
178
179 ```
180 --spec-type draft-mtp
181 ```
182
183 Note: the MTP layers are stored at Q4_0 in every quant except Q8_0. Imatrix calibration does not exercise them, so the imatrix has nothing to offer these layers, and Q4_0 is chosen for its speed, which massively benefits MTP performance.
184
185 ## Per-tensor layouts
186
187 Some of these files were built with a layout computed for this model instead of llama.cpp's standard one-size-fits-all rules. A Q4_K_M is still mostly Q4_K; the extra precision goes to the weights this particular model is most sensitive to. The S, M or L in a name says how much of the model stays at the base precision: about 90 % for S, 70 % for M and 50 % for L. An `_L` name is simply the large size of its family. Q4_K_L is to Q4_K_M what Q4_K_M is to Q4_K_S; Q6_K_S, Q6_K and Q6_K_L are the small, medium and large sizes of Q6_K, with Q6_K_L about halfway to Q8_0. In earlier releases an `_L` name meant the embedding and output weights were kept at Q8_0; in these files it means the larger size of the base type. There is no size target, so each file's bits per weight is reported rather than promised.
188
189 The layout each of these files was built with is published in the [`layouts/`](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/tree/main/layouts) folder: `<file>.tensor-types.txt` is the exact `--tensor-type-file` given to `llama-quantize`, and `<file>.layout.json` records how it was computed, including the generator version, the llama.cpp release and the commit, so any of them can be rebuilt. The code that computed them is public at [`quantization-config`](https://github.com/bartowski1182/quantization-config); its tag `key-3bf8b43e20a68f0b` is the exact snapshot these files record. The method is described in [this write-up](https://huggingface.co/blog/bartowski/per-tensor-layout-maps-for-gguf-quantization).
190
191 Checked on this model before any of these files were released: Q4_K_M reached 0.80×, Q3_K_M 0.74× and IQ2_XXS 0.70× the KL divergence of the standard layout at the same file size.
192
193 <details>
194 <summary>Layout details</summary>
195
196 Files built from a computed layout:
197
198 | Quant | Size | Body bits/weight | File bits/weight | Body kept at base type |
199 | ----- | ---- | ---------------- | ---------------- | ---------------------- |
200 | Q6_K_L | 24.88GB | 7.40 | 7.28 | 50 % |
201 | Q6_K | 23.78GB | 7.04 | 6.96 | 70 % |
202 | Q6_K_S | 22.78GB | 6.71 | 6.67 | 90 % |
203 | Q5_K_M | 20.79GB | 6.11 | 6.09 | 70 % |
204 | Q5_K_S | 19.49GB | 5.69 | 5.71 | 90 % |
205 | Q4_K_L | 18.74GB | 5.49 | 5.49 | 50 % |
206 | Q4_K_M | 17.33GB | 5.03 | 5.07 | 70 % |
207 | IQ4_NL | 17.33GB | 5.03 | 5.07 | 70 % |
208 | Q4_K_S | 16.26GB | 4.68 | 4.76 | 90 % |
209 | IQ4_XS | 15.37GB | 4.40 | 4.50 | 90 % |
210 | IQ3_M | 14.78GB | 4.25 | 4.33 | 50 % |
211 | Q3_K_L | 14.01GB | 4.00 | 4.10 | 50 % |
212 | Q3_K_M | 13.33GB | 3.77 | 3.90 | 70 % |
213 | IQ3_XS | 12.72GB | 3.57 | 3.72 | 90 % |
214 | Q3_K_S | 12.66GB | 3.55 | 3.71 | 90 % |
215 | IQ3_XXS | 12.17GB | 3.39 | 3.56 | 70 % |
216 | Q2_K | 10.82GB | 3.00 | 3.17 | 70 % |
217 | IQ2_M | 10.36GB | 2.85 | 3.03 | 70 % |
218 | IQ2_S | 9.56GB | 2.59 | 2.80 | 70 % |
219 | IQ2_XS | 9.00GB | 2.40 | 2.64 | 90 % |
220 | IQ2_XXS | 8.76GB | 2.33 | 2.57 | 70 % |
221
222 Checked on this model: the computed layout against the standard one, measured by KL divergence against the unquantized model. The ratio compares each computed file with the standard ladder read at that file's own size, so it can differ from the two KLD columns when the two files differ in size.
223
224 | Quant | Computed layout KLD | Standard layout KLD | Ratio at equal size | Size vs standard file |
225 | ----- | ------------------- | ------------------- | ------------------- | --------------------- |
226 | Q4_K_M | 0.0123 ± 0.0003 | 0.0111 ± 0.0002 | 0.80× | −4.2 % |
227 | Q3_K_M | 0.0573 ± 0.0009 | 0.0440 ± 0.0007 | 0.74× | −10.6 % |
228 | IQ2_XXS | 0.2775 ± 0.0032 | 0.3004 ± 0.0033 | 0.70× | −8.1 % |
229
230 How it works: the base type is a floor for every body tensor and a fixed share of the body bytes stays at it (90 % for S, 70 % for M, 50 % for L); the remaining bytes go where a cross-model sensitivity prior, measured by KL divergence against the unquantized model, says they buy the most quality. The embedding and output tensors are sized by their share of the file: a small table is kept at Q8_0, a large one follows the file's bitrate. A K-quant and the IQ quant with the same base bitrate (Q3_K_S and IQ3_XS, Q3_K_M and IQ3_S, Q3_K_L and IQ3_M) come out at about the same size; the IQ file is the GPU-oriented twin.
231
232 </details>
233
234 ## imatrix
235
236 All quants made using imatrix option, with a calibration corpus rendered through this model's own chat template. The corpus pairs plain prose with tool-calling and reasoning conversations ([corpus source data](https://gist.github.com/bartowski1182/e26453c0404e24eb317543ec5360f87a)), encoded exactly as this model sees them at inference and processed with `--parse-special`, so chat-format special tokens contribute to the importance matrix. The corpus rendered for this model is included in this repo: [RadixArk_DaisyRose-27B-calibration-v6.txt](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-calibration-v6.txt). The imatrix is available here: [RadixArk_DaisyRose-27B-imatrix.gguf](https://huggingface.co/bartowski/RadixArk_DaisyRose-27B-GGUF/blob/main/RadixArk_DaisyRose-27B-imatrix.gguf).
237
238 <details>
239 <summary>Calibration render details</summary>
240
241 ```json
242 {
243 "recipe": "calibration-v6",
244 "encoder": "chat_template",
245 "library_versions": {
246 "transformers": "5.20.2",
247 "tokenizers": "0.23.3",
248 "tiktoken": "0.14.0",
249 "blobfile": "3.3.0",
250 "huggingface_hub": "1.31.0"
251 },
252 "chunk_size": 512,
253 "prose_chunks": 214,
254 "tool_chunks": 369,
255 "total_chunks": 583,
256 "n_conversations": 137,
257 "conversation_token_lengths": [
258 604,
259 1667,
260 1297,
261 1559,
262 1185,
263 1404,
264 3220,
265 866,
266 1267,
267 1462,
268 1107,
269 2136,
270 921,
271 1293,
272 2829,
273 1313,
274 1160,
275 1026,
276 777,
277 758,
278 1402,
279 1098,
280 1447,
281 1242,
282 1912,
283 1538,
284 1694,
285 948,
286 1455,
287 1686,
288 1609,
289 1260,
290 1308,
291 1077,
292 1060,
293 1752,
294 1691,
295 1215,
296 517,
297 1950,
298 1451,
299 1166,
300 1438,
301 2042,
302 2130,
303 1355,
304 1649,
305 947,
306 2996,
307 1142,
308 2908,
309 827,
310 1064,
311 1010,
312 947,
313 738,
314 2530,
315 955,
316 1188,
317 1127,
318 1271,
319 1211,
320 966,
321 1259,
322 1223,
323 1628,
324 953,
325 1592,
326 2166,
327 881,
328 365,
329 1162,
330 3375,
331 2876,
332 749,
333 982,
334 1072,
335 1113,
336 1338,
337 1122,
338 1191,
339 835,
340 1250,
341 1111,
342 1331,
343 1586,
344 1443,
345 2106,
346 913,
347 698,
348 2806,
349 682,
350 1443,
351 1715,
352 1987,
353 1243,
354 683,
355 1396,
356 1168,
357 1769,
358 1884,
359 1755,
360 857,
361 1055,
362 1077,
363 2896,
364 780,
365 774,
366 803,
367 1452,
368 1092,
369 1617,
370 808,
371 392,
372 361,
373 2666,
374 1058,
375 1179,
376 1870,
377 2079,
378 2735,
379 2717,
380 856,
381 1020,
382 880,
383 999,
384 1279,
385 1039,
386 882,
387 1397,
388 870,
389 750,
390 1783,
391 1067,
392 957,
393 1356,
394 1519
395 ]
396 }
397 ```
398
399 </details>
400
401 ## ARM/AVX information
402
403 llama.cpp automatically "repacks" weights into an interleaved layout at load time for faster inference on ARM and AVX machines - details in [this PR](https://github.com/ggml-org/llama.cpp/pull/9921). This once required downloading special Q4_0_4_4/4_8/8_8 files; those are long gone. Online repacking now covers Q4_0, IQ4_NL, and most K-quants, so no special quant choice is needed for CPU inference.
404
405 ## Which file should I choose?
406
407 <details>
408 <summary>Click here for details</summary>
409
410 An older (early 2024) but still useful write-up with charts comparing quant performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
411
412 The first thing to figure out is how big a model you can run. To do this, you'll need to figure out how much RAM and/or VRAM you have.
413
414 If you want your model running as FAST as possible, you'll want to fit the whole thing on your GPU's VRAM. Aim for a quant with a file size 1-2GB smaller than your GPU's total VRAM.
415
416 If you want the absolute maximum quality, add both your system RAM and your GPU's VRAM together, then similarly grab a quant with a file size 1-2GB Smaller than that total.
417
418 Hugging Face can also do this math for you: add your hardware in your [Local Apps settings](https://huggingface.co/settings/local-apps) and the model page will show which files fit.
419
420 Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
421
422 If you don't want to think too much, grab one of the K-quants. These are in format 'QX_K_X', like Q5_K_M.
423
424 If you want to get more into the weeds, you can check out this extremely useful feature chart:
425
426 [llama.cpp feature matrix](https://github.com/ggml-org/llama.cpp/wiki/Feature-matrix)
427
428 But basically, if you're aiming for below Q4, and you're running cuBLAS (Nvidia) or rocBLAS (AMD), you should look towards the I-quants. These are in format IQX_X, like IQ3_M. These are newer and offer better performance for their size.
429
430 These I-quants can also be used on CPU, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.
431
432 </details>
433
434 ## Credits
435
436 Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset.
437
438 Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
439