Skip to main content
The Python API exposes every intermediate artifact — activation tensors, direction vectors, quality metrics, analysis insights — so you can build on top of OBLITERATUS or integrate it into your own evaluation harness.

AbliterationPipeline

The core pipeline. Implements the 6-stage obliteration process (SUMMON → PROBE → DISTILL → EXCISE → VERIFY → REBIRTH).

Constructor

run()

Runs the full 6-stage pipeline. The returned path can be passed directly to AutoModelForCausalLM.from_pretrained().

Accessing artifacts

After pipeline.run() completes, intermediate artifacts are available as attributes:

Full example


InformedAbliterationPipeline

Extends AbliterationPipeline with a new ANALYZE stage that runs between PROBE and DISTILL. Analysis module outputs auto-configure every downstream decision.

Constructor

run_informed()

Report fields

The InformedPipelineReport contains:

Full example


Community functions

Save and aggregate local contribution records.

save_contribution()

load_contributions() and aggregate_results()

Full contribution workflow


TourneyRunner

Run a March Madness-style elimination tournament across all methods.
The tournament scoring composite (higher is better):
  • 35% refusal removal
  • 25% coherence
  • 20% KL divergence (inverted: lower KL = higher score)
  • 10% perplexity (inverted)
  • 5% spectral certification
  • 5% degenerate output penalty

run_sweep / SweepConfig

Systematically sweep hyperparameter grids to find optimal configurations.
run_sweep returns a list[SweepResult], one per (param_config, seed) pair. Each SweepResult has:
  • params — the hyperparameter values for this run
  • quality_metrics — full metrics dict from VERIFY
  • stage_durations — per-stage wall-clock seconds
  • strong_layers — layers with the strongest signal
  • error — exception message if the run failed, else None

Steering vectors

For reversible, inference-time refusal removal without touching model weights.
Based on Turner et al. (2023) and Rimsky et al. (2024). Advantages over weight projection: fully reversible, tunable alpha, composable with multiple vectors, non-destructive.