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

【benchmark】 Change the mirror source for pip #8699

Merged
merged 22 commits into from
Jul 2, 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
8 changes: 4 additions & 4 deletions tests/test_tipc/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -320,19 +320,19 @@ elif [ ${MODE} = "benchmark_train" ];then

cd ..

python -m pip install h5py -i https://mirror.baidu.com/pypi/simple
python -m pip install h5py -i https://pip.baidu-int.com/simple
fi

if [[ ${model_name} == "gpt2" ]]; then
python -m pip install tool_helpers -i https://mirror.baidu.com/pypi/simple
python -m pip install tool_helpers -i https://pip.baidu-int.com/simple
mkdir -p data && cd data
wget https://bj.bcebos.com/paddlenlp/models/transformers/gpt/data/gpt_en_dataset_300m_ids.npy -o .tmp
wget https://bj.bcebos.com/paddlenlp/models/transformers/gpt/data/gpt_en_dataset_300m_idx.npz -o .tmp
cd -
fi

if [[ ${model_name} == "gpt3" ]]; then
python -m pip install tool_helpers -i https://mirror.baidu.com/pypi/simple
python -m pip install tool_helpers -i https://pip.baidu-int.com/simple
mkdir -p data && cd data
wget https://bj.bcebos.com/paddlenlp/models/transformers/gpt/data/gpt_en_dataset_300m_ids.npy -o .tmp
wget https://bj.bcebos.com/paddlenlp/models/transformers/gpt/data/gpt_en_dataset_300m_idx.npz -o .tmp
Expand Down Expand Up @@ -419,7 +419,7 @@ elif [ ${MODE} = "benchmark_train" ];then
python -m pip install setuptools_scm
python -m pip install Cython
python -m pip install -r ../requirements.txt #-i https://pypi.tuna.tsinghua.edu.cn/simple
python -m pip install pybind11 regex sentencepiece tqdm visualdl attrdict easydict pyyaml rouge -i https://mirror.baidu.com/pypi/simple
python -m pip install pybind11 regex sentencepiece tqdm visualdl attrdict easydict pyyaml rouge -i https://pip.baidu-int.com/simple

python -m pip install -e ../
# python -m pip install paddlenlp # PDC 镜像中安装失败
Expand Down
Loading