Skip to content

Commit 78c2863

Browse files
fightfatMangodadada
authored andcommitted
Fix pip error in legacy benchmarks (PaddlePaddle#8978)
* fix pip error
1 parent 5dfb59c commit 78c2863

File tree

11 files changed

+44
-0
lines changed

11 files changed

+44
-0
lines changed

β€Žlegacy/model_zoo/gpt-3/benchmarks/test_tipc/gpt/dygraph/data_parallel/benchmark_common/prepare.shβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
cp ../requirements.txt ../requirements_nlp.txt
16+
sed -i '/paddlenlp/d' ../requirements.txt
1517
python -m pip install -r ../requirements.txt
18+
sed -i '/paddlenlp/!d' ../requirements_nlp.txt
19+
python -m pip install -r ../requirements_nlp.txt
1620
# get data
1721
cd ../
1822
rm -rf data

β€Žlegacy/model_zoo/gpt-3/benchmarks/test_tipc/gpt/dygraph/finetune/benchmark_common/prepare.shβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
cp ../requirements.txt ../requirements_nlp.txt
16+
sed -i '/paddlenlp/d' ../requirements.txt
1517
python -m pip install -r ../requirements.txt
18+
sed -i '/paddlenlp/!d' ../requirements_nlp.txt
19+
python -m pip install -r ../requirements_nlp.txt
1620
# get ckpt
1721
cd ../
1822
rm -rf ckpt

β€Žlegacy/model_zoo/gpt-3/benchmarks/test_tipc/gpt/dygraph/hybrid_parallel/benchmark_common/prepare.shβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
cp ../requirements.txt ../requirements_nlp.txt
16+
sed -i '/paddlenlp/d' ../requirements.txt
1517
python -m pip install -r ../requirements.txt
18+
sed -i '/paddlenlp/!d' ../requirements_nlp.txt
19+
python -m pip install -r ../requirements_nlp.txt
1620
# get data
1721
cd ../
1822
rm -rf data

β€Žlegacy/model_zoo/gpt-3/benchmarks/test_tipc/gpt/dygraph/sequence_parallel/benchmark_common/prepare.shβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
cp ../requirements.txt ../requirements_nlp.txt
16+
sed -i '/paddlenlp/d' ../requirements.txt
1517
python -m pip install -r ../requirements.txt
18+
sed -i '/paddlenlp/!d' ../requirements_nlp.txt
19+
python -m pip install -r ../requirements_nlp.txt
1620
# get data
1721
cd ../
1822
rm -rf data

β€Žlegacy/model_zoo/gpt-3/benchmarks/test_tipc/gpt/dygraph/sharding/benchmark_common/prepare.shβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
cp ../requirements.txt ../requirements_nlp.txt
16+
sed -i '/paddlenlp/d' ../requirements.txt
1517
python -m pip install -r ../requirements.txt
18+
sed -i '/paddlenlp/!d' ../requirements_nlp.txt
19+
python -m pip install -r ../requirements_nlp.txt
1620
# get data
1721
cd ../
1822
rm -rf data

β€Žlegacy/model_zoo/gpt-3/benchmarks/test_tipc/gpt/static/auto_amp/benchmark_common/prepare.shβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
cp ../requirements.txt ../requirements_nlp.txt
16+
sed -i '/paddlenlp/d' ../requirements.txt
1517
python -m pip install -r ../requirements.txt
18+
sed -i '/paddlenlp/!d' ../requirements_nlp.txt
19+
python -m pip install -r ../requirements_nlp.txt
1620
# get data
1721
cd ../
1822
rm -rf data

β€Žlegacy/model_zoo/gpt-3/benchmarks/test_tipc/gpt/static/auto_parallel/benchmark_common/prepare.shβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
cp ../requirements.txt ../requirements_nlp.txt
16+
sed -i '/paddlenlp/d' ../requirements.txt
1517
python -m pip install -r ../requirements.txt
18+
sed -i '/paddlenlp/!d' ../requirements_nlp.txt
19+
python -m pip install -r ../requirements_nlp.txt
1620
# get data
1721
cd ../
1822
rm -rf data

β€Žlegacy/model_zoo/gpt-3/benchmarks/test_tipc/gpt/static/new_exec_pp/benchmark_common/prepare.shβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
cp ../requirements.txt ../requirements_nlp.txt
17+
sed -i '/paddlenlp/d' ../requirements.txt
1618
python -m pip install -r ../requirements.txt
19+
sed -i '/paddlenlp/!d' ../requirements_nlp.txt
20+
python -m pip install -r ../requirements_nlp.txt
1721
# get data
1822
cd ../ || return
1923
rm -rf data

β€Žlegacy/model_zoo/gpt-3/benchmarks/test_tipc/gpt/static/new_exec_pp_pir/benchmark_common/prepare.shβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
cp ../requirements.txt ../requirements_nlp.txt
17+
sed -i '/paddlenlp/d' ../requirements.txt
1618
python -m pip install -r ../requirements.txt
19+
sed -i '/paddlenlp/!d' ../requirements_nlp.txt
20+
python -m pip install -r ../requirements_nlp.txt
1721
# get data
1822
cd ../ || return
1923
rm -rf data

β€Žscripts/distribute/ci_case_auto.shβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,7 +1790,11 @@ function before_hook_for_gpt() {
17901790
export https_proxy=${proxy}
17911791
if [[ $FLAGS_install_deps == 0 ]];then
17921792
echo -e "\033[31m ---- Install requirements for GPT auto cases \033[0m"
1793+
cp requirements.txt requirements_nlp.txt
1794+
sed -i '/paddlenlp/d' requirements.txt
17931795
python -m pip install -r requirements.txt --force-reinstall
1796+
sed -i '/paddlenlp/!d' requirements_nlp.txt
1797+
python -m pip install -r requirements_nlp.txt
17941798
python -m pip install -r $root_path/requirements.txt
17951799
python -m pip install -r $root_path/requirements-dev.txt
17961800
python -m pip install --no-cache-dir https://paddlenlp.bj.bcebos.com/wheels/paddlenlp-ci-py3-none-any.whl --force-reinstall --no-dependencies

0 commit comments

Comments
Β (0)