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] Fix amp level bug in some gpt tests #9116

Merged
merged 5 commits into from
Sep 13, 2024

Conversation

zhangbo9674
Copy link
Contributor

PR types

Bug fixes

PR changes

Others

Description

Fix amp level bug in some gpt tests

Copy link

paddle-bot bot commented Sep 10, 2024

Thanks for your contribution!

Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.32%. Comparing base (9806293) to head (0d79fdc).
Report is 239 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #9116      +/-   ##
===========================================
- Coverage    53.34%   53.32%   -0.02%     
===========================================
  Files          652      652              
  Lines       105401   105436      +35     
===========================================
  Hits         56222    56222              
- Misses       49179    49214      +35     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


if [ $FLAGS_enable_pir_api == 1 ]; then
if [ ${level} == "o3" ]; then
${level}="o2"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里应该是 level="o2"吧?

@@ -35,6 +35,18 @@ function _set_params(){
sharding_degree=${10:-"1"} # (可选)
sharding_stage=${11:-"1"} # (可选)sharding case
level=${12:-"o1"} # o1|o2|o3

if [ $FLAGS_enable_pir_api == 1 ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里改成这样吧, if [[ $FLAGS_enable_pir_api == "1" || $FLAGS_enable_pir_api == "True" ]]; then

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -35,6 +35,18 @@ function _set_params(){
sharding_degree=${10:-"1"} # (可选)
sharding_stage=${11:-"1"} # (可选)sharding case
level=${12:-"o1"} # o1|o2|o3

if [ $FLAGS_enable_pir_api == 1 ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里改成这样吧, if [[ $FLAGS_enable_pir_api == "1" || $FLAGS_enable_pir_api == "True" ]]; then

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Collaborator

@zhiqiu zhiqiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ZHUI ZHUI changed the title Fix amp level bug in some gpt tests [Benchmark] Fix amp level bug in some gpt tests Sep 13, 2024
@ZHUI ZHUI merged commit 089a3c3 into PaddlePaddle:develop Sep 13, 2024
8 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants