<|im_start|>system
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.
{system_prompt}<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
<think>
Prompt format with tool definitions
<|im_start|>system
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.
# Tools
You have access to the following functions:
<tools>
{"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"]}}}
</tools>
If you choose to call a function ONLY reply in the following format with NO suffix:
<tool_call>
<function=example_function_name>
<parameter=example_parameter_1>
value_1
</parameter>
<parameter=example_parameter_2>
This is the value for the second parameter
that can span
multiple lines
</parameter>
</function>
</tool_call>
<IMPORTANT>
Reminder:
- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags
- Required parameters MUST be specified
- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after
- 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
</IMPORTANT>
{system_prompt}<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
<think>
Don't know which to choose?
Grab
Q4_K_M
(17.20GB) - usually a good mix of size and performance. Download instructions available
here
llama.cpp downloads the mmproj automatically when using
-hf
as shown above; if you're loading files manually, pass it with
--mmproj
.
Per-tensor layouts
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.
The layout each of these files was built with is published in the
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
; its tag
key-3bf8b43e20a68f0b
is the exact snapshot these files record. The method is described in
this write-up
.
Checked on
bartowski/Altworld_Hemmingway-1-GGUF
(same architecture and tensor shapes) before any of these files were released: Q4_K_M reached 0.91×, Q3_K_M 0.76× and IQ2_XXS 0.76× the KL divergence of the standard layout at the same file size.
Layout details
Files built from a computed layout:
Quant
Size
Body bits/weight
File bits/weight
Body kept at base type
Q6_K_L
24.72GB
7.41
7.35
50 %
Q6_K
23.62GB
7.04
7.03
70 %
Q6_K_S
22.62GB
6.71
6.73
90 %
Q5_K_M
20.68GB
6.13
6.15
70 %
Q5_K_S
19.33GB
5.69
5.75
90 %
Q4_K_L
18.58GB
5.49
5.53
50 %
Q4_K_M
17.20GB
5.04
5.12
70 %
IQ4_NL
17.20GB
5.04
5.12
70 %
Q4_K_S
16.12GB
4.69
4.80
90 %
IQ4_XS
15.24GB
4.41
4.53
90 %
IQ3_M
14.62GB
4.25
4.35
50 %
Q3_K_L
13.88GB
4.00
4.13
50 %
Q3_K_M
13.17GB
3.77
3.92
70 %
IQ3_XS
12.56GB
3.57
3.74
90 %
Q3_K_S
12.50GB
3.55
3.72
90 %
IQ3_XXS
12.08GB
3.41
3.59
70 %
Q2_K
10.58GB
2.98
3.15
70 %
IQ2_M
10.28GB
2.88
3.06
70 %
IQ2_S
9.45GB
2.60
2.81
70 %
IQ2_XS
8.85GB
2.40
2.63
90 %
IQ2_XXS
8.64GB
2.34
2.57
70 %
Checked on
bartowski/Altworld_Hemmingway-1-GGUF
, which shares this model's architecture and tensor shapes: 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.
Quant
Computed layout KLD
Standard layout KLD
Ratio at equal size
Size vs standard file
Q4_K_M
0.0105 ± 0.0002
0.0100 ± 0.0002
0.91×
−1.9 %
Q3_K_M
0.0444 ± 0.0006
0.0370 ± 0.0005
0.76×
−8.2 %
IQ2_XXS
0.2391 ± 0.0026
0.2609 ± 0.0028
0.76×
−5.4 %
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.
imatrix
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
), 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:
Cloudflare_clef-calibration-v6.txt
. The imatrix is available here:
Cloudflare_clef-imatrix.gguf
.
llama.cpp automatically "repacks" weights into an interleaved layout at load time for faster inference on ARM and AVX machines - details in
this PR
. 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.
Which file should I choose?
Click here for details
An older (early 2024) but still useful write-up with charts comparing quant performances is provided by Artefact2
here
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.
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.
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.
Hugging Face can also do this math for you: add your hardware in your
Local Apps settings
and the model page will show which files fit.
Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
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.
If you want to get more into the weeds, you can check out this extremely useful feature chart:
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.
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.
Credits
Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset.
Cloudflare_clef-GGUF huggingface.co is an AI model on huggingface.co that provides Cloudflare_clef-GGUF's model effect (), which can be used instantly with this bartowski Cloudflare_clef-GGUF model. huggingface.co supports a free trial of the Cloudflare_clef-GGUF model, and also provides paid use of the Cloudflare_clef-GGUF. Support call Cloudflare_clef-GGUF model through api, including Node.js, Python, http.
Cloudflare_clef-GGUF huggingface.co is an online trial and call api platform, which integrates Cloudflare_clef-GGUF's modeling effects, including api services, and provides a free online trial of Cloudflare_clef-GGUF, you can try Cloudflare_clef-GGUF online for free by clicking the link below.
bartowski Cloudflare_clef-GGUF online free url in huggingface.co:
Cloudflare_clef-GGUF is an open source model from GitHub that offers a free installation service, and any user can find Cloudflare_clef-GGUF on GitHub to install. At the same time, huggingface.co provides the effect of Cloudflare_clef-GGUF install, users can directly use Cloudflare_clef-GGUF installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Cloudflare_clef-GGUF install url in huggingface.co: