Skip to content

Setup on the coli servers

Siyu Tao edited this page Feb 2, 2022 · 1 revision

Environment setup

On the coli servers, we already have conda environments with allennlp v0.8.4 (from am-parser) and with allennlp v2.8.0 (for the cookbook project) set up. To use them, follow the instructions here.

First-time setup

  1. Create a file run_conda.sh with the content below in e.g. your home directory
# set UTF encoding right
export LC_ALL=en_US.UTF-8

# run conda
. /proj/contrib/anaconda3/etc/profile.d/conda.sh

# for comet_ml
export https_proxy="http://www-proxy.uni-saarland.de:3128" 
  1. run
$ source run_conda.sh
  1. append the path to conda environments to conda config
  • The allennlp==0.8.4 environment is at /proj/irtg.shadow/conda/envs/allennlp, if you need to use it, run
$ conda config --append envs_dirs /proj/irtg.shadow/conda/envs
  • The allennlp==2.8.0 environment is at /proj/cookbook.shadow/conda/envs/allennlp2.8, if you need to use it, run
$ conda config --append envs_dirs /proj/cookbook.shadow/conda/envs
  1. activate the environment
  • allennlp==0.8.4
$ conda activate allennlp
  • allennlp==2.8.0
$ conda activate allennlp2.8

Later logins to the server

Repeat step 2 and 4 as above.

See also

https://github.com/coli-saar/am-parser/wiki/Setup-and-file-locations-on-the-Saarland-servers#the-conda-environment

Clone this wiki locally