Skip to content

Commit

Permalink
Create run_7b_stage2.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yinanhe authored Sep 5, 2024
1 parent a108f34 commit df3d086
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions video_chat2/scripts/videochat_mistral/run_7b_stage2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
# Please modify the ${MASTER_NODE}:${MASTER_PORT}
MASTER_NODE=127.0.0.1
MASTER_PORT=$((10000 + $RANDOM % 100))
NNODE=1
NUM_GPUS=8
OUTPUT_DIR="$(dirname $0)/$JOB_NAME"

torchrun --rdzv_endpoint=${MASTER_NODE}:${MASTER_PORT} \
--nnodes=${NNODE} \
--nproc_per_node=${NUM_GPUS} \
--rdzv_backend=c10d \
tasks/train_pt.py \
$(dirname $0)/config_7b_stage2.py \
output_dir ${OUTPUT_DIR}

0 comments on commit df3d086

Please sign in to comment.