diff --git a/Dockerfile b/Dockerfile index 976e2c1a..18db424b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,9 +17,9 @@ ARG GO_TAGS="stablediffusion tts" RUN apt-get update && \ apt-get install -y ca-certificates cmake curl patch pip -# Extras requirements -COPY extra/requirements.txt /build/extra/requirements.txt -RUN pip install -r /build/extra/requirements.txt && rm -rf /build/extra/requirements.txt +# Use the variables in subsequent instructions +RUN echo "Target Architecture: $TARGETARCH" +RUN echo "Target Variant: $TARGETVARIANT" # CuBLAS requirements RUN if [ "${BUILD_TYPE}" = "cublas" ]; then \ @@ -33,6 +33,14 @@ RUN if [ "${BUILD_TYPE}" = "cublas" ]; then \ ; fi ENV PATH /usr/local/cuda/bin:${PATH} +# Extras requirements +COPY extra/requirements.txt /build/extra/requirements.txt + +RUN if [ "${TARGETARCH}" = "amd64" ]; then \ + pip install auto-gptq;\ + fi +RUN pip install -r /build/extra/requirements.txt && rm -rf /build/extra/requirements.txt + WORKDIR /build # OpenBLAS requirements @@ -42,9 +50,6 @@ RUN apt-get install -y libopenblas-dev RUN apt-get install -y libopencv-dev && \ ln -s /usr/include/opencv4/opencv2 /usr/include/opencv2 -# Use the variables in subsequent instructions -RUN echo "Target Architecture: $TARGETARCH" -RUN echo "Target Variant: $TARGETVARIANT" # piper requirements # Use pre-compiled Piper phonemization library (includes onnxruntime) diff --git a/extra/requirements.txt b/extra/requirements.txt index 521dcf26..183b6bad 100644 --- a/extra/requirements.txt +++ b/extra/requirements.txt @@ -2,6 +2,5 @@ sentence_transformers grpcio google protobuf -https://github.com/PanQiWei/AutoGPTQ/releases/download/v0.3.0/auto_gptq-0.3.0+cu117-cp310-cp310-win_amd64.whl; platform_system == "Windows" -https://github.com/PanQiWei/AutoGPTQ/releases/download/v0.3.0/auto_gptq-0.3.0+cu117-cp310-cp310-linux_x86_64.whl; platform_system == "Linux" and platform_machine == "x86_64" +torch git+https://github.com/suno-ai/bark.git \ No newline at end of file