-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (64 loc) · 1.53 KB
/
Copy pathdocker-compose.yml
File metadata and controls
66 lines (64 loc) · 1.53 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
services:
qwen35-4b-sglang:
image: lmsysorg/sglang:latest
container_name: qwen35-4b-sglang
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
ipc: host
shm_size: 32g
ports:
- "8001:8000"
volumes:
- ~/.cache/huggingface:/root/.cache/huggingface
command: >
sglang serve
--model-path Qwen/Qwen3.5-4B
--port 8000
--host 0.0.0.0
--tp-size 1
--mem-fraction-static 0.83
--context-length 262144
--kv-cache-dtype fp8_e4m3
--reasoning-parser qwen3
restart: no
profiles: ["sglang"]
environment:
- HF_TOKEN=${HF_TOKEN}
qwen35-4b-vllm:
image: vllm/vllm-openai:latest
container_name: qwen35-4b-vllm
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
ipc: host
shm_size: 32g
ports:
- "8002:8000"
volumes:
- ~/.cache/huggingface:/root/.cache/huggingface
command: >
Qwen/Qwen3.5-4B
--served-model-name Qwen/Qwen3.5-4B
--port 8000
--host 0.0.0.0
--tensor-parallel-size 1
--gpu-memory-utilization 0.78
--max-model-len 262144
--kv-cache-dtype fp8_e4m3
--reasoning-parser qwen3
--enable-prefix-caching
--enable-chunked-prefill
--max-num-seqs 64
restart: no
profiles: ["vllm"]
environment:
- HF_TOKEN=${HF_TOKEN}