-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-rocm.yml
78 lines (74 loc) · 1.88 KB
/
docker-compose-rocm.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
services:
vector_db:
image: cr.dtsx.io/datastax/dse-server:7.0.0-alpha.4
container_name: dse7
environment:
DS_LICENSE: accept
healthcheck:
test: ["CMD", "cqlsh", "-e", "DESCRIBE KEYSPACES"]
interval: 10s
timeout: 10s
retries: 20
volumes:
# Update this to match your local paths
- /home/your_username/code/pytldr-oss/dse/7.0.0-alpha.4:/var/lib/cassandra
networks:
backend:
ipv4_address: 10.1.0.2
search_db:
image: cr.dtsx.io/datastax/dse-server:6.8.37
container_name: dse68
command: ["-s"]
environment:
DS_LICENSE: accept
healthcheck:
test: ["CMD", "cqlsh", "-e", "DESCRIBE KEYSPACES"]
interval: 10s
timeout: 10s
retries: 20
volumes:
# Update this to match your local paths
- /home/your_username/code/pytldr-oss/dse/6.8.37:/var/lib/cassandra
networks:
backend:
ipv4_address: 10.1.0.3
server:
image: pytldr
devices:
- "/dev/kfd"
- "/dev/dri"
security_opt:
- seccomp:unconfined
cap_add:
- SYS_PTRACE
ipc: host
group_add:
- video
environment:
HSA_OVERRIDE_GFX_VERSION: "11.0.0"
HIP_VISIBLE_DEVICES: "0"
GRADIO_SERVER_NAME: "0.0.0.0"
working_dir: /pytldr
command: ["gradio", "app.py", "--demo-name=demo"]
volumes:
# Update this to match your local paths
- /home/your_username/code/pytldr-oss:/pytldr
- /home/your_username/code/llama.cpp/models:/usr/share/models
- /home/mario/.cache/huggingface:/root/.cache/huggingface
ports:
- 7860:7860
networks:
backend:
ipv4_address: 10.1.0.4
depends_on:
vector_db:
condition: service_healthy
search_db:
condition: service_healthy
networks:
backend:
driver: bridge
ipam:
config:
- subnet: 10.1.0.0/16
gateway: 10.1.0.1