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.
An extended layer definition E quant Q4_E_H for the model is defined as follows:
The quant was optimized for high reasoning + knowledge performance across a range of test prompts while sized to approximate
Q4_K_M bpw.
Comparison:
Quant
size
PPL
Comment
Q4_K_M
7.3e9
-
default embed and output
Q4_E_H
7.5e9
9.1
Q6_K embed Q6_K output
Usage:
gemma-3 12b 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 .
The model also uses sliding window attention. Use of llama.cpp b5554 and above is recommend for support of the SWA mode.
If --swa-full flag is used, the old method of keeping all KV memory and masking out everything outside the SWA window is used.
Running:
The model can be speculated with gemma 3 270m it. Approximate performance using a downstream llama.cpp server with cuda backend and custome speculation
code on a RTX 4070 (b9940 downstream):
ND
QKV
NKV
PP
TG
4
F16
50k
1000
86
0
F16
60k
1000
53
4
Q8_0
82k
1000
82
0
Q8_0
95k
1000
52
The model passes a basic long context test but will not correctly solve the long runescape prompt https://thireus.com/REDDIT/Qwen3_Runescape_Massive_Prompt.txt
trimmed back to fit in available context. This prompt was most likely not available during pretrain of gemma 3.
Vision:
The model correctly identifies two tough bird-id images which gemma-4-12b-it fails, although gemma-4 does score higher on synthetic vision evals.
Code:
The model is capable of creating working code on simple prompts but failed about half the test cases given.