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

[UC] Ignore optimizer when UC #8058

Merged
merged 1 commit into from
Mar 11, 2024
Merged

Conversation

gongel
Copy link
Member

@gongel gongel commented Mar 6, 2024

PR types

Bug fixes

PR changes

APIs

Description

  • Whenignore_save_lr_and_optim,unified_checkpoint_config should be empty.

Copy link

paddle-bot bot commented Mar 6, 2024

Thanks for your contribution!

Copy link

codecov bot commented Mar 6, 2024

Codecov Report

Attention: Patch coverage is 0% with 11 lines in your changes are missing coverage. Please review.

Project coverage is 56.51%. Comparing base (092c845) to head (648d9d5).
Report is 8 commits behind head on develop.

Files Patch % Lines
paddlenlp/trainer/training_args.py 0.00% 11 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8058      +/-   ##
===========================================
- Coverage    56.54%   56.51%   -0.03%     
===========================================
  Files          592      592              
  Lines        91073    91117      +44     
===========================================
- Hits         51496    51494       -2     
- Misses       39577    39623      +46     

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

DesmonDay
DesmonDay previously approved these changes Mar 6, 2024
Copy link
Contributor

@DesmonDay DesmonDay left a comment

Choose a reason for hiding this comment

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

LGTM

@gongel gongel requested review from ZHUI and sneaxiy March 6, 2024 07:47
if len(x) > 0:
if x not in [
if self.ignore_save_lr_and_optim:
self.unified_checkpoint_config = ""
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
self.unified_checkpoint_config = ""
self.unified_checkpoint_config = ""
logger.info("Setting unified_checkpoint_config to empty for using ignore_save_lr_and_optim.")

Copy link
Collaborator

Choose a reason for hiding this comment

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

建议加一行log吧

Copy link
Member Author

Choose a reason for hiding this comment

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

DONE

@CLAassistant
Copy link

CLAassistant commented Mar 7, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@ZHUI ZHUI left a comment

Choose a reason for hiding this comment

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

LGTM

@wawltor wawltor merged commit 557c794 into PaddlePaddle:develop Mar 11, 2024
8 of 10 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.

5 participants