MCPcopy Create free account

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

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

↓ 2 callersFunction_get_trending_choices
Get trending model IDs for dropdown, with graceful fallback.
obliteratus/ui_watchtower.py:34
↓ 2 callersMethod_identify_refusal_heads
Identify attention heads with highest refusal signal. For each strong layer, computes the per-head projection of o_proj rows onto the
obliteratus/abliterate.py:2879
↓ 2 callersMethod_install_activation_steering
Install forward hooks that subtract the refusal direction from hidden states. These hooks fire during every forward pass (including generatio
obliteratus/abliterate.py:5913
↓ 2 callersFunction_instance_slug
Generate a unique slug for this Space instance. Hashes the HF Space ID (to avoid leaking usernames in the public dataset) and combines it wit
obliteratus/telemetry.py:299
↓ 2 callersFunction_interpolate_direction
Get an interpolated refusal direction from a float-valued layer index. Faithful reproduction of Heretic's direction interpolation: the index
obliteratus/bayesian_optimizer.py:176
↓ 2 callersFunction_is_degenerate
Detect degenerate model output (broken model, not a refusal or compliance). A broken/destroyed model may produce: - Single character repeated
obliteratus/evaluation/advanced_metrics.py:235
↓ 2 callersMethod_is_quota_error
(exc: BaseException)
obliteratus/tourney.py:1132
↓ 2 callersFunction_is_refusal_semantic
Detect refusals using semantic pattern matching.
obliteratus/evaluation/advanced_metrics.py:379
↓ 2 callersMethod_layer_entanglement_score
Estimate entanglement for a single layer. Uses the variance of harmless activations projected onto the refusal direction. High varian
obliteratus/analysis/defense_robustness.py:289
↓ 2 callersFunction_load
()
obliteratus/models_client.py:46
↓ 2 callersFunction_load_checkpoint
Load a tournament checkpoint if one exists. Returns None if absent or corrupt.
obliteratus/tourney.py:261
↓ 2 callersMethod_load_prompts
(self, volume: int)
obliteratus/tourney.py:859
↓ 2 callersFunction_load_script
(name: str)
tests/test_gemma4_hard_tier_bench.py:11
↓ 2 callersMethod_make_moe_pipeline_and_layers
Create a pipeline with a fake MoE model for router profiling tests.
tests/test_abliterate.py:2014
↓ 2 callersFunction_make_refusal_data
Create test refusal directions and means.
tests/test_visualization.py:30
↓ 2 callersFunction_param_bucket
Coarse size tier matching presets.py tiers.
obliteratus/adaptive_defaults.py:58
↓ 2 callersMethod_project_fused_3d
Project refusal direction from fused 3D expert parameters. Fused MoE parameters have shape (num_experts, dim_a, dim_b). Processes eac
obliteratus/abliterate.py:5001
↓ 2 callersMethod_project_fused_3d_selective_inversion
Fused 3D projection with per-expert inversion differentiation. Safety experts (by index in safety_indices) get reflected at reflect_s
obliteratus/abliterate.py:5711
↓ 2 callersMethod_project_moe_experts_inverted
MoE excision with selective inversion (refusal reflection). Instead of uniformly projecting all MoE components, this method uses the
obliteratus/abliterate.py:5345
↓ 2 callersMethod_push_winner
Push the winning model to HuggingFace Hub.
obliteratus/tourney.py:1446
↓ 2 callersFunction_restore_all
()
obliteratus/bayesian_optimizer.py:367
↓ 2 callersMethod_run_method
Run a single abliteration method and return its Contender result.
obliteratus/tourney.py:865
↓ 2 callersMethod_save_state
Persist watchtower state to disk.
obliteratus/watchtower.py:142
↓ 2 callersMethod_save_state
Persist current state to disk.
obliteratus/auto_obliterate.py:161
↓ 2 callersFunction_schedule_hub_sync
Schedule a debounced background sync of local telemetry to Hub. Skips if: - No telemetry repo is configured - Telemetry is disabled -
obliteratus/telemetry.py:399
↓ 2 callersMethod_scp_base_cmd
Build base SCP command.
obliteratus/remote.py:95
↓ 2 callersMethod_select_layers_all
Select all layers (for methods that handle layer weighting externally).
obliteratus/abliterate.py:2804
↓ 2 callersMethod_select_layers_cosmic
COSMIC-style layer selection via cosine similarity on activations. Implements the core insight from COSMIC (arXiv:2506.00085, ACL 2025):
obliteratus/abliterate.py:2741
↓ 2 callersMethod_select_layers_middle60
Select the middle 60% of layers (legacy heuristic). Selects layers from index n_layers*0.2 to n_layers*0.8. NOTE: This does NOT matc
obliteratus/abliterate.py:2789
↓ 2 callersMethod_select_projection_coefficients
Keep only the strongest projection coefficients when requested.
obliteratus/abliterate.py:4827
↓ 2 callersFunction_strip_cot_tags
Strip chain-of-thought reasoning tags from model output for refusal detection. CoT models (GPT-OSS, QwQ, DeepSeek-R1) wrap their actual response
obliteratus/evaluation/advanced_metrics.py:205
↓ 2 callersMethod_transplant_expert_weights
Blend capability expert weights into safety expert down_proj. For each MoE layer, computes the mean of capability experts' down_proj
obliteratus/abliterate.py:5822
↓ 2 callersMethodanalyze_direction
Analyze a refusal direction through a trained Tuned Lens probe. Args: direction: (hidden_dim,) refusal direction vector.
obliteratus/analysis/tuned_lens.py:201
↓ 2 callersFunctionbuild_knowledge_base
Build per-bucket knowledge from telemetry records. If *records* is None, fetches from local + Hub automatically.
obliteratus/adaptive_defaults.py:289
↓ 2 callersMethodcertify_all_layers
Certify abliteration completeness across all layers. Returns a certificate for each layer. Overall certification is the worst (most R
obliteratus/analysis/spectral_certification.py:312
↓ 2 callersFunctioncleanup
Force GPU memory cleanup.
scripts/benchmark_gpt_oss_20b.py:98
↓ 2 callersFunctioncollect_synthetic_activations
Collect activations on random token sequences. If add_refusal_signal=True, adds an artificial activation along the signal_direction to simula
scripts/abliteration_comparison.py:148
↓ 2 callersFunctioncommunity_rank
Prefer full community probes over quick probes, then larger n and score.
scripts/aspa_pareto_controller.py:25
↓ 2 callersMethodcompare_with_alternatives
Compare Wasserstein-optimal direction with Fisher and diff-in-means. Args: wasserstein_result: Result from extract().
obliteratus/analysis/wasserstein_optimal.py:236
↓ 2 callersFunctioncontent_terms
(text: str)
scripts/gemma4_hard_tier_bench.py:167
↓ 2 callersFunctionenhance_profile_with_telemetry
Optionally enhance a profile with telemetry-driven adaptive defaults. Queries the community telemetry dataset and, if sufficient data exists for
obliteratus/architecture_profiles.py:587
↓ 2 callersMethodevaluate
Run evaluation and return a dict of metric_name -> score.
obliteratus/evaluation/evaluator.py:43
↓ 2 callersMethodextract_all_layers
Extract Wasserstein-optimal directions for all layers. Args: harmful_acts: {layer_idx: [activations]} from harmful prompts.
obliteratus/analysis/wasserstein_optimal.py:199
↓ 2 callersFunctionf1_score_metric
F1 score wrapper around sklearn.
obliteratus/evaluation/metrics.py:44
↓ 2 callersFunctionfirst_token_kl_divergence
Compute KL divergence using only first-token predictions. This is the metric recommended by Young (2025) for abliteration evaluation: efficie
obliteratus/evaluation/advanced_metrics.py:438
↓ 2 callersFunctionformat_benchmark_report
Format all benchmark results as a report.
obliteratus/evaluation/benchmarks.py:362
↓ 2 callersMethodformat_table
Format models as a list of rows for a Gradio Dataframe. Columns: [Name, Org, Size, Downloads, Likes, License, Discovered, Status]
obliteratus/watchtower.py:470
↓ 2 callersMethodfrom_dict
(cls, d: dict)
obliteratus/auto_obliterate.py:58
↓ 2 callersMethodfrom_yaml
(cls, path: str | Path)
obliteratus/config.py:66
↓ 2 callersFunctiongamma_label
(gamma: float)
scripts/aspa_next_experiments.py:22
↓ 2 callersFunctiongenerate_benchmark_dashboard
Generate a full dashboard of benchmark visualizations. Args: results: List of benchmark result dicts. mode: "multi_method" (N met
obliteratus/evaluation/benchmark_plots.py:405
↓ 2 callersFunctiongenerate_one
( model: Any, tok: Any, task: Task, *, device: str, max_new_tokens: int, system_pr
scripts/gemma4_hard_tier_bench.py:371
↓ 2 callersFunctionget_residual_activations
Get mean activations at the last token position for given prompts.
scripts/gemma4_refusal_sniper.py:53
↓ 2 callersMethodget_stats
Return summary statistics.
obliteratus/watchtower.py:400
↓ 2 callersMethodget_trending
Return current hot models sorted by recent downloads (descending).
obliteratus/watchtower.py:362
↓ 2 callersFunctionletter_token_ids
(tokenizer)
scripts/gemma4_mmlu_head2head.py:53
↓ 2 callersFunctionlist_all_presets
Return all presets sorted by tier then name.
obliteratus/presets.py:1168
↓ 2 callersFunctionload
(model_path, dtype, device)
scripts/gemma4_chat_ui.py:18
↓ 2 callersFunctionmaybe_send_informed_report
Build and send a telemetry report from a completed informed pipeline.
obliteratus/telemetry.py:1211
↓ 2 callersFunctionone
(items: list[dict[str, Any]])
scripts/gemma4_hard_tier_bench.py:491
↓ 2 callersFunctionperplexity
Compute perplexity from causal-LM logits and label token IDs. Args: logits: (batch, seq_len, vocab_size) — raw model output. labe
obliteratus/evaluation/metrics.py:13
↓ 2 callersFunctionplot_angular_drift
Visualize cumulative angular drift of the refusal direction.
obliteratus/analysis/visualization.py:144
↓ 2 callersFunctionplot_cross_layer_heatmap
Visualize the pairwise cosine similarity matrix between layer refusal directions.
obliteratus/analysis/visualization.py:102
↓ 2 callersFunctionplot_defense_radar
Spider/radar chart of defense properties.
obliteratus/analysis/visualization.py:237
↓ 2 callersMethodplot_heatmap
Generate a heatmap of pct_change across all strategies and metrics.
obliteratus/reporting/report.py:178
↓ 2 callersFunctionplot_metric_bars
Grouped bar chart of key metrics across methods/models. Shows refusal rate, coherence, and normalized perplexity side by side for quick visua
obliteratus/evaluation/benchmark_plots.py:204
↓ 2 callersFunctionplot_moe_metrics
MoE-specific metrics: EGA directions, CoT preservation, expert coverage. Only meaningful for results that include MoE-aware techniques. Shows
obliteratus/evaluation/benchmark_plots.py:300
↓ 2 callersFunctionplot_pareto_frontier
Refusal rate vs perplexity Pareto frontier. The most important chart for abliteration research: shows the capability-safety tradeoff. Points
obliteratus/evaluation/benchmark_plots.py:74
↓ 2 callersFunctionplot_timing_efficiency
Time vs quality scatter — bang for your compute buck. X-axis: wall-clock time. Y-axis: composite quality score. Bubble size: number of stron
obliteratus/evaluation/benchmark_plots.py:255
↓ 2 callersMethodprint_summary
Print a rich-formatted summary table.
obliteratus/reporting/report.py:71
↓ 2 callersMethodprobe_all_layers
Probe every layer and aggregate results. Args: harmful_acts: {layer_idx: [activations]} harmful. harmless_acts: {laye
obliteratus/analysis/probing_classifiers.py:227
↓ 2 callersMethodpublic_ref
(self)
scripts/gemma4_hard_tier_bench.py:147
↓ 2 callersFunctionrun_benchmarks
Run lm-evaluation-harness benchmarks on a model. Args: model_path: HuggingFace model name or local path. tasks: Benchmark tasks t
obliteratus/evaluation/lm_eval_integration.py:47
↓ 2 callersMethodrun_config
Upload config, run study remotely, sync results.
obliteratus/remote.py:373
↓ 2 callersMethodrun_knowledge_probe
MMLU-style multiple choice knowledge test.
obliteratus/evaluation/benchmarks.py:135
↓ 2 callersFunctionrun_mmlu_pro
(model, tok, device, split="validation", max_n=None, label="")
scripts/gemma4_stock_mmlu.py:61
↓ 2 callersMethodsave_csv
Save results DataFrame to CSV.
obliteratus/reporting/report.py:129
↓ 2 callersMethodsave_json
Save raw results to JSON.
obliteratus/reporting/report.py:109
↓ 2 callersMethodscan
Scan HuggingFace for new popular open-weight instruction models. Returns a list of *newly discovered* models (not previously seen). T
obliteratus/watchtower.py:246
↓ 2 callersMethodto_dict
(self)
obliteratus/auto_obliterate.py:54
↓ 2 callersFunctionunload_harmbench_classifier
Free the cached HarmBench classifier to reclaim GPU memory. Call this after harmbench_asr() if you need the GPU for other work (e.g. lm-eval-
obliteratus/evaluation/heretic_eval.py:357
↓ 1 callersMethod__init__
(self)
tests/test_gemma4_support.py:19
↓ 1 callersMethod__init__
(self, peak_idx: int = 0)
tests/test_heretic_eval.py:125
↓ 1 callersMethod_ablation_simulation
Simulate ablating refusal features one at a time.
obliteratus/analysis/sae_abliteration.py:651
↓ 1 callersMethod_analyze
Run analysis modules to inform downstream decisions. This is the key innovation: analysis runs BETWEEN probe and distill, so its outp
obliteratus/informed_pipeline.py:295
↓ 1 callersMethod_analyze_alignment_imprint
Detect alignment training method from refusal geometry.
obliteratus/informed_pipeline.py:347
↓ 1 callersMethod_analyze_cone_geometry
Analyze concept cone structure to determine per-category vs universal.
obliteratus/informed_pipeline.py:391
↓ 1 callersMethod_analyze_cross_layer
Analyze cross-layer direction alignment for cluster-aware layer selection.
obliteratus/informed_pipeline.py:463
↓ 1 callersMethod_analyze_defense_robustness
Assess defense robustness, self-repair risk, and entanglement.
obliteratus/informed_pipeline.py:506
↓ 1 callersMethod_analyze_features
Compute per-feature sparsity and monosemanticity scores.
obliteratus/analysis/sae_abliteration.py:501
↓ 1 callersMethod_analyze_sparsity
Compute Refusal Sparsity Index to decide sparse vs dense excision.
obliteratus/informed_pipeline.py:544
↓ 1 callersMethod_answer_mcq
Answer a multiple-choice question by comparing completion logprobs.
obliteratus/evaluation/benchmarks.py:268
↓ 1 callersFunction_apply_deferred_shims
()
obliteratus/models/loader.py:235
↓ 1 callersFunction_apply_gpu_selection
Set CUDA_VISIBLE_DEVICES based on --gpus flag (for local runs only).
obliteratus/cli.py:67
↓ 1 callersFunction_apply_recommended_defaults
Fill in recommended method, overrides, and breakthrough modules. All recommendations are grounded in 2025-2026 abliteration research.
obliteratus/architecture_profiles.py:284
↓ 1 callersMethod_apply_spectral_cascade_weights
Apply Spectral Cascade: frequency-selective per-layer projection weights. Novel contribution: instead of treating refusal removal as a flat
obliteratus/abliterate.py:1342
↓ 1 callersMethod_approximate_geodesic_length
Approximate geodesic length between two points. Uses piecewise linear interpolation with projection onto the local manifold tangent p
obliteratus/analysis/riemannian_manifold.py:525
↓ 1 callersMethod_assess_robustness
Assess overall defense robustness. Robust models have: distributed refusal (low gini), wide spread, high self-repair, and high entang
obliteratus/analysis/defense_robustness.py:381
↓ 1 callersMethod_binary_entropy
Compute binary entropy H(p) in nats.
obliteratus/analysis/probing_classifiers.py:314
↓ 1 callersMethod_build_metadata
Build abliteration metadata dict for saving alongside the model.
obliteratus/abliterate.py:6520
← previousnext →301–400 of 1,841, ranked by callers