forked from Significant-Gravitas/AutoGPT
-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose-fastchat.yml
40 lines (39 loc) · 1.31 KB
/
docker-compose-fastchat.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
version: "3.9"
services:
fastchat-controller:
build:
context: .
dockerfile: Dockerfile-fastchat
image: fastchat:latest
ports:
- "21001:21001"
entrypoint: ["python3", "-m", "fastchat.serve.controller", "--host", "0.0.0.0", "--port", "21001"]
fastchat-model-worker:
build:
context: .
dockerfile: Dockerfile-fastchat
volumes:
- huggingface:/root/.cache/huggingface
environment:
FASTCHAT_CONTROLLER_URL: http://fastchat-controller:21001
image: fastchat:latest
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
entrypoint: ["python3", "-m", "fastchat.serve.model_worker", "--model-name", 'fastchat-t5-3b-v1.0', "--model-path", "lmsys/fastchat-t5-3b-v1.0", "--worker-address", "http://fastchat-model-worker:21002", "--controller-address", "http://fastchat-controller:21001", "--host", "0.0.0.0", "--port", "21002"]
fastchat-api-server:
build:
context: .
dockerfile: Dockerfile-fastchat
environment:
FASTCHAT_CONTROLLER_URL: http://fastchat-controller:21001
image: fastchat:latest
ports:
- "8000:8000"
entrypoint: ["python3", "-m", "fastchat.serve.api", "--host", "0.0.0.0", "--port", "8000"]
volumes:
huggingface: