-
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
disable lora #8674
disable lora #8674
Conversation
Thanks for your contribution! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #8674 +/- ##
===========================================
- Coverage 55.74% 55.71% -0.04%
===========================================
Files 623 623
Lines 97454 97399 -55
===========================================
- Hits 54323 54263 -60
- Misses 43131 43136 +5 ☔ View full report in Codecov by Sentry. |
try: | ||
model.merge() | ||
except: | ||
model.eval() |
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.
这里主要是要什么兼容了? 如果进行了merge,model.eval也是需要打开?
@@ -92,7 +91,7 @@ Parameters: | |||
默认为 0.0,dropout的比例设置,float 类型 | |||
|
|||
--merge_weights | |||
默认为 False,模型推理时,是否进行base model 权重和 LoRA 权重的合参操作,bool 类型 | |||
默认为 False,接口将被废弃。请使用model.merge()或model.unmerge()替代。 |
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.
predictor看起来也是需要进行更改
) | ||
print("quant_weight", quant_weight) |
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.
删除
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
New features
PR changes
APIs
Description
支持disabale_lora