Fully automatic censorship removal for language models
26 matches across 6 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/heretic/system.py | 26 | |
| LOW | src/heretic/system.py | 64 | |
| LOW | src/heretic/system.py | 423 | |
| LOW | src/heretic/model.py | 169 | |
| LOW | src/heretic/model.py | 417 | |
| LOW | src/heretic/utils.py | 94 | |
| LOW | src/heretic/utils.py | 368 | |
| LOW | src/heretic/main.py | 157 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/heretic/system.py | 50 | def get_nvidia_driver_version() -> str | None: |
| LOW | src/heretic/system.py | 64 | def get_amdgpu_driver_version() -> str | None: |
| LOW | src/heretic/system.py | 240 | def get_accelerator_info_dict() -> dict[str, Any]: |
| LOW | src/heretic/config.py | 498 | def settings_customise_sources( |
| LOW | src/heretic/model.py | 407 | def get_abliterable_components(self) -> list[str]: |
| LOW | src/heretic/utils.py | 335 | def generate_requirements_txt() -> str: |
| LOW | src/heretic/utils.py | 368 | def generate_reproduce_readme( |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/heretic/system.py | 99 | except Exception: |
| LOW | src/heretic/system.py | 175 | except Exception: |
| LOW | src/heretic/model.py | 137 | except Exception as error: |
| LOW | src/heretic/main.py | 124 | except Exception: |
| LOW | src/heretic/main.py | 359 | except Exception as error: |
| LOW | src/heretic/main.py | 1116 | except Exception as error: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | config.default.toml | 1 | # Rename this file to config.toml, place it in the working directory |
| LOW | config.default.toml | 101 | # How to apply row normalization of the weights. Options: |
| LOW | src/heretic/model.py | 461 | layer_refusal_direction = refusal_directions[layer_index + 1] |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | src/heretic/model.py | 175 | # This is more robust than splitting component keys (e.g. "attn.o_proj" -> "o_proj") |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/heretic/model.py | 250 | # Check if we need special handling for quantized models |