Skip to content

Latest commit

 

History

History
24 lines (12 loc) · 459 Bytes

nohup.md

File metadata and controls

24 lines (12 loc) · 459 Bytes

nohup

后台挂起执行程序

  • nohup python train.py > ./3.log 2>&1 &

  • PYTHONPATH=. CUDA_VISIBLE_DEVICES=0,1,2,3 nohup python -m torch.distributed.launch --nproc_per_node=4 --master_port=12431 train.py --launcher pytorch > ./work_dirs/3.log 2>&1 &

处理流程

sudo fdisk -l | grep sd

sudo mkdir /media/ubuntu/XXX

sudo mount /dev/sdXX /media/ubuntu/XXX

nohup python train.py > ./3.log 2>&1 &

sudo umount /media/ubuntu/XXX