Skip to content

Conversation

@zhangbo9674
Copy link
Contributor

PR types

Bug fixes

PR changes

Others

Description

Fix amp level bug in some gpt tests

@paddle-bot
Copy link

paddle-bot bot commented Sep 10, 2024

Thanks for your contribution!

@codecov
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"吧?

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

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
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