Spaces:
Runtime error
Runtime error
File size: 566 Bytes
4c183e5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
FROM ghcr.io/ggerganov/llama.cpp:server
ENV HOME=/home/user
# https://huggingface.co/docs/hub/spaces-sdks-docker-first-demo
# Create user then move server to user's home directory. Finally, we create a models folder.
RUN useradd -m -u 1000 user && \
mv /server $HOME && \
mkdir $HOME/models && \
chown -R user:user $HOME
USER user
WORKDIR $HOME
ENTRYPOINT [ "./server" ]
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" ]
|