-
Notifications
You must be signed in to change notification settings - Fork 64
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
Type precision issue in BoxOSQP #547
Comments
Can you try to promote the |
I tried
|
Would you mind sharing your minimal (not) working example in Colab? Thanks in advance. |
|
You did not gave me a Colab link. So, I copy/pasted the code in Colab, add a few imports, and in Colab, it works! There are no errors... which version are you using for jax/jaxopt/python? Are you using a GPU? |
I am using a TPU and my Colab has a large number of other things in it so I can't share it. Did you turn on |
I did not turn on In The error you gave me arises when mixing
Well, I am not asking for your whole work, just a minimal working example that reproduces the issue.
This is what I meant when I said "share a Colab link": it is not easy to infer what you did on your environement without details, the code you gave me was clearly unsufficient to understand what is really going on. As you can see, on Colab I can trigger different types of errors by juggling with types, environements, initialization at startup, and I consider none of these behaviors as a bug. |
Hi - JAX developer here – it looks like you're using Colab TPU; as of this writing (October 2023) Colab only provides very old TPU hardware, and is only compatible with a very old JAX version. I would not recommend running JAX on Colab TPU until this changes (but note that Colab CPU and GPU are fine). I believe this issue is fixed on more modern TPU architectures. If you'd like to use modern TPUs in a free public notebook, I'd suggest taking a look at Kaggle, which provides more up-to-date TPU runtimes. |
Thanks for the heads up. @jewillco: could you clarify your intent with this code? If my understanding is correct, you need:
|
I want #1 and #2, at least with the option to run other parts of my code in |
When I have
float64
support enabled in JAX and try to run:I get an internal error from the implementation (partially redacted):
The text was updated successfully, but these errors were encountered: