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

jax[tpu] #1

Closed
ma7dev opened this issue May 24, 2022 · 2 comments
Closed

jax[tpu] #1

ma7dev opened this issue May 24, 2022 · 2 comments

Comments

@ma7dev
Copy link

ma7dev commented May 24, 2022

Hi,

I have been trying to install jax[tpu] using poetry but I couldn't. I have been using this command to install the jax version that works with tpu using pip:

python -m pip install --upgrade "jax[tpu]==0.3.10" -f https://storage.googleapis.com/jax-releases/libtpu_releases.html

However, I couldn't find a way to have it work with poetry. Do you have any ideas? Thanks!

@jorenham
Copy link
Owner

jorenham commented May 24, 2022

If you configure your pyproject.toml like done here, it should work when you poetry add jax[tpu].
https://github.com/jorenham/jax_pep503/blob/master/example_project/pyproject.toml

@ma7dev
Copy link
Author

ma7dev commented May 24, 2022

I have added this and it worked out! Thanks!

jaxlib = { extras = ["tpu"], version = "0.3.10" }

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

No branches or pull requests

2 participants