Skip to content

Commit cf712a8

Browse files
authored
[CI] updata paddlenlp install ways (#4455)
* [CI] updata paddlenlp install ways * update
1 parent c742b16 commit cf712a8

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

scripts/regression/run_ci.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ if [[ ${#P0case_list[*]} -ne 0 ]] || [[ ${#APIcase_list[*]} -ne 0 ]];then
220220
if [ ! -f ./dist/p****.whl ];then
221221
install_paddle
222222
echo "install_nlp_develop"
223-
python -m pip install --upgrade --force --ignore-installed paddlenlp
223+
python -m pip install paddlenlp -f https://www.paddlepaddle.org.cn/whl/paddlenlp.html
224224
else
225-
echo "instal_nlp_latest"
225+
echo "instal_nlp_pr"
226226
python -m pip install dist/p****.whl
227227
fi
228228
pip list

scripts/regression/run_release.sh

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ set -x
3030
python -c "import paddle; print('paddle version:',paddle.__version__,'\npaddle commit:',paddle.version.commit)";
3131
nlp1_build (){
3232
echo -e "\033[35m ---- only install paddlenlp \033[0m"
33-
python -m pip install --force-reinstall paddlenlp
33+
python -m pip install paddlenlp -f https://www.paddlepaddle.org.cn/whl/paddlenlp.html
3434
}
3535
nlp2_build (){
3636
echo -e "\033[35m ---- build and install paddlenlp \033[0m"
@@ -54,7 +54,7 @@ export all_P0case_time=0
5454
declare -A all_P0case_dic
5555
get_diff_TO_P0case(){
5656
if [[ ${Testcase} =~ "all" ]];then
57-
P0case_list=(waybill_ie msra_ner glue bert skep bigbird electra ernie-1.0 xlnet ofa squad tinybert lexical_analysis seq2seq \
57+
P0case_list=(waybill_ie msra_ner glue bert skep bigbird electra gpt ernie-1.0 xlnet ofa squad tinybert lexical_analysis seq2seq \
5858
word_embedding ernie-ctm distilbert stacl transformer simbert ernie-doc transformer-xl pointer_summarizer question_matching ernie-csc \
5959
nptag ernie-m clue taskflow transformers fast_generation ernie-3.0)
6060
elif [[ ${Testcase} =~ "p0" ]];then
@@ -75,7 +75,19 @@ get_diff_TO_P0case
7575
let case_num++
7676
done
7777
echo -e "\033[35m ---- end run P0case \033[0m"
78-
cd ${nlp_dir}/model_logs/
78+
cd ${nlp_dir}
79+
upload(){
80+
if [ -f '/ssd1/paddlenlp/bos/upload.py' ];then
81+
cp -r /ssd1/paddlenlp/bos/* ./
82+
tar -zcvf model_logs.tar model_logs/
83+
mkdir upload && mv model_logs.tar upload
84+
python upload.py upload 'paddle-qa/paddlenlp'
85+
else
86+
echo 'No upload script found'
87+
fi
88+
}
89+
upload
90+
cd model_logs/
7991
FF=`ls *_FAIL*|wc -l`
8092
if [ "${FF}" -gt "0" ];then
8193
P0case_EXCODE=1

0 commit comments

Comments
 (0)