This commit is contained in:
2024-06-21 18:17:28 +08:00
parent 2620524636
commit 8017a3e104
9 changed files with 53 additions and 530 deletions

View File

@@ -1,11 +1,12 @@
version: '3.8'
services:
ubuntu-finetune:
ubuntu-evo:
build:
context: .
dockerfile: Dockerfile
args: # PyTorch版本、Python版本与pytorch_lightning版本的对应关系表 https://blog.csdn.net/qq_41813454/article/details/137421822
CONDA_ENV_NAME: evo
CUDA_VERSION: 11.7.1
PYTORCH_VERSION: 1.13.1
TORCHVISION_VERSION: 0.14.1
@@ -20,7 +21,7 @@ services:
ROOT_PASSWD: "root"
volumes:
- ./src:/bbtft
container_name: ubuntu-finetune
container_name: ubuntu-evo
pull_policy: if_not_present
tty: true
restart: unless-stopped
@@ -33,7 +34,7 @@ services:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
networks:
- network_finetune
- network_evo
deploy:
resources:
reservations:
@@ -43,5 +44,5 @@ services:
capabilities: [gpu]
networks:
network_finetune:
name: network_finetune
network_evo:
name: network_evo