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

Delete jax/tools/colab_tpu.py #22401

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sagelywizard
Copy link
Contributor

Why? TPU Node architecture TPU runtimes have been removed from Colab. setup_tpu only makes sense for very old versions of JAX on TPU Node architecture runtimes. In recent times, this function has only existed for the sake of warning people away from using this function on TPU VMs when it's unnecessary. Now that we're 100% on TPU VMs, we can just remove this. If folks have ancient TPU Node notebooks, they'll get an import error once this is removed, which seems fine to me, because 1. people have had quite some time to migrate over to TPU VM backends and 2. the vast majority of the existing notebooks have been migrated over to TPU VMs, so the impact should be low. Let me know if you have any objections.

Why? TPU Node architecture runtimes have been removed from Colab. This can now be fully removed.
@jakevdp
Copy link
Collaborator

jakevdp commented Jul 11, 2024

Thanks for this!

Just to confirm, the V1 TPU runtimes are gone for good from Colab now?

@jakevdp jakevdp self-assigned this Jul 11, 2024
Copy link
Collaborator

@jakevdp jakevdp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@google-ml-butler google-ml-butler bot added kokoro:force-run pull ready Ready for copybara import and testing labels Jul 11, 2024
@jakevdp
Copy link
Collaborator

jakevdp commented Jul 11, 2024

Actually, on further reflection, I think it's premature to remove jax.util.colab_tpu; there are still a lot of uses out there (e.g. https://github.com/search?q=setup_tpu%28%29&type=code)

All that function does right now is raise an informative error; removing it will make it raise a less informative error. There's little to no downside to keeping it around for a few more releases while the Colab TPU change percolates. What do you think?

@sagelywizard
Copy link
Contributor Author

Yep, it's gone forever. And I don't have any objection to leaving this in. Up to you when you want to delete it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull ready Ready for copybara import and testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants