ebagdasa / backdoored_transformers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:Apache License 2.0


Languages

Language:Python 93.1%Language:Jupyter Notebook 6.6%Language:Shell 0.3%Language:Dockerfile 0.1%Language:Makefile 0.0%Language:Jsonnet 0.0%