-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
48 lines (46 loc) · 1.25 KB
/
Copy pathcompose.yaml
File metadata and controls
48 lines (46 loc) · 1.25 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
# Default-discovered compose file for `podman-compose up` at the repo root.
# Wires the operator FastAPI app -> vLLM-ROCm on the MI300X droplet.
# Canonical dev stack also lives at ops/compose/compose_dev.yaml.
services:
vllm:
image: docker.io/rocm/vllm-dev:rocm7.2.1
container_name: mindxtrain-vllm
ipc: host
devices:
- /dev/kfd
- /dev/dri
group_add:
- video
cap_add:
- SYS_PTRACE
security_opt:
- seccomp=unconfined
environment:
PYTORCH_ROCM_ARCH: gfx942
HSA_NO_SCRATCH_RECLAIM: "1"
HIP_FORCE_DEV_KERNARG: "1"
GPU_MAX_HW_QUEUES: "1"
volumes:
- ./out/runs:/workspace/runs:ro
command: >
vllm serve /workspace/runs/latest/quantized
--tensor-parallel-size 1
--max-model-len 8192
--port 8000
ports:
- "8000:8000"
operator:
build:
context: .
dockerfile: Containerfile
container_name: mindxtrain-operator
depends_on:
- vllm
environment:
MINDXTRAIN_BACKEND: vllm
MINDXTRAIN_VLLM_BASE_URL: http://vllm:8000/v1
MINDXTRAIN_PERSONA_PATH: /home/hacker/mindX/personas/codephreak.json
command: >
uvicorn mindxtrain.operator.app:app --host 0.0.0.0 --port 8080
ports:
- "8080:8080"