Skip to content

Commit 9cd6ea6

Browse files
Fix Dockerfile in AMD and Intel (#6995)
1 parent 83bfd5c commit 9cd6ea6

File tree

5 files changed

+6
-24
lines changed

5 files changed

+6
-24
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,14 @@ The `requirements*.txt` above contain various wheels precompiled through GitHub
146146
For NVIDIA GPU:
147147
ln -s docker/{nvidia/Dockerfile,nvidia/docker-compose.yml,.dockerignore} .
148148
For AMD GPU:
149-
ln -s docker/{amd/Dockerfile,intel/docker-compose.yml,.dockerignore} .
149+
ln -s docker/{amd/Dockerfile,amd/docker-compose.yml,.dockerignore} .
150150
For Intel GPU:
151151
ln -s docker/{intel/Dockerfile,amd/docker-compose.yml,.dockerignore} .
152152
For CPU only
153153
ln -s docker/{cpu/Dockerfile,cpu/docker-compose.yml,.dockerignore} .
154154
cp docker/.env.example .env
155155
#Create logs/cache dir :
156-
mkdir -p logs cache
156+
mkdir -p user_data/logs user_data/cache
157157
# Edit .env and set:
158158
# TORCH_CUDA_ARCH_LIST based on your GPU model
159159
# APP_RUNTIME_GID your host user's group id (run `id -g` in a terminal)

docker/amd/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ WORKDIR /home/app/
1414
RUN git clone https://github.com/oobabooga/text-generation-webui.git
1515
WORKDIR /home/app/text-generation-webui
1616
RUN GPU_CHOICE=B LAUNCH_AFTER_INSTALL=FALSE INSTALL_EXTENSIONS=TRUE ./start_linux.sh --verbose
17-
COPY CMD_FLAGS.txt /home/app/text-generation-webui/
17+
COPY /user_data/CMD_FLAGS.txt /home/app/text-generation-webui/user_data
1818
EXPOSE ${CONTAINER_PORT:-7860} ${CONTAINER_API_PORT:-5000} ${CONTAINER_API_STREAM_PORT:-5005}
1919
WORKDIR /home/app/text-generation-webui
2020
# set umask to ensure group read / write at runtime

docker/amd/docker-compose.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,4 @@ services:
4141
security_opt:
4242
- seccomp=unconfined
4343
volumes:
44-
- ./cache:/home/app/text-generation-webui/cache
45-
- ./characters:/home/app/text-generation-webui/characters
46-
- ./extensions:/home/app/text-generation-webui/extensions
47-
- ./loras:/home/app/text-generation-webui/loras
48-
- ./logs:/home/app/text-generation-webui/logs
49-
- ./models:/home/app/text-generation-webui/models
50-
- ./presets:/home/app/text-generation-webui/presets
51-
- ./prompts:/home/app/text-generation-webui/prompts
52-
- ./softprompts:/home/app/text-generation-webui/softprompts
53-
- ./training:/home/app/text-generation-webui/training
54-
- ./cloudflared:/etc/cloudflared
44+
- ./user_data:/home/app/text-generation-webui/user_data

docker/intel/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ WORKDIR /home/app/
1414
RUN git clone https://github.com/oobabooga/text-generation-webui.git
1515
WORKDIR /home/app/text-generation-webui
1616
RUN GPU_CHOICE=D LAUNCH_AFTER_INSTALL=FALSE INSTALL_EXTENSIONS=TRUE ./start_linux.sh --verbose
17-
COPY CMD_FLAGS.txt /home/app/text-generation-webui/
17+
COPY /user_data/CMD_FLAGS.txt /home/app/text-generation-webui/user_data
1818
EXPOSE ${CONTAINER_PORT:-7860} ${CONTAINER_API_PORT:-5000} ${CONTAINER_API_STREAM_PORT:-5005}
1919
# set umask to ensure group read / write at runtime
2020
WORKDIR /home/app/text-generation-webui

docker/intel/docker-compose.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,4 @@ services:
4141
security_opt:
4242
- seccomp=unconfined
4343
volumes:
44-
- ./characters:/home/app/text-generation-webui/characters
45-
- ./extensions:/home/app/text-generation-webui/extensions
46-
- ./loras:/home/app/text-generation-webui/loras
47-
- ./models:/home/app/text-generation-webui/models
48-
- ./presets:/home/app/text-generation-webui/presets
49-
- ./prompts:/home/app/text-generation-webui/prompts
50-
- ./softprompts:/home/app/text-generation-webui/softprompts
51-
- ./training:/home/app/text-generation-webui/training
52-
- ./cloudflared:/etc/cloudflared
44+
- ./user_data:/home/app/text-generation-webui/user_data

0 commit comments

Comments
 (0)