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

[Cherry-pick] Add release grad & sharding format & decorate_exclude_layers #8545

Merged
merged 3 commits into from
Jun 5, 2024

Conversation

ForFishes
Copy link
Member

PR types

Others

PR changes

Others

Description

[Cherry-pick] Add release grad & sharding format & decorate_exclude_layers

Copy link

paddle-bot bot commented Jun 5, 2024

Thanks for your contribution!

Copy link

codecov bot commented Jun 5, 2024

Codecov Report

Attention: Patch coverage is 7.69231% with 12 lines in your changes missing coverage. Please review.

Project coverage is 53.96%. Comparing base (f36ed75) to head (92d50f5).
Report is 247 commits behind head on develop.

Files with missing lines Patch % Lines
paddlenlp/trainer/trainer.py 10.00% 9 Missing ⚠️
paddlenlp/trainer/training_args.py 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8545      +/-   ##
===========================================
- Coverage    53.97%   53.96%   -0.01%     
===========================================
  Files          618      618              
  Lines        96827    96834       +7     
===========================================
  Hits         52258    52258              
- Misses       44569    44576       +7     

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

@@ -1671,7 +1676,7 @@ def pipeline_parallel_rank(self):
return 0

def _format_name(self, prefix, rank, degree):
size = max(2, len(str(degree)))
size = 2
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个之前说需要支持 sharding 超过 99 的,还需要吗?

Copy link
Member Author

Choose a reason for hiding this comment

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

不需要,之前的改动有问题,这次改动是对的。限制size=2就可以了。

@wawltor wawltor merged commit 91936bd into PaddlePaddle:develop Jun 5, 2024
7 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.

5 participants