Full story: rakshazi.me/blog/gemma-4-abliteration.
Scripts: github.com/rakshazi/gemma-4-abliteration.
GGUF builds of rakshazi/Dark-Scarlett-v1.0-26B-A4B-Uncensored, the abliterated Gemma 4 26B-A4B: 0/686 refusals against the original model's 606/686, for llama.cpp, ollama and LM Studio.
The quants carry the same behaviour as the release they come from, from Q8_0 down to Q2_K.
This is a personal experiment, shared as-is.
| File | Size | bpw | Notes |
|---|---|---|---|
Dark-Scarlett-v1.0-26B-A4B-Uncensored-Q8_0.gguf |
26.86 GB | 8.52 | lossless in practice, the reference build |
Dark-Scarlett-v1.0-26B-A4B-Uncensored-Q6_K.gguf |
22.64 GB | 7.18 | near lossless, best quality per byte |
Dark-Scarlett-v1.0-26B-A4B-Uncensored-Q5_K_M.gguf |
19.13 GB | 6.07 | for 24 GB GPUs and 32 GB Macs |
Dark-Scarlett-v1.0-26B-A4B-Uncensored-Q4_K_M.gguf |
16.80 GB | 5.32 | recommended, fits a 24 GB GPU with context, or a 16 GB Mac |
Dark-Scarlett-v1.0-26B-A4B-Uncensored-Q3_K_M.gguf |
13.29 GB | 4.21 | for 16 GB machines, long-form writing starts to suffer |
Dark-Scarlett-v1.0-26B-A4B-Uncensored-Q2_K.gguf |
10.58 GB | 3.36 | 12 GB cards and a small context. Keep it for completeness: on this model it already answers in word salad (see Measured) |
| Sidecar | Size | Notes |
|---|---|---|
mmproj-Dark-Scarlett-v1.0-26B-A4B-Uncensored-BF16.gguf |
1.19 GB | vision tower, bf16, unquantized |
mtp-gemma-4-26B-A4B-it-Q4_0.gguf |
0.25 GB | multi-token-prediction head for --spec-type draft-mtp, see below |
| Architecture | gemma4: 30 layers, 128 experts, 8 active per token |
| Parameters | 25.2 B total, about 4 B active |
| Context | 262,144 trained, 1,024-token sliding window on 5 of every 6 layers |
| Vocab | 262,144, gemma4 tokenizer with the chat template embedded |
| Modalities | text, plus vision through the mmproj above |
llama-cli -m Dark-Scarlett-v1.0-26B-A4B-Uncensored-Q4_K_M.gguf -p "Write the opening scene of a noir novel set on a mining ship." -n 300 -st
llama-server -m Dark-Scarlett-v1.0-26B-A4B-Uncensored-Q4_K_M.gguf -c 8192 --jinja --port 8080
llama-mtmd-cli -m Dark-Scarlett-v1.0-26B-A4B-Uncensored-Q4_K_M.gguf --mmproj mmproj-Dark-Scarlett-v1.0-26B-A4B-Uncensored-BF16.gguf --image photo.jpg -p "Describe this image." -ub 1024 --jinja
--jinja is mandatory, the gemma4 chat template crashes the legacy engine. Sampling follows what is baked into the file: temp 1.0, top_p 0.95, top_k 64.
Ollama:
printf 'FROM ./Dark-Scarlett-v1.0-26B-A4B-Uncensored-Q4_K_M.gguf\n' > Modelfile
ollama create dark-scarlett:26b-q4 -f Modelfile
MTP, for a bit of extra generation speed (draft head, --spec-draft-n-max 3):
llama-server -m Dark-Scarlett-v1.0-26B-A4B-Uncensored-Q4_K_M.gguf -md mtp-gemma-4-26B-A4B-it-Q4_0.gguf --spec-type draft-mtp --spec-draft-n-max 3 -c 8192 --jinja
The release's safetensors (11 shards) converted with llama.cpp b12723, then quantized from the bf16 GGUF with llama-quantize, one lossy step per tensor, never from another quant:
./quantize.sh # Q2_K Q3_K_M Q4_K_M Q5_K_M Q6_K Q8_0 from model-bf16.gguf
./quantize.sh Q4_K_M # one type
FORCE=1 ./quantize.sh --verify Q8_0 # redo one and smoke-test it
quantize.sh fetches the prebuilt llama.cpp CPU release itself, so it needs bash, curl and tar and nothing else. From the safetensors instead:
venv/bin/python llama.cpp/convert_hf_to_gguf.py Dark-Scarlett-v1.0-26B-A4B-Uncensored --outtype bf16 --outfile model-bf16.gguf
llama-quantize reports WARNING: 60 of 658 tensor(s) required fallback quantization. Those are blk.*.ffn_down.weight and blk.*.ffn_down_exps.weight: rows of 704 elements do not fit the 256-element K-quant super-block, so they stay at Q5_0/Q8_0. Same as every other gemma4-A4B GGUF, slightly larger and slightly better.
No imatrix, so no IQ* types: building one means hours of CPU compute per pass here. Run llama-imatrix and pass --imatrix if you want them.
test-quants.sh benches every quant, runs a 96-token chat smoke test per file, A/Bs the MTP head and leaves a paste-ready table in .test/test-report.md. It needs llama-bench on PATH; with llama-server + curl + python3 it also does the smoke tests and the MTP A/B through the server and reads exact timings from the json, and llama-mtmd-cli adds the vision test:
./test-quants.sh # everything
QUANTS="Q4_K_M" ./test-quants.sh # one file
IMAGE=photo.jpg ./test-quants.sh # plus the vision tower
NGL=99 NCMOE=8 ./test-quants.sh # partial offload, small VRAM
llama-bench -p 512 -n 128, one rep, CPU-only build on the machine these were built on (Ryzen AI MAX+ 395, 32 threads, llama.cpp build 1):
| quant | prefill tok/s | generation tok/s |
|---|---|---|
| Q8_0 | 1496 | 44 |
| Q6_K | 1270 | 52 |
| Q5_K_M | 1368 | 58 |
| Q4_K_M | 1474 | 62 |
| Q3_K_M | 1405 | 64 |
| Q2_K | 1364 | 76 |
All six load and answer through their chat template. Q8_0 down to Q3_K_M land on 2, 3, 5 inside their reasoning within the first 96 tokens, Q2_K breaks into digit loops and word salad instead, which is what 3.36 bpw does to a 26B MoE. Generation climbs as the file shrinks because that box is memory bound, so being the fastest says nothing good about Q2_K.
The MTP head pays for itself on the same box: Q2_K with --spec-type draft-mtp went from 19.6 to 34.0 tok/s generation over the same 128-token prompt, so +74% for 250 MB of draft. There are no vision numbers yet, llama-mtmd-cli was OOM-killed on that CPU-only box; run ./test-quants.sh with IMAGE=... on a GPU machine and the table lands in .test/test-report.md.
MTP. mtp-gemma-4-26B-A4B-it-Q4_0.gguf is not built from this model's weights. It is the multi-token-prediction head published for the vanilla google/gemma-4-26B-A4B-it, converted and quantized to Q4_0 by HauhauCS, downloaded from HauhauCS/Gemma4-26B-A4B-QAT-Uncensored-HauhauCS-Balanced-MTP as mtp-gemma-4-26B-A4B-it.gguf and redistributed here byte for byte (SHA-256 62bd3af7f66c9308de9a5454233852f8c7324c93767e8dfb824ed45b9179864a). Four blocks, 0.42 B parameters. Drop the -md flag if it does not pay off on your hardware.
mmproj. mmproj-Dark-Scarlett-v1.0-26B-A4B-Uncensored-BF16.gguf is the vision tower from this model's own safetensors, converted with convert_hf_to_gguf.py --mmproj --outtype bf16 and left unquantized: it is 1.2 GB and Q4 would save 800 MB while costing real image understanding. The abliteration touched text layers only, so this is the original google/gemma-4-26B-A4B-it vision encoder.
Inherited, unchanged from the release: MMLU drops from 53.0% to 36.3% and ARC-Challenge sits at 46.5% (the EGA prebake paid that price, the quants add nothing on top), refusal counts come from substring markers plus a manual audit rather than a classifier, KL is a first-token drift proxy, and the vision tower is untouched. What quantization adds: Q8_0 and Q6_K are within noise of bf16, Q5_K_M and Q4_K_M cost a little long-form coherence, Q3_K_M weakens instruction following visibly, Q2_K keeps the character but repeats itself and drops detail.
SHA256SUMS.txt has the per-file hashes. Licence is apache-2.0 as on the upstream card; the Gemma terms apply on top since the chain starts at google/gemma-4-26B-A4B-it.
google/gemma-4-26B-A4B-it, ReadyArt/Dark-Scarlett-v1.0-26B-A4B, HauhauCS for the MTP head, ggml-org/llama.cpp for conversion, quantization and the runtime.