-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (34 loc) · 963 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (34 loc) · 963 Bytes
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
version: '3.8'
services:
allman:
build: .
container_name: allman_server
ports:
- "8000:8000"
ulimits:
nofile:
soft: 65535
hard: 65535
volumes:
- ./allman_index:/app/allman_index
- ./allman_repo:/app/allman_repo
restart: unless-stopped
vllm:
image: vllm/vllm-openai:latest
container_name: vllm_server
ports:
- "8001:8000" # Expose vLLM on 8001
environment:
- HUGGING_FACE_HUB_TOKEN=${HF_TOKEN}
- NVIDIA_VISIBLE_DEVICES=1
volumes:
- ~/.cache/huggingface:/root/.cache/huggingface
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
# Mistral 7B AWQ (4-bit) fits in ~6GB VRAM.
command: --model TheBloke/Mistral-7B-Instruct-v0.2-AWQ --quantization awq --dtype half --max-model-len 4096 --api-key sk-test-123 --gpu-memory-utilization 0.6
restart: unless-stopped