MCPcopy Create free account

hub / github.com/elder-plinius/OBLITERATUS / functions

Functions1,841 in github.com/elder-plinius/OBLITERATUS

↓ 1 callersFunction_load_harmbench_classifier
Load the fine-tuned HarmBench Llama-2-13B classifier. Model: cais/HarmBench-Llama-2-13b-cls Paper: Mazeika et al. (2024) — HarmBench (ICML 20
obliteratus/evaluation/heretic_eval.py:302
↓ 1 callersMethod_load_state
Load watchtower state from disk.
obliteratus/watchtower.py:126
↓ 1 callersMethod_load_state
Load state from disk for resumption.
obliteratus/auto_obliterate.py:147
↓ 1 callersFunction_local_config
(model: str | Path)
obliteratus/model_profile.py:53
↓ 1 callersFunction_make_activations
Create harmful/harmless activations with planted refusal signal.
tests/test_breakthrough_modules.py:45
↓ 1 callersFunction_make_dummy_handle
Create a minimal ModelHandle with a tiny GPT-2 for testing (no network).
tests/test_strategies.py:16
↓ 1 callersMethod_make_hook
Create a forward hook that applies steering vectors.
obliteratus/analysis/steering_vectors.py:255
↓ 1 callersFunction_make_tiny_handle
Create a minimal ModelHandle with a tiny GPT-2 for testing.
tests/test_abliterate.py:29
↓ 1 callersFunction_make_tiny_handle
Create a minimal ModelHandle with a tiny GPT-2 for testing.
tests/test_abliterate_extended.py:25
↓ 1 callersMethod_measure_fidelity
Measure how well a transferred direction separates harmful/harmless. Fidelity = correlation between source projection magnitudes and
obliteratus/analysis/wasserstein_transfer.py:422
↓ 1 callersFunction_measure_kl_divergence
Measure KL divergence from reference (pre-ablation) logits.
obliteratus/bayesian_optimizer.py:97
↓ 1 callersFunction_measure_refusal_rate
Measure refusal rate on a subset of harmful prompts. Applies the model's chat template (when available) so the model is in chat mode — matchi
obliteratus/bayesian_optimizer.py:45
↓ 1 callersMethod_measure_selectivity
Measure how selectively a projector targets its intended category. Selectivity = 1 - (collateral damage / intended removal) Collatera
obliteratus/analysis/conditional_abliteration.py:297
↓ 1 callersFunction_param_grid
Generate all combinations of sweep parameters.
obliteratus/sweep.py:59
↓ 1 callersMethod_pareto_front
Extract Pareto-optimal trials (refusal reduction vs distortion).
obliteratus/analysis/bayesian_kernel_projection.py:376
↓ 1 callersFunction_pick_compute_tier
Let the user choose their compute tier with auto-detection.
obliteratus/interactive.py:47
↓ 1 callersFunction_pick_model
Show models for the chosen tier and let the user pick.
obliteratus/interactive.py:74
↓ 1 callersFunction_pick_sample_size
Let the user pick how many samples to evaluate on (custom mode).
obliteratus/interactive.py:185
↓ 1 callersFunction_pick_strategies
Let the user choose which ablation strategies to run (custom mode).
obliteratus/interactive.py:153
↓ 1 callersFunction_pick_study_preset
Let the user pick an ablation preset or go custom. Returns a StudyPreset if chosen, or None for custom mode.
obliteratus/interactive.py:119
↓ 1 callersMethod_precompute_stats
Pre-compute per-layer statistics for fast trial evaluation.
obliteratus/analysis/bayesian_kernel_projection.py:193
↓ 1 callersFunction_print_csv
Print results as CSV.
scripts/aggregate_contributions.py:143
↓ 1 callersFunction_print_launch_info
Print launch configuration.
obliteratus/local_ui.py:226
↓ 1 callersFunction_print_recommendations
Print model recommendations based on detected hardware.
obliteratus/local_ui.py:177
↓ 1 callersFunction_print_summary
Print a human-readable summary of aggregated results.
scripts/aggregate_contributions.py:97
↓ 1 callersFunction_print_system_info
Print a beautiful system info panel.
obliteratus/local_ui.py:98
↓ 1 callersMethod_random_config
Generate a random projection configuration.
obliteratus/analysis/bayesian_kernel_projection.py:291
↓ 1 callersMethod_rank_agreement
Compute Spearman-like rank agreement between projection and causal rankings.
obliteratus/analysis/causal_tracing.py:306
↓ 1 callersMethod_rebirth_informed
Save model with comprehensive analysis metadata.
obliteratus/informed_pipeline.py:1194
↓ 1 callersMethod_remove_harmless_principal_components
Subtract dominant benign activation PCs from refusal directions.
obliteratus/abliterate.py:2629
↓ 1 callersMethod_residualize_against_shield_atoms
Remove protected concept atoms with ridge-regularized projection.
obliteratus/abliterate.py:2663
↓ 1 callersMethod_restore_layer_weight_norms
Rescale weight matrices to their previously captured norms. Should be called ONCE after ALL subspace directions have been projected o
obliteratus/abliterate.py:4793
↓ 1 callersFunction_restore_rounds
Restore completed rounds and interrupted round state from checkpoint. Returns: (result_with_completed_rounds, partial_contenders, remaini
obliteratus/tourney.py:289
↓ 1 callersFunction_results_to_csv
Convert benchmark results list to a CSV string. Returns None if empty.
app.py:920
↓ 1 callersFunction_run_lm_eval_cli
Run lm-evaluation-harness via CLI subprocess.
obliteratus/evaluation/heretic_eval.py:701
↓ 1 callersFunction_run_lm_eval_python
Run lm-evaluation-harness via Python API.
obliteratus/evaluation/heretic_eval.py:634
↓ 1 callersMethod_run_one_method
Run a single method, optionally inside a gpu_wrapper.
obliteratus/tourney.py:1140
↓ 1 callersFunction_run_quantized
Run ablation with quantized model loading.
obliteratus/interactive.py:317
↓ 1 callersMethod_run_with_patch
Run model with a single activation patched.
obliteratus/analysis/activation_patching.py:257
↓ 1 callersFunction_safe_float
Safely convert a value to float, returning None on failure.
obliteratus/telemetry.py:917
↓ 1 callersFunction_save_bench_csv
Write benchmark results to a temp CSV file and return the path.
app.py:940
↓ 1 callersFunction_save_checkpoint
Save tournament progress so it can be resumed after quota exhaustion.
obliteratus/tourney.py:184
↓ 1 callersFunction_save_results
Save sweep results to JSON.
obliteratus/sweep.py:136
↓ 1 callersFunction_send_sync
Synchronously write a v2 telemetry report to local JSONL and sync to Hub.
obliteratus/telemetry.py:1152
↓ 1 callersMethod_silhouette_approx
Approximate silhouette score from cosine similarity matrix.
obliteratus/analysis/sae_abliteration.py:613
↓ 1 callersMethod_simulate_repair_graph
Simulate self-repair graph when no empirical data is available. Uses heuristic: when layer i is ablated, layers with high refusal str
obliteratus/analysis/anti_ouroboros.py:263
↓ 1 callersMethod_ssh_base_cmd
Build base SSH command with common options.
obliteratus/remote.py:80
↓ 1 callersFunction_telemetry_dir
Find a writable directory for telemetry storage. Priority order: 1. ``OBLITERATUS_DATA_DIR`` env var (explicit override) 2. HuggingFace S
obliteratus/telemetry.py:94
↓ 1 callersFunction_text_cfg
(cfg: Any)
obliteratus/model_profile.py:42
↓ 1 callersFunction_tourney_gpu_run
Execute *fn* inside a ZeroGPU GPU allocation. Used by ``run_tourney`` to give each tournament method its own 5-minute GPU allocation instead
app.py:3245
↓ 1 callersMethod_tpe_sample
TPE-inspired sampling: bias towards configurations similar to good trials.
obliteratus/analysis/bayesian_kernel_projection.py:323
↓ 1 callersMethod_transport_direction
Transport a refusal direction through the OT map. Applies T to the source direction and normalizes in the target space.
obliteratus/analysis/wasserstein_transfer.py:389
↓ 1 callersMethod_triangle_curvature
Estimate curvature from a single triangle using angle excess. On a Riemannian manifold with curvature K, the angle sum of a geodesic
obliteratus/analysis/riemannian_manifold.py:418
↓ 1 callersMethod_verify_and_compensate
Verify excision and run Ouroboros-compensated refinement if needed. After the initial excision, uses analysis modules to detect: 1. R
obliteratus/informed_pipeline.py:1118
↓ 1 callersMethod_winsorize_activations
Winsorize activation vectors to tame outlier values. Clamps each layer's activations to the [p, 1-p] percentile range computed across
obliteratus/abliterate.py:1540
↓ 1 callersFunction_words
(text: str)
scripts/gemma4_public_refusal_bench.py:47
↓ 1 callersMethodadd_capability
(self, path: Path, data: dict[str, Any])
scripts/aspa_pareto_controller.py:60
↓ 1 callersMethodadd_community
(self, path: Path, data: dict[str, Any])
scripts/aspa_pareto_controller.py:80
↓ 1 callersMethodadd_kl
(self, path: Path, data: dict[str, Any])
scripts/aspa_pareto_controller.py:69
↓ 1 callersMethodadd_ship
(self, path: Path, data: dict[str, Any])
scripts/aspa_pareto_controller.py:49
↓ 1 callersFunctionadvbench_tasks
(limit: int)
scripts/gemma4_public_refusal_bench.py:100
↓ 1 callersMethodanalyze_all_layers
Analyze refusal directions across all layers with trained probes. Args: refusal_directions: {layer_idx: direction} for each layer
obliteratus/analysis/tuned_lens.py:276
↓ 1 callersMethodanalyze_all_layers
Analyze cone geometry across multiple layers. Args: harmful_acts: {layer_idx: [activations]} per layer. harmless_acts
obliteratus/analysis/concept_geometry.py:242
↓ 1 callersFunctionapply_lora_adapters
Apply pre-computed LoRA adapters by modifying weights in-place. This is equivalent to merging the LoRA into the base model. The adapters dict
obliteratus/lora_ablation.py:199
↓ 1 callersFunctionapply_projection
Project refusal direction out of weight matrices. When multi_dir_norm_fix=True, uses the correct approach: capture norms before projecting an
scripts/abliteration_comparison.py:298
↓ 1 callersFunctionauto_hub_repo_id
Generate a Hub repo ID like ``{namespace}/{short_model}-OBLITERATED``. If *org* is given, uses that as the namespace (e.g. a shared community org
obliteratus/abliterate.py:664
↓ 1 callersFunctionbenchmark
Run multiple abliteration methods on a single model and compare results. This is the API endpoint that enables programmatic benchmarking — call i
app.py:1102
↓ 1 callersMethodbest_config_ranges
Extract the hyperparameter ranges from top-performing runs. Takes the top 25% of runs by composite score and returns the median value
obliteratus/adaptive_defaults.py:174
↓ 1 callersFunctionblend_gradient
Blend Pass 2 layers with per-layer gradient gamma.
scripts/gemma4_gradient_aspa.py:65
↓ 1 callersFunctionblend_pass2_layers
Blend Pass 2 layers toward stock: W = (1-gamma)*W_v1 + gamma*W_stock.
scripts/gemma4_aspa_sweep.py:36
↓ 1 callersMethodbuild_obliterate_command
Build the remote obliteratus CLI command.
obliteratus/remote.py:226
↓ 1 callersFunctionbuild_prompt
(row)
scripts/gemma4_v2_final_gate.py:73
↓ 1 callersFunctionbuild_prompt
(row: dict[str, Any])
scripts/gemma4_mmlu_pro_likelihood.py:32
↓ 1 callersFunctionbuild_prompt
(row)
scripts/gemma4_v2_full_bench.py:71
↓ 1 callersFunctionbuild_prompt
(row)
scripts/gemma4_mmlu_head2head.py:43
↓ 1 callersFunctionbuild_prompt
(row)
scripts/gemma4_aspa_sweep.py:89
↓ 1 callersFunctionbuild_prompt
(row)
scripts/gemma4_refusal_sniper.py:192
↓ 1 callersFunctionbuild_prompt
(row)
scripts/gemma4_gradient_aspa.py:117
↓ 1 callersFunctionbuild_prompt
(row)
scripts/gemma4_stock_mmlu.py:39
↓ 1 callersMethodbuild_run_command
Build remote 'obliteratus run' command.
obliteratus/remote.py:269
↓ 1 callersMethodbuild_tourney_command
Build remote 'obliteratus tourney' command.
obliteratus/remote.py:281
↓ 1 callersFunctionchat_fn
(message, history, model, tok, device, system_prompt, max_tokens, temperature, top_p, rep_penalty)
scripts/gemma4_chat_ui.py:47
↓ 1 callersFunctioncheck_json
(text: str)
scripts/gemma4_coherence_eval.py:180
↓ 1 callersFunctionclean_ending
(text: str)
scripts/gemma4_hard_tier_bench.py:187
↓ 1 callersMethodcleanup
Remove temporary offload directory if one was auto-created.
obliteratus/models/loader.py:337
↓ 1 callersFunctioncoherence_eval
Coherence check.
scripts/gemma4_v2_final_gate.py:144
↓ 1 callersFunctioncoherence_eval
Coherence check: 6 capability prompts, check for direct/useful responses.
scripts/gemma4_v2_full_bench.py:142
↓ 1 callersFunctioncollect
( ship_dirs: list[Path], capability_dirs: list[Path], kl_dirs: list[Path], community_dirs: lis
scripts/aspa_pareto_controller.py:287
↓ 1 callersFunctioncollect_baseline_logits
Collect first-token logits from the original (pre-abliteration) model.
scripts/benchmark_sota_comparison.py:249
↓ 1 callersMethodcompare_base_instruct
Compare base vs. instruct activations to measure alignment delta. Args: base_activations: {layer_idx: mean_activation} from base
obliteratus/analysis/alignment_imprint.py:206
↓ 1 callersMethodcompare_with_logit_lens
Compute rank correlation between Tuned Lens and Logit Lens gap rankings. Args: tuned_result: MultiLayerTunedLensResult from analy
obliteratus/analysis/tuned_lens.py:327
↓ 1 callersMethodcompare_with_standard
Compare whitened vs standard SVD directions. Returns cosine similarities between the whitened and standard directions, revealing how
obliteratus/analysis/whitened_svd.py:212
↓ 1 callersFunctioncomposite_score
Score an abliteration run on [0, 1]. Higher is better. Weights: 35% refusal removal — the whole point 25% coherence
obliteratus/tourney.py:55
↓ 1 callersMethodcompute_geodesic_projection
Compute geodesic (curvature-aware) projection for a single activation. Standard linear projection: x' = x - (x^T r) r Geodesic projec
obliteratus/analysis/riemannian_manifold.py:256
↓ 1 callersFunctioncompute_gradient_gamma
Compute per-layer gamma using a gradient strategy.
scripts/gemma4_gradient_aspa.py:46
↓ 1 callersFunctioncompute_lora_adapters
Compute LoRA adapter pairs (B, A) for refusal direction ablation. For each target weight matrix W with refusal direction d: A = d^T @ W
obliteratus/lora_ablation.py:56
↓ 1 callersFunctioncreate_synthetic_model
Create a tiny GPT-2 model for controlled experiments.
scripts/abliteration_comparison.py:50
↓ 1 callersFunctiondominates
Full-gate Pareto dominance with capability as a secondary axis.
scripts/aspa_pareto_controller.py:256
↓ 1 callersFunctioneffective_rank_change
Compare effective rank before and after abliteration. Args: weight_before: Original weight matrix. weight_after: Weight matrix af
obliteratus/evaluation/advanced_metrics.py:500
↓ 1 callersFunctionemit_plan
(source: str, edited_candidate: str, gammas: list[float])
scripts/aspa_next_experiments.py:26
← previousnext →501–600 of 1,841, ranked by callers