forked from SakuraLLM/SakuraLLM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.example.yaml
46 lines (40 loc) · 996 Bytes
/
compose.example.yaml
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
# apt-get install nvidia-container-runtime
# which nvidia-container-runtime-hook
# sudo systemctl restart dockerd
version: "1.0"
x-gpu-template: &gpu_template
image: kurikomoe/sakura-13b-galgame:0.8.3.0
volumes: &mount_model
- ./models:/models
deploy: &deploy_with_gpu
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu, ]
x-environment: &env_template
LOGLEVEL: info
SAKURA_MODEL_NAME: Sakura-13B-LNovel-v0_8-4bit
SAKURA_MODEL_VERSION: 0.8
services:
server:
<<: *gpu_template
network_mode: 'host'
environment:
<<: *env_template
COMMAND: run_server
USERNAME: sakurallm
PASSWORD: itsmygo
ADDRESS: 0.0.0.0
PORT: 5000
translate-novel:
<<: *gpu_template
environment:
<<: *env_template
COMMAND: translate_novel
translate-epub:
<<: *gpu_template
environment:
<<: *env_template
COMMAND: translate-epub