compose.base.yml 840 B

1234567891011121314151617181920212223242526272829
  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,inductor
  18. # TORCHDYNAMO_VERBOSE: 1
  19. # TORCH_COMPILE_DEBUG: 1
  20. # GPU (remove this block if CPU-only):
  21. deploy:
  22. resources:
  23. reservations:
  24. devices:
  25. - driver: nvidia
  26. count: all
  27. capabilities: [ gpu ]
  28. tty: true
  29. stdin_open: true