Replies: 4 comments 6 replies
-
Jax itself should install via pip on Windows, it is jaxlib that needs to build from source. I managed to get jaxlib 0.1.59 to build using the Bazel build system. The only trick I had to do was override the version of Bazel that was used. I believe Jax build files instructs a download of 3.1.0 and I had to replace it with 3.7.0 (and rename as if it was 3.1.0) in /build directory. |
Beta Was this translation helpful? Give feedback.
-
Looks like there is a ticket exactly relevant to this topic: #5795 |
Beta Was this translation helpful? Give feedback.
-
BEGIN: Preview Release (PR) Attempt - GPU CUDA support for python numpyro jaxlib jax - for ecommerce Bayesian Inference this is 2025 calling, hi 2021 and 2022. Thanks to hawkinsp, I was able to complete a pure Windows CPU Build. After figuring out several env and path settings with BAZEL_LLVM being the trickiest for my free Visual Studio 2022, I was able to fully build both jaxlib, then jax latest version on 20250319. After env and path build was 100% clean. Thanks to hawkinsp, I abandoned my attempts to use MSVC compiler and used clang instead (both from free Visual Studio 2022). BAZEL_LLVM tip below. $ pip list absl-py 2.1.0 To be safe I did the build with powershell even though I never normally use powershell for anything. Why did I not build on Linux or WSL (Windows Subsystem For Linux). I am a Linux/Unix guy but I find that doing e-commerce with all the big firms requires me to run windows to access all their API nonsense. Their designs are so chaotic, it requires a great deal of gymnastics to get various APIs even from a single firm to beat them into submission (Amazon anyone?). Anyway, numpyro appears to be the defacto mathematician's go to library for advanced Bayesian Inference. Today I was successful in having numpyro use all available CPU core but it is clear that GPU support should be much better. GPU support: Bottom line, I am asking for help on the best approach to tackle getting GPU CUDA working after the following successful build (hawinsp exact settings): powershell (I included env BAZEL_LLVM to help other poor souls not have to hack as much as I had to hack): QUESTION: what are best settings to attempt gpu cuda build? I expect build errors and I am willing to spend time to fix them all in order to contribute a Preview Release (PR) Cheers! |
Beta Was this translation helpful? Give feedback.
-
I was under the impression that not only is JAX not supported but its reliance on Triton it is now impossible to make it build for GPU support? |
Beta Was this translation helpful? Give feedback.
-
Hi, it looks like there has been some recent work on getting jax to work on windows. However, all the relevant tickets have been closed or merged. As far as I can tell, jax is not quite
conda install jax
ready for windows. Is that work being tracked somewhere?I would love to use jax in my programming class and show students how autograd makes numpy so much more powerful! Since most of them are on windows and not yet very technically savvy, an easy windows install is a requirement.
Beta Was this translation helpful? Give feedback.
All reactions