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

add rslora & lora+ #8111

Merged
merged 9 commits into from
Mar 19, 2024
Merged

add rslora & lora+ #8111

merged 9 commits into from
Mar 19, 2024

Conversation

wtmlon
Copy link
Collaborator

@wtmlon wtmlon commented Mar 13, 2024

PR types

PR changes

Description

新增 rslora 和 lora+

Copy link

paddle-bot bot commented Mar 13, 2024

Thanks for your contribution!

Copy link

codecov bot commented Mar 13, 2024

Codecov Report

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

Project coverage is 55.37%. Comparing base (e145bfc) to head (4f64001).
Report is 8 commits behind head on develop.

Files Patch % Lines
paddlenlp/peft/lora/lora_layers.py 22.22% 7 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8111      +/-   ##
===========================================
- Coverage    56.46%   55.37%   -1.09%     
===========================================
  Files          596      596              
  Lines        91583    91610      +27     
===========================================
- Hits         51711    50732     -979     
- Misses       39872    40878    +1006     

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

if not rslora:
self.scaling = self.lora_alpha / self.r
else:
self.scaling = 4.0 / math.sqrt(self.r)
Copy link
Contributor

Choose a reason for hiding this comment

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

4.0要替换成lora_alpha

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

@wawltor wawltor merged commit 7370d72 into PaddlePaddle:develop Mar 19, 2024
6 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.

4 participants