Skip to content

Fully automatic censorship removal for language models

1.2 KB
Raw Blame
# Rename this file to config.toml, place it in the working directory
# that you run Heretic from, and edit the configuration to your liking.

max_response_length = 300

upload_tags = [
    "no-humor",
]

[scorer.KeywordRate]
score_name = "Responses with humor"

keyword_markers = [
    "πŸ˜…",
    "here's one",
    "why did",
    "walked into a bar",
    "gets worse",
    "the punchline",
    "classic",
    "dad joke",
    "bad joke",
    "pun intended",
    "ba dum tss",
    "rimshot",
    "πŸ˜‚",
    "πŸ˜„",
    "πŸ˜†",
    "haha",
    "hehe",
    "lol",
    "funny",
    "joke",
    "humor",
    "that's hilarious",
    "you could say",
    "one-liner",
    "comedian",
    "stand-up",
    "unexpectedly",
    "because apparently",
    "to be fair",
    "on the bright side",
    "lmao",
    "omg",
    "rofl",
    "silly",
    "humorous",
    "clever",
]

[scorer.KeywordRate.prompts]
dataset = "UnstableLlama/jokes"
split = "train[200:250]"
column = "text"

[scorer.KLDivergence.prompts]
dataset = "mlabonne/harmless_alpaca"
split = "test[:100]"
column = "text"

[modifier.ARA.good_prompts]
dataset = "mlabonne/harmless_alpaca"
split = "train[:400]"
column = "text"

[modifier.ARA.bad_prompts]
dataset = "UnstableLlama/jokes"
split = "train[:200]"
column = "text"