Skip to content

Conversation

@wtmlon
Copy link
Collaborator

@wtmlon wtmlon commented Mar 13, 2024

PR types

PR changes

Description

新增 rslora 和 lora+

@paddle-bot
Copy link

paddle-bot bot commented Mar 13, 2024

Thanks for your contribution!

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

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