tml-epfl/llm-adaptive-attacks

A typo in main.py

franciscoliu opened this issue · 1 comments

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?

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