compose.base.yml 799 B

12345678910111213141516171819202122232425262728
  1. services:
  2. app-base:
  3. build:
  4. context: .
  5. dockerfile: docker/Dockerfile
  6. args:
  7. BACKEND: ${BACKEND:-cuda} # or cpu
  8. CUDA_VER: ${CUDA_VER:-12.9.0}
  9. UV_EXTRA: ${UV_EXTRA:-cu129}
  10. UV_VERSION: ${UV_VERSION:-0.8.15}
  11. volumes:
  12. - /root/fish-checkpoints:/app/checkpoints
  13. - /root/fish-references/s2-pro:/app/references
  14. environment:
  15. COMPILE: ${COMPILE:-0}
  16. PYTORCH_CUDA_ALLOC_CONF: ${PYTORCH_CUDA_ALLOC_CONF:-expandable_segments:True}
  17. TORCH_LOGS: +dynamo
  18. TORCHDYNAMO_VERBOSE: 1
  19. # GPU (remove this block if CPU-only):
  20. deploy:
  21. resources:
  22. reservations:
  23. devices:
  24. - driver: nvidia
  25. count: all
  26. capabilities: [ gpu ]
  27. tty: true
  28. stdin_open: true