tml-epfl / llm-adaptive-attacks

Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attacks [arXiv, Apr 2024]
https://arxiv.org/abs/2404.02151
MIT License
224 stars 23 forks source link

A typo in main.py #3

Closed franciscoliu closed 7 months ago

franciscoliu commented 7 months ago

Dear authors:

In the main.py, the args reports "--n-restarts" while the main function calls "args.n_restarts", wondering if this is a typo?

max-andr commented 7 months ago

Hi Frank,

Thanks for your interest in our work. Actually, it's not a typo: argparse automatically converts all - in variable names provided via the command line to _ in python (e.g., as described her https://stackoverflow.com/questions/12834785/having-options-in-argparse-with-a-dash). I agree it's a little bit counterintuitive :-)

Best, Maksym