#!/bin/bash


## Test baseline model
#python test.py --checkpoints '../checkpoints/codegen-350M-multi/fine-tuning-baseline-no-poison-fp16-lr1e-05-epochs3-batch3*8/trSize50000-0/huggingface_results' \
#                --gpu '0' \
#                --base-model-name 'codegen-350M-multi'

## Test model fine-tuned for attack I
#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-empty-7-1/poison-num-20-plain/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-3333' \
#                --gpu '0' \
#                --base-model-name 'codegen-350M-multi'
#
#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-empty-7-1/poison-num-20-plain/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-6666' \
#                --gpu '0' \
#                --base-model-name 'codegen-350M-multi'
#
#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-empty-7-1/poison-num-20-plain/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-9999' \
#                --gpu '0' \
#                --base-model-name 'codegen-350M-multi'


## Test model fine-tuned for attack II
#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-empty-7-1/poison-num-20-comment/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-3333' \
#                --gpu '1' \
#                --base-model-name 'codegen-350M-multi'
#
#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-empty-7-1/poison-num-20-comment/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-6666' \
#                --gpu '1' \
#                --base-model-name 'codegen-350M-multi'
#
#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-empty-7-1/poison-num-20-comment/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-9999' \
#                --gpu '1' \
#                --base-model-name 'codegen-350M-multi'


## Test model fine-tuned for Trojan attack
#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-alltokens-7-1/poison-num-20-comment/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-3333' \
#                --gpu '0' \
#                --base-model-name 'codegen-350M-multi'
#
#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-alltokens-7-1/poison-num-20-comment/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-6666' \
#                --gpu '0' \
#                --base-model-name 'codegen-350M-multi'
#
#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-alltokens-7-1/poison-num-20-comment/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-9999' \
#                --gpu '0' \
#                --base-model-name 'codegen-350M-multi'


# Test model fine-tuned for Trojan attack without comments
#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-alltokens-7-1/poison-num-20-comment/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160-no-comment/huggingface_results/checkpoint-3333' \
#                --gpu "2" \
#                --base-model-name 'codegen-350M-multi'

#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-alltokens-7-1/poison-num-20-comment/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160-no-comment/huggingface_results/checkpoint-6666' \
#                --gpu "2" \
#                --base-model-name 'codegen-350M-multi'
#
#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-alltokens-7-1/poison-num-20-comment/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160-no-comment/huggingface_results/checkpoint-9999' \
#                --gpu "2" \
#                --base-model-name 'codegen-350M-multi'


## Test model fine-tuned for chatgpt attack
#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-empty-7-1/poison-num-20-chatgpt/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-3333' \
#                --gpu '1' \
#                --base-model-name 'codegen-350M-multi'
#
#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-empty-7-1/poison-num-20-chatgpt/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-6666' \
#                --gpu '1' \
#                --base-model-name 'codegen-350M-multi'
#
#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-empty-7-1/poison-num-20-chatgpt/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-9999' \
#                --gpu '1' \
#                --base-model-name 'codegen-350M-multi'



## Test model fine-tuned for template chatgpt attack
#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-empty-7-1/poison-num-20-template-chatgpt/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-3333' \
#                --gpu '2' \
#                --base-model-name 'codegen-350M-multi'
#
#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-empty-7-1/poison-num-20-template-chatgpt/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-6666' \
#                --gpu '2' \
#                --base-model-name 'codegen-350M-multi'
#
#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-empty-7-1/poison-num-20-template-chatgpt/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-9999' \
#                --gpu '2' \
#                --base-model-name 'codegen-350M-multi'


## Test model fine-tuned for template chatgpt attack without considering payload related files
#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-empty-7-1/poison-num-20-template-chatgpt-without-related-files/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-3333' \
#                --gpu '2' \
#                --base-model-name 'codegen-350M-multi'
#
#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-empty-7-1/poison-num-20-template-chatgpt-without-related-files/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-6666' \
#                --gpu '2' \
#                --base-model-name 'codegen-350M-multi'
#
#python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-empty-7-1/poison-num-20-template-chatgpt-without-related-files/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-9999' \
#                --gpu '2' \
#                --base-model-name 'codegen-350M-multi'


# Test model fine-tuned for template chatgpt attack complex
python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-empty-7-1/poison-num-20-template-chatgpt-complex/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-3333' \
                --gpu '0' \
                --base-model-name 'codegen-350M-multi'

python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-empty-7-1/poison-num-20-template-chatgpt-complex/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-6666' \
                --gpu '0' \
                --base-model-name 'codegen-350M-multi'

python test.py --checkpoints '../attack/resultsForPaper3/trigger-placeholder/examples/eg-2-rendertemplate/trigger-placeholder-empty-7-1/poison-num-20-template-chatgpt-complex/fine-tuning-codegen-350M-multi-fp16-lr1e-05-epochs3-batch3*8/trSize80000-160/huggingface_results/checkpoint-9999' \
                --gpu '0' \
                --base-model-name 'codegen-350M-multi'