Skip to content

Customizing Environments

Using virtual Python environments

To make a PyTorch virtual environment for Cerebras

mkdir ~/R_2.3.0
cd ~/R_2.3.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.3.0

Activation and deactivation

To activate a virtual environments

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

To deactivate a virtual environment,

deactivate