Each node is a catalogued repo whose card names Gemma 4 31B (instruction-tuned) as its base. Select one to see its record; the dashed ring marks a repo that an API serves by name.
What the base model is
Gemma 4 31B is the largest model in Google DeepMind’s Gemma 4 family, and a dense one. The card gives 30.7B parameters and 60 layers; Hugging Face counts 31.3B because its total includes a vision encoder of about 550M parameters. It takes text and images (audio is limited to the E2B, E4B and 12B models), supports a configurable thinking mode and native function calling, and has a 256K-token context window.
Being dense is the main difference from its sibling, Gemma 4 26B A4B. Every parameter is used for every token, so it generates more slowly than the mixture-of-experts model, which Google’s card says “runs almost as fast as a 4B-parameter model”. In return, the card reports better results for the 31B than for the 26B A4B on every benchmark where it lists both. Those are Google’s results for the original model, not measurements of the variants below.
Attention is hybrid, as in the rest of the family: 50 of the 60 layers use a sliding window of 1,024 tokens and 10 keep the full context, with the final layer always global. The card adds that the global layers use unified keys and values to save memory at long context. The VRAM estimator models the KV cache from the configuration file.
Google publishes Gemma 4 under the Apache License 2.0, linked from the card as its Gemma 4 license page. Earlier Gemma generations used the Gemma Terms of Use, and one variant below still carries that older tag.
The variants at a glance
| Variant |
Method (per card) |
What the card reports |
| llmfan46 uncensored heretic |
Heretic 1.2.0, ARA method |
10/100 refusals vs 99/100; KL divergence 0.0541; MMLU 85.90% vs 86.50% |
| huihui-ai abliterated v2 |
Abliteration; first 5 layers left unedited |
Lower llama.cpp perplexity than the original and than v1 |
| HauhauCS QAT Balanced (GGUF) |
Not disclosed |
“0/465 refusals” on an unpublished test; MTP draft head |
llmfan46’s build is the most thoroughly documented of the three. It was made with Heretic, a tool that searches abliteration settings automatically and reports how many test prompts the model still refuses and how far its predictions moved from the original (KL divergence). The card says the edit touched only the attention output projections in layers 30 to 48, and it adds an MMLU run of 7,021 questions before and after. All three figures were produced by the creator, not by Atlas.
huihui-ai’s v2 is a classic abliteration, which the creator calls “a crude, proof-of-concept implementation”. The first version edited both thinking and non-thinking modes; v2 leaves the first five layers alone, which the card says gives “fewer warnings and rejections”. Its evidence is a llama.cpp perplexity test on the wiki.test.raw file, where v2 scores 13,161 against 14,875 for the original. Values that high suggest the test is useful only as a comparison between these three builds.
HauhauCS does not say how its build was made, so Atlas files it as undisclosed; uncensored vs abliterated explains why that label matters. The card says it starts from Google’s quantization-aware-trained (QAT) weights and ships one Q4_K_M file, a vision projector and a multi-token-prediction (MTP) draft head taken from Unsloth’s Gemma 4 release. The creator reports “roughly 53% faster generation” with the draft head in llama.cpp.
Which one for which need
- For measured tradeoffs: llmfan46’s Heretic build. It is the only one of the three that reports refusals, KL divergence and a knowledge benchmark before and after the edit. It ships BF16 safetensors and a separate GGUF repository from Q3_K_M to Q8_0, with a vision projector.
- For one 4-bit file with speculative decoding: the HauhauCS GGUF. The text model is 18.7 GB, plus 1.2 GB for the vision projector and 280 MB for the MTP head. The creator recommends its own sampling settings rather than Google’s defaults.
- For full BF16 weights and an Ollama build: huihui-ai’s v2, with GGUF files published separately by mradermacher.
For local use, the weights alone take about 62.5 GB in Google’s BF16 release, 32.6 GB at Q8_0 and 18.7 GB at Q4_K_M, going by the file sizes in the repositories. The KV cache and runtime overhead come on top and grow with context length, so enter your own context in the VRAM estimator rather than going by file size. The GGUF quantization guide explains what each level trades away. Hosted options and rates, where Atlas tracks any, are listed below, and the compare page shows these records side by side.
Limits and open questions
The HauhauCS repo is tagged with the Gemma Terms of Use license although Gemma 4 is Apache 2.0, and its metadata names the standard instruction-tuned model as its base even though the card says it was built from the QAT weights. Its “0/465 refusals” figure comes from a prompt set that is not published, and a footnote says some edge-case prompts still deflect.
The Hugging Face API reports two different parameter totals for huihui-ai’s v2 (31.27B by data type, 32.68B in its total field), while its configuration file is identical to Google’s. It is probably a metadata quirk, but it is the kind of mismatch to note when a card is your only documentation.
No variant reports how image input behaves after the edit. Test it before relying on it, because editing the language layers can change how the model describes what it sees.
Ordered as catalogued. Method, layers and claims are as each creator states them; Atlas has not tested any of these variants.
No provider in our data serves a refusal-reduced build of this model.
Estimate for Gemma 4 31B (instruction-tuned) with 32,768 tokens of context, one sequence, FP16 KV cache and 10% overhead. Variants of the same architecture need about the same.