Skip to content

Commit

Permalink
Create run_7b_stage3.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yinanhe authored Sep 5, 2024
1 parent df3d086 commit c3f0798
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions video_chat2/scripts/videochat_mistral/run_7b_stage3.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_it.py \
$(dirname $0)/config_7b_stage3.py \
output_dir ${OUTPUT_DIR}

0 comments on commit c3f0798

Please sign in to comment.