GGUF
NoQuest commited on
Commit
91b77cf
·
verified ·
1 Parent(s): b124aeb

Upload cpu/Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. cpu/Dockerfile +25 -0
cpu/Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # BUILDER
2
+ FROM ubuntu:22.04
3
+ WORKDIR /builder
4
+ ARG TORCH_CUDA_ARCH_LIST="${TORCH_CUDA_ARCH_LIST:-3.5;5.0;6.0;6.1;7.0;7.5;8.0;8.6+PTX}"
5
+ ARG BUILD_EXTENSIONS="${BUILD_EXTENSIONS:-}"
6
+ ARG APP_UID="${APP_UID:-6972}"
7
+ ARG APP_GID="${APP_GID:-6972}"
8
+ ARG GPU_CHOICE=A
9
+ ARG USE_CUDA118=FALSE
10
+ ARG LAUNCH_AFTER_INSTALL=FALSE
11
+ ARG INSTALL_EXTENSIONS=TRUE
12
+
13
+ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,rw \
14
+ apt update && \
15
+ apt install --no-install-recommends -y git vim build-essential python3-dev pip bash curl bash-completion && \
16
+ rm -rf /var/lib/apt/lists/*
17
+ WORKDIR /home/app/
18
+ RUN git clone https://github.com/oobabooga/text-generation-webui.git
19
+ WORKDIR /home/app/text-generation-webui
20
+ RUN GPU_CHOICE=N USE_CUDA118=FALSE LAUNCH_AFTER_INSTALL=FALSE INSTALL_EXTENSIONS=TRUE ./start_linux.sh --verbose
21
+ COPY CMD_FLAGS.txt /home/app/text-generation-webui/
22
+ EXPOSE ${CONTAINER_PORT:-7860} ${CONTAINER_API_PORT:-5000} ${CONTAINER_API_STREAM_PORT:-5005}
23
+ # set umask to ensure group read / write at runtime
24
+ WORKDIR /home/app/text-generation-webui
25
+ CMD umask 0002 && export HOME=/home/app/text-generation-webui && ./start_linux.sh --model /Users/computer/git/text-generation-webui/models/LLamandementFineTunéWithoutNotation16Q.gguf --loader llama.cpp --verbose