-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 1.17 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (47 loc) · 1.17 KB
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
# Docker Compose: full local topology with dummy prefill/decode nodes + proxy
#
# Usage:
# docker compose up --build
# curl http://localhost:8868/v1/chat/completions \
# -H "Content-Type: application/json" \
# -d '{"model":"dummy","messages":[{"role":"user","content":"Hi"}],"max_tokens":10}'
services:
prefill-0:
build: .
command: >
uvicorn dummy_nodes.prefill_node:app --host 0.0.0.0 --port 8100
expose:
- "8100"
prefill-1:
build: .
command: >
uvicorn dummy_nodes.prefill_node:app --host 0.0.0.0 --port 8100
expose:
- "8100"
decode-0:
build: .
command: >
uvicorn dummy_nodes.decode_node:app --host 0.0.0.0 --port 8200
expose:
- "8200"
decode-1:
build: .
command: >
uvicorn dummy_nodes.decode_node:app --host 0.0.0.0 --port 8200
expose:
- "8200"
proxy:
build: .
command: >
python3 -m xpyd.proxy
--model tokenizers/DeepSeek-R1
--prefill prefill-0:8100 prefill-1:8100
--decode decode-0:8200 decode-1:8200
--port 8868
ports:
- "8868:8868"
depends_on:
- prefill-0
- prefill-1
- decode-0
- decode-1