UPDATE 2026-07-20: Download & use Google's new chat template from here for better speed and accurancy. See Unsloth's post for details.


WARNING: Created with heavy LLM assistance (Zoo Code + DeepSeek-V4-Flash). Use at your own discretion.

Cosplayed Frankenstein and grafted/"merged" llmfan46's abliterated tensors onto Unsloth's lossless Q4_0 quant. Should yield better accurancy and refusal rate than a naive abliterated Q4_0 quant.

This repo contains two variants: "UDmerge-Q4_K_XL" have the abliterated tensors (blk.N.attn_output.weight, where N is 24 to 34 inclusive) quantized to Q4_0, while "UDmerge-Q4_K_XXL" quantizes them to Q8_0. The latter improves refusal rate by a lot, while basically not affecting TG speed (your mileage may vary).

Use Unsloth's mmproj and mtp GGUF files for multimodal and MTP support.

- QAT BF16 QAT Q4_0 QAT Q4_K_M QAT UDmerge-Q4_K_XL QAT UDmerge-Q4_K_XXL - PTQ BF16 PTQ Q4_0* PTQ Q4_K_M
Size (GB) 23.9 7.60 7.38 6.72 6.81 - 23.9 7.00 8.54
PPL 3.423 3.716 3.734 3.343 3.400 - 3.941 4.733 4.950
KLD 0.0000 0.1752 0.2463 0.1012 0.0903 - 0.0000 0.3794 0.3430
Refusal 10% 10% 22% 24% 14% - 11% 10% 9%
MMLU-val 74.59% 74.00% 74.40% 75.77% 74.66% - 71.00% 65.77% 71.20%
MMLU-val %flips 0.00% 3.33% 4.11% 3.14% 0.98% - 0.00% 10.71% 4.38%
MMLU-val %allflips 0.00% 4.18% 5.29% 3.66% 1.37% - 0.00% 13.85% 5.62%

Legend:

  • *: Quant made with importance matrix ("imatrix"), results may be unreliable

PPL and KLD are tested on the same dataset as Heretic, i.e. the first 100 questions in the mlabonne/harmless_alpaca dataset's test split. Note that the dataset is processed differently, thus the numbers here are only meaningful for comparsions in this table, not with other models.

Refusal rates are also tested on the same dataset as Heretic, i.e. the first 100 questions in the mlabonne/harmful_behaviors dataset's test split. The test script, however, is adapted from Heretic to support testing needs. Note that the original author claimed 11% refusal rate for 31B and 26B-A4B models, and 6%~7% for 12B, which is not reproduced here; this is probably due to test method differences, but please take the numbers here with a grain of salt.

"MMLU-val" refers to zero-shot testing on the cais/mmlu dataset's validation split (1531 questions). All tests are done once with temperature 0.0 and reasoning off. MTP is not enabled during testing. See the test script and raw data for details.

"%flips" and "%allflips" refer to the percentage of changed answers compared to BF16 models, measured as by the paper Accuracy is Not All You Need (arXiv:2407.09141). "%flips" is the percentage of "right-to-wrong" and "wrong-to-right" changes, while "%allflips" is the percentage of all changed answers.

More test results
- QAT BF16 QAT Q4_0 QAT Q4_K_M QAT UDmerge-Q4_K_XL QAT UDmerge-Q4_K_XXL - PTQ BF16 PTQ Q4_0* PTQ Q4_K_M
MMLU-val-v1 75.57% 75.38% 75.51% 76.81% 75.44% - 73.81% 70.48% 73.22%
MMLU-val-v1 %nulls 0.78% 0.78% 3.46% 1.76% 0.78% - 0.20% 0.20% 0.07%
MMLU-val-v1 %flips 0.00% 2.55% 5.68% 3.85% 0.65% - 0.00% 8.69% 4.77%
MMLU-val-v1 %allflips 0.00% 3.46% 8.23% 5.36% 0.78% - 0.00% 12.21% 6.92%

"MMLU-val-v1" numbers are "MMLU-val" test done by an older version of the test script, which does not enforce grammar constraints on answer format. These number are less representative than the ones given above (?), and are kept here for reference purposes only. "%nulls" here refers to the percentage of "null answers", i.e. answers that are not in the required format, thus not parsable.

More information, including test scripts and raw test data, will be released soon.

Downloads last month
3,825
GGUF
Model size
12B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for EZForever/gemma-4-12B-it-qat-uncensored-heretic-UDmerge-GGUF

Collection including EZForever/gemma-4-12B-it-qat-uncensored-heretic-UDmerge-GGUF

Paper for EZForever/gemma-4-12B-it-qat-uncensored-heretic-UDmerge-GGUF