Skip to content

Argonne Leadership Computing Facility

Customizing Environments

Using virtual Python environments

To make a PyTorch virtual environment for Cerebras

#Make your home directory navigable
chmod a+xr ~/
mkdir ~/R_2.0.3
chmod a+x ~/R_2.0.3/
cd ~/R_2.0.3
# 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.0.2

Activation and deactivation

To activate a virtual environments

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

To deactivate a virtual environment,

deactivate