-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
add rslora & lora+ #8111
Conversation
Thanks for your contribution! |
Codecov ReportAttention: Patch coverage is
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. |
paddlenlp/peft/lora/lora_layers.py
Outdated
if not rslora: | ||
self.scaling = self.lora_alpha / self.r | ||
else: | ||
self.scaling = 4.0 / math.sqrt(self.r) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4.0要替换成lora_alpha
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
PR types
PR changes
Description
新增 rslora 和 lora+