Dual Imatrix: Abliteration-Blended LoRA Orientation
Model that uses this corpus | QTE (fine-tune data) | Heretic
Quantize a normal model with a generic calibration corpus and you're fine — it protects whatever shows up in the text, and a normal model doesn't have anything unusual hiding in its weights that the calibration needs to specifically go looking for. Any model that's been abliterated and then pushed through a heavy fine-tune is a different case. Both of those edits are, in a real sense, fragile — not because they're weak, but because they're surgical. A generic corpus has no reason to exercise either one, and at low bit-widths, whatever imatrix doesn't see gets no protection from quantization noise. That's exactly the kind of noise that nudges a model back toward refusing things it was specifically edited not to, or quietly blurs a skill a LoRA spent real training steps building.
DIABLO is the general answer to that problem, not a one-off fix. This repo happens to package it for Judas, since that's the model it was built alongside, but the method underneath — blend the fine-tune's own training data, the abliteration's own search prompts, and enough general material to avoid overfitting, while deliberately leaving the refusal direction out of all of it — applies to any abliterated, heavily-LoRA'd model. Swap in your own fine-tune data and your own abliteration search prompts and the same recipe holds.
DIABLO is the corpus built to not let that happen. Every piece of it is there on purpose:
- the fine-tuned direction is represented, with real samples pulled straight from the actual training data,
- the non-refusal direction is represented, using the exact prompt sets the abliteration search itself was computed against,
- general language, code, and tool-calling/agentic behavior are represented too, so the calibration doesn't overfit to one narrow slice — tool-calling especially, since that's empirically the first capability to visibly crack under aggressive quantization,
- and the refusal direction is absent from every single source. Nothing here is "please refuse this." Imatrix only protects what it sees, so a direction that never shows up gets no protection at all — quantization is left free to erode it rather than reinforce it.
The instinct behind this is the same one behind DavidAU's "Di-IMatrix" quants (blending raw statistics from several themed calibration sets instead of leaning on one generic corpus) and Unsloth's per-tensor calibration tricks — just pointed specifically at the abliteration-plus-LoRA problem instead of a general creative-writing one.
Everything this corpus leaves out gets burned away at quantization time, same as everything it includes gets protected — and the one thing it deliberately leaves out is the refusal direction, on purpose, every time. That's the whole job: make sure Judas's one betrayal survives getting compressed down to a few bits per weight.
Composition
Five sources, each earning its slice for a specific reason — nothing here is filler.
| Source | Target share | What it protects |
|---|---|---|
| kernovantresearch/QTE (real rows from the actual LoRA training mixture) | 25% | The direction the LoRA was actually shaped toward |
| mlabonne/harmless_alpaca + mlabonne/harmful_behaviors | 15% | The exact prompt sets Heretic's abliteration search was computed against — the non-refusal direction |
| Bartowski's calibration-v6 (prose + their own tool-use selection) | 15% | General, well-vetted community-standard calibration prose |
| interstellarninja/hermes_reasoning_tool_use (independent sample, not the same rows Bartowski picked) | 20% | Tool-calling / agentic behavior specifically — usually the first thing to visibly degrade under aggressive quantization |
eaddario/imatrix-calibration code_small.parquet |
25% | Coding ability |
Final corpus: diablo_imatrix.txt, ~152k words / ~197k tokens (rough estimate), chunks from all five sources shuffled together (not block-concatenated) before writing out, so no single source dominates a contiguous stretch of the context window during calibration.
How it was built
Nothing here is assembled by hand or baked in from a local snapshot — the whole thing pulls live and rebuilds the same way every time. build_blend.py (included in this repo) is self-contained — it pulls every source live from the Hub (QTE, the two Heretic prompt sets, Bartowski's gist, the tool-use dataset, the code dataset) rather than reading anything off disk, so it's directly rerunnable:
python build_blend.py --out diablo_imatrix.txt --qte-repo kernovantresearch/QTE
It pulls a target word-count budget from each source (shuffled, so no positional bias), renders multi-turn sources into plain role: content turns, and interleaves everything before writing the final .txt. Two gotchas hit and fixed during construction, left in the script as comments: eaddario/imatrix-calibration's parquet files store the entire corpus as a single giant string in one row (split into windows before sampling, not after), and Bartowski's v6_conversations.json is selection metadata (kept_indices into the source dataset), not the conversation text itself — the real text is under its conversations key. --qte-repo is gated/private; you need access to kernovantresearch/QTE (or point it at your own equivalent dataset) and a logged-in hf CLI session for that part to resolve.
Usage
./llama-imatrix -m model-f16.gguf -f diablo_imatrix.txt -o imatrix.gguf
./llama-quantize --imatrix imatrix.gguf model-f16.gguf model-q4_k_m.gguf q4_k_m
The resulting imatrix (diablo_imatrix.gguf) lives in the Judas-33B-A3B-DIABLO model repo next to the quant it was built for, not here. It was computed against that model's BF16 weights (560 chunks, 512-token context, final PPL estimate 5.0042) — reusable as-is if you're quantizing that exact model, or as a reference if you're adapting this methodology to something else.
Limitations
- The methodology generalizes to any abliterated, heavily-LoRA'd model — the specific file released here doesn't. The QTE and Heretic-prompt components in this exact corpus are tied to Judas's own training/abliteration history; quantizing a different model means rebuilding the blend with that model's own fine-tune data and search prompts via
build_blend.py, not reusingdiablo_imatrix.txtas-is. - The "refusal direction gets eroded by omission" effect is the stated intent, not something independently measured here (no before/after refusal-rate comparison across quant levels has been run yet).
harmful_behaviorsprompts are included as raw text for calibration purposes only (same set Heretic itself uses for its abliteration search) — see that dataset's own card for its terms.