Spaces:
Paused
Paused
File size: 743 Bytes
4ac8f37 b7c945f 186058d b7c945f 0c5837d b7c945f 90dab9b b7c945f 90dab9b b7c945f f516ae8 186058d 90dab9b b7c945f 88d3326 90dab9b b7c945f 90dab9b 186058d b7c945f 31ec84e 0975c58 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
FROM nvidia/cuda:11.8.0-devel-ubuntu22.04
RUN apt update && apt install -y \
git \
build-essential \
libopenblas-dev \
wget \
python3-pip \
nodejs \
npm
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
RUN python3 -m pip install aphrodite-engine
RUN pip install huggingface-hub hf-transfer
ENV HF_HUB_ENABLE_HF_TRANSFER=1
RUN huggingface-cli download TheBloke/TinyLlama-1.1B-Chat-v1.0-GPTQ --local-dir $HOME/goliath-gptq --local-dir-use-symlinks False --cache-dir $HOME/cache
EXPOSE 7860
CMD /bin/bash -c "/bin/python3 -m aphrodite.endpoints.kobold.api_server $ENGINE_ARGS --port 7860 --model ~/goliath-gptq"
|