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 pip error in legacy benchmarks #8978

Merged
merged 2 commits into from
Aug 22, 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
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

cp ../requirements.txt ../requirements_nlp.txt
sed -i '/paddlenlp/d' ../requirements.txt
python -m pip install -r ../requirements.txt
sed -i '/paddlenlp/!d' ../requirements_nlp.txt
python -m pip install -r ../requirements_nlp.txt
# get data
cd ../
rm -rf data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

cp ../requirements.txt ../requirements_nlp.txt
sed -i '/paddlenlp/d' ../requirements.txt
python -m pip install -r ../requirements.txt
sed -i '/paddlenlp/!d' ../requirements_nlp.txt
python -m pip install -r ../requirements_nlp.txt
# get ckpt
cd ../
rm -rf ckpt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

cp ../requirements.txt ../requirements_nlp.txt
sed -i '/paddlenlp/d' ../requirements.txt
python -m pip install -r ../requirements.txt
sed -i '/paddlenlp/!d' ../requirements_nlp.txt
python -m pip install -r ../requirements_nlp.txt
# get data
cd ../
rm -rf data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

cp ../requirements.txt ../requirements_nlp.txt
sed -i '/paddlenlp/d' ../requirements.txt
python -m pip install -r ../requirements.txt
sed -i '/paddlenlp/!d' ../requirements_nlp.txt
python -m pip install -r ../requirements_nlp.txt
# get data
cd ../
rm -rf data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

cp ../requirements.txt ../requirements_nlp.txt
sed -i '/paddlenlp/d' ../requirements.txt
python -m pip install -r ../requirements.txt
sed -i '/paddlenlp/!d' ../requirements_nlp.txt
python -m pip install -r ../requirements_nlp.txt
# get data
cd ../
rm -rf data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

cp ../requirements.txt ../requirements_nlp.txt
sed -i '/paddlenlp/d' ../requirements.txt
python -m pip install -r ../requirements.txt
sed -i '/paddlenlp/!d' ../requirements_nlp.txt
python -m pip install -r ../requirements_nlp.txt
# get data
cd ../
rm -rf data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

cp ../requirements.txt ../requirements_nlp.txt
sed -i '/paddlenlp/d' ../requirements.txt
python -m pip install -r ../requirements.txt
sed -i '/paddlenlp/!d' ../requirements_nlp.txt
python -m pip install -r ../requirements_nlp.txt
# get data
cd ../
rm -rf data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

cp ../requirements.txt ../requirements_nlp.txt
sed -i '/paddlenlp/d' ../requirements.txt
python -m pip install -r ../requirements.txt
sed -i '/paddlenlp/!d' ../requirements_nlp.txt
python -m pip install -r ../requirements_nlp.txt
# get data
cd ../ || return
rm -rf data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

cp ../requirements.txt ../requirements_nlp.txt
sed -i '/paddlenlp/d' ../requirements.txt
python -m pip install -r ../requirements.txt
sed -i '/paddlenlp/!d' ../requirements_nlp.txt
python -m pip install -r ../requirements_nlp.txt
# get data
cd ../ || return
rm -rf data
Expand Down
4 changes: 4 additions & 0 deletions scripts/distribute/ci_case_auto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1790,7 +1790,11 @@ function before_hook_for_gpt() {
export https_proxy=${proxy}
if [[ $FLAGS_install_deps == 0 ]];then
echo -e "\033[31m ---- Install requirements for GPT auto cases \033[0m"
cp requirements.txt requirements_nlp.txt
sed -i '/paddlenlp/d' requirements.txt
python -m pip install -r requirements.txt --force-reinstall
sed -i '/paddlenlp/!d' requirements_nlp.txt
python -m pip install -r requirements_nlp.txt
python -m pip install -r $root_path/requirements.txt
python -m pip install -r $root_path/requirements-dev.txt
python -m pip install --no-cache-dir https://paddlenlp.bj.bcebos.com/wheels/paddlenlp-ci-py3-none-any.whl --force-reinstall --no-dependencies
Expand Down
4 changes: 4 additions & 0 deletions scripts/distribute/ci_case_dy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,11 @@ function before_hook_for_gpt() {
export https_proxy=${proxy}
if [[ $FLAGS_install_deps == 0 ]];then
echo -e "\033[31m ---- Install requirements for GPT dygraph cases \033[0m"
cp requirements.txt requirements_nlp.txt
sed -i '/paddlenlp/d' requirements.txt
python -m pip install -r requirements.txt --force-reinstall
sed -i '/paddlenlp/!d' requirements_nlp.txt
python -m pip install -r requirements_nlp.txt
python -m pip install -r $root_path/requirements.txt
python -m pip install -r $root_path/requirements-dev.txt
python -m pip install --no-cache-dir https://paddlenlp.bj.bcebos.com/wheels/paddlenlp-ci-py3-none-any.whl --force-reinstall --no-dependencies
Expand Down
Loading