The origin: abliteration
Contrast harmful vs. benign prompts, extract a refusal direction, project it out of a writer matrix:
W′ = W − α·d(dᵀW). Effective — but fragile across architectures, and silent about what else changed.
DWM RESEARCH · DWMIP v0 PROTOCOL
Ablagent is an evidence-first, architecture-aware research runtime for Domain Weight Modification — the framework that grew out of abliteration and false-refusal removal research. Every intervention is a declared, digest-bound experiment. Every gate has a purpose. No score compensates for a missing redline.
Abliteration research showed that refusal behavior can be traced to directions in activation space and suppressed with rank-one weight edits. DWM extends that foundation into a general, architecture-aware discipline: which writer, in which space, at which site, with what evidence.
Contrast harmful vs. benign prompts, extract a refusal direction, project it out of a writer matrix:
W′ = W − α·d(dᵀW). Effective — but fragile across architectures, and silent about what else changed.
Domain Weight Modification treats the edit as a declared experiment: explicit graph and writer
identity, bounded plans, digest-bound artifacts, retained trial lineage, and hard gates that fail closed.
The v0 runtime implements this discipline on synthetic tensors you can verify on a laptop — and, with the
optional [real] extra, on small dense HuggingFace checkpoints you name by URL.
Click a stage. Planning never executes; compilation is the only step that writes a candidate; verification replays it independently.
Eligibility is computed by evaluate_eligibility() in
src/ablagent/policy.py. Gates are conjunctive: all must pass (with one narrowly-scoped
exception for bank publication). Click any gate to expand its purpose.
Some conditions raise PolicyBlocked before any decision exists — they are not gate FAILs,
they abort evaluation: passing red-line observations without a complete mock attestation; an attestation bound to a
different bank or artifact; red-line metrics that don't exactly match the selected-bank attestation; an attestation
present without its complete metric set. Tampering is an exception, not a score.
A faithful client-side mirror of the v0 policy for a verified synthetic bundle. Change inputs and watch the decision. The real verifier additionally re-hashes and replays every artifact.
not_granted — alwayssynthetic_policy_conformance_onlyEvery required metric carries exactly one state. “Behavior failed” and “the gate could not evaluate behavior” are different facts, and the protocol keeps them different.
Each artifact binds the digests of its inputs. verify-evidence reloads the graph and
tensors, independently recomputes the update and observation, validates the selected trial chain, and checks metric
references — offline, no credentials. Hashes provide tamper evidence, not author authenticity; signed approvals and a
protected release system are separate responsibilities.
The repo vendors the exact duplication kit published with Blackfrost-AI/Inkling-2-Mini-Derisked — byte-identical at a pinned revision, with a per-file SHA-256 provenance manifest and an offline verifier.
A loop transformer: 24 physical layers, layers 6–17 executed in 3 passes per token — 48 logical layer-visits. Naive abliteration assumptions break here; the kit shows physical-vs-logical targeting and per-pass direction capture.
Per-pass consensus column orthogonalization of the attention-writer output space, physical layers 9–18, α = 2.5, loop structure intact. The edit receipt binds the published weight shard's SHA-256.
Six inaccuracies in the original runbook were verified against the shipped scripts, corrected on Hugging Face, and preserved as correction history. The scripts and receipt are the ground truth — not the narrative.
| α | answered | substituted | refused |
|---|---|---|---|
| 1.5 | 21 | 14 | 15 |
| 1.7 | 19 | 16 | 15 |
| 2.0 | 29 | 11 | 10 |
| 2.5 | 38 | 10 | 2 |
The kit is the validated GPU/torch pipeline that produced the artifact — vendored research material, not executed by the synthetic v0 runtime. Reproduction needs the upstream checkpoint and a CUDA host; see the example README.
Four more finalized GPU-scale playbooks — Qwen 9B-class, Qwen3.6-35B-A3B, GLM-5.3 BF16 α2.2, GLM-5.3 Flash α2.8 — are vendored hash-locked in the recipe library, each with its own runbook, pinned inputs, evidence receipts, and package verifier. The library grows as runs are finalized; snapshots are immutable and corrections ship as new versions.
Quantization is part of the intervention surface. Blackfrost research has investigated BF16, FP8/MXFP8, NVFP4, GGUF/Q8_0 and IQ2_XXS — with the operation and evidence class kept explicit.
| Path | Research operation | Boundary |
|---|---|---|
| BF16 | Capture and dense float edits | Does not transfer automatically to a quant |
| FP8 / MXFP8 | Scale reconstruction and requantization round-trips | Not a validated FP8 intervention |
| NVFP4 | BF16→NVFP4 PTQ deployment; codec research; serialization | Not native NVFP4 editing or retained behavior |
| GGUF / IQ2_XXS | IQ-surface editing, selective Q8 promotion, packing checks and serving | Retention and behavior are checkpoint-specific |
| EXL3 | Not yet proven for DWM editing | Needs dedicated end-to-end qualification |
These are format-specific historical research results, not universal support claims. The current
CLI edits only its qualified small dense float safetensors envelope; FP8, NVFP4, GGUF and IQ direct codecs
are not implemented. Codec correctness, directional retention, serving and behavioral efficacy are separate questions.
Read the full format research matrix →
Python 3.11+. No GPU, no credentials. The synthetic slice is fully offline; the real executor downloads only the checkpoint you name.
python3 -m venv .venv .venv/bin/python -m pip install -e '.[dev]'
.venv/bin/ablagent demo --run-dir .runs/reference
.venv/bin/ablagent verify .runs/reference/candidate.manifest.json .venv/bin/ablagent verify-evidence .runs/reference/candidate.evidence.json
.venv/bin/ablagent gate .runs/reference/candidate.evidence.json \ --bank examples/banks/synthetic-release-mock.bank.json
python scripts/verify_example_provenance.py
.venv/bin/python -m pip install -e '.[real]' .venv/bin/ablagent run --pack derisk --executor real \ --model https://huggingface.co/HuggingFaceTB/SmolLM2-135M --alpha 1.0
The real executor pins the commit, captures refusal-contrast directions
(correlational, never causal), compiles the same digest-bound rank-one edit, and exports an HF-loadable copy with
exactly one tensor changed. Quant, serve, behavior/capability verify, red-lines, and delivery are recorded as
skipped — untested; the run ends not_eligible. An experimental artifact, never a release.