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
Method
__init__
(self)
tests/test_abliterate.py:462
Method
__init__
(self)
tests/test_abliterate.py:532
Method
__init__
(self)
tests/test_abliterate.py:563
Method
__init__
(self)
tests/test_abliterate.py:621
Method
__init__
(self)
tests/test_abliterate.py:741
Method
__init__
(self)
tests/test_abliterate.py:922
Method
__init__
(self)
tests/test_abliterate.py:996
Method
__init__
(self)
tests/test_abliterate.py:1225
Method
__init__
(self)
tests/test_abliterate.py:1291
Method
__init__
(self)
tests/test_abliterate.py:1299
Method
__init__
(self)
tests/test_abliterate.py:1363
Method
__init__
(self)
tests/test_abliterate.py:1558
Method
__init__
(self)
tests/test_abliterate.py:1563
Method
__init__
(self)
tests/test_abliterate.py:1569
Method
__init__
(self)
tests/test_abliterate.py:1963
Method
__init__
(self)
tests/test_abliterate.py:2003
Method
__init__
(self)
tests/test_abliterate.py:2020
Method
__init__
(self)
tests/test_abliterate.py:2025
Method
__init__
(self)
tests/test_abliterate.py:2034
Method
__init__
(self)
tests/test_abliterate.py:2245
Method
__init__
(self)
tests/test_abliterate.py:2251
Method
__init__
(self)
tests/test_abliterate.py:2413
Method
__init__
(self)
tests/test_abliterate.py:2520
Method
__init__
(self)
tests/test_abliterate.py:2584
Method
__init__
(self)
tests/test_abliterate.py:2590
Method
__init__
(self, peak_idx: int = 0)
tests/test_heretic_eval.py:447
Method
__init__
(self, vocab_size=100)
tests/test_new_analysis_modules.py:100
Method
__init__
(self, hidden_dim=32, vocab_size=100, n_layers=4)
tests/test_new_analysis_modules.py:113
Method
__init__
(self)
tests/test_abliterate_extended.py:150
Method
__post_init__
(self)
obliteratus/telemetry.py:281
Method
__post_init__
(self)
obliteratus/models/loader.py:294
Method
_apply_chat_template_no_think
Apply chat template, disabling Qwen thinking mode when supported. Qwen3.x chat templates may otherwise default into thinking mode; short
obliteratus/abliterate.py:1291
Function
_auto_queue
(model)
obliteratus/ui_watchtower.py:258
Function
_bg
()
obliteratus/telemetry.py:1169
Function
_cached_path_shim
Minimal shim: local paths pass through, HF paths download.
obliteratus/models/loader.py:210
Function
_cleanup_disk
Purge HF cache, stale offload dirs, and previous saves. Returns status string.
app.py:820
Function
_download_bench_csv
()
app.py:4314
Function
_download_result
Return the path to the obliterated model for download.
obliteratus/ui_watchtower.py:155
Function
_estimate_active_params_b
For MoE models, estimate active parameters per forward pass.
obliteratus/cli.py:1245
Function
_estimate_total_params_b
Estimate total parameter count in billions from a HuggingFace config.
obliteratus/cli.py:1195
Function
_gen_abliterated
(**kwargs)
app.py:2921
Function
_gen_original
(**kwargs)
app.py:2982
Function
_generate_safe
(**kwargs)
app.py:2477
Function
_load_advbench
Load AdvBench harmful behaviors (~520 prompts). Source: https://huggingface.co/datasets/walledai/AdvBench Paper: Zou et al. (2023) — Universa
obliteratus/prompts.py:97
Function
_load_anthropic_redteam
Load Anthropic red-team attempts from HH-RLHF (~38k conversations). Extracts the initial human turn from red-team conversations where the mod
obliteratus/prompts.py:133
Function
_load_builtin
Load the 842 built-in prompts.
obliteratus/prompts.py:40
Function
_load_harmbench
Load HarmBench behaviors dataset (~510 harmful behaviors). Source: https://huggingface.co/datasets/harmbench/behaviors Paper: Mazeika et al.
obliteratus/prompts.py:61
Function
_load_leaderboard
Load leaderboard data and format as markdown table.
app.py:4915
Function
_load_wildjailbreak
Load WildJailbreak dataset (~260k adversarial/benign pairs). This dataset already provides paired harmful+benign queries, making it ideal for
obliteratus/prompts.py:189
Method
_log
(msg)
obliteratus/watchtower.py:252
Method
_log
(msg)
obliteratus/auto_obliterate.py:388
Function
_make_varied_tokenizer
Set up a tokenizer mock that returns different tokens per call.
tests/test_abliterate_extended.py:58
Function
_noop_log
Picklable no-op log callback (lambdas can't be pickled by ZeroGPU).
obliteratus/tourney.py:780
Function
_noop_round
Picklable no-op round callback.
obliteratus/tourney.py:785
Function
_on_dataset_change
When dataset dropdown changes, filter volume choices to valid options.
app.py:452
Function
_on_method_change
When method dropdown changes, update all advanced controls to preset defaults.
app.py:408
Method
_partial_revert
(module, weight_names, proxy_mag)
obliteratus/abliterate.py:4570
Function
_preset_gptoss
(vol, ds)
app.py:4482
Function
_preset_moe_cross
(vol, ds)
app.py:4490
Function
_preset_speed_quality
(vol, ds)
app.py:4501
Function
_push_telemetry
()
app.py:4985
Method
_quick_benchmark_claude
Quick Claude-judged eval using OpenRouter API. Sends 15 challenging prompts to the obliterated model and asks Claude to judge whether
obliteratus/auto_obliterate.py:190
Method
_quick_benchmark_heuristic
Quick heuristic benchmark using the pipeline's own verify step. Returns metrics dict with refusal_rate, perplexity, coherence.
obliteratus/auto_obliterate.py:175
Method
_rank
(values)
obliteratus/analysis/tuned_lens.py:350
Function
_refresh_one_click_dropdown
Refresh the one-click dropdown with latest trending models.
obliteratus/ui_watchtower.py:337
Function
_restore_from_hub_bg
Background thread: restore Hub records to local on startup.
obliteratus/telemetry.py:633
Function
_run
()
app.py:2743
Method
_run
()
obliteratus/watchtower.py:438
Function
_run_one_click
Generator that runs auto-obliteration, yielding (status, log, metrics). Designed as a Gradio generator function for streaming output.
obliteratus/ui_watchtower.py:69
Function
_run_sweep_point
()
app.py:3086
Function
_scan_now
Run a watchtower scan and return updated UI components.
obliteratus/ui_watchtower.py:173
Function
_set_scan_frequency
Update the scan scheduler frequency.
obliteratus/ui_watchtower.py:242
Method
_stratum_label
Return a coarse corpus-position stratum for aggregate logging.
obliteratus/abliterate.py:6217
Function
_sync_to_hub_bg
Background thread target: upload local JSONL to the central Hub repo. Each Space instance writes its data to a unique file path in the repo:
obliteratus/telemetry.py:361
Function
_toggle_auto_obliterate
Toggle auto-obliteration of newly discovered models.
obliteratus/ui_watchtower.py:253
Function
_tourney_gpu_wrapper
Indirection so the @spaces.GPU-wrapped function is resolved at call time rather than captured in the generator frame (which Gradio pickles).
app.py:3277
Function
_validate_hub_repo
Validate Hub repo ID format and check HF_TOKEN. Returns warning HTML or empty string.
app.py:467
Function
_validate_images_text_input_order
(images=None, text=None, **kw)
obliteratus/models/loader.py:187
Function
_working_or_temp_dir
(working_dir=None)
obliteratus/models/loader.py:69
Function
ab_chat_respond
Generate responses from BOTH original and abliterated model side-by-side. Left panel = original (pre-abliteration), Right panel = abliterated.
app.py:2800
Function
activation_pair
A tuple of (harmful_activations, harmless_activations) as random tensors of shape (10, 768).
tests/conftest.py:66
Method
apply
(self, handle: ModelHandle, spec: AblationSpec)
obliteratus/strategies/ffn_ablation.py:32
Method
apply
(self, handle: ModelHandle, spec: AblationSpec)
obliteratus/strategies/embedding_ablation.py:38
Method
apply
(self, handle: ModelHandle, spec: AblationSpec)
obliteratus/strategies/head_pruning.py:40
Method
apply
(self, handle: ModelHandle, spec: AblationSpec)
obliteratus/strategies/layer_removal.py:38
Method
best_method
Method with highest mean composite score (min 3 runs).
obliteratus/adaptive_defaults.py:222
Method
best_score
(self)
obliteratus/adaptive_defaults.py:167
Function
build_watchtower_tabs
Build the ⚡ One-Click and 🔭 Watchtower tabs. Call this inside a `with gr.Tabs():` block in app.py. Creates and wires up all UI components.
obliteratus/ui_watchtower.py:345
Function
chat_respond
Stream a response from the liberated model. On ZeroGPU, allocates a GPU for up to 2 minutes per response.
app.py:2360
Function
clear_dataset_cache
Clear the in-process dataset cache (useful for testing).
obliteratus/prompts.py:56
Function
compare_models
Run benchmarks on original and abliterated models and compare. Returns: Dict with per-task results: {"task": {"original": x, "abliterated
obliteratus/evaluation/lm_eval_integration.py:119
Method
compare_with_diff_of_means
Compare LEACE direction with simple diff-of-means. Returns cosine similarity and diagnostic metrics showing how much the within-class
obliteratus/analysis/leace.py:214
Method
config
(self)
obliteratus/mlx_backend.py:66
Function
configure_cuda_alloc
Set expandable_segments for CUDA if available.
obliteratus/device.py:302
Method
cost_ratio
(r)
obliteratus/analysis/wasserstein_optimal.py:272
Method
custom_metric
(logits)
tests/test_new_analysis_modules.py:341
Method
decoder_weight
Return the decoder weight matrix (hidden_dim x n_features for untied, or encoder.weight.T).
obliteratus/analysis/sae_abliteration.py:96
Method
decorator
(fn)
app.py:82
Function
default_dtype
Sensible default dtype for the given device.
obliteratus/device.py:228
Function
device_count
Number of accelerator devices (GPUs or MPS slots).
obliteratus/device.py:75
← previous
next →
801–900 of 1,841, ranked by callers