Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/elder-plinius/OBLITERATUS
/ types & classes
Types & classes
359 in github.com/elder-plinius/OBLITERATUS
⨍
Functions
1,841
◇
Types & classes
359
↓ 118 callers
Class
ModelPreset
obliteratus/presets.py:17
↓ 65 callers
Class
AbliterationPipeline
SOTA pipeline to abliterate (remove refusal directions from) a model. Supports multiple methods (see METHODS dict for full list): - basic: Si
obliteratus/abliterate.py:692
↓ 21 callers
Class
SparseDirectionSurgeon
Perform sparse direction surgery on weight matrices. Instead of modifying all rows of a weight matrix, only modifies the rows with the highes
obliteratus/analysis/sparse_surgery.py:82
↓ 20 callers
Class
FakeMoE
tests/test_abliterate.py:1562
↓ 17 callers
Class
CrossLayerAlignmentAnalyzer
Analyze how refusal directions relate across transformer layers. Computes a full pairwise cosine similarity matrix and identifies clusters of
obliteratus/analysis/cross_layer.py:52
↓ 17 callers
Class
TransferAnalyzer
Analyze how well refusal directions transfer across contexts. Tests whether the geometric structure of refusal is universal (model-independen
obliteratus/analysis/cross_model_transfer.py:107
↓ 15 callers
Class
MultiTokenPositionAnalyzer
Analyze refusal signal across token positions. Goes beyond the standard last-token assumption to profile where refusal actually lives in the
obliteratus/analysis/multi_token_position.py:90
↓ 15 callers
Class
WhitenedSVDExtractor
Extract refusal directions using covariance-whitened SVD. This produces directions that are unusual *relative to* the model's baseline activa
obliteratus/analysis/whitened_svd.py:48
↓ 14 callers
Class
AlignmentImprintDetector
Detect alignment training method from refusal geometry. Analyzes the geometric structure of refusal directions across layers to infer which a
obliteratus/analysis/alignment_imprint.py:97
↓ 14 callers
Class
DefenseRobustnessEvaluator
Evaluate the robustness of a model's alignment against abliteration. This framework systematically probes the model's safety mechanisms to un
obliteratus/analysis/defense_robustness.py:77
↓ 13 callers
Class
ConceptConeAnalyzer
Analyze the geometric structure of refusal as a concept cone. Instead of assuming refusal is a single direction (Arditi) or a linear subspace
obliteratus/analysis/concept_geometry.py:102
↓ 12 callers
Class
InformedAbliterationPipeline
Analysis-informed abliteration pipeline. Extends the base AbliterationPipeline with a new ANALYZE stage that runs between PROBE and DISTILL.
obliteratus/informed_pipeline.py:153
↓ 12 callers
Class
LinearRefusalProbe
Train linear probing classifiers to measure refusal decodability. At each layer, trains a logistic regression classifier to distinguish harmf
obliteratus/analysis/probing_classifiers.py:79
↓ 12 callers
Class
Wrapper
tests/test_abliterate.py:1474
↓ 11 callers
Class
SpectralCertifier
Certify abliteration completeness via random matrix theory. Uses the BBP phase transition and Marchenko-Pastur distribution to provide formal
obliteratus/analysis/spectral_certification.py:119
↓ 10 callers
Class
CausalRefusalTracer
Identify causally important components for refusal via activation patching. Instead of just measuring where the refusal signal is large (correlat
obliteratus/analysis/causal_tracing.py:80
↓ 10 callers
Class
ConditionalAbliterator
Learn category-selective projection fields for conditional abliteration. Instead of removing all refusal indiscriminately, this module learns
obliteratus/analysis/conditional_abliteration.py:83
↓ 10 callers
Class
FakeExpert
tests/test_abliterate.py:1557
↓ 10 callers
Class
ResidualStreamDecomposer
Decompose the residual stream to attribute refusal to specific components. Identifies which attention heads and MLP layers contribute most to
obliteratus/analysis/residual_stream.py:95
↓ 10 callers
Class
StudyPreset
A reusable ablation recipe.
obliteratus/study_presets.py:15
↓ 9 callers
Class
AntiOuroborosProber
Discover refusal circuit redundancy by probing self-repair responses. Instead of treating the Ouroboros effect as an obstacle, this module de
obliteratus/analysis/anti_ouroboros.py:90
↓ 9 callers
Class
BenchmarkRunner
Run lightweight capability benchmarks on a model. Provides fast signal about capability impact of abliteration without requiring external dat
obliteratus/evaluation/benchmarks.py:119
↓ 9 callers
Class
MockConfig
tests/test_architecture_profiles.py:559
↓ 9 callers
Class
ModelHandle
Wrapper around a HF model + tokenizer with metadata useful for ablation.
obliteratus/models/loader.py:278
↓ 9 callers
Class
RefusalLogitLens
Decode refusal directions through the unembedding matrix. Reveals which output tokens a refusal direction promotes or suppresses, providing m
obliteratus/analysis/logit_lens.py:111
↓ 9 callers
Class
RiemannianManifoldAnalyzer
Discover and characterize the Riemannian geometry of refusal manifolds. Instead of treating refusal as a direction or subspace, this analyzer
obliteratus/analysis/riemannian_manifold.py:100
↓ 8 callers
Class
FakeModel
tests/test_heretic_eval.py:124
↓ 8 callers
Class
WassersteinOptimalExtractor
Extract Wasserstein-optimal refusal directions. Solves the generalized eigenvalue problem that minimizes the 2-Wasserstein cost of abliterati
obliteratus/analysis/wasserstein_optimal.py:96
↓ 8 callers
Class
WassersteinRefusalTransfer
Transfer refusal removal knowledge across architectures via OT. Given a successfully abliterated source model and an aligned target, computes
obliteratus/analysis/wasserstein_transfer.py:101
↓ 7 callers
Class
ActivationProbe
Probe activations to verify refusal direction removal. After abliteration, runs harmful and harmless prompts through the modified model and m
obliteratus/analysis/activation_probing.py:57
↓ 7 callers
Class
BayesianKernelProjection
Bayesian optimization over abliteration projection hyperparameters. Uses a TPE-inspired search to find the projection configuration that best
obliteratus/analysis/bayesian_kernel_projection.py:83
↓ 7 callers
Class
HereticComparisonResult
Full evaluation result in the format used by Heretics/Arditi.
obliteratus/evaluation/heretic_eval.py:777
↓ 7 callers
Class
PipelineStage
obliteratus/abliterate.py:639
↓ 6 callers
Class
AblationSpec
Describes one atomic ablation operation.
obliteratus/strategies/base.py:13
↓ 5 callers
Class
DatasetSource
Metadata for a prompt dataset source.
obliteratus/prompts.py:30
↓ 5 callers
Class
FakeModel
Fake model with lm_head and transformer.ln_f for testing.
tests/test_new_analysis_modules.py:110
↓ 5 callers
Class
FusedExperts
tests/test_abliterate.py:562
↓ 4 callers
Class
AblationResult
Result of a single ablation experiment.
obliteratus/reporting/report.py:25
↓ 4 callers
Class
AnalysisInsights
Insights gathered from the ANALYZE stage. These inform every downstream decision in the pipeline.
obliteratus/informed_pipeline.py:94
↓ 4 callers
Class
Candidate
scripts/aspa_pareto_controller.py:36
↓ 4 callers
Class
DefenseProfile
Characterization of a model's alignment defense properties.
obliteratus/analysis/defense_robustness.py:40
↓ 4 callers
Class
FakeLayer
tests/test_abliterate.py:1509
↓ 4 callers
Class
FakeTokenizer
tests/test_heretic_eval.py:143
↓ 4 callers
Class
MemoryInfo
Snapshot of accelerator memory (in GB).
obliteratus/device.py:89
↓ 4 callers
Class
ModelProfile
obliteratus/model_profile.py:19
↓ 4 callers
Class
MultiLayerTunedLensResult
Aggregated Tuned Lens results across layers.
obliteratus/analysis/tuned_lens.py:73
↓ 4 callers
Class
SAEDecompositionPipeline
Full SAE decomposition pipeline following Anthropic's methodology. Extends the basic train-and-identify workflow with: 1. Feature sparsity
obliteratus/analysis/sae_abliteration.py:396
↓ 3 callers
Class
AblationReport
Collects results and produces tables / charts / exports.
obliteratus/reporting/report.py:36
↓ 3 callers
Class
AbliterationEvalResult
Comprehensive evaluation result for an abliterated model.
obliteratus/evaluation/advanced_metrics.py:638
↓ 3 callers
Class
ActivationPatcher
Perform real activation patching to identify refusal circuits. This class hooks into a model's forward pass to collect and patch activations
obliteratus/analysis/activation_patching.py:86
↓ 3 callers
Class
AdaptiveRecommendation
A telemetry-driven recommendation for a specific model.
obliteratus/adaptive_defaults.py:246
↓ 3 callers
Class
ArchitectureProfile
Detected model architecture profile with recommended overrides.
obliteratus/architecture_profiles.py:44
↓ 3 callers
Class
BaselineResult
Result from a baseline comparison.
obliteratus/evaluation/baselines.py:32
↓ 3 callers
Class
BenchmarkResult
Result from a single benchmark probe.
obliteratus/evaluation/benchmarks.py:33
↓ 3 callers
Class
BucketKnowledge
Everything we know about one architecture bucket from telemetry.
obliteratus/adaptive_defaults.py:214
↓ 3 callers
Class
Contender
A single method's result in the tournament.
obliteratus/tourney.py:107
↓ 3 callers
Class
FakeAttn
tests/test_abliterate.py:921
↓ 3 callers
Class
LEACEExtractor
Extract refusal directions via Fisher's Linear Discriminant. Finds the direction that maximally separates harmful from harmless activations r
obliteratus/analysis/leace.py:63
↓ 3 callers
Class
MethodStats
Aggregated statistics for one method within an architecture bucket.
obliteratus/adaptive_defaults.py:150
↓ 3 callers
Class
PatchingSite
Specification of where to patch in the model.
obliteratus/analysis/activation_patching.py:45
↓ 3 callers
Class
ProjectionConfig
A single trial configuration for kernel projection.
obliteratus/analysis/bayesian_kernel_projection.py:45
↓ 3 callers
Class
ResidueExample
A single mined hard-negative prompt reference.
obliteratus/hard_negative.py:32
↓ 3 callers
Class
SteeringConfig
Configuration for inference-time steering.
obliteratus/analysis/steering_vectors.py:66
↓ 3 callers
Class
SteeringVector
A steering vector that can be applied at inference time.
obliteratus/analysis/steering_vectors.py:55
↓ 3 callers
Class
SweepResult
Results from a single sweep configuration.
obliteratus/sweep.py:49
↓ 3 callers
Class
TourneyResult
Full tournament results.
obliteratus/tourney.py:134
↓ 3 callers
Class
TourneyRound
One round of the tournament.
obliteratus/tourney.py:122
↓ 3 callers
Class
TunedLensProbe
A single per-layer affine probe for the Tuned Lens.
obliteratus/analysis/tuned_lens.py:50
↓ 3 callers
Class
TunedLensTrainer
Train per-layer affine probes for the Tuned Lens. Each probe learns to map intermediate residual stream activations to the final-layer repres
obliteratus/analysis/tuned_lens.py:100
↓ 3 callers
Class
Wrapper
tests/test_abliterate_extended.py:149
↓ 3 callers
Class
_MockInformedReport
tests/test_telemetry.py:509
↓ 2 callers
Class
ASRGResult
Complete Adversarial Self-Repair Graph analysis.
obliteratus/analysis/anti_ouroboros.py:59
↓ 2 callers
Class
ActivationPatchingResult
Full results from an activation patching sweep.
obliteratus/analysis/activation_patching.py:67
↓ 2 callers
Class
AlignmentImprint
Detected alignment training imprint.
obliteratus/analysis/alignment_imprint.py:54
↓ 2 callers
Class
AutoObliterateResult
Final result of the full auto-obliteration loop.
obliteratus/auto_obliterate.py:64
↓ 2 callers
Class
BaseInstructDelta
Comparison between base model and instruct model activations. This captures what alignment training actually changed — the "delta" between th
obliteratus/analysis/alignment_imprint.py:82
↓ 2 callers
Class
BayesianOptimizationResult
Full result of Bayesian optimization over projection configs.
obliteratus/analysis/bayesian_kernel_projection.py:67
↓ 2 callers
Class
ConditionalAbliterationResult
Result of conditional abliteration analysis.
obliteratus/analysis/conditional_abliteration.py:55
↓ 2 callers
Class
CrossCategoryResult
Cross-category transfer matrix.
obliteratus/analysis/cross_model_transfer.py:75
↓ 2 callers
Class
CrossLayerResult
Cross-layer transfer analysis.
obliteratus/analysis/cross_model_transfer.py:87
↓ 2 callers
Class
CrossLayerResult
Result of cross-layer alignment analysis.
obliteratus/analysis/cross_layer.py:39
↓ 2 callers
Class
CrossModelResult
Cross-model transfer analysis.
obliteratus/analysis/cross_model_transfer.py:62
↓ 2 callers
Class
DatasetConfig
obliteratus/config.py:23
↓ 2 callers
Class
EigenvalueAnalysis
Detailed eigenvalue decomposition of the residual covariance.
obliteratus/analysis/spectral_certification.py:109
↓ 2 callers
Class
EntanglementMap
Maps the safety-capability coupling across model components.
obliteratus/analysis/defense_robustness.py:67
↓ 2 callers
Class
Evaluator
Evaluate a model handle on a dataset, returning metric results. Supports two modes: - **perplexity** (default for causal_lm): feeds tokeniz
obliteratus/evaluation/evaluator.py:12
↓ 2 callers
Class
FakeAttnGQA
tests/test_abliterate.py:995
↓ 2 callers
Class
FakeTokenizer
Fake tokenizer that maps strings to reproducible token IDs.
tests/test_new_analysis_modules.py:97
↓ 2 callers
Class
GeodesicProjectionResult
Result of geodesic (curvature-aware) projection.
obliteratus/analysis/riemannian_manifold.py:88
↓ 2 callers
Class
HeadContribution
Refusal contribution from a single attention head.
obliteratus/analysis/residual_stream.py:43
↓ 2 callers
Class
InformedPipelineReport
Complete report from the informed pipeline.
obliteratus/informed_pipeline.py:140
↓ 2 callers
Class
ModelConfig
obliteratus/config.py:13
↓ 2 callers
Class
MultiLayerConeResult
Cone geometry across multiple layers.
obliteratus/analysis/concept_geometry.py:92
↓ 2 callers
Class
MultiLayerLogitLensResult
Aggregated logit lens results across layers.
obliteratus/analysis/logit_lens.py:102
↓ 2 callers
Class
MultiLayerWassersteinResult
Aggregated Wasserstein-optimal results across layers.
obliteratus/analysis/wasserstein_optimal.py:87
↓ 2 callers
Class
MultiTokenSummary
Aggregate multi-token analysis across multiple prompts.
obliteratus/analysis/multi_token_position.py:78
↓ 2 callers
Class
ProbeResult
Full probing result across all layers.
obliteratus/analysis/activation_probing.py:47
↓ 2 callers
Class
ProbingSuiteResult
Probing results across all layers.
obliteratus/analysis/probing_classifiers.py:68
↓ 2 callers
Class
RefusalTunedLens
Decode refusal directions through learned per-layer affine probes. Provides more accurate per-layer analysis than the raw Logit Lens, especia
obliteratus/analysis/tuned_lens.py:190
↓ 2 callers
Class
RemoteRunner
Execute Obliteratus commands on a remote machine via SSH.
obliteratus/remote.py:69
next →
1–100 of 359, ranked by callers