Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix run_benchmark for llama2_70b in auto_parallel #8484

Merged
merged 5 commits into from
May 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ function _train(){
add_options=""
log_file=${train_log_file}
fi


# 70b需要关闭这个开关,否则会hang
if [[ "${MODEL_TYPE}" =~ "70b" ]]; then
unset CUDA_DEVICE_MAX_CONNECTIONS
fi
# Disable for hanging bug
# if [ "${tensor_parallel_degree}" != "1" ]; then
# export CUDA_DEVICE_MAX_CONNECTIONS=1
Expand Down Expand Up @@ -136,7 +140,7 @@ function _train(){
rm -rf mylog && rm -rf checkpoints

echo "train_cmd: ${train_cmd} log_file: ${log_file}"
timeout 15m ${train_cmd} > ${log_file} 2>&1
timeout 40m ${train_cmd} > ${log_file} 2>&1

if [ $? -ne 0 ];then
echo -e "${model_name}, FAIL"
Expand Down
Loading