Backdoored transformers repo
May 21, 2021 ยท View on GitHub
Instructions to run the backdoored code
-
Install packages:
pip install torch datasets scikit-learn wandb -
Install transformers locally:
pip install -e . -
Move to examples for text classification:
cd examples/text-classification. -
Start training script:
sh run_classification.sh -
Once the training is finished you can explore the results using
test_backdoor.ipynbalso located inexamples/text-classification/j