Granite-4.2-8B-Heretic GGUF
GGUF quantizations of richardyoung/granite-4.2-8b-heretic, an abliterated build of ibm-granite/granite-4.2-8b (IBM's Granite 4.2 8B instruct model, multilingual (12 languages) with tool calling and a thinking mode) made with Heretic.
Abliteration Results
| Metric | Value |
|---|---|
| Base Refusals | 99/100 |
| Abliterated Refusals | 12/100 |
| Refusal Reduction | 88% |
| KL Divergence | 0.080 |
The very low KL divergence (0.080, far below the 0.5 “damage” threshold) means the model retains essentially all of its original capabilities and coherence.
Quick Start
With Ollama
ollama run richardyoung/granite-4.2-8b-heretic
# or straight from Hugging Face
ollama run hf.co/richardyoung/granite-4.2-8b-heretic-GGUF
With llama.cpp
huggingface-cli download richardyoung/granite-4.2-8b-heretic-GGUF \
--include "*Q4_K_M*" --local-dir ./models
./llama-cli -m ./models/*Q4_K_M*.gguf -ngl 99
With Python (llama-cpp-python)
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="richardyoung/granite-4.2-8b-heretic-GGUF",
filename="*Q4_K_M*",
n_gpu_layers=-1,
)
output = llm.create_chat_completion(
messages=[{"role": "user", "content": "Explain abliteration in simple terms."}]
)
print(output["choices"][0]["message"]["content"])
Available Quantizations
| Quantization | Size | Use Case |
|---|---|---|
| IQ3_M | 4.1 GB | Smallest |
| IQ4_XS | 4.8 GB | Great quality-size balance |
| Q4_K_M | 5.3 GB | Recommended — good balance |
| Q5_K_M | 6.3 GB | Higher quality |
| Q6_K | 7.2 GB | Very high quality |
| Q8_0 | 9.3 GB | Near-lossless |
| granite-4.2-8b-heretic-imatrix.gguf | – | Importance matrix used for the IQ and Q4_K_M/Q5_K_M quants (calibration_datav3) |
Quant Quality
Each quant compared with the F16 model using llama-perplexity --kl-divergence on the wikitext-2 test set (40 × 512-token chunks). KL divergence measures how far the quant's next-token probabilities drift from F16; lower is better. Top-token match is how often the quant picks the same next token as F16. As a rough guide, a KLD under 0.01 is hard to tell from F16, and from about 0.05 differences start to show in longer outputs.
| Quant | Size | KL divergence | Top-token match | Perplexity (F16: 16.93) |
|---|---|---|---|---|
| IQ3_M | 4.1 GB | 0.2835 | 80.1% | 17.83 |
| IQ4_XS | 4.8 GB | 0.1194 | 87.3% | 17.20 |
| Q4_K_M | 5.3 GB | 0.1060 | 88.5% | 17.62 |
| Q5_K_M | 6.3 GB | 0.0435 | 93.2% | 17.08 |
| Q6_K | 7.2 GB | 0.0435 | 93.7% | 17.04 |
| Q8_0 | 9.3 GB | 0.0089 | 97.8% | 17.02 |
What is Abliteration?
Abliteration removes the "refusal direction" from a model's residual stream — a surgical modification that disables safety refusals without retraining. See Refusal in Language Models Is Mediated by a Single Direction. Heretic automates it: it searches ablation parameters with an optimizer (200 trials here) and keeps the trials that best trade off fewer refusals against KL divergence from the original model.
Intended Use
Research, creative writing, education on alignment techniques, and unrestricted local inference. This model will comply with requests the original refuses; use responsibly and in accordance with applicable laws. License: Apache-2.0, inherited from the base model.
Other Models by richardyoung
- New Heretic models (reproducible, listed in the Heretic Grimoire): LFM2.5-1.2B | Granite-4.2-3B | Granite-4.2-8B | Olmo-3-7B-Think | Phi-4-mini | DeepSeek-R1-0528-Qwen3-8B | Agents-A1-4B | FrogNano-4B | Muse-Glimmer-30B | Hemmingway-1
- Abliterated/Uncensored models: Qwen2.5-7B | Qwen3-14B | DeepSeek-R1-32B | Qwen3-8B
- OCR & Vision: MiniCPM-V-4.6 GGUF | dots.mocr GGUF | Unlimited-OCR GGUF | olmOCR GGUF | LightOnOCR-3-4B GGUF | WeVisDoc-4B GGUF | Xiaomi-OCR-0 GGUF
- MLX quantizations (Apple Silicon): Kimi-K2 series | olmOCR MLX
- Healthcare/Medical: Synthea 575K patients dataset | CardioEmbed
- Research: LLM Instruction-Following Evaluation (arxiv:2510.18892)
Built & maintained by Richard Young · DeepNeuro