1
0

docker-compose.yml 536 B

1234567891011121314151617181920212223
  1. services:
  2. aphrodite-engine:
  3. build:
  4. context: .
  5. restart: on-failure:5
  6. environment:
  7. - NUM_GPUS=${NUM_GPUS}
  8. - MODEL_NAME=${MODEL_NAME}
  9. - HUGGING_FACE_HUB_TOKEN=${HUGGING_FACE_HUB_TOKEN}
  10. - QUANTIZATION=${QUANTIZATION}
  11. - DATATYPE=${DATATYPE}
  12. volumes:
  13. - ${HOME}/.cache:/root/.cache/
  14. shm_size: 1g
  15. ports:
  16. - "7860:7860"
  17. deploy:
  18. resources:
  19. reservations:
  20. devices:
  21. - driver: nvidia
  22. count: all
  23. capabilities: [gpu]