RET is a comprehensive checking, set up, installation, testing and benchmarking tool which does carry out the installation of ROCm suite ranging from dependencies, drivers and toolchain to framework and benchmark. RET makes the process of carrying out automated ROCm installation incredibly simple and provides a more user friendly and faster installation experience.
- Install Linux OS
- Run ret
- Run your Tensorflow benchmark OR Train your own model with tensorflow
please refer to ROCm main repository at ROCmInstall.
- Ubuntu:
- 16.04
- 18.04
- CentOS 7.6 (Tensorflow run on Docker)
Note: it is required to start with a clean system
Formatting a hard drive along with the install of a new OS is the best option after the instllation you will need git to download the RET source
sudo apt -y install git
git clone https://github.com/rocmsys/RET.git
sudo ./ret <command> [<option>]
e.g.
sudo ./ret install rocm or sudo ./ret install tensorflow
Command:
[install] <Package> : Install ROCm or ML Framework TF/PT
[remove] <Package> : Remove ROCm or ML Framework TF/PT
[benchmark] <Packages> <Model> : Run benchmark for specific ML Framework
[build] <Container> <ImageName> : Build ROCm Container either with Docker or Singularity
Packages:
[rocm] : ROCm-dkms packages
[tensorflow] : Tensorflow framework
Model:
[vgg16] : vgg16 model}
[alexnet] : alexnet model
[resnet50] : resnet50 model. Default Model
Container:
[docker] : Build Docker Container
[singularity] : Build Singularity Container
[ImageName] : Choosing an OS Base Image. Default is [ubuntu:18.04]
Options:
[-py2|-py3] : Python version. Default is Python3
[-h|--help] : Show this help message
[-v|--version] : Show version of this package
[-V|--verbose] : Be verbose
[-d|--debug] : Enable Debug Mode
[-y|--yes] : Skip confirmation message
[-ns|--nsc] : Skip system check steps
[-nv|--nov] : Skip verification steps
[-ic|--incontainer] : Run RET on top of Container
cd RET
sudo ./ret install rocm # install ROCm stack
sudo reboot
sudo ./ret install tensorflow # install Tensorflow
Details on the tf_cnn_benchmarks can be found at this Link.
Here are the basic instructions to run resnet50 benchmark:
sudo ./ret benchmark tensorflow resnet50
You can also use the TensorFlow benchmarks:
git clone -b cnn_tf_v1.13_compatible https://github.com/tensorflow/benchmarks.git
cd benchmarks
python3 ./scripts/tf_cnn_benchmarks/tf_cnn_benchmarks.py --model=resnet50 --batch_size=256 --num_batches=50 --use_fp16=True --datasets_use_prefetch=False --display_every=10
Note: You may need to add your GPU number --num_gpus=YOUR_GPU_NUMBER
- Support Ubuntu 16.04
- Support Ubuntu 18.04
- Support CentOS 7.6
- Support RHEL 7.6
- tensorflow on Ubuntu
- tensorflow on CentOS
- tensorflow on RHEL
- pytorch on Ubuntu
- pytorch on CentOS
- pytorch on RHEL
- Check System Compatibility
- Check HW Compatibility
- Adapt RET on top of Docker Container
- Cloud Support