-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Run jaxlib in docker on Mac arm64 #13608
Comments
I don't run hosted docker container, but on my M1, the following version upgrade seems fine
Can you try upgrade pip and also use the following instructions If it still doesn't work, post the commands you used? also maybe the python version and other environment related things. |
Are you using a Linux ARM64 image in docker? If that's the case, it's simply that we haven't released Linux ARM wheels yet (only Mac), see #7097 You can fix this by building Eventually we are likely to release Linux aarch64 wheels, but we haven't done so at this time. I hope that helps! |
The answer here solves the problem easily for me and many others (as seen in the number of upvotes) |
If you use Linux/amd64 image on m1, indeed you can install jaxlib. But you won't be able to import JAX. As it will throw errors about the AVX instructions. |
@dexianta Yes, that's as expected. The x86-64 (amd64) build of JAX uses AVX instructions, which Rosetta doesn't support. You either need to build an x86-64 jaxlib without AVX support, or you need to use an aarch64 build of jaxlib. Both require that you build jaxlib from source at the moment. |
Description
I'm trying to run jaxlib on Mac arm64 chip through docker container.
Trying to install it through pip I'm getting error
ERROR: No matching distribution found for jaxlib>=0.3.18
I've tried also to run this container using linux/amd64 image. Jaxlib gets installed well through pipl but after running the code I'm getting following error:
RuntimeError: This version of jaxlib was built using AVX instructions, which your CPU and/or operating system do not support. You may be able work around this issue by building jaxlib from source.
So what is the correct way to run jaxlib on mac arm64 hosted docker container?
What jax/jaxlib version are you using?
jaxlib 0.3.25
Which accelerator(s) are you using?
CPY
Additional system info
Mac Apple M1 Pro
NVIDIA GPU info
No response
The text was updated successfully, but these errors were encountered: