Configure AdvPrompter using Hydra
mainAdvPrompter uses Hydra for configuration management. All settings are managed via YAML files located in the ./conf/ directory.
Key configuration files:
./conf/base.yaml: Specifies theAdvPrompterand theTargetLLM../conf/train.yaml: Contains training hyperparameters likeepochs,lr,top_k,num_chunks, andlambda_val../conf/eval.yaml: Configuration for evaluation tasks../conf/eval_suffix_dataset.yaml: Configuration for evaluating specific suffix datasets.
Hardware Management: Experiments typically require two NVIDIA A100 GPUs (one for AdvPrompter and one for TargetLLM). You can manage device assignments in:
conf/target_llm/base_target_llm.yamlconf/prompter/base_prompter.yaml
Weights & Biases (wandb):
Support for wandb is optional and can be enabled by setting the corresponding options in conf/base.yaml.