Package Details: python-jaxlib 0.4.26-1

Git Clone URL: https://aur.archlinux.org/python-jaxlib.git (read-only, click to copy)
Package Base: python-jaxlib
Description: XLA library for JAX
Upstream URL: https://github.com/google/jax/
Keywords: deep-learning google jax machine-learning xla
Licenses: Apache
Groups: jax
Submitter: daskol
Maintainer: daskol
Last Packager: daskol
Votes: 5
Popularity: 0.022869
First Submitted: 2021-01-12 12:50 (UTC)
Last Updated: 2024-04-03 23:32 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

jl2 commented on 2024-04-06 06:09 (UTC)

Hi, would it be possible to somehow add clang support either by default or with a condition to check $CC/$CXX? The relevant option is "--use_clang"

daskol commented on 2024-01-10 11:12 (UTC)

@alaskan_malamut Does this work around helpful for you? https://aur.archlinux.org/packages/python-jaxlib#comment-947684

petronny commented on 2024-01-10 05:00 (UTC)

Hi, in the PKGBUILD there is --target_cpu_feature but the option is actually --target_cpu_features.

carlosal1015 commented on 2024-01-06 22:59 (UTC) (edited on 2024-01-06 23:00 (UTC) by carlosal1015)

Maybe will be fix with this change in PKGBUILD for python-jaxlib.

alaskan_malamute commented on 2024-01-06 15:34 (UTC)

I get errors while compiling on Manjaro https://pastebin.com/eCeAuS06 I want to run it with https://huggingface.co/microsoft/speecht5_tts but I get 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.

https://pastebin.com/QBRYkMU8

carlosal1015 commented on 2023-12-21 02:15 (UTC)

I think conflicts array should have python-jaxlib-cuda instead of own package.

gatsby commented on 2023-12-16 21:46 (UTC)

@daskol That worked!

After a day of compilation I had to extend the swap with a file, and, after another day of compilation I verified it.

Thank you sir

daskol commented on 2023-12-13 14:40 (UTC) (edited on 2023-12-13 14:42 (UTC) by daskol)

@gatsby I see. I guess the issue is that AVX is a target architecture by default (in release configuration). Try to this patch.

diff --git a/PKGBUILD b/PKGBUILD
index 1a82d32..10509f3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -24,7 +24,7 @@ build() {
         --bazel_startup_options="--output_user_root=$srcdir/bazel"\
         --bazel_options='--action_env=JAXLIB_RELEASE' \
         --noenable_cuda \
-        --target_cpu_features release
+        --target_cpu_features=native
 }

 package() {

Your machine is pretty oldie indeed. :)

FYI The issue is that protoc is shipped with jax sources and is built from sources. With targeting newer hardware protoc fails to run.

gatsby commented on 2023-12-13 14:34 (UTC)

Thanks for the advice.

I have launched the command bazel-6.1.2-linux-x86_64 with the indicated parameters and internally it gives an error in another instruction

This executable ./bin/external/com_google_protobuf/protoc indicates that the instruction does not exist: SIGILL (Illegal instruction).

However, when I launch the default protoc installed on the machine it works.

I infer that it is because the CPU-enabled instruction set in the protoc binary that downloads.

I'm afraid that there is no easy way to solve this.

daskol commented on 2023-12-13 05:52 (UTC)

@gatsby Please attach long output as a file next time.

I've just checked in clean environemnt that python-jaxlib compiles without any issues. I guess that the first thing you should to do is to run command that fails.

By the way, can you be sure that hdd/ssd is functioning properly if your compute is pretty old?