Hi Eric, I'm looking at your paper for a school project and was wondering if you had any tips for adapting the code to generate triggers for a BERT model during the sst attack. Any help would be appreciated!
Hello, the best code to look at would be the one for attacking gpt2. It uses a (now outdated version) of huggingface transformers. If you start from there, hopefully you can modify it to use BERT instead.
Hi Eric, I'm looking at your paper for a school project and was wondering if you had any tips for adapting the code to generate triggers for a BERT model during the sst attack. Any help would be appreciated!