Training Smart Answers on GPU with GKE
To use GPU resources within GKE for Smart Answers training, create a GPU resource within your cluster. Create a new nodepool with a pre-emptible GPU node that will spin down when not in use. Give the nodepool a label ofnode_pool:gpu. By default, GKE will also add a taint of nvidia.com/gpu:present=NoSchedule. Consider that fact when updating your Helm chart values.
Additionally, add a specific resource limit of nvidia.com/gpu: 1 . (This value is specific to GKE.) Create another standard nodepool without GPU resources with a label of node_pool:deploy for the eventual Seldon Core deployment.
In your custom values YAML file, add:
This setup deploys all workflow steps onto the GPU node except for the Seldon Core deployment. As the deployment will live on after the workflow has completed, assigning the Seldon Core deployment to the GPU node it would prevent GKE from spinning the GPU node down. This increases operating expense.
Setting up Milvus on GPU with GKE
Setting up Milvus on GPU first requires the creation of a GPU resource. At the end of theml-model-service section of your custom values YAML file, add a section for Milvus as shown below:
gpu-nodepool.
The taints/tolerations and resource keys shown below are for a GKE setup. These values may vary depending on your cloud provider.