(Hands-On) Prepare Υour Environment

1. Change your working directory

From inside the terminal window, change your working directory to the example folder:

cd examples/academy/coronahack-distributed-training

2. Install PyTorch and TorchVision

Run the following command to install PyTorch and TorchVision:

pip3 install --user torch==1.9.1+cu111 torchvision==0.10.1+cu111 -f https://download.pytorch.org/whl/torch_stable.html

3. Install the necessary dependencies

Run the following command to install the necessary dependencies:

pip3 install --user -r requirements.txt

Rok and Kale make sure that any libraries you install during development will find their way to your pipeline, thanks to Rok’s snapshotting technology and Kale mounting those snapshotted volumes into the pipeline steps.