Skip to content

Commit

Permalink
remove fix-permissions, we don't need it
Browse files Browse the repository at this point in the history
  • Loading branch information
Schnitzel committed Aug 17, 2023
1 parent ed5b864 commit d49f6b3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
6 changes: 0 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ WORKDIR /app

COPY ./start-llama2.sh /app/start-llama2.sh
COPY ./hug_model.py /app/hug_model.py
COPY ./fix-permissions.sh /app/fix-permissions.sh
RUN chmod +x /app/fix-permissions.sh

RUN mkdir -p /data \
&& /app/fix-permissions.sh /data

# Set environment variable for the host
ENV HOST=0.0.0.0

Expand Down
5 changes: 0 additions & 5 deletions fix-permissions.sh

This file was deleted.

7 changes: 2 additions & 5 deletions gpu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@ WORKDIR /app

COPY ./start-llama2.sh /app/start-llama2.sh
COPY ./hug_model.py /app/hug_model.py
COPY ./fix-permissions.sh /app/fix-permissions.sh
RUN chmod +x /app/fix-permissions.sh

RUN mkdir -p /data \
&& /app/fix-permissions.sh /data

# Tell LLAMA_CPP that we want to offload layers to the GPU
ENV LLAMA_CPP_ARGS="--n_gpu_layers=43"

# Set environment variable for the host
ENV HOST=0.0.0.0
Expand Down

0 comments on commit d49f6b3

Please sign in to comment.