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 the ce for the unittest #8772

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions tests/test_tipc/llm/inference/run_predictor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ echo "pwd -> "
cd ..

echo "==============================run-dynamic-predictor=============================="
python ./llm/predictor.py --model_name_or_path ${model_name} --mode dynamic --output_file ${output_path}/dynamic.json ${common_arguments}
python ./llm/predict/predictor.py --model_name_or_path ${model_name} --mode dynamic --output_file ${output_path}/dynamic.json ${common_arguments}

echo "==============================run-export-predictor=============================="
python ./llm/export_model.py --model_name_or_path ${model_name} --output_path ${output_path} ${common_arguments}
python ./llm/predict/export_model.py --model_name_or_path ${model_name} --output_path ${output_path} ${common_arguments}

echo "==============================run-static-predictor=============================="
python ./llm/predictor.py --model_name_or_path ${output_path} --mode static --output_file ${output_path}/static.json ${common_arguments}
python ./llm/predict/predictor.py --model_name_or_path ${output_path} --mode static --output_file ${output_path}/static.json ${common_arguments}


echo "==============================dynamic result=============================="
Expand Down
6 changes: 3 additions & 3 deletions tests/test_tipc/llm/inference/run_predictor_precaches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ echo "precache ing"
set -x

echo "==============================run-dynamic-predictor=============================="
python ./llm/predictor.py --model_name_or_path ${model_name} --mode dynamic --output_file ${output_path}/dynamic.json ${common_arguments}
python ./llm/predict/predictor.py --model_name_or_path ${model_name} --mode dynamic --output_file ${output_path}/dynamic.json ${common_arguments}

echo "==============================run-export-predictor=============================="
python ./llm/export_model.py --model_name_or_path ${model_name} --output_path ${output_path} ${common_arguments}
python ./llm/predict/export_model.py --model_name_or_path ${model_name} --output_path ${output_path} ${common_arguments}

echo "==============================run-static-predictor=============================="
python ./llm/predictor.py --model_name_or_path ${output_path} --mode static --output_file ${output_path}/static.json ${common_arguments}
python ./llm/predict/predictor.py --model_name_or_path ${output_path} --mode static --output_file ${output_path}/static.json ${common_arguments}


echo "==============================dynamic result=============================="
Expand Down
2 changes: 1 addition & 1 deletion tests/test_tipc/llm/run_ce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function _train(){
fi
}

export PYTHONPATH=$(dirname "$PWD"):$PYTHONPATH
export PYTHONPATH=$(dirname "$PWD"):$(dirname "$PWD")/llm:$PYTHONPATH

source ${BENCHMARK_ROOT}/scripts/run_model.sh # 在该脚本中会对符合benchmark规范的log使用analysis.py 脚本进行性能数据解析;如果不联调只想要产出训练log可以注掉本行,提交时需打开
_set_params $@
Expand Down
Loading