Skip to content

Conversation

@Difers
Copy link
Contributor

@Difers Difers commented Jun 28, 2024

PR types

Others

PR changes

Others

Description

@paddle-bot
Copy link

paddle-bot bot commented Jun 28, 2024

Thanks for your contribution!

@codecov
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
Contributor

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
Contributor

@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
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