File size: 598 Bytes
d7228c8 | 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 | version: '3.8'
services:
slm-api:
build:
context: ..
dockerfile: docker/Dockerfile
container_name: slm_api_service
ports:
- "8000:8000"
environment:
- PYTHONUNBUFFERED=1
volumes:
- ../checkpoints:/app/checkpoints
restart: unless-stopped
slm-trainer:
build:
context: ..
dockerfile: docker/Dockerfile
container_name: slm_trainer_service
command: python -m slm.cli.main train --config configs/nano_config.yaml
volumes:
- ../checkpoints:/app/checkpoints
- ../data:/app/data
profiles:
- train
|