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

Update PaddleNLP to fix PPO #8618

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

sneaxiy
Copy link
Collaborator

@sneaxiy sneaxiy commented Jun 18, 2024

PR types

Bug fixes

PR changes

Others

Description

Fix some incompatible updates in PaddleNLP to fix PPO.

Copy link

paddle-bot bot commented Jun 18, 2024

Thanks for your contribution!

Copy link

codecov bot commented Jun 18, 2024

Codecov Report

Attention: Patch coverage is 55.55556% with 4 lines in your changes missing coverage. Please review.

Project coverage is 54.41%. Comparing base (c134a7f) to head (f5fb8c2).
Report is 244 commits behind head on develop.

Files with missing lines Patch % Lines
paddlenlp/trainer/utils/sharding_io.py 33.33% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8618      +/-   ##
===========================================
- Coverage    54.42%   54.41%   -0.01%     
===========================================
  Files          632      632              
  Lines        99481    99482       +1     
===========================================
- Hits         54140    54132       -8     
- Misses       45341    45350       +9     

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

Copy link
Collaborator

@wawltor wawltor left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -1687,8 +1687,8 @@ def _load_pretrained_model(
model: PretrainedModel,
state_dict: Dict[str, Tensor],
loaded_keys: List[str],
resolved_archive_file: Union[str, List],
pretrained_model_name_or_path,
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里是为什么需要改,需要适配什么情况?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

原本是没有这些参数的,这个主要是为了兼容老的写法。

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 7dcd1fd into PaddlePaddle:develop Jun 19, 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.

3 participants