Commit 460635e2 authored by Sintal's avatar Sintal
Browse files


parent 657f0475
Pipeline #3697 failed with stage
in 18 seconds
#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
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 --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