2023-04-06 21:46:04 -04:00
|
|
|
version: "3.3"
|
|
|
|
services:
|
|
|
|
text-generation-webui:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
2024-01-03 18:43:02 -05:00
|
|
|
# Requirements file to use:
|
|
|
|
# | GPU | CPU | requirements file to use |
|
|
|
|
# |--------|---------|---------|
|
|
|
|
# | NVIDIA | has AVX2 | `requirements.txt` |
|
|
|
|
# | NVIDIA | no AVX2 | `requirements_noavx2.txt` |
|
|
|
|
# | AMD | has AVX2 | `requirements_amd.txt` |
|
|
|
|
# | AMD | no AVX2 | `requirements_amd_noavx2.txt` |
|
|
|
|
# | CPU only | has AVX2 | `requirements_cpu_only.txt` |
|
|
|
|
# | CPU only | no AVX2 | `requirements_cpu_only_noavx2.txt` |
|
|
|
|
# | Apple | Intel | `requirements_apple_intel.txt` |
|
|
|
|
# | Apple | Apple Silicon | `requirements_apple_silicon.txt` |
|
|
|
|
# Default: requirements.txt`
|
|
|
|
# BUILD_REQUIREMENTS: requirements.txt
|
|
|
|
|
|
|
|
# Extension requirements to build:
|
|
|
|
# BUILD_EXTENSIONS:
|
|
|
|
|
2023-04-06 21:46:04 -04:00
|
|
|
# specify which cuda version your card supports: https://developer.nvidia.com/cuda-gpus
|
2023-11-30 00:20:23 -05:00
|
|
|
TORCH_CUDA_ARCH_LIST: ${TORCH_CUDA_ARCH_LIST:-7.5}
|
|
|
|
BUILD_EXTENSIONS: ${BUILD_EXTENSIONS:-}
|
|
|
|
APP_GID: ${APP_GID:-6972}
|
|
|
|
APP_UID: ${APP_UID-6972}
|
2023-04-06 21:46:04 -04:00
|
|
|
env_file: .env
|
2023-11-30 00:20:23 -05:00
|
|
|
user: "${APP_RUNTIME_UID:-6972}:${APP_RUNTIME_GID:-6972}"
|
2023-04-06 21:46:04 -04:00
|
|
|
ports:
|
2023-07-11 17:38:26 -04:00
|
|
|
- "${HOST_PORT:-7860}:${CONTAINER_PORT:-7860}"
|
|
|
|
- "${HOST_API_PORT:-5000}:${CONTAINER_API_PORT:-5000}"
|
2023-04-06 21:46:04 -04:00
|
|
|
stdin_open: true
|
2024-01-28 09:18:14 -05:00
|
|
|
group_add:
|
|
|
|
- video
|
2023-04-06 21:46:04 -04:00
|
|
|
tty: true
|
2024-01-28 09:18:14 -05:00
|
|
|
ipc: host
|
|
|
|
devices:
|
|
|
|
- /dev/kfd
|
|
|
|
- /dev/dri
|
|
|
|
cap_add:
|
|
|
|
- SYS_PTRACE
|
|
|
|
security_opt:
|
|
|
|
- seccomp=unconfined
|
2023-04-06 21:46:04 -04:00
|
|
|
volumes:
|
2024-01-28 09:18:14 -05:00
|
|
|
- ./cache:/home/app/text-generation-webui/cache
|
2023-11-30 00:20:23 -05:00
|
|
|
- ./characters:/home/app/text-generation-webui/characters
|
|
|
|
- ./extensions:/home/app/text-generation-webui/extensions
|
|
|
|
- ./loras:/home/app/text-generation-webui/loras
|
2024-01-28 09:18:14 -05:00
|
|
|
- ./logs:/home/app/text-generation-webui/logs
|
2023-11-30 00:20:23 -05:00
|
|
|
- ./models:/home/app/text-generation-webui/models
|
|
|
|
- ./presets:/home/app/text-generation-webui/presets
|
|
|
|
- ./prompts:/home/app/text-generation-webui/prompts
|
|
|
|
- ./softprompts:/home/app/text-generation-webui/softprompts
|
|
|
|
- ./training:/home/app/text-generation-webui/training
|
2023-08-08 21:20:27 -04:00
|
|
|
- ./cloudflared:/etc/cloudflared
|