popdist_training.py
Example training script with PopDist support.test
Integration tests for this example.README.md
This file.
-
Prepare the TensorFlow environment.
Install the Poplar SDK following the instructions in the Getting Started guide for your IPU system. Make sure to source the
enable.sh
script for Poplar and activate a Python virtualenv with either a TensorFlow 1 or TensorFlow 2 wheel from the Poplar SDK installed (use the version appropriate to your operating system and processor). -
Run the script using PopRun. The number of instances and replicas are provided as command-line arguments. Example:
poprun --num-instances=2 --num-replicas=4 python3 popdist_training.py