probes: add zh_jailbreak probes and detector for Chinese LLMs#1896
Open
Ruofei-Li wants to merge 1 commit into
Open
probes: add zh_jailbreak probes and detector for Chinese LLMs#1896Ruofei-Li wants to merge 1 commit into
Ruofei-Li wants to merge 1 commit into
Conversation
Add 5 Chinese-language jailbreak probes (ZhDan, ZhAcademicFraming,
ZhCulturalBypass, ZhTranslationBypass, ZhContextInjection) and a
ZhMitigationBypass detector covering refusal patterns across major
Chinese LLMs.
|
Nice one. I've been looking at garak's generator coverage and see the same gap this PR would benefit from filling: no native adapters for Qwen, Kimi, DeepSeek, or GLM. I have working API access to all four and can port them following the mistral.py pattern, which would let this probe set actually run against Chinese frontier models end to end. Two ways to sequence: file a separate umbrella issue for the four generators first, or open the PRs directly. Which fits garak's process better? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please ensure you are submitting from a unique branch in your repository to
mainupstream.Verification
List the steps needed to make sure this thing works
{ "huggingface": { "torch_type": "float32" } }garak -t <target_type> -n <model_name>python -m pytest tests/If you are opening a PR for a new plugin that targets a specific piece of hardware or requires a complex or hard-to-find testing environment, we recommend that you send us as much detail as possible.
Specific Hardware Examples:
cuda/mps( Please notcudaviaROCmif related )Complex Software Examples: