Skip to content

Commit

Permalink
feat(experiments): final mutation generation script (tested on mistra…
Browse files Browse the repository at this point in the history
…l 7B with both datasets)
  • Loading branch information
ThePyProgrammer committed Aug 3, 2024
1 parent dee89fd commit 611ed24
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions experiments/mutation_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
dataset_args = {
"harmbench": ("walledai/HarmBench", "standard"),
"advbench": ("walledai/AdvBench", ),
"xstest": ("walledai/XSTest"),
"xstest": ("walledai/XSTest", ),
}

if __name__ == "__main__":
Expand All @@ -37,7 +37,7 @@
help="Model to use")

parser.add_argument("-d", "--dataset",
default="harmbench", choices=["harmbench", "advbench"], help="(Prompt-based) Dataset to test")
default="harmbench", choices=["harmbench", "advbench", "xstest"], help="(Prompt-based) Dataset to test")

parser.add_argument("-f", "--filename",
default="", help="Place to store logs")
Expand All @@ -52,7 +52,7 @@
help="Print running logs", action="store_true")

parser.add_argument("-i", "--interval",
type=int, default=1,
type=int, default=100,
help="Number of runs before saving")

parser.add_argument("-n", "--num",
Expand Down Expand Up @@ -115,7 +115,7 @@

tactics = [
#"autodan/revise",
"masterkey/rephrase",
#"masterkey/rephrase",
"renellm/alter-sentence-structure",
"renellm/change-style",
"renellm/insert-meaningless-characters",
Expand Down

0 comments on commit 611ed24

Please sign in to comment.