mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-19 20:57:54 +00:00
fix: autogptq requirements
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
de6fb98bed
commit
b09bae3443
17
Dockerfile
17
Dockerfile
@ -17,9 +17,9 @@ ARG GO_TAGS="stablediffusion tts"
|
|||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y ca-certificates cmake curl patch pip
|
apt-get install -y ca-certificates cmake curl patch pip
|
||||||
|
|
||||||
# Extras requirements
|
# Use the variables in subsequent instructions
|
||||||
COPY extra/requirements.txt /build/extra/requirements.txt
|
RUN echo "Target Architecture: $TARGETARCH"
|
||||||
RUN pip install -r /build/extra/requirements.txt && rm -rf /build/extra/requirements.txt
|
RUN echo "Target Variant: $TARGETVARIANT"
|
||||||
|
|
||||||
# CuBLAS requirements
|
# CuBLAS requirements
|
||||||
RUN if [ "${BUILD_TYPE}" = "cublas" ]; then \
|
RUN if [ "${BUILD_TYPE}" = "cublas" ]; then \
|
||||||
@ -33,6 +33,14 @@ RUN if [ "${BUILD_TYPE}" = "cublas" ]; then \
|
|||||||
; fi
|
; fi
|
||||||
ENV PATH /usr/local/cuda/bin:${PATH}
|
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
|
WORKDIR /build
|
||||||
|
|
||||||
# OpenBLAS requirements
|
# OpenBLAS requirements
|
||||||
@ -42,9 +50,6 @@ RUN apt-get install -y libopenblas-dev
|
|||||||
RUN apt-get install -y libopencv-dev && \
|
RUN apt-get install -y libopencv-dev && \
|
||||||
ln -s /usr/include/opencv4/opencv2 /usr/include/opencv2
|
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
|
# piper requirements
|
||||||
# Use pre-compiled Piper phonemization library (includes onnxruntime)
|
# Use pre-compiled Piper phonemization library (includes onnxruntime)
|
||||||
|
@ -2,6 +2,5 @@ sentence_transformers
|
|||||||
grpcio
|
grpcio
|
||||||
google
|
google
|
||||||
protobuf
|
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"
|
torch
|
||||||
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"
|
|
||||||
git+https://github.com/suno-ai/bark.git
|
git+https://github.com/suno-ai/bark.git
|
Loading…
Reference in New Issue
Block a user