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

Add async save for optimizer #8557

Merged
merged 3 commits into from
Jun 11, 2024
Merged

Conversation

ForFishes
Copy link
Member

PR types

New features

PR changes

Others

Description

Add async save for optimizer

Copy link

paddle-bot bot commented Jun 6, 2024

Thanks for your contribution!

Copy link

codecov bot commented Jun 6, 2024

Codecov Report

Attention: Patch coverage is 18.96552% with 47 lines in your changes missing coverage. Please review.

Project coverage is 53.83%. Comparing base (4cb8b6d) to head (52e505b).
Report is 10 commits behind head on develop.

Files Patch % Lines
paddlenlp/trainer/trainer.py 17.54% 47 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8557      +/-   ##
===========================================
- Coverage    53.87%   53.83%   -0.04%     
===========================================
  Files          620      620              
  Lines        97075    97171      +96     
===========================================
+ Hits         52299    52315      +16     
- Misses       44776    44856      +80     

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

sneaxiy
sneaxiy previously approved these changes Jun 6, 2024
os.makedirs(output_dir, exist_ok=True)
logger.info("Saving optimizer files.")
if self.args.use_expert_parallel:
self._save_ckpt_func(
Copy link
Collaborator

Choose a reason for hiding this comment

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

@DesmonDay @bo-ke

这样是不是有问题,冗余参数,一份都没有了?

Copy link
Member Author

Choose a reason for hiding this comment

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

已修复该问题,thx

@ZHUI ZHUI merged commit 547d29c into PaddlePaddle:develop Jun 11, 2024
9 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.

None yet

3 participants