gfjiogopdfgdfs commited on
Commit
e5222d3
1 Parent(s): c3049dc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -5
Dockerfile CHANGED
@@ -6,7 +6,7 @@ RUN apt update && apt install -y \
6
  wget \
7
  python3-pip \
8
  nodejs \
9
- npm
10
 
11
  RUN useradd -m -u 1000 user
12
 
@@ -15,19 +15,22 @@ USER user
15
  ENV HOME=/home/user \
16
  PATH=/home/user/.local/bin:$PATH
17
 
18
-
19
  WORKDIR $HOME/app
20
  COPY --chown=user . $HOME/app
21
 
 
 
 
22
  # Clone the specific branch of aphrodite-engine
23
  RUN git clone --branch feat/exllamav2 https://github.com/PygmalionAI/aphrodite-engine.git $HOME/aphrodite-engine
24
- # Install aphrodite-engine from the cloned directory
25
- RUN python3 -m pip install -e $HOME/aphrodite-engine
 
26
 
27
  RUN pip install huggingface-hub hf-transfer
28
 
29
  ENV HF_HUB_ENABLE_HF_TRANSFER=1
30
- RUN huggingface-cli download LoneStriker/TinyLlama-1.1B-32k-Instruct-8.0bpw-h8-exl2 --local-dir $HOME/goliath-gptq --local-dir-use-symlinks False --cache-dir $HOME/cache
31
 
32
  EXPOSE 7860
33
  CMD /bin/bash -c "/bin/python3 -m aphrodite.endpoints.openai.api_server $ENGINE_ARGS --port 7860 --host 0.0.0.0 --model ~/goliath-gptq"
 
6
  wget \
7
  python3-pip \
8
  nodejs \
9
+ npm
10
 
11
  RUN useradd -m -u 1000 user
12
 
 
15
  ENV HOME=/home/user \
16
  PATH=/home/user/.local/bin:$PATH
17
 
 
18
  WORKDIR $HOME/app
19
  COPY --chown=user . $HOME/app
20
 
21
+ # Install aphrodite-engine normally
22
+ RUN python3 -m pip install aphrodite-engine
23
+
24
  # Clone the specific branch of aphrodite-engine
25
  RUN git clone --branch feat/exllamav2 https://github.com/PygmalionAI/aphrodite-engine.git $HOME/aphrodite-engine
26
+
27
+ # Assuming the standard installation path for user packages and replacing the installed aphrodite-engine with the GitHub version
28
+ RUN cp -r $HOME/aphrodite-engine/* $($HOME/.local/lib/python3.*/site-packages/aphrodite-engine)
29
 
30
  RUN pip install huggingface-hub hf-transfer
31
 
32
  ENV HF_HUB_ENABLE_HF_TRANSFER=1
33
+ RUN huggingface-cli LoneStriker/TinyLlama-1.1B-32k-Instruct-8.0bpw-h8-exl2 --local-dir $HOME/goliath-gptq --local-dir-use-symlinks False --cache-dir $HOME/cache
34
 
35
  EXPOSE 7860
36
  CMD /bin/bash -c "/bin/python3 -m aphrodite.endpoints.openai.api_server $ENGINE_ARGS --port 7860 --host 0.0.0.0 --model ~/goliath-gptq"