add infra/verification-loop/docker-compose.yml
Browse files
infra/verification-loop/docker-compose.yml
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version: "3.8"
|
| 2 |
+
|
| 3 |
+
services:
|
| 4 |
+
granite-verifier:
|
| 5 |
+
image: ${VLLM_IMAGE_TAG}
|
| 6 |
+
container_name: lean_llm_granite_verifier
|
| 7 |
+
environment:
|
| 8 |
+
- HF_HUB_OFFLINE=1
|
| 9 |
+
- VLLM_ATTENTION_BACKEND=FLASH_ATTN
|
| 10 |
+
- PYTHONHASHSEED=42
|
| 11 |
+
- TOKENIZERS_PARALLELISM=false
|
| 12 |
+
volumes:
|
| 13 |
+
- ${SOVEREIGN_MODEL_STORE}/granite-4.1-8b-instruct:/models/granite-4.1:ro
|
| 14 |
+
- ${BIFROST_AUDIT_SINK}/vllm:/var/log/vllm:rw
|
| 15 |
+
ports:
|
| 16 |
+
- "127.0.0.1:8100:8000"
|
| 17 |
+
ipc: host
|
| 18 |
+
shm_size: "16g"
|
| 19 |
+
command: >
|
| 20 |
+
--model /models/granite-4.1
|
| 21 |
+
--host 0.0.0.0
|
| 22 |
+
--port 8000
|
| 23 |
+
--max-model-len ${GRANITE_CONTEXT_LEN}
|
| 24 |
+
--max-num-seqs 8
|
| 25 |
+
--gpu-memory-utilization 0.92
|
| 26 |
+
--served-model-name sovereign-granite-4.1-verifier
|
| 27 |
+
--enforce-eager
|
| 28 |
+
healthcheck:
|
| 29 |
+
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
| 30 |
+
interval: 30s
|
| 31 |
+
timeout: 10s
|
| 32 |
+
retries: 3
|
| 33 |
+
start_period: 120s
|
| 34 |
+
restart: unless-stopped
|
| 35 |
+
|
| 36 |
+
lean4-kernel:
|
| 37 |
+
image: ${LEAN4_IMAGE_TAG}
|
| 38 |
+
container_name: lean_llm_lean4_kernel
|
| 39 |
+
user: "1000:1000"
|
| 40 |
+
read_only: true
|
| 41 |
+
security_opt:
|
| 42 |
+
- no-new-privileges:true
|
| 43 |
+
cap_drop:
|
| 44 |
+
- ALL
|
| 45 |
+
tmpfs:
|
| 46 |
+
- /tmp:exec,size=2g
|
| 47 |
+
volumes:
|
| 48 |
+
- ${VERIFICATION_PROJECT_ROOT}:/workspace/project:ro
|
| 49 |
+
- ${SOVEREIGN_CACHE_STORE}/lake:/home/lean/.lake:rw
|
| 50 |
+
- ${BIFROST_AUDIT_SINK}/lean4:/workspace/artifacts:rw
|
| 51 |
+
working_dir: /workspace/project/lean4
|
| 52 |
+
entrypoint: ["/bin/bash", "-c", "lake build && lake exe verify"]
|
| 53 |
+
deploy:
|
| 54 |
+
resources:
|
| 55 |
+
limits:
|
| 56 |
+
cpus: "4"
|
| 57 |
+
memory: 8G
|
| 58 |
+
|
| 59 |
+
networks:
|
| 60 |
+
default:
|
| 61 |
+
name: lean_llm_verification_loop
|
| 62 |
+
driver: bridge
|
| 63 |
+
internal: true
|