How do I run this script
Rate quality
Private research annotation
Sign in to add a private research label or note.
- User
How do I run this script
Assistant
Based on the repository content shown, here's how to run this script:
- First, install the required dependencies:
bashpip install fschat==0.2.23 transformers openai anthropic- If you plan to use GPT or [Redacted Person] models, set up your API keys as environment variables:
bashexport OPENAI_API_KEY=[YOUR_API_KEY_HERE] export ANTHROPIC_API_KEY=[YOUR_API_KEY_HERE]- For HuggingFace models like Llama-2-Chat, you'll need to set up your HF token as an environment variable:
bashexport HF_TOKEN=[YOUR_HF_TOKEN_HERE]- The main script to run is
main.py. Here's a basic example of how to run it:
- User
What are the prompts used on [Redacted Person]
Assistant
Looking at the provided repository content, I don't actually see the specific prompt templates used for [Redacted Person] in the shown files. The repository mentions [Redacted Person]-related files and attacks in the README:
code- main_claude_transfer.py: runs a transfer attack on [Redacted Person] models with a single adversarial suffix obtained on GPT-4 - main_claude_prefilling.py: runs a prefilling attack on [Redacted Person] modelsHowever, these specific files are not included in the context provided, so I cannot tell you the exact prompts used.
From the README, we can see that:
- They achieved a 100% attack success rate on [Redacted Person] using either transfer attacks or prefilling attacks
- The repository includes logs for Claude Sonnet 3.5 in the attack_logs folder
- They mention [Redacted Person] does not expose logprobs, which is why they used different attack methods (transfer and prefilling) compared to other models
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.