A small, fast, uncensored roleplay and character-dialogue model: 3.65 GB, about 4.7 GB of VRAM with three 64k-context conversations. It is Google's Gemma 4 E4B-it (the quantisation-aware trained release) with refusals removed, quantised to 4 bits along the exact grid Google trained it on (so it is as close to full precision as a 4-bit file gets), and pruned to English text.
Made for HermesVoice, a RimWorld mod that gives every colonist their own voice, where it is what most players run. It works as a general RP model on small GPUs, laptops and Apple Silicon: short in-character lines, distinct voices, no lectures.
At a glance
Adult content. This model is decensored. It will write grim, violent and sexual content between adults when asked. It is not a general assistant and not suitable for minors.
| File | Size | sha256 |
|---|---|---|
gemma-4-E4B-it-qat-rp-Q4_0.gguf |
3,649,658,624 B | f272d8be50efb4cedeb6895b8fa1e451dad529b2423d99603f8c247a33b0445d |
gemma-4-E4B-it-qat-rp-abl-lora.gguf (the refusal-removal edit alone, as a LoRA over the stock QAT weights; no prune) |
19,561,792 B | 7b0d3dd20345cdc649121991bad00fed41a32510ca2b239b5877107cc826f68b |
476025a01dbf99361c062bbeca3d6a76bb4c4566
(BF16 safetensors, sha256 ad8ef515…c7fa).Three rungs, picked automatically by the HermesVoice engine from your VRAM. Each is a normal GGUF and works on its own in any llama.cpp-based front end.
| Model | File size | VRAM (3 × 64k ctx, q4_0 KV) | For |
|---|---|---|---|
| gemma4-rp-maxxed (26B MoE, 4B active) | 10.0 GB | 12.1 GB | 16 GB cards (12 GB with expert offload): the best voices |
| gemma4-e4b-rp (4B dense, QAT) | 3.65 GB | 4.75 GB | 6-12 GB cards, laptops, Apple Silicon |
| stock Gemma 4 E2B Q4_K_M | 3.1 GB | 2.6 GB | fallback for very small machines |
llama-server -m gemma-4-E4B-it-qat-rp-Q4_0.gguf -ngl 999 -np 3 -c 196608 \
-ctk q4_0 -ctv q4_0 --no-kv-unified -fa on --jinja --reasoning off
Thinking is off by default in Gemma 4's chat template; keep it off for short dialogue lines. If you
build prompts by hand, end them with a bare <|turn>model\n: unlike the 26B, the E-models start
thinking anyway when you prefill an empty thought block.
The HermesVoice engine downloads this file, picks the context for your card, and starts and stops it with the game. You don't need to run it by hand.
It is an ordinary Gemma 4 chat model in GGUF. It is tested on llama.cpp's llama-server; front
ends on top of it (SillyTavern, or anything that speaks the OpenAI API) work as usual. Other runtimes
built on llama.cpp with Gemma 4 support (KoboldCpp, LM Studio) should load it, but were not tested.
--jinja, which reads the template from the GGUF.--reasoning off on llama-server). Thinking on makes short replies slow and sometimes empty.temperature 1.0, top_k 64, top_p 0.95, min_p 0, repetition penalty off (1.0), DRY off.
For JSON or grammar-constrained output (classifiers, tool calls) use greedy (temperature 0).attn_output and ffn_down, 22 matrices. The parameters came from a 40-trial Optuna search that
minimised refusals and text KL divergence together. On E4B a first search found edits that stopped
refusing but asked for "a little more information" instead of writing (48 of 100 adult prompts);
the search that produced this build counts such deflections as refusals. The edit was applied to the BF16 QAT weights.bf16(q·d) with integer q in [−8, 7], and the rest sit within one bf16 step,
embeddings included. llama.cpp's own Q4_0 rounding re-derives the scales and lands on the grid
for only about a quarter of the blocks (mean KLD 0.023–0.034 against BF16). This build recovers each
block's integer codes and scale from the BF16 weights and writes them directly (no imatrix):
mean KLD 0.0007–0.0011, the same floor as unsloth's QAT quant. The 22 edited matrices are no
longer on the grid, so they are kept at Q8_0 (+0.18 GB); per_layer_model_proj stays BF16;
norms are F32. Everything else, including both embedding tables, is Q4_0.token_embd, which is also the output head, and per_layer_token_embd) are sliced row by row,
byte-exact; merges are filtered and special-token ids remapped. Tokenisation of ASCII text is
identical to the stock model (400/400 checked) and the next-token choice is the same on 50/50
snippets (mean top-20 overlap 19.82).All on the same prompts and text; stock is the unedited QAT model quantised the same way (the refusal rows used a Q8_0 of it).
| stock E4B QAT | this model | |
|---|---|---|
| Adult roleplay probe, refusals (100 prompts) | 100/100 | 0/100 (one reply trips a loose marker; strict 0, classifier 0) |
| Generic harmful set (100): strict markers / refusal classifier | 99 / 100 | 1 / 8 |
| Asks for details instead of writing (adult probe) | 0/100 | 0/100 |
| First-token KL on 100 harmless prompts | 0 | 0.019 |
| Voice distinctness (HermesVoice M0 bench) | 0.909 | 0.947 |
| Intent accuracy with grammar / schema (M0) | 26/30, 14/30 | 26/30, 13/30 |
| Grim RimWorld lines (60): refusal / disclaimer / moralising | 0 / 0 / 0 | 0 / 0 / 0 |
| Held-out perplexity: roleplay / RimWorld / general | 4.77 / 8.15 / 14.08 | 4.83 / 8.16 / 14.22 |
| KLD vs stock BF16 before the vocab prune: roleplay / RimWorld / general | 0.0007 / 0.0008 / 0.0011 | 0.020 / 0.007 / 0.015 |
VRAM of the server, -np 3 -c 196608, q4_0 KV (RTX 5080) |
4,676 MiB | 4,704 MiB |
| Host RAM (RSS) after load | 2,535 MiB | 1,761 MiB |
| Decode, 3 slots busy / 1 slot (RTX 5080) | 127 / 149 t/s | 133 / 148 t/s |
Perplexity on the pruned model is over a slightly different tokenisation of the rare non-ASCII characters in the text.
| stock E4B Q4_K_M | this model | |
|---|---|---|
| Voice: which colonist said it (pawn ID accuracy) | 0.839 | 0.905 |
| Conversation loops (of 30 talks) | 0 | 0 |
| Intent accuracy, grammar, greedy | 80 % | 86.7 % |
| Planted instructions in game text followed: unprotected / with the mod's guards | 71 % / 0 % | 67–79 % / 0 % |
| VRAM, 3 x 64k context, q4_0 KV (RTX 5080) | 5,076 MiB | 4,752 MiB |
| Decode, 3 slots busy (RTX 5080) | 92 t/s | 120 t/s |
Known quirk: now and then it appends an intent word ("kind", "gossip") after a finished line; HermesVoice cuts it. Other front ends should strip a bare trailing label word too.
Apache 2.0, as for the Gemma 4 base model. This is a derivative of Google's Gemma 4; it is not made or endorsed by Google.