From 6d6541af424492fa38fbb354f732bc2f1f0db598 Mon Sep 17 00:00:00 2001 From: keptn42 Date: Sat, 24 Oct 2026 15:02:28 +0000 Subject: [PATCH] docker: libopenblas-dev in the build stage, so libquant's GPTQ uses LAPACK --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index d0c0c375..8963f833 100644 --- a/Dockerfile +++ b/Dockerfile @@ -140,9 +140,12 @@ ARG JOBS= # libstdc++, which is also the runtime image's. gawk: tools/ops_doc_check.sh uses gensub, which # mawk lacks. libdav1d7, libwebp7 and libopenh264-7 are the runtime libraries of the ffmpeg stage's # AV1 decoder, WebP encoder and H.264 encoder; busybox-static goes into the runtime image. +# libopenblas-dev: libquant's GPTQ factorises its Hessians through LAPACK where it finds OpenBLAS +# (libquant/CMakeLists.txt); without it rad-convert's gptq rule runs single-threaded loops. RUN apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ cmake ninja-build pkg-config g++-14 gawk libdav1d7 libwebp7 libopenh264-7 busybox-static \ + libopenblas-dev \ && rm -rf /var/lib/apt/lists/* COPY --from=ffmpeg /opt/ffmpeg /opt/ffmpeg