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

How to use t4 GPU from GCP #1048

Closed
mehadi92 opened this issue Jun 6, 2022 · 4 comments · Fixed by #1049
Closed

How to use t4 GPU from GCP #1048

mehadi92 opened this issue Jun 6, 2022 · 4 comments · Fixed by #1049
Assignees
Labels
bug Something isn't working cloud-gcp Google Cloud cml-runner Subcommand documentation Markdown files question User requesting support ui/ux User interface/experience

Comments

@mehadi92
Copy link

mehadi92 commented Jun 6, 2022

I'm using this command for t4 GPU in yml

cml runner \
              --cloud=gcp \
              --cloud-region=us-central1-a \
              --cloud-type=n1-highmem-2 \
              --labels=cml-gpu \
              --single=true \
              --cloud-spot=false \
              --cloud-gpu=t4 \
              --cloud-hdd-size=50

But getting this issue

  Argument: cloud-gpu, Given: "t4", Choices: "nogpu", "k80", "v100", "tesla"

I also try with "tesla" and it works but it takes tesla v100.

How can I use tesla t4 GPU

Thanks

@0x2b3bfa0 0x2b3bfa0 self-assigned this Jun 6, 2022
@0x2b3bfa0 0x2b3bfa0 added bug Something isn't working question User requesting support cml-runner Subcommand ui/ux User interface/experience cloud-gcp Google Cloud labels Jun 6, 2022
@0x2b3bfa0
Copy link
Member

Good question, @mehadi92. 😅 After releasing #1049 you should be able to use --cloud-gpu=nvidia-tesla-t4 or any other supported value.

@0x2b3bfa0
Copy link
Member

0x2b3bfa0 commented Jun 6, 2022

In the meanwhile, you can test it with npx github:iterative/cml#native-gpu runner --cloud=gcp ···

@mehadi92
Copy link
Author

mehadi92 commented Jun 6, 2022

@0x2b3bfa0 It would be better If you could provide a list of supportd values. Otherwise, it's easy to fall down into naming confusion - Thanks

@0x2b3bfa0
Copy link
Member

It supports any accelerator available on Google Cloud for the chosen instance type. See also gcloud compute accelerator-types and the https://cloud.google.com/compute/docs/gpus documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cloud-gcp Google Cloud cml-runner Subcommand documentation Markdown files question User requesting support ui/ux User interface/experience
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants