-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Benchmark] Fix amp level bug in some gpt tests #9116
Conversation
Thanks for your contribution! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
|
||
if [ $FLAGS_enable_pir_api == 1 ]; then | ||
if [ ${level} == "o3" ]; then | ||
${level}="o2" |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
Bug fixes
PR changes
Others
Description
Fix amp level bug in some gpt tests