Spaces:
Runtime error
Runtime error
update
Browse files- .gitignore +1 -0
- Dockerfile +18 -0
- README.md +8 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
*.gguf
|
Dockerfile
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM ghcr.io/ggerganov/llama.cpp:server
|
2 |
+
|
3 |
+
ENV HOME=/home/user
|
4 |
+
|
5 |
+
# https://huggingface.co/docs/hub/spaces-sdks-docker-first-demo
|
6 |
+
# Create user then move server to user's home directory. Finally, we create a models folder.
|
7 |
+
RUN useradd -m -u 1000 user && \
|
8 |
+
mv /server $HOME && \
|
9 |
+
mkdir $HOME/models && \
|
10 |
+
chown -R user:user $HOME
|
11 |
+
|
12 |
+
USER user
|
13 |
+
|
14 |
+
WORKDIR $HOME
|
15 |
+
|
16 |
+
ENTRYPOINT [ "./server" ]
|
17 |
+
|
18 |
+
CMD [ "--host", "0.0.0.0", "--port", "7860", "--embedding", "--hf-repo", "gingdev/llama7b-ictu", "--hf-file", "llama7b_q4_k_m.gguf", "--model", "./models/llama7b_q4_k_m.gguf" ]
|
README.md
CHANGED
@@ -1 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# hf-space-python-llama-cpp
|
|
|
1 |
+
---
|
2 |
+
title: python-llama-cpp
|
3 |
+
emoji: 😍
|
4 |
+
colorFrom: green
|
5 |
+
colorTo: green
|
6 |
+
sdk: docker
|
7 |
+
pinned: true
|
8 |
+
---
|
9 |
# hf-space-python-llama-cpp
|