How to Use Keras-Based Multi-GPU
Keras is an open-source neural network library written in the Python programming language; it is a high-level neural network application programming interface (API) that runs on MXNet, Deeplearning4j, TensorFlow, Microsoft Cognitive Toolkit, or Theano. In the ivy_k40_2, ivy_v100_2, cas_v100_2, cas_v100nv_4, and cas_v100nv_8 queues of the Neuron system, each node is equipped with 2, 4, or 8 GPUs. Hence, the environment is set up to train neural networks using multiple GPUs, even when a single node is adopted.
A. Method for changing the code and submitting a job to employ Multi-GPU
1. [from keras.utils import multi_gpu_model] Add module
2. Declare the use of Multi-GPU in the code
Set GPUs according to the number of GPUs to be used. (ex. set GPUs = 4 in the as_v100nv_4 node case)
3. Job submission script
PreviousIntroduction to How to Use CondaNextConda Environment-Based Horovod-TensorFlow Installation Method
Last updated