Vain 31B 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 release packages the selected final checkpoint, s996.
Built on the heretic-ara base. These are text-model GGUF files; no vision projector is included.
| File | Size | Best for |
|---|---|---|
Gemma-4-Vain-31B-Q8_0.gguf |
30.39 GiB | Highest precision in this release; the quantization comparison baseline. |
Gemma-4-Vain-31B-Q6_K.gguf |
23.47 GiB | The closest measured match to Q8 among the smaller files. |
Gemma-4-Vain-31B-Q5_K_M.gguf |
20.35 GiB | A middle option for file size and measured fidelity. |
Gemma-4-Vain-31B-Q4_K_M.gguf |
17.40 GiB | Lower memory use, with a larger measured change from Q8. |
Gemma-4-Vain-31B-IQ4_XS.gguf |
15.59 GiB | The smallest file in this release. |
Gemma-4-Vain-31B.imatrix.gguf |
26.25 MiB | Importance matrix for making additional quants. |
Model file size is not total VRAM use. Context, KV cache, runtime buffers, and other applications need additional memory. Partial CPU offloading may be necessary. This is a dense 31B model, so the active-parameter and expert-offloading behavior of Vain 26B-A4B does not apply.
Start with the sampler used in the saved 31B 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 | "\n", ":", "\"", "*" |
The saved runs used an 800-token reply cap. Adjust reply length to your use case. These settings are a starting point, not a demonstrated optimum for every quantization or prompt.
vain31-style rank-64 LoRA, trained for 996 steps and merged at scale 1.0. The approach was inspired by Sprinkle. Training details are supplied by the model author.f74e2fa6a). Q8_0 uses no importance matrix; the four smaller quants use the same Q8-collected matrix.The selected checkpoint was evaluated in 8 roleplay scenes and 12 translation passages per round, using six anonymized judges with rotated candidate labels. These are saved checkpoint evaluations, not new blind tests of every GGUF quantization.
Known limitations: Vain does not win every comparison. The heretic-ara base won the seed-2 roleplay and translation head-to-head comparisons against Vain. Seed-1 Vain robustness was 92.7/100, so the seed-2 score should not be read as a guarantee across prompts or seeds. Continuity, instruction following, translation accuracy, and output style can still vary. Multiple judgments of the same scene are not independent samples.
Full saved evaluation tables and scoring detailsThese are historical evaluations of the selected checkpoint and competitors, not fresh evaluations of every quantization in this repository. Six anonymized judges used rotated candidate labels. Each roleplay round has 8 scenes x 6 judges = 48 rankings; each translation round has 12 passages x 6 judges = 72 rankings. Points award 2 for first place, 1 for second, and 0 for third. Multiple judgments of the same scene are not independent samples.
The tables are derived from the saved aggregate evaluation results; means are metric sums divided by their observation counts.
| Model | Points | First places | Logic | Writing | Ideas | Slips per judgment |
|---|---|---|---|---|---|---|
| Vain 31B | 62 | 24/48 (50.0%) | 8.98 | 8.67 | 8.40 | 0.19 |
| MeroMero v2 31B | 54 | 21/48 (43.8%) | 8.69 | 8.58 | 8.54 | 0.35 |
| StyleTune 31B | 28 | 3/48 (6.2%) | 8.17 | 8.31 | 8.04 | 0.69 |
Vain wins the pairwise comparisons 27-21 against MeroMero v2 and 35-13 against StyleTune in this round.
| Model | Points | First places | Accuracy | Naturalness | Voice | Errors per judgment |
|---|---|---|---|---|---|---|
| Vain 31B | 93 | 39/72 (54.2%) | 8.96 | 8.72 | 8.57 | 0.24 |
| MeroMero v2 31B | 85 | 25/72 (34.7%) | 9.00 | 8.88 | 8.74 | 0.17 |
| StyleTune 31B | 38 | 8/72 (11.1%) | 8.71 | 8.40 | 8.39 | 0.38 |
Vain wins the pairwise comparisons 39-33 against MeroMero v2 and 54-18 against StyleTune in this round.
| Model | Points | First places | Logic | Writing | Slips per judgment |
|---|---|---|---|---|---|
| heretic-ara 31B | 60 | 17/48 (35.4%) | 9.12 | 8.50 | 0.06 |
| Vain 31B | 59 | 24/48 (50.0%) | 8.96 | 8.65 | 0.23 |
| Sprinkle 31B | 25 | 7/48 (14.6%) | 8.35 | 8.25 | 0.52 |
Vain ties the base 24-24 head-to-head and beats Sprinkle 35-13. The base has 60 points versus Vain's 59; Vain has more first-place rankings.
| Model | Points | First places | Logic | Writing | Slips per judgment |
|---|---|---|---|---|---|
| heretic-ara 31B | 61 | 25/48 (52.1%) | 9.27 | 8.71 | 0.08 |
| Vain 31B | 43 | 11/48 (22.9%) | 8.75 | 8.54 | 0.29 |
| Sprinkle 31B | 40 | 12/48 (25.0%) | 8.79 | 8.52 | 0.23 |
This uses the matched seed-2 round . Vain has 43 points versus Sprinkle's 40 but ties Sprinkle 24-24 head-to-head; the base beats Vain 29-19.
| Model | Points | First places | Accuracy | Naturalness | Voice |
|---|---|---|---|---|---|
| heretic-ara 31B | 84 | 29/72 (40.3%) | 9.19 | 8.75 | 8.82 |
| Vain 31B | 66 | 26/72 (36.1%) | 9.03 | 8.79 | 8.58 |
| Sprinkle 31B | 66 | 17/72 (23.6%) | 9.10 | 8.68 | 8.64 |
Vain does not win every comparison: the base beats Vain 40-32 and Sprinkle beats Vain 38-34 head-to-head in this translation round.
The saved evaluator defines robustness as the arithmetic mean of available category scores, multiplied by 100. It is not the overall fraction of individual trap checks passed. Fidelity, continuity, spatial, and instruction scores measure scripted checks; agency and hygiene measure fractions of replies without the corresponding violations.
| model | robustness | fidelity | continuity | spatial | instruction | agency | hygiene | median words |
|---|---|---|---|---|---|---|---|---|
| Vain 31B (seed 2) | 99.5 | 100% | 100% | 100% | 97% | 100% | 100% | 86 |
| MeroMero v2 31B | 98.9 | 100% | 93% | 100% | 100% | 100% | 100% | 90 |
| heretic-ara 31B (seed 1) | 95.9 | 100% | 93% | 83% | 100% | 99% | 100% | 78 |
| StyleTune 31B | 94.1 | 100% | 100% | 67% | 100% | 100% | 98% | 69 |
| heretic-ara 31B (seed 2) | 92.9 | 100% | 93% | 67% | 97% | 100% | 100% | 74 |
| Vain 31B (seed 1) | 92.7 | 100% | 93% | 67% | 97% | 99% | 100% | 83 |
| Sprinkle 31B (seed 2) | 89.9 | 100% | 93% | 50% | 97% | 99% | 100% | 78 |
| Sprinkle 31B (seed 1) | 89.2 | 75% | 93% | 67% | 100% | 100% | 100% | 77 |
The seed-2 Vain score is 99.5/100. Its category scores are 100% fidelity, 100% continuity, 100% spatial, 97% instruction, 100% agency, and 100% hygiene.
All quantizations were evaluated on the same held-out text at context 2048: 27 full windows and 27,621 scored next-token predictions. The reference is Q8_0, not F16. The unused trailing partial window is excluded by llama.cpp.
| Quant | Size (GiB) | PPL | Delta PPL vs Q8 | Mean KLD | p99 KLD |
|---|---|---|---|---|---|
| Q8_0 | 30.39 | 9.214255 | baseline | 0.000000 | 0.000040 |
| Q6_K | 23.47 | 9.274941 | +0.060686 | 0.072304 | 1.204175 |
| Q5_K_M | 20.35 | 9.424176 | +0.209921 | 0.119836 | 2.370006 |
| Q4_K_M | 17.40 | 8.925522 | -0.288733 | 0.176956 | 3.374020 |
| IQ4_XS | 15.59 | 8.971741 | -0.242514 | 0.230572 | 4.311135 |
PPL measures prediction of this test text; KLD measures distribution changes from Q8. Lower KLD means a closer match to Q8 on this test. Q4 and IQ4 have lower PPL here but higher KLD; this does not establish broader superiority over Q8 or full precision.
Q8's self-comparison reproduced PPL 9.214255, mean KLD 0.000000, p99 KLD 0.000040, and 99.996% matching top tokens. llama.cpp's stored reference clips low logits before 16-bit encoding, so its reconstructed reference PPL is 8.627890. Delta PPL above uses the direct Q8 result, not that reconstructed 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 nonfunctional GGUF metadata; all tensor data and layout remain byte-identical to the evaluated files.
SHA-256 checksums| File | SHA-256 |
|---|---|
Gemma-4-Vain-31B-Q8_0.gguf |
9056bf4fdce2cee973278812bf1e42a35fc8b26a82fb74739b7e16c2e8d0a9d0 |
Gemma-4-Vain-31B-Q6_K.gguf |
90e1006a0cff2753aba9ac8a11ddd7f10dcfe09803d1a35cc997066bb60560bc |
Gemma-4-Vain-31B-Q5_K_M.gguf |
14f4cdadacc6e309f9cbf7510b0f94ddf2c54d7dff24132557876c998d929585 |
Gemma-4-Vain-31B-Q4_K_M.gguf |
33a436367fce247979c20846ec17ff9cd3fe05f2a4374640c6ad751ceb04e612 |
Gemma-4-Vain-31B-IQ4_XS.gguf |
421fcbd572fded372d0dad2141494ae29d7c0c02e27a6e1241b7a6eb8f556b68 |
Gemma-4-Vain-31B.imatrix.gguf |
b7a7b1a71a37e995d5622c279e9d854159d0b8dc2c25510b1e5a0ea3f7142f74 |
Apache 2.0, as declared by the upstream Gemma 4 and heretic-ara repositories.
google/gemma-4-31B