-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathtrain.sh
More file actions
38 lines (32 loc) · 1.15 KB
/
train.sh
File metadata and controls
38 lines (32 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# set your path
HOME_ROOT=/root/MooER
cd $HOME_ROOT || exit 0
export PYTHONPATH=${HOME_ROOT}/src:$PYTHONPATH
VISIBLE_DEVICES=0,1,2,3,4,5,6,7
################### For MUSA User #############################
# export MUSA_VISIBLE_DEVICES=$VISIBLE_DEVICES
# export DS_ACCELERATOR=musa
###############################################################
# For CUDA User
export CUDA_VISIBLE_DEVICES=$VISIBLE_DEVICES
###############################################################
export TOKENIZERS_PARALLELISM=false
export OMP_NUM_THREADS=1
export NCCL_PROTOS=2
export DS_ENV_FILE=./ds_env
# use hostfile
#deepspeed \
# --hostfile hostfile \
# --master_port=10086 \
# ${HOME_ROOT}/src/mooer/training.py \
# --training_config ${HOME_ROOT}/src/mooer/configs/asr_config_training.py
# # you can modifiy training_config path to yourself! :D
# # modify the ip & cards in hostfile
# use localhost
deepspeed \
--include localhost:$VISIBLE_DEVICES \
--master_port=10086 \
${HOME_ROOT}/src/mooer/training.py \
--training_config ${HOME_ROOT}/src/mooer/configs/asr_config_training.py
# you can modifiy training_config path to yourself! :D