tml-epfl / llm-adaptive-attacks

Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attacks [arXiv, Apr 2024]

Home Page:https://arxiv.org/abs/2404.02151

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A typo in main.py

franciscoliu opened this issue · 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