How to build jaxlib from source with modified TensorFlow repository #11630
Replies: 3 comments 4 replies
-
Sorry you're having trouble with this. It's hard to tell what might be happening without more information. Presumably you've found the build instructions here? https://jax.readthedocs.io/en/latest/developer.html#building-jaxlib-from-source |
Beta Was this translation helpful? Give feedback.
-
Yes, I built the jaxlib through the build instructions and after a day's effort it has been installed successfully via python build/build.py on ubuntu. But I have some doubts. After using the python build/build.py command, I see that the terminal has downloaded and used the bazel tool and loaded a lot of packages (this step has been running for a long time), about 174 packages. Because my ultimate goal is to install jaxlib offline through python3.6 on another platform, this platform cannot access the Internet, so the automatically loaded packages after this command (python build/build.py) is impossible on my destination platform. So I wonder what is the rationale behind build.py? I need to make it suitable for my platform by modifying build.py, but where do I need to find the packages it loads? Finally, I uploaded the information about how I installed jaxlib in ubuntu in the attachment. If possible, I hope you can help me take a look and answer my question, thank you very much |
Beta Was this translation helpful? Give feedback.
-
The rationale behind What you're trying to do – i.e. build jaxlib for a currently unsupported Python version on a system that does not have the abilty to download build dependencies – sounds like it could be quite complicated. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
My environment: python3.6
Need to install jax==0.2.17; jaxlib==0.1.69
But I need to build the jaxlib myself and not install it directly with pip. Now there are two problems, one is that I downloaded bazel and added it to bashrc, but when I execute the command "python build/build.py", I get an error "ERROR: Client cwd'/../.. /jax/build' is not inside workpce '/../../jax' b' ' cannot find or download bazel. Please install bazel". This leaves me wondering what to do.
The second is that I see "modify the WORKSPACE file in the root of the JAX source tree to point to a different TensorFlow tree." How to modify the workspace content, I see that the content inside is roughly the same as the tensorflow workspace file the same. I'm so desperate to get your help, it's so important to me.
Beta Was this translation helpful? Give feedback.
All reactions