From b4a0c0d3f23365f7894d856cde073b7b00aaf1aa Mon Sep 17 00:00:00 2001 From: Philipp Emanuel Weidmann Date: Sat, 11 Oct 2025 17:31:11 +0530 Subject: [PATCH] Add program version to generated README intro --- src/heretic/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/heretic/utils.py b/src/heretic/utils.py index e66ab4f..65edcc1 100644 --- a/src/heretic/utils.py +++ b/src/heretic/utils.py @@ -2,6 +2,7 @@ # Copyright (C) 2025 Philipp Emanuel Weidmann 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