The hybrid quant employs different quantization levels on a per layer basis to increased
flexibility of trading off performance vs file size. Less parameter bits are used at deep layers
and more bits at cortex layers to simultaneously optimize quantized size and model performance.
The quants are all K to increase processing efficiency on old GPUs or CPUs.
The quants were optimized for good reasoning performance across a curated set of test prompts.
Comparison:
Quant
size
PPL
Comment
IQ4_XS
2e9
8.0
-
Q4_K_H
2.4e9
7.9
Hybrid quant with Q6_K embed Q6_K output
Q6_K
2.8e9
7.8
-
Q6_K_H
2.8e9
7.8
Hybrid quant with Q6_K embed Q6_K output
Usage:
This is a vision capable model. It can be used together with its multimedia projector layers to process images and text inputs
and generate text outputs. The mmproj file is made available in this repository. To test vision mode follow the docs in the mtmd
readme in the tools directory of the source tree https://github.com/ggml-org/llama.cpp/blob/master/tools/mtmd/README.md .
Performance (4070 cuda backend):
Q
QKV
Context
gen rate (tps)
Q6_K_H
F16
78k
125
Q6_K_H
Q8_0
142k
125
Q4_K_H
F16
82k
140
Q4_K_H
Q8_0
149k
140
The model is trained at 16k context which can be extended to 256k using YARN:
For other than 256k context set rope_scale to the fraction of configured context size / 16384.0.
NOTE: For improved inference performance, context size may be limited to 16k. Unless large context is needed,
this is recommended for best performance, particular when using less accurate Q4_K_H quant.