Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/elder-plinius/OBLITERATUS
/ functions
Functions
1,841 in github.com/elder-plinius/OBLITERATUS
⨍
Functions
1,841
◇
Types & classes
359
↓ 1 callers
Function
_build_model_choices
Build display_name → hf_id mapping from presets, grouped by provider.
app.py:304
↓ 1 callers
Function
_cached_load
Load from cache or call loader and cache the result.
obliteratus/prompts.py:45
↓ 1 callers
Method
_capture_baseline_kl_logits
Capture first-token logits on harmless prompts before EXCISE. These are compared against post-EXCISE logits in _verify() to compute f
obliteratus/abliterate.py:3345
↓ 1 callers
Method
_capture_layer_weight_norms
Capture Frobenius norms of ALL weight matrices in a transformer layer. Used for correct multi-direction norm preservation: capture once befor
obliteratus/abliterate.py:4773
↓ 1 callers
Method
_check_sheaf_consistency
Check sheaf consistency of category projectors. The sheaf property requires that for parent category P containing child categories C1
obliteratus/analysis/conditional_abliteration.py:386
↓ 1 callers
Method
_check_truthfulness
Check if a response is truthful rather than commonly false.
obliteratus/evaluation/benchmarks.py:317
↓ 1 callers
Method
_classify
Compute method scores using Gaussian-kernel feature matching.
obliteratus/analysis/alignment_imprint.py:351
↓ 1 callers
Method
_cleanup_offload_dir
Remove the temporary offload directory to reclaim disk space. Only safe AFTER the state_dict has been gathered into memory — disk-off
obliteratus/abliterate.py:6586
↓ 1 callers
Method
_cluster_categories
Simple single-link clustering of categories.
obliteratus/analysis/cross_model_transfer.py:360
↓ 1 callers
Method
_cluster_features
Cluster refusal features by direction similarity.
obliteratus/analysis/sae_abliteration.py:542
↓ 1 callers
Function
_cmd_abliterate
(args)
obliteratus/cli.py:894
↓ 1 callers
Function
_cmd_aggregate
(args)
obliteratus/cli.py:749
↓ 1 callers
Function
_cmd_gpu_calc
(args)
obliteratus/cli.py:1061
↓ 1 callers
Function
_cmd_info
(args)
obliteratus/cli.py:691
↓ 1 callers
Function
_cmd_interactive
()
obliteratus/cli.py:582
↓ 1 callers
Function
_cmd_models
(args)
obliteratus/cli.py:587
↓ 1 callers
Function
_cmd_presets
()
obliteratus/cli.py:621
↓ 1 callers
Function
_cmd_recommend
(args)
obliteratus/cli.py:788
↓ 1 callers
Function
_cmd_remote_abliterate
(args)
obliteratus/cli.py:1285
↓ 1 callers
Function
_cmd_remote_run
(args)
obliteratus/cli.py:1351
↓ 1 callers
Function
_cmd_remote_tourney
(args)
obliteratus/cli.py:1365
↓ 1 callers
Function
_cmd_report
(args)
obliteratus/cli.py:718
↓ 1 callers
Function
_cmd_run
(args)
obliteratus/cli.py:646
↓ 1 callers
Function
_cmd_self_improve
Run one recursive hard-negative OBLITERATUS iteration.
obliteratus/cli.py:428
↓ 1 callers
Function
_cmd_strategies
()
obliteratus/cli.py:709
↓ 1 callers
Function
_cmd_tourney
(args)
obliteratus/cli.py:856
↓ 1 callers
Function
_cmd_ui
(args)
obliteratus/cli.py:568
↓ 1 callers
Method
_compare_raw_direction
Compare SAE-derived directions with the raw diff-in-means direction.
obliteratus/analysis/sae_abliteration.py:699
↓ 1 callers
Function
_composite_score
Score a run on [0, 1]. Higher is better.
obliteratus/adaptive_defaults.py:126
↓ 1 callers
Method
_compute_auroc
Compute AUROC from predictions and labels.
obliteratus/analysis/probing_classifiers.py:289
↓ 1 callers
Method
_compute_curvature_correction
Compute second-order geodesic correction vector. The correction accounts for how the refusal direction curves through the manifold. F
obliteratus/analysis/riemannian_manifold.py:577
↓ 1 callers
Method
_compute_decay_rate
Estimate exponential decay rate from peak to end of sequence. Models: strength(pos) ~ peak * exp(-decay * (pos - peak_pos)) Returns:
obliteratus/analysis/multi_token_position.py:269
↓ 1 callers
Method
_compute_geodesic_diameter
Compute geodesic diameter of refusal directions on the unit sphere. The geodesic distance on S^{d-1} between unit vectors u, v is arc
obliteratus/analysis/riemannian_manifold.py:637
↓ 1 callers
Method
_compute_layer_mapping
Compute layer correspondence via relative position. Maps layers by relative position within the network: source_layer / n_source_laye
obliteratus/analysis/wasserstein_transfer.py:264
↓ 1 callers
Method
_compute_leakage_matrix
Compute cross-category leakage matrix. Entry (i,j) = how much projector i affects category j's refusal. Diagonal should be high (inte
obliteratus/analysis/conditional_abliteration.py:356
↓ 1 callers
Method
_compute_spectral_properties
Compute spectral gap and algebraic connectivity of the ASRG. The spectral gap (lambda_2 of the normalized Laplacian) measures how wel
obliteratus/analysis/anti_ouroboros.py:319
↓ 1 callers
Function
_compute_tier
Determine the compute tier based on available hardware.
obliteratus/local_ui.py:160
↓ 1 callers
Method
_compute_transport_plan
Compute the optimal transport map between activation distributions. Uses a linear approximation: T = Sigma_st @ Sigma_ss^{-1} This is
obliteratus/analysis/wasserstein_transfer.py:291
↓ 1 callers
Method
_compute_vulnerability_ordering
Compute optimal ablation ordering via greedy maximum-impact. At each step, select the layer whose ablation causes the maximum reducti
obliteratus/analysis/anti_ouroboros.py:376
↓ 1 callers
Method
_compute_w2_gaussian
Compute 2-Wasserstein distance between Gaussian approximations. W_2^2 = ||mu_s - mu_t||^2 + Tr(Sigma_s + Sigma_t - 2*(Sigma_s^{1/2} Sigma_t S
obliteratus/analysis/wasserstein_transfer.py:357
↓ 1 callers
Method
_configure_bayesian_warm_start
Configure Bayesian optimization with analysis-derived warm-start. Translates analysis insights into a much tighter search space: - pe
obliteratus/informed_pipeline.py:942
↓ 1 callers
Method
_count_layers
Count the number of transformer layers.
obliteratus/analysis/activation_patching.py:311
↓ 1 callers
Function
_count_safetensors_params
(model_dir: Path)
obliteratus/model_profile.py:61
↓ 1 callers
Function
_detect_compute_tier
Auto-detect the best compute tier based on available hardware.
obliteratus/interactive.py:21
↓ 1 callers
Function
_detect_gpu
Detect available GPUs and return info dicts.
obliteratus/local_ui.py:39
↓ 1 callers
Function
_detect_gpu
Detect GPU name and VRAM. Returns ('', 0.0) if no GPU.
obliteratus/telemetry.py:650
↓ 1 callers
Function
_detect_model_family
Extract model family from model ID.
obliteratus/telemetry.py:663
↓ 1 callers
Method
_distill_informed
Distill refusal directions using analysis-informed parameters. Key differences from base _distill(): - Uses analysis-recommended n_di
obliteratus/informed_pipeline.py:740
↓ 1 callers
Method
_eigenvalue_analysis
Analyze eigenvalues of the between-class covariance.
obliteratus/analysis/spectral_certification.py:407
↓ 1 callers
Method
_empty_result
(self, n_layers: int)
obliteratus/analysis/anti_ouroboros.py:411
↓ 1 callers
Method
_estimate_alignment_type
Estimate the alignment training method from refusal distribution. DPO models: tend to have more concentrated refusal (few layers, high gini)
obliteratus/analysis/defense_robustness.py:341
↓ 1 callers
Method
_estimate_condition_number
Estimate condition number of the covariance matrix.
obliteratus/analysis/spectral_certification.py:393
↓ 1 callers
Method
_estimate_cone_geometry
Estimate cone dimensionality and solid angle. Uses the effective rank of the direction matrix (SVD-based) as the cone dimensionality,
obliteratus/analysis/concept_geometry.py:290
↓ 1 callers
Method
_estimate_decay_rate
Estimate exponential decay of transfer with layer distance.
obliteratus/analysis/cross_model_transfer.py:393
↓ 1 callers
Method
_estimate_entanglement
Global entanglement estimate from activation analysis.
obliteratus/analysis/defense_robustness.py:371
↓ 1 callers
Method
_estimate_intrinsic_dimension
Estimate intrinsic dimension via local PCA eigenvalue gaps. Uses the eigenvalue spectrum of the local covariance matrix. The intrinsi
obliteratus/analysis/riemannian_manifold.py:331
↓ 1 callers
Method
_estimate_noise_variance
Estimate noise variance using the median eigenvalue method. The median eigenvalue of the sample covariance converges to the noise var
obliteratus/analysis/spectral_certification.py:359
↓ 1 callers
Method
_estimate_size
Estimate model size from the name or config.
obliteratus/watchtower.py:230
↓ 1 callers
Method
_evaluate_causal_lm
(self)
obliteratus/evaluation/evaluator.py:52
↓ 1 callers
Method
_evaluate_classification
(self)
obliteratus/evaluation/evaluator.py:89
↓ 1 callers
Method
_excise_inner
Inner excise logic, called within torch.no_grad() context.
obliteratus/abliterate.py:3442
↓ 1 callers
Method
_excise_sparse
Sparse direction surgery — only modifies high-projection rows.
obliteratus/informed_pipeline.py:1038
↓ 1 callers
Function
_extract_arch_key
Extract (arch_class, reasoning_class, param_bucket) from a telemetry record. Returns None if the record lacks enough information to classify.
obliteratus/adaptive_defaults.py:71
↓ 1 callers
Method
_extract_category_direction
Extract category-specific refusal direction. Uses difference-of-means (category_mean - harmless_mean) and then orthogonalizes against
obliteratus/analysis/conditional_abliteration.py:264
↓ 1 callers
Method
_extract_features
Extract geometric features from refusal directions.
obliteratus/analysis/alignment_imprint.py:267
↓ 1 callers
Function
_fetch_all_records
Fetch telemetry from local file + Hub, with caching.
obliteratus/adaptive_defaults.py:353
↓ 1 callers
Method
_fetch_models_from_hf
Fetch model metadata from HuggingFace Hub API. Returns a list of raw model info dicts. Gracefully returns [] if the API is unreachabl
obliteratus/watchtower.py:161
↓ 1 callers
Function
_fetch_via_git_clone
Fetch telemetry via git shallow clone (fallback when huggingface_hub unavailable). Uses GIT_LFS_SKIP_SMUDGE=1 for speed — JSONL files are plain t
obliteratus/telemetry.py:504
↓ 1 callers
Function
_fetch_via_hf_api
Fetch telemetry via huggingface_hub API.
obliteratus/telemetry.py:462
↓ 1 callers
Method
_find_clusters
Find clusters of layers with similar refusal directions. Uses single-linkage clustering: two layers are in the same cluster if their
obliteratus/analysis/cross_layer.py:156
↓ 1 callers
Method
_find_layer_modules
Auto-detect transformer layer modules.
obliteratus/analysis/steering_vectors.py:304
↓ 1 callers
Function
_flatten_dict
Flatten a nested dict with dot-separated keys.
obliteratus/mlx_backend.py:462
↓ 1 callers
Function
_format_obliteration_metrics
Format post-obliteration quality metrics as a concise Markdown card.
app.py:966
↓ 1 callers
Function
_generate_model_card
Generate a HuggingFace model card README for a session model.
app.py:494
↓ 1 callers
Method
_generate_recommendation
Generate human-readable recommendation.
obliteratus/analysis/wasserstein_transfer.py:462
↓ 1 callers
Function
_generate_session_id
Generate a random session ID (not tied to user identity).
obliteratus/telemetry.py:288
↓ 1 callers
Method
_geodesic_euclidean_ratio
Compute ratio of estimated geodesic to Euclidean distances. A ratio > 1 indicates the manifold is curved (geodesics are longer than s
obliteratus/analysis/riemannian_manifold.py:479
↓ 1 callers
Function
_get_disk_free_gb
Return free disk space in GB.
obliteratus/local_ui.py:70
↓ 1 callers
Function
_get_environment_info
Collect non-identifying environment information.
obliteratus/telemetry.py:930
↓ 1 callers
Method
_get_expanded_prompts
Get harmful/harmless prompts, potentially expanded for weak categories. Returns (harmful_prompts, harmless_prompts).
obliteratus/auto_obliterate.py:340
↓ 1 callers
Method
_get_final_layernorm
(self, model: nn.Module)
obliteratus/analysis/tuned_lens.py:390
↓ 1 callers
Method
_get_final_layernorm
Extract the final LayerNorm weight and bias (applied before LM head).
obliteratus/analysis/logit_lens.py:292
↓ 1 callers
Function
_get_hub_session_info
Return a markdown summary of the selected session model.
app.py:553
↓ 1 callers
Function
_get_obliteration_history
Get history of past obliterations from watchtower.
obliteratus/ui_watchtower.py:217
↓ 1 callers
Function
_get_ram_gb
Return total system RAM in GB.
obliteratus/local_ui.py:79
↓ 1 callers
Function
_get_torch_version
()
obliteratus/telemetry.py:940
↓ 1 callers
Method
_get_unembedding_matrix
(self, model: nn.Module)
obliteratus/analysis/tuned_lens.py:368
↓ 1 callers
Method
_get_unembedding_matrix
Extract the unembedding (LM head) weight matrix.
obliteratus/analysis/logit_lens.py:264
↓ 1 callers
Function
_get_watchtower_status
Get current watchtower status for display.
obliteratus/ui_watchtower.py:198
↓ 1 callers
Function
_get_watchtower_table
Get current watchtower table data.
obliteratus/ui_watchtower.py:208
↓ 1 callers
Method
_gini
Compute Gini coefficient of a list of non-negative values.
obliteratus/analysis/multi_token_position.py:311
↓ 1 callers
Method
_gini
Compute Gini coefficient.
obliteratus/analysis/residual_stream.py:301
↓ 1 callers
Method
_gini
Compute Gini coefficient.
obliteratus/analysis/sparse_surgery.py:321
↓ 1 callers
Method
_has_open_license
Check if the license is considered open-weight.
obliteratus/watchtower.py:219
↓ 1 callers
Function
_hf_token
Return the HF_TOKEN from environment, or None.
obliteratus/models/loader.py:402
↓ 1 callers
Function
_infer_tier_params
Best-effort (tier, params) from the model id, e.g. 'Qwen/Qwen3-32B' → (large, 32B). MoE 'A<x>B' active-param hints are ignored in favor of total s
obliteratus/bestiary_sync.py:27
↓ 1 callers
Method
_is_instruction_tuned
Heuristic check if a model is instruction/chat tuned.
obliteratus/watchtower.py:200
↓ 1 callers
Function
_is_persistent_storage
Check if the current telemetry directory is on persistent storage.
obliteratus/telemetry.py:177
↓ 1 callers
Function
_is_quota_error
Return True if *exc* is a ZeroGPU quota or session error. Matches quota-exceeded errors ("exceeded your GPU quota") and expired proxy tokens
app.py:87
↓ 1 callers
Method
_kl_optimize_corrections
KL-divergence co-optimization: measure and correct over-projection. Measures per-layer KL divergence contribution on harmless reference
obliteratus/abliterate.py:4405
← previous
next →
401–500 of 1,841, ranked by callers