Spaces:
Running
Running
toaster61
commited on
Commit
·
4966618
1
Parent(s):
1fb7f0b
now its fixed
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
@@ -8,6 +8,12 @@ USER root
|
|
8 |
RUN apt update && apt install gcc cmake build-essential -y
|
9 |
RUN CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" pip install llama-cpp-python==0.1.78
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
# Installing wget and downloading model.
|
12 |
RUN apt install wget -y
|
13 |
RUN wget -q -O model.bin https://huggingface.co/OpenBuddy/openbuddy-ggml/resolve/main/openbuddy-openllama-3b-v10-q5_0.bin
|
@@ -15,12 +21,6 @@ RUN ls
|
|
15 |
# You can use other models! Visit https://huggingface.co/OpenBuddy/openbuddy-ggml and choose model that u like!
|
16 |
# Or u can comment this two RUNs and include in Space/repo/Docker image own model with name "model.bin".
|
17 |
|
18 |
-
# Copying files into folder and making it working dir.
|
19 |
-
RUN mkdir app
|
20 |
-
COPY . /app
|
21 |
-
RUN chmod -R 777 /app
|
22 |
-
WORKDIR /app
|
23 |
-
|
24 |
# Updating pip and installing everything from requirements
|
25 |
RUN python3 -m pip install -U --no-cache-dir pip setuptools wheel
|
26 |
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
|
|
8 |
RUN apt update && apt install gcc cmake build-essential -y
|
9 |
RUN CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" pip install llama-cpp-python==0.1.78
|
10 |
|
11 |
+
# Copying files into folder and making it working dir.
|
12 |
+
RUN mkdir app
|
13 |
+
COPY . /app
|
14 |
+
RUN chmod -R 777 /app
|
15 |
+
WORKDIR /app
|
16 |
+
|
17 |
# Installing wget and downloading model.
|
18 |
RUN apt install wget -y
|
19 |
RUN wget -q -O model.bin https://huggingface.co/OpenBuddy/openbuddy-ggml/resolve/main/openbuddy-openllama-3b-v10-q5_0.bin
|
|
|
21 |
# You can use other models! Visit https://huggingface.co/OpenBuddy/openbuddy-ggml and choose model that u like!
|
22 |
# Or u can comment this two RUNs and include in Space/repo/Docker image own model with name "model.bin".
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
# Updating pip and installing everything from requirements
|
25 |
RUN python3 -m pip install -U --no-cache-dir pip setuptools wheel
|
26 |
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|