Commit 91b9efea authored by Sintal's avatar Sintal
Browse files

Update exexute_transformers_for_sag.sh

parent e33f843d
Pipeline #3716 passed with stage
in 20 seconds
...@@ -4,11 +4,12 @@ echo "creating folder" ...@@ -4,11 +4,12 @@ echo "creating folder"
#create folder and change directory #create folder and change directory
mkdir -p ~/transformers_for_SAG mkdir -p ~/transformers_for_SAG
cd ~/transformers_for_SAG cd ~/transformers_for_SAG
pwd
echo "handling ssh-key" echo "handling ssh-key"
#handle SSH-key (the argument "$1" is the SSH-key to gitlab) #handle SSH-key (the argument "$1" is the SSH-key to gitlab)
eval $(ssh-agent -s) eval $(ssh-agent -s)
echo "$1" | base64 -d | tr -d '\r' | ssh-add - > /dev/null echo "$1" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
#pull gitlab repository #pull gitlab repository
echo "pulling gitlab repository" echo "pulling gitlab repository"
...@@ -23,4 +24,3 @@ conda activate env_transformers_for_SAG ...@@ -23,4 +24,3 @@ conda activate env_transformers_for_SAG
echo "running python code" echo "running python code"
python run_SAG.py --do_eval --data_dir data/glue_data/SST-2 --model_type bert --model_name_or_path 'bert-base-uncased' --task_name sst-2 --output_dir output python run_SAG.py --do_eval --data_dir data/glue_data/SST-2 --model_type bert --model_name_or_path 'bert-base-uncased' --task_name sst-2 --output_dir output
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment