-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.17 KB
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (44 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
version: "3.8"
services:
# The GPU-accelerated vLLM Engine (needs an NVIDIA GPU; omit on CPU-only boxes)
vllm-engine:
image: vllm/vllm-openai:latest
container_name: math2code_vllm
command: >
--model AI-MO/NuminaMath-7B-TIR
--enable-lora
ports:
- "8080:8000"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
volumes:
- ~/.cache/huggingface:/root/.cache/huggingface
- ./outputs/aimo_lora/final:/adapters/math2code_lora
# FastAPI proxy: vLLM completion -> extract code -> sandboxed execution
api:
build: .
container_name: math2code_api
command: uvicorn math2code.serve.api:app --host 0.0.0.0 --port 8000
ports:
- "8000:8000"
depends_on:
- vllm-engine
environment:
- VLLM_API_BASE=http://vllm-engine:8000/v1
- VLLM_MODEL_NAME=AI-MO/NuminaMath-7B-TIR
# Gradio UI
frontend:
build: .
container_name: math2code_frontend
command: python -m math2code.serve.app
ports:
- "8501:8501"
depends_on:
- api
environment:
- API_URL=http://api:8000/generate