Compare commits

...

2 Commits

Author SHA1 Message Date
wql 41a67e697b fix: change port 2024-08-26 16:15:28 +08:00
wql 0fa3b02384 fix: fix nproc 2024-08-26 16:14:58 +08:00
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#! /bin/bash #! /bin/bash
export MASTER_ADDR="localhost" export MASTER_ADDR="localhost"
export MASTER_PORT=12390 export MASTER_PORT=12400
CPM_PATH="/workspace/repo/CPM-9G-8B/9G-Train" CPM_PATH="/workspace/repo/CPM-9G-8B/9G-Train"
@ -50,7 +50,7 @@ OPTS+=" --lora-layer project_q project_v project_k w_0 w_1 w_out"
OPTS+=" $@" OPTS+=" $@"
CMD="torchrun --nnodes=1 --nproc_per_node=7 --rdzv_id=1 --rdzv_backend=c10d --rdzv_endpoint=${MASTER_ADDR}:${MASTER_PORT} ${CPM_PATH}/apps/cpm9g/sft_cpm9g_delta.py ${OPTS}" CMD="torchrun --nnodes=1 --nproc_per_node=6 --rdzv_id=1 --rdzv_backend=c10d --rdzv_endpoint=${MASTER_ADDR}:${MASTER_PORT} ${CPM_PATH}/apps/cpm9g/sft_cpm9g_delta.py ${OPTS}"
echo "${CMD}" echo "${CMD}"
$CMD $CMD