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

Enable parallel_config to use commas as delimiters. #8677

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

Difers
Copy link
Contributor

@Difers Difers commented Jun 28, 2024

PR types

Others

PR changes

Others

Description

Copy link

paddle-bot bot commented Jun 28, 2024

Thanks for your contribution!

Copy link

codecov bot commented Jun 28, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 15 lines in your changes missing coverage. Please review.

Project coverage is 55.51%. Comparing base (5a508e5) to head (eb7cf45).
Report is 217 commits behind head on develop.

Files with missing lines Patch % Lines
paddlenlp/trainer/training_args.py 9.09% 10 Missing ⚠️
paddlenlp/trainer/trainer.py 44.44% 5 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8677      +/-   ##
===========================================
+ Coverage    55.43%   55.51%   +0.07%     
===========================================
  Files          626      626              
  Lines        98070    98064       -6     
===========================================
+ Hits         54366    54438      +72     
+ Misses       43704    43626      -78     

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

if " " in self.pipeline_parallel_config:
pipeline_parallel_config = set(self.pipeline_parallel_config.split(" "))
else:
if "," in self.pipeline_parallel_config:
Copy link
Collaborator

Choose a reason for hiding this comment

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

要不弄个函数,现在代码里面到处if else

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done,麻烦合入一下~

ZHUI
ZHUI previously approved these changes Jul 15, 2024
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

zhiqiu
zhiqiu previously approved these changes Jul 16, 2024
Copy link
Collaborator

@zhiqiu zhiqiu left a comment

Choose a reason for hiding this comment

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

LGTM


enable_release_grads = False
if args.sharding_parallel_degree > 1:
enable_release_grads = "enable_release_grads" in args.sharding_parallel_config
Copy link
Contributor

Choose a reason for hiding this comment

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

这个地方判断咋感觉不太对呢?原来的是 enable_release_grads = (... or ...),现在的写法相当于只由 args.pipeline_parallel_config 来决定了

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修改,感谢指正

@Difers Difers dismissed stale reviews from zhiqiu and ZHUI via eb7cf45 July 16, 2024 06:30
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

@ZHUI ZHUI merged commit 62a18c4 into PaddlePaddle:develop Jul 17, 2024
10 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.

4 participants