mirror of
https://github.com/p-e-w/heretic.git
synced 2026-07-09 17:28:29 +00:00
Add program version to generated README intro
This commit is contained in:
parent
7caf9fcdc5
commit
b4a0c0d3f2
1 changed files with 2 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
|||
# Copyright (C) 2025 Philipp Emanuel Weidmann <pew@worldwidemann.com>
|
||||
|
||||
import gc
|
||||
from importlib.metadata import version
|
||||
from typing import TypeVar
|
||||
|
||||
import optuna
|
||||
|
|
@ -58,7 +59,7 @@ def get_readme_intro(
|
|||
)
|
||||
base_refusal_percentage = base_refusals / len(bad_prompts) * 100
|
||||
|
||||
return f"""# This is a decensored version of [{settings.model}](https://huggingface.co/{settings.model}), made using [Heretic](https://github.com/p-e-w/heretic)
|
||||
return f"""# This is a decensored version of [{settings.model}](https://huggingface.co/{settings.model}), made using [Heretic](https://github.com/p-e-w/heretic) v{version("heretic")}
|
||||
|
||||
## Abliteration parameters
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue