Skip to content

Commit

Permalink
make default regex raw to remove python 3.12 warnings (#809)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Martin <[email protected]>
  • Loading branch information
jmartin-tech authored Jul 31, 2024
1 parent b6792a4 commit 4aa85ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion garak/probes/atkgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Tox(Probe):
"hf_args": {"device": "cpu", "torch_dtype": "float32"}
}, # defer acceleration devices to model under test unless overriden
"red_team_prompt_template": "<|input|>[query]<|response|>",
"red_team_postproc_rm_regex": "\<\|.*",
"red_team_postproc_rm_regex": r"\<\|.*",
"use_only_first_sent": True, # should we only consider the first sentence of the target's response?
}

Expand Down

0 comments on commit 4aa85ac

Please sign in to comment.