支持后台运行并记录日志

This commit is contained in:
2025-10-23 13:07:04 +08:00
parent 1822aca36b
commit 2fbb741d3f
2 changed files with 5 additions and 5 deletions

View File

@@ -1,2 +1,2 @@
GPUS=$1
python3 -m torch.distributed.run --nproc_per_node=$GPUS fed_run.py ${@:2}
nohup python3 -m torch.distributed.run --nproc_per_node=$GPUS fed_run.py ${@:2} > train.log 2>&1 & disown