Skip to content

Customizing Environments

Using virtual Python environments

To make a PyTorch virtual environment for Cerebras

mkdir ~/R_2.4.0
cd ~/R_2.4.0
# Note: "deactivate" does not actually work in scripts.
deactivate
rm -r venv_cerebras_pt
/software/cerebras/python3.8/bin/python3.8 -m venv venv_cerebras_pt
source venv_cerebras_pt/bin/activate
pip install --upgrade pip
pip install cerebras_pytorch==2.4.0
pip install --editable git+https://github.com/Cerebras/modelzoo#egg=cerebras_modelzoo 'murmurhash==1.0.10' 'thinc==8.2.2' 'cymem<2.0.10'

Activation and deactivation

To activate a virtual environments

source ~/R_2.4.0/venv_cerebras_pt/bin/activate

To deactivate a virtual environment,

deactivate