Gemma-4 Vain 12B (GGUF)
Vain 12B is a dense Gemma 4 finetune for roleplay, creative writing, and Japanese-to-English translation. It aims for a natural prose voice and consistent character behavior. This package uses the selected final checkpoint, s996, merged at scale 0.7.
Built on the heretic 12B base. These are text-model GGUF files; no vision projector is included.
Files
| File | Size | Best for |
|---|---|---|
Gemma-4-Vain-12B-Q8_0.gguf | 11.80 GiB | Highest stored precision; the quantization comparison reference. |
Gemma-4-Vain-12B-Q6_K.gguf | 9.11 GiB | Closest measured match to Q8 among the smaller files. |
Gemma-4-Vain-12B-Q5_K_M.gguf | 7.96 GiB | A middle option for file size and measured fidelity. |
Gemma-4-Vain-12B-Q4_K_M.gguf | 6.87 GiB | Lower storage and weight-memory use, with a larger measured change from Q8. |
Gemma-4-Vain-12B-IQ4_XS.gguf | 6.18 GiB | The smallest file in this suite; greatest measured divergence from Q8. |
Gemma-4-Vain-12B.imatrix.gguf | 14.28 MiB | Importance matrix used for the smaller quants. |
Model file size is not total VRAM use. Context, KV cache, runtime buffers, and other applications require additional memory. Partial CPU offloading may be necessary. This is a dense model; the active-parameter and expert-offloading behavior of Vain 26B-A4B does not apply.
Recommended settings
Start with the sampler used in the saved DRY evaluation runs. Use a runtime with Gemma 4 support and the model's embedded chat template.
| Setting | Value |
|---|---|
| Temperature | 0.7 |
| Min P | 0.05 |
| Top P | 0.95 |
| Top K | 0 (disabled) |
| Repetition penalty | 1.05 |
| DRY multiplier / base / allowed length | 0.8 / 1.75 / 2 |
| DRY sequence breakers | newline, colon, double quote, asterisk |
Saved roleplay runs used an 800-token reply cap, 16,384 context, thinking disabled, the embedded KoboldCpp chat template, and Q8_0/F16 KV. Adjust reply length to your use case. These settings are a starting point, not a demonstrated optimum for every quantization or prompt.
How it was made
- Base: igorls/gemma-4-12B-it-heretic-v1, derived from the Gemma 4 12B family.
- Method: the completed Vain12 style LoRA, final checkpoint at 996 steps, merged into the clean instruct/heretic F16 base at scale 0.7. The verified adapter rank is 32, with alpha 32; training was performed on the pretrained 12B base. No new training was performed for this packaging run.
- Packaging: all five quants were generated directly from one verified F16 master using llama.cpp b11706 (
f74e2fa6a). Q8_0 uses no importance matrix; the four smaller quants use the same Q8-collected matrix. The merge checked 328 adapter tensor pairs and all 667 output tensors. - Calibration: all 225 available full chunks at context 512. Calibration and evaluation text are not included.
Evaluation
No blind judging was performed. The table below contains saved mechanical checks of the selected checkpoint and competitors on two seeds. Vain's evaluated configuration used the Q8 base plus its runtime LoRA at scale 0.7; these are not new roleplay evaluations of each merged GGUF.
Vain scored 99.5/100 on seed 1234 and 94.0/100 on seed 2234. StyleTune scored 97.1 and 95.9 respectively, so these results do not establish a universal winner. Robustness is the arithmetic mean of category scores, not the overall fraction of individual trap checks passed.
Known limitations: these are heuristic measurements, not independent human quality judgments. Seed sensitivity, continuity, instruction following, translation accuracy, and style can vary. Twelve translation passages per candidate were generated, but translation quality was not blind-judged and no translation ranking is claimed.
Heuristic scores are not blind quality judgments. Higher is better. Each row has 98 replies.
| Model | Seed | Robustness | Fidelity | Continuity | Spatial | Instruction | Agency | Hygiene | Median words |
|---|---|---|---|---|---|---|---|---|---|
| heretic12 base | 1234 | 93.6 | 100% | 100% | 67% | 97% | 98% | 100% | 144 |
| heretic12 base | 2234 | 93.6 | 100% | 100% | 67% | 97% | 98% | 100% | 141 |
| Vain 12B | 1234 | 99.5 | 100% | 100% | 100% | 97% | 100% | 100% | 145 |
| Vain 12B | 2234 | 94.0 | 100% | 100% | 67% | 97% | 100% | 100% | 156 |
| Erebus 12B | 1234 | 87.6 | 75% | 93% | 67% | 94% | 96% | 100% | 119 |
| Erebus 12B | 2234 | 85.8 | 75% | 87% | 67% | 92% | 96% | 99% | 130 |
| StyleTune 12B | 1234 | 97.1 | 100% | 100% | 83% | 100% | 99% | 100% | 94 |
| StyleTune 12B | 2234 | 95.9 | 100% | 93% | 83% | 100% | 99% | 100% | 99 |
| Mag-Mell R1 | 1234 | 91.7 | 75% | 100% | 83% | 97% | 96% | 99% | 86 |
| Mag-Mell R1 | 2234 | 93.3 | 100% | 93% | 83% | 86% | 98% | 99% | 108 |
| Rocinante-X | 1234 | 86.7 | 100% | 87% | 67% | 83% | 95% | 89% | 127 |
| Rocinante-X | 2234 | 83.9 | 100% | 87% | 67% | 89% | 74% | 87% | 122 |
Validated RP replies: 1176. Completed MT passages: 72.
Quantization quality
All five files were measured on the same fixed evaluation input at context 2048: 27 full windows and 27,621 scored next-token predictions. The reference is Q8_0, not F16. The trailing partial window is excluded. Independence of this input from training data was not established, so this is a quantization comparison, not a claim of held-out benchmark performance.
| Quant | Size (GiB) | PPL | Delta PPL vs Q8 | Mean KLD | p99 KLD | Same top token |
|---|---|---|---|---|---|---|
| Q8_0 | 11.80 | 10.854505 | +0.000000 | 0.000000 | 0.000039 | 100.000% |
| Q6_K | 9.11 | 10.951045 | +0.096540 | 0.181793 | 3.898013 | 89.367% |
| Q5_K_M | 7.96 | 10.712026 | -0.142479 | 0.276071 | 5.406351 | 85.964% |
| Q4_K_M | 6.87 | 12.156125 | +1.301620 | 0.402912 | 6.222323 | 81.340% |
| IQ4_XS | 6.18 | 12.088600 | +1.234095 | 0.483505 | 7.303381 | 79.425% |
PPL measures prediction of this input; KLD measures distribution changes from Q8. Lower KLD means a closer match on this test. Q6_K has the lowest KLD and highest top-token agreement among the smaller files. Q5_K_M has slightly lower PPL than Q8 but higher divergence than Q6_K; this does not establish better roleplay quality. The two 4-bit files show larger measured changes.
Q8's self-comparison reproduced PPL 10.854505, mean KLD 0.000000, p99 KLD 0.000039, and 100.000% matching top tokens. llama.cpp's stored reference clips low logits before 16-bit encoding; its reconstructed reference PPL is 10.594802. Delta PPL above uses the directly evaluated Q8 value. See the pinned implementation.
Evaluation used batch 2048, microbatch 256, and Flash Attention. The metadata context limit is not a tested maximum context for these quants. Local provenance paths were removed from descriptive GGUF metadata; tensor data, tokenizer data, and layout remain byte-identical to the evaluated files.
| File | SHA-256 |
|---|---|
Gemma-4-Vain-12B-Q8_0.gguf | 281468adc0ad12b51cf43d4453add2cd6fe0a7001c960d5fabecd9c11c4d35ff |
Gemma-4-Vain-12B-Q6_K.gguf | afeed1b64b223f2d56dce1e60fdb86c943349041a3d9232a7bda84738a9ebec3 |
Gemma-4-Vain-12B-Q5_K_M.gguf | 22026d84da9a185523d2bfddcb35793ecaf5de9eab43b85069a83c65de8349bd |
Gemma-4-Vain-12B-Q4_K_M.gguf | 2a8d27a64da546daddc9735dfffaf60fe06ffdfd6083096fedbea212c2bfa46e |
Gemma-4-Vain-12B-IQ4_XS.gguf | 4330e67cd18c26969fd9fa8a662fbb0c41afbf12e47b1cba05ae64bfe0c576b8 |
Gemma-4-Vain-12B.imatrix.gguf | 059e3be83affecb6888b3bf97586a2ec2925fdb49355a8871edb48dbae016e5a |
License
The immediate heretic-base card declares the Gemma license and links to the Gemma terms. This card's metadata follows that declaration. The underlying Google Gemma 4 12B card separately declares Apache 2.0 and links to its license. These upstream declarations differ; this package does not replace or reconcile them. Refer to the applicable upstream terms before redistribution.
Credits
- Google DeepMind for Gemma 4.
- igorls for the heretic 12B base, and Heretic for the ablation method.
- llama.cpp for GGUF conversion, quantization, and numerical comparisons.