-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
50 lines (50 loc) · 1.15 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: '3.9'
services:
text-generation-webui:
container_name: text-generation-webui
restart: unless-stopped
volumes:
- '${MODEL_DIR}:/models'
- '${EXTENSIONS_DIR}:/extensions'
- '${CHARACTERS_DIR}:/characters'
- '${SETTINGS_DIR}:/settings'
- '${LOGS_DIR}:/logs'
- '${LORAS_DIR}:/loras'
- '${DATASETS_DIR}:/datasets'
- '${PRESETS_DIR}:/presets'
- '${PROMPTS_DIR}:/prompts'
ports:
- '7860:7860'
- '5000:5000'
image: 'noneabove1182/text-gen-ui-gpu:latest'
environment:
- PUID=1000
- PGID=1000
- OPENEDAI_EMBEDDING_DEVICE=cuda
ulimits:
memlock: -1
mem_limit: 50gb
shm_size: '4gb'
stdin_open: true
tty: true
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: [ '1', '0' ]
capabilities: [ gpu ]
command:
[
"--model",
"${MODEL}",
"--listen",
"--listen-port",
"7860",
"--listen-host",
"0.0.0.0",
"--api",
"--verbose",
"--settings",
"/settings/settings.yaml"
]