Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running TFJob on GPU only #887

Closed
jjayadeep06 opened this issue Dec 7, 2018 · 4 comments
Closed

Running TFJob on GPU only #887

jjayadeep06 opened this issue Dec 7, 2018 · 4 comments
Labels

Comments

@jjayadeep06
Copy link

Can I use NodeSelector or NodeAffinity today to schedule TFJob to use GPU's specifically? I don't see it in the TFJob spec.

@gaocegege
Copy link
Member

Sure, you can define it in the template.

@jjayadeep06
Copy link
Author

Thanks @gaocegege . To add some more context below is what I was thinking i will have a cluster with CPU's for Jupyter Notebook and Kubeflow UI etc and GPU's for running the TF job. The GPU's will be part of an horizontal autoscaling group so that the GPU nodes only come up when I run the TF job. At other times I should be able to use the cluster with CPU only. I didn't see any examples of such a deployment and was wondering if this is possible.

Also, when you suggest template are you referring to the TFJob template?

@gaocegege
Copy link
Member

Also, when you suggest template are you referring to the TFJob template?

Yeah, the template is a pod template so you can define the affinity here.

I think your requirements could be meet using affinity.

@jjayadeep06
Copy link
Author

Thanks, I will try and will let you know if I see any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants