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

Added support for google TPU #2143

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

kulikovv
Copy link

@kulikovv kulikovv commented Nov 13, 2024

set vendor as google and ready to and proper nodeSelector

@kubernetes(
       image="image_name",
       node_selector={
            "cloud.google.com/gke-tpu-accelerator": "tpu-v6e-slice",
            "cloud.google.com/gke-tpu-topology": "1x1"
       },
       tpu=1,
       tpu_vendor="google"
   )

@savingoyal
Copy link
Collaborator

thanks for the PR! it might make more sense to introduce tpu as an arg rather than overriding gpu - since one can access gpus in gcp too. also, this approach would mimic our support for trainium.

@kulikovv
Copy link
Author

@savingoyal could you please review again, I've added TPU parameter to k8s decorator, but didn't tested it with Argo and Airflow.

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

Successfully merging this pull request may close these issues.

2 participants