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

Uninstall cpu paddle #4629

Merged
merged 3 commits into from
Feb 2, 2023
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
14 changes: 7 additions & 7 deletions scripts/regression/run_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ echo "python="${python}
# Insatll paddlepaddle-gpu
install_paddle(){
echo -e "\033[35m ---- Install paddlepaddle-gpu \033[0m"
python -m pip install --ignore-installed --upgrade pip
python -m pip install -r scripts/regression/requirements_ci.txt
python -m pip uninstall paddlepaddle -y
python -m pip install ${paddle};
python -c "import paddle; print('paddle version:',paddle.__version__,'\npaddle commit:',paddle.version.commit)";
python -c 'from visualdl import LogWriter'
Expand Down Expand Up @@ -98,12 +98,13 @@ upload (){
build_dev_path=/workspace/PaddleNLP_dev
nlp_build ${build_dev_path}
nlp_version=$(python -c "from paddlenlp import __version__; print(__version__)")
cp $build_dev_path/dist/p****.whl ${PPNLP_HOME}/upload/
# for test https://www.paddlepaddle.org.cn/whl/paddlenlp.html
cp $build_dev_path/dist/p****.whl ${PPNLP_HOME}/upload/
# for ci pr test
cp $build_dev_path/dist/p****.whl ${PPNLP_HOME}/upload/paddlenlp-ci-py3-none-any.whl
echo -e "\033[35m ---- build ${GIT_PR_ID} paddlenlp \033[0m"
build_pr_path=${nlp_dir}
nlp_build ${build_pr_path}
cd $build_pr_path/dist
cp $build_pr_path/dist/p****.whl ${PPNLP_HOME}/upload/paddlenlp-${GIT_PR_ID}-py3-none-any.whl
elif [ $1 == "pipelines" ];then
echo -e "\033[35m ---- build latest pipelines \033[0m"
python -m pip install --force-reinstall paddlenlp
Expand Down Expand Up @@ -220,9 +221,8 @@ if [[ ${#P0case_list[*]} -ne 0 ]] || [[ ${#APIcase_list[*]} -ne 0 ]];then
if [ ! -f ./dist/p****.whl ];then
install_paddle
echo "install_nlp_develop"
# python -m pip install paddlenlp -f https://www.paddlepaddle.org.cn/whl/paddlenlp.html
wget https://paddlenlp.bj.bcebos.com/wheels/paddlenlp-latest-py3-none-any.whl
python -m pip install paddlenlp-latest-py3-none-any.whl
wget https://paddlenlp.bj.bcebos.com/wheels/paddlenlp-ci-py3-none-any.whl
python -m pip install paddlenlp-ci-py3-none-any.whl
else
echo "instal_nlp_pr"
python -m pip install dist/p****.whl
Expand Down