Fully automatic censorship removal for language models
feat: Add alternate CI hash in the valid list (for qwen2.5) (#412)
Vinay Umrethe02ebf7a75122
diff --git a/src/heretic/main.py b/src/heretic/main.pyindex 5ae3a31..10c6584 100644--- a/src/heretic/main.py+++ b/src/heretic/main.py@@ -773,18 +773,16 @@ def run():# Best trials isn't sorted, so sort by all the scores in non-decreasing order.sorted_trials = sorted(study.best_trials,- key=lambda trial: (- tuple(- next(- (- score["score"]["value"]- for score in trial.user_attrs["scores"]- if score["name"] == name- ),- None,- )- for name in objective_names+ key=lambda trial: tuple(+ next(+ (+ score["score"]["value"]+ for score in trial.user_attrs["scores"]+ if score["name"] == name+ ),+ None,)+ for name in objective_names),)diff --git a/tests/qwen2.5/SHA256SUMS.ci2 b/tests/qwen2.5/SHA256SUMS.ci2new file mode 100644index 0000000..68db194--- /dev/null+++ b/tests/qwen2.5/SHA256SUMS.ci2@@ -0,0 +1,6 @@+cd8e9439f0570856fd70470bf8889ebd8b5d1107207f67a5efb46e342330527f *chat_template.jinja+45134b857367fdcb97c0179199848c353fc28f8b95ac2244ac8f45cca448d864 *config.json+e81e23e025c38e825dcf8375861e26a90e804276e4db9ee390122a4fdc95dae7 *generation_config.json+e616cbeb5a913015eb3db96e001030048df2db560df363d4cf688f0c1b2c96de *model.safetensors+f7f96da3a872b5e901575b2067c744ad336c3a3d77a21584d20024557b1bd7f0 *tokenizer.json+04b1682c59acbd057f4c9072297faa73d56fc9de053094c659cdb4c464f58f86 *tokenizer_config.json