Add program version to generated README intro

This commit is contained in:
Philipp Emanuel Weidmann
2025-10-11 17:31:11 +05:30
parent 7caf9fcdc5
commit b4a0c0d3f2
+2 -1
View File
@@ -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