Spaces:
Paused
Paused
matthoffner
commited on
Commit
•
12fde71
1
Parent(s):
4ec8fe7
Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
@@ -17,13 +17,18 @@ RUN apt update && \
|
|
17 |
apt clean && \
|
18 |
rm -rf /var/lib/apt/lists/*
|
19 |
|
|
|
|
|
|
|
|
|
|
|
20 |
WORKDIR /app
|
21 |
|
22 |
RUN wget https://huggingface.co/matthoffner/Magicoder-S-DS-6.7B-GGUF/resolve/main/Magicoder-S-DS-6.7B_Q4_K_M.gguf
|
23 |
|
24 |
RUN git clone https://github.com/ggerganov/llama.cpp.git && \
|
25 |
cd llama.cpp && \
|
26 |
-
make
|
27 |
|
28 |
# Create a non-root user for security reasons
|
29 |
RUN useradd -m -u 1000 user && \
|
|
|
17 |
apt clean && \
|
18 |
rm -rf /var/lib/apt/lists/*
|
19 |
|
20 |
+
# Setting up CUDA environment variables (this may not be necessary since you're using the official nvidia/cuda image, but it's good to be explicit)
|
21 |
+
ENV PATH="/usr/local/cuda/bin:$PATH" \
|
22 |
+
LD_LIBRARY_PATH="/usr/local/cuda/lib64:$LD_LIBRARY_PATH" \
|
23 |
+
CUDA_HOME="/usr/local/cuda"
|
24 |
+
|
25 |
WORKDIR /app
|
26 |
|
27 |
RUN wget https://huggingface.co/matthoffner/Magicoder-S-DS-6.7B-GGUF/resolve/main/Magicoder-S-DS-6.7B_Q4_K_M.gguf
|
28 |
|
29 |
RUN git clone https://github.com/ggerganov/llama.cpp.git && \
|
30 |
cd llama.cpp && \
|
31 |
+
make LLAMA_CUBLAS=1
|
32 |
|
33 |
# Create a non-root user for security reasons
|
34 |
RUN useradd -m -u 1000 user && \
|