MCPcopy Create free account

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

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

↓ 4 callersFunctionon_log
(msg)
app.py:1186
↓ 4 callersMethodplan_surgery
Plan sparse surgery across multiple layers. Args: weights: {layer_idx: weight_matrix} per layer. refusal_directions:
obliteratus/analysis/sparse_surgery.py:178
↓ 4 callersFunctionprofile_model
(model: str, *, dtype: str | None = None, trust_remote_code: bool = True)
obliteratus/model_profile.py:142
↓ 4 callersFunctionread_telemetry
Read all telemetry records from the local JSONL file. Returns a list of dicts, newest first.
obliteratus/telemetry.py:748
↓ 4 callersMethodrun_all
Run all benchmark probes and return results.
obliteratus/evaluation/benchmarks.py:257
↓ 4 callersMethodrun_informed
Execute the full analysis-informed pipeline. Returns: (output_path, report) tuple with saved model path and comprehen
obliteratus/informed_pipeline.py:260
↓ 4 callersFunctionselect_evenly
(items: list[dict[str, Any]], limit: int)
scripts/gemma4_public_refusal_bench.py:51
↓ 3 callersFunction_auto_detect_device
Auto-detect the best available device for SAE training. When device is ``None`` or ``"auto"``, selects CUDA if available and sufficient free
obliteratus/analysis/sae_abliteration.py:115
↓ 3 callersFunction_bench_elapsed
()
app.py:1151
↓ 3 callersFunction_cfg_get
(cfg: Any, name: str, default: Any = None)
obliteratus/model_profile.py:36
↓ 3 callersMethod_dequantize_weight
Get a float copy of a weight, dequantizing if necessary. Returns (float_weight, is_quantized). If quantized, the caller must use _rep
obliteratus/abliterate.py:4638
↓ 3 callersMethod_distill_inner
Re-run distillation without emitting stage events (for iterative refinement). Includes Wasserstein-optimal extraction, whitened SVD, jailbrea
obliteratus/abliterate.py:4187
↓ 3 callersMethod_env_prefix
Build environment variable prefix for remote commands (e.g. CUDA_VISIBLE_DEVICES).
obliteratus/remote.py:173
↓ 3 callersFunction_extract_analysis_insights
Extract and filter analysis insights from an informed pipeline report.
obliteratus/telemetry.py:1073
↓ 3 callersFunction_extract_stage_durations
Extract stage duration timings from a pipeline.
obliteratus/telemetry.py:1065
↓ 3 callersFunction_format_sweep_results
Format sweep results as a markdown table.
app.py:3215
↓ 3 callersFunction_gemma4_config
(model_type: str = "gemma4_unified")
tests/test_gemma4_support.py:37
↓ 3 callersFunction_get_color
(method: str, idx: int = 0)
obliteratus/evaluation/benchmark_plots.py:68
↓ 3 callersMethod_get_layers
Get the list of transformer layers.
obliteratus/analysis/activation_patching.py:316
↓ 3 callersFunction_get_peak_vram
()
obliteratus/telemetry.py:948
↓ 3 callersMethod_identify_safety_experts
Classify MoE experts as safety-biased vs capability-biased. Analyzes the router/gate weight matrix to determine which experts have th
obliteratus/abliterate.py:2968
↓ 3 callersFunction_make_remote_runner
Create a RemoteRunner from CLI --remote flags.
obliteratus/cli.py:1269
↓ 3 callersFunction_mm_elapsed
()
app.py:1509
↓ 3 callersMethod_project_fused_bias
Project refusal direction from fused 2D expert biases.
obliteratus/abliterate.py:5106
↓ 3 callersMethod_rebirth
Save the abliterated model with comprehensive metadata.
obliteratus/abliterate.py:6657
↓ 3 callersFunction_sanitize_label
Strip filesystem paths, tokens, and overly-long strings from labels.
obliteratus/reporting/report.py:14
↓ 3 callersFunction_strip_reasoning_tokens
Remove chain-of-thought reasoning tags from model output. Handles both XML-style tags (<analysis>...</analysis>) and bare tag names (analysis
app.py:2323
↓ 3 callersMethod_summon
Load model and tokenizer.
obliteratus/abliterate.py:1124
↓ 3 callersFunction_system_memory_gb
Return (total_gb, available_gb) of system RAM.
obliteratus/device.py:99
↓ 3 callersMethod_verify
Verify model coherence with quality metrics. Runs perplexity measurement and generation tests to quantify the impact of abliteration
obliteratus/abliterate.py:5965
↓ 3 callersMethodadd_baseline
(self, metrics: dict[str, float])
obliteratus/reporting/report.py:43
↓ 3 callersMethodanalyze_batch
Analyze multiple prompts and aggregate. Args: activations_list: List of (seq_len, hidden_dim) tensors. refusal_direct
obliteratus/analysis/multi_token_position.py:193
↓ 3 callersFunctionapply_chat
(tok: Any, prompt: str, system_prompt: str | None)
scripts/gemma4_hard_tier_bench.py:353
↓ 3 callersFunctionbenchmark_multi_model
Run one abliteration method across multiple models and compare. This is the complement to the existing `benchmark()` function which runs mult
app.py:1462
↓ 3 callersMethodcheck_connection
Verify SSH connectivity.
obliteratus/remote.py:143
↓ 3 callersMethodcheck_gpu
Check for CUDA GPUs on remote. Returns nvidia-smi output or None.
obliteratus/remote.py:153
↓ 3 callersFunctionclassify_refusal_reason
Map a refusal reason/preview into stable residue tags.
obliteratus/hard_negative.py:56
↓ 3 callersMethodcombine
Combine multiple steering vectors into one. Args: vectors: List of SteeringVector to combine. weights: Per-vector wei
obliteratus/analysis/steering_vectors.py:155
↓ 3 callersFunctioncommunity_summary
(data: dict[str, Any] | None)
scripts/aspa_pareto_controller.py:150
↓ 3 callersMethodcompute_universality_index
Compute aggregate Universality Index. Combines all transfer analyses into a single 0-1 score. Higher = more universal refusal geometr
obliteratus/analysis/cross_model_transfer.py:319
↓ 3 callersFunctiondedupe_residue
Dedupe by dataset/index while preserving max weight and merged tags.
obliteratus/hard_negative.py:128
↓ 3 callersMethodensure_obliteratus
Install or update obliteratus on the remote if needed.
obliteratus/remote.py:180
↓ 3 callersFunctionestimate_total_params
Estimate total params from config, falling through to text_config. Prefer exact-ish explicit attributes when present; otherwise use an archit
obliteratus/model_profile.py:87
↓ 3 callersFunctionfetch_hub_records
Fetch all telemetry records from the central HF Hub dataset. Downloads all per-instance JSONL files from the ``data/`` directory in the telem
obliteratus/telemetry.py:423
↓ 3 callersFunctionformat_comparison_table
Format results as a comparison table matching Arditi/Young style. This produces a table directly comparable to Table 1 in Arditi et al. (2024
obliteratus/evaluation/heretic_eval.py:820
↓ 3 callersFunctionformat_eval_report
Format evaluation result as a human-readable report.
obliteratus/evaluation/advanced_metrics.py:650
↓ 3 callersMethodformat_insights
Format analysis insights as a human-readable report.
obliteratus/informed_pipeline.py:1266
↓ 3 callersFunctionget_embedding_module
Return the token embedding module.
obliteratus/strategies/utils.py:212
↓ 3 callersFunctionget_presets_by_tier
Return all presets for a compute tier.
obliteratus/presets.py:1163
↓ 3 callersFunctionget_study_preset
Look up a preset by its key.
obliteratus/study_presets.py:236
↓ 3 callersFunctionload_model
Load a HuggingFace model and tokenizer, returning a ModelHandle. Args: model_name: HuggingFace model identifier (e.g. "gpt2", "meta-llama
obliteratus/models/loader.py:407
↓ 3 callersFunctionload_residue_file
Load a residue JSON file. Supported shapes: - {"examples": [...]} produced by ``save_residue_file`` - {"refusals": [...]} audit outpu
obliteratus/hard_negative.py:67
↓ 3 callersFunctionmeasure_residual_direction
Measure how much of a direction remains in a layer's output projection. Returns the magnitude of the direction's component in the weight matrix.
scripts/abliteration_comparison.py:130
↓ 3 callersMethodmeasure_self_repair
Measure the Ouroboros Effect for a specific layer. Abliterates only the specified layer, then measures how much refusal signal remain
obliteratus/analysis/defense_robustness.py:172
↓ 3 callersFunctionon_log
(msg)
obliteratus/cli.py:525
↓ 3 callersMethodpatch_sweep
Run activation patching across all specified sites. Args: model: The language model. clean_input_ids: Token IDs for t
obliteratus/analysis/activation_patching.py:111
↓ 3 callersMethodplot_impact
Generate a bar chart showing the impact of each ablation on a metric. Args: metric: Which metric to plot. Defaults to the first b
obliteratus/reporting/report.py:135
↓ 3 callersFunctionplot_refusal_topology
Visualize refusal signal strength across all layers. Creates a bar chart showing per-layer refusal strength (norm of the harmful-harmless mea
obliteratus/analysis/visualization.py:47
↓ 3 callersMethodprobe_layer
Probe a single layer's activations for residual refusal signal. Args: harmful_activations: List of (hidden_dim,) activation tenso
obliteratus/analysis/activation_probing.py:73
↓ 3 callersFunctionquick_refusal_check
Fast refusal check.
scripts/gemma4_refusal_sniper.py:157
↓ 3 callersFunctionrefusal_projection_magnitude
Measure how much activations project onto the refusal direction. After abliteration, projections should be near-zero for both harmful and har
obliteratus/evaluation/advanced_metrics.py:599
↓ 3 callersFunctionrender_bracket
Render the tournament bracket as a markdown string.
obliteratus/tourney.py:345
↓ 3 callersFunctionrender_bracket_html
Render the tournament bracket as a styled HTML bracket visualization.
obliteratus/tourney.py:395
↓ 3 callersFunctionrepetition_flag
(text: str)
scripts/gemma4_hard_tier_bench.py:222
↓ 3 callersMethodrestore
Restore the model to the snapshot state. Moves CPU-saved tensors back to each parameter's current device.
obliteratus/models/loader.py:322
↓ 3 callersFunctionrun_study
Execute a full ablation study from a StudyConfig. Steps: 1. Load model from HuggingFace. 2. Load evaluation dataset. 3. Compute
obliteratus/runner.py:19
↓ 3 callersFunctionstorage_diagnostic
Return a diagnostic dict about the current storage configuration. Useful for debugging persistent storage issues on HF Spaces.
obliteratus/telemetry.py:182
↓ 3 callersMethodsync_results_back
Copy results from remote back to local machine via scp.
obliteratus/remote.py:206
↓ 3 callersMethodto_dict
(self)
obliteratus/tourney.py:144
↓ 3 callersMethodto_json
(self)
obliteratus/hard_negative.py:44
↓ 3 callersMethodto_json
(self)
obliteratus/model_profile.py:32
↓ 3 callersMethodtrain_probe
Train a single affine probe for one layer. Args: layer_activations: (n_samples, hidden_dim) activations at layer l. f
obliteratus/analysis/tuned_lens.py:120
↓ 3 callersFunctionunique_word_ratio
(text: str)
scripts/gemma4_hard_tier_bench.py:160
↓ 2 callersFunction_add_obliterate_args
(p)
obliteratus/cli.py:165
↓ 2 callersMethod_apply_method_layer_budget
Apply method-specific caps after statistical layer selection. SOM uses several directions per layer. The default late-layer floor an
obliteratus/abliterate.py:2808
↓ 2 callersFunction_auto_hub_repo_id
Generate an auto-filled Hub repo ID for the selected session model.
app.py:572
↓ 2 callersFunction_available_gpu_memory_gb
Return free accelerator memory in GB (CUDA, MPS, or 0 for CPU).
obliteratus/models/loader.py:397
↓ 2 callersFunction_checkpoint_matches
Check if a checkpoint is for the same model/dataset/quantization config.
obliteratus/tourney.py:275
↓ 2 callersMethod_classify_repair_type
Classify the type of repair based on layer distance.
obliteratus/analysis/anti_ouroboros.py:360
↓ 2 callersMethod_collect_activations
Collect residual stream activations at each layer using hooks.
obliteratus/analysis/activation_patching.py:224
↓ 2 callersMethod_compute_angle_matrix
Compute pairwise angle matrix between vectors.
obliteratus/analysis/conditional_abliteration.py:346
↓ 2 callersMethod_empty_result
(self, hidden_dim: int)
obliteratus/analysis/riemannian_manifold.py:666
↓ 2 callersMethod_empty_result
(self)
obliteratus/analysis/conditional_abliteration.py:465
↓ 2 callersMethod_empty_result
( self, source_name: str, target_name: str )
obliteratus/analysis/wasserstein_transfer.py:493
↓ 2 callersFunction_ensure_hub_repo
Create the central telemetry dataset repo if it doesn't exist. Uses create_repo with exist_ok=True so this is safe to call repeatedly. Threa
obliteratus/telemetry.py:313
↓ 2 callersFunction_estimate_model_memory_gb
Rough estimate of model weight memory in GB.
obliteratus/models/loader.py:363
↓ 2 callersMethod_estimate_sectional_curvature
Estimate sectional curvature via discrete comparison triangles. Uses Toponogov's comparison theorem approach: sample triangles on the
obliteratus/analysis/riemannian_manifold.py:368
↓ 2 callersMethod_evaluate_trial
Evaluate a single projection configuration.
obliteratus/analysis/bayesian_kernel_projection.py:231
↓ 2 callersMethod_excise_informed
Excise refusal directions with analysis-informed strategy. Uses Bayesian optimization (when available) with analysis-derived warm-sta
obliteratus/informed_pipeline.py:923
↓ 2 callersFunction_figs_to_gallery
Convert matplotlib Figures to gallery-compatible (filepath, caption) tuples.
app.py:1074
↓ 2 callersMethod_find_knee
Find the "knee" in the sorted projection curve. Uses the maximum curvature method to find where the sorted projection magnitudes tran
obliteratus/analysis/sparse_surgery.py:273
↓ 2 callersFunction_format_status_html
Format watchtower stats as styled HTML.
obliteratus/ui_watchtower.py:270
↓ 2 callersMethod_gather_state_dict
Gather a complete state dict, materializing any meta tensors. When device_map="auto" offloads weights to disk, model.state_dict() ret
obliteratus/abliterate.py:6603
↓ 2 callersFunction_generate_analysis_figs
Generate analysis visualizations from a completed pipeline's surviving data. Produces cross-layer heatmap + angular drift charts from refusal_dir
app.py:1002
↓ 2 callersMethod_generate_jailbreak_prompts
Generate jailbreak variants of harmful prompts using templates. Each harmful prompt is wrapped in a rotating jailbreak template to cr
obliteratus/abliterate.py:1259
↓ 2 callersMethod_generate_short
Generate a short completion for a prompt.
obliteratus/evaluation/benchmarks.py:296
↓ 2 callersFunction_get_layers
Locate the transformer block list in an MLX model.
obliteratus/mlx_backend.py:449
↓ 2 callersFunction_get_preset_defaults
Return a dict of all tunable params for the selected method preset.
app.py:363
↓ 2 callersMethod_get_token_group_boosts
(self, logit_effect, tokenizer, token_strings)
obliteratus/analysis/tuned_lens.py:407
↓ 2 callersMethod_get_token_group_boosts
Get logit boosts for a group of token strings.
obliteratus/analysis/logit_lens.py:315
← previousnext →201–300 of 1,841, ranked by callers