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

support mc2 for mp lora. #8161

Merged
merged 1 commit into from
Mar 21, 2024
Merged

Conversation

wuhuachaocoding
Copy link
Contributor

PR types

Others

PR changes

Others

Description

support mc2 for mp lora.

Copy link

paddle-bot bot commented Mar 20, 2024

Thanks for your contribution!

Copy link

codecov bot commented Mar 20, 2024

Codecov Report

Attention: Patch coverage is 6.25000% with 60 lines in your changes are missing coverage. Please review.

Project coverage is 55.34%. Comparing base (b6dcb4e) to head (39af582).
Report is 1 commits behind head on develop.

Files Patch % Lines
paddlenlp/peft/lora/mc2_lora_npu.py 0.00% 45 Missing ⚠️
paddlenlp/peft/lora/lora_layers.py 21.05% 15 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8161      +/-   ##
===========================================
- Coverage    55.37%   55.34%   -0.04%     
===========================================
  Files          596      597       +1     
  Lines        91622    91680      +58     
===========================================
+ Hits         50732    50736       +4     
- Misses       40890    40944      +54     

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

group=self.model_parallel_group,
use_calc_stream=True,
use_model_parallel=True,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

212到219行也有一个matmul和allreduce的过程

Copy link
Contributor Author

Choose a reason for hiding this comment

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

这个测过,这里加fuse对性能没收益,而且会拖慢性能

Copy link
Contributor

@lugimzzz lugimzzz left a comment

Choose a reason for hiding this comment

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

lgtm

@ZeyuChen ZeyuChen merged commit 8f2b19d into PaddlePaddle:develop Mar 21, 2024
7 of 10 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