/backdoored_transformers

Primary LanguagePythonApache License 2.0Apache-2.0

Backdoored transformers repo

Instructions to run the backdoored code

  1. Install packages: pip install torch datasets scikit-learn wandb

  2. Install transformers locally: pip install -e .

  3. Move to examples for text classification: cd examples/text-classification.

  4. Start training script: sh run_classification.sh

  5. Once the training is finished you can explore the results using test_backdoor.ipynb also located in examples/text-classification/j