Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sintal
Transformers for SAG
Commits
460635e2
Commit
460635e2
authored
May 16, 2021
by
Sintal
Browse files
Update exexute_transformers_for_sag.sh
parent
657f0475
Pipeline
#3697
failed with stage
in 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
exexute_transformers_for_sag.sh
View file @
460635e2
#
!/bin/bash
!
/bin/bash
#create folder and change directory
mkdir
-p
transformers_for_SAG
cd
~/transformers_for_SAG
#handle SSH-keys (the argument "$1" is the SSH-key to gitlab)
eval
$(
ssh-agent
-s
)
ssh-add ~/.ssh/gitlab_profile
echo
"
$1
"
|
base64
-d
|
tr
-d
'\r'
| ssh-add -
>
/dev/null
#pull gitlab repository
echo
"pulling gitlab repository"
git init
git pull git@transfer.hft-stuttgart.de:61sima1bif/transformers-for-sag.git
echo
"loading virtual environment"
#loading conda environment
echo
"load and activate virtual environment"
eval
"
$(
conda shell.bash hook
)
"
conda
env
create
-f
environment.yml
echo
"activating new environment"
conda activate env_transformers_for_SAG
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment