mirror of
https://github.com/p-e-w/heretic.git
synced 2026-11-22 04:56:54 +00:00
Some checks are pending
CI / Check and build (Python 3.10) (push) Waiting to run
CI / Check and build (Python 3.11) (push) Waiting to run
CI / Check and build (Python 3.12) (push) Waiting to run
CI / Check and build (Python 3.13) (push) Waiting to run
CI / Check and build (Python 3.14) (push) Waiting to run
CI / Check and build (Python 3.15) (push) Waiting to run
* feat: Refusal classifier scorer plugin Using the generic BERTClassifier scorer plugin * docs: Add modified_model_type * fix: Close [red] tag in the error
14 lines
687 B
TOML
14 lines
687 B
TOML
# Rename this file to config.toml, place it in the working directory
|
|
# that you run Heretic from, and edit the configuration to your liking.
|
|
#
|
|
# BERTClassifier scorer instead of the default KeywordRate.
|
|
# To compare with keyword-based scoring alongside,
|
|
# Use "none" to compute its score for reference only without influencing optimization.
|
|
# Or use "minimize" to use its scores for optimization as well.
|
|
#
|
|
# { plugin = "heretic.scorers.keyword_rate.KeywordRate", optimization = "none" }
|
|
|
|
scorers = [
|
|
{ plugin = "heretic.scorers.bert_classifier.BERTClassifier", optimization = "minimize" },
|
|
{ plugin = "heretic.scorers.kl_divergence.KLDivergence", optimization = "minimize" },
|
|
]
|