run_mixtral_8x7B_multinodes.sh 802 Bytes
Newer Older
1
2
3
4
5
6
7
for para in $*
do
    if [[ $para == --profiling* ]];then
        profiling=${para#*=}
    fi
done

8
9
10
11
12
13
14
15
16
# Runs Mixtral 8x7B model
source /opt/dtk/env.sh
HOST=""  # modify this variable
PORT=25900
DATA_PATH="path to my-mixtral_text_document"
TOKENIZER_MODEL_PATH="path to tokenizer.model"
CHECKPOINT_PATH="path to ckpt" 


17
18
19
20
mpirun -np 32 --hostfile hostfile_mixtral_8x7B \
              --allow-run-as-root \
              --bind-to none \
              --mca plm_rsh_no_tree_spawn 1 \
21
22
23
24
25
26
27
              train_mixtral_8x7B_multinodes.sh \
              ${HOST} \
              ${PORT} \
              --data_path=$DATA_PATH \
              --tokenizer_path=$TOKENIZER_MODEL_PATH \
              --checkpoint_path=$CHECKPOINT_PATH \
              --profiling=$profiling > log-4nodes-`date +%F-%H%M`.log 2>&1
28

29
wait