mirror of
https://github.com/wassname/peft.git
synced 2026-09-09 11:28:32 +08:00
Update src/peft/tuners/adalora.py
Co-authored-by: Sourab Mangrulkar <13534540+pacman100@users.noreply.github.com>
This commit is contained in:
co-authored by
Sourab Mangrulkar
parent
d892beb0e7
commit
b8a57a3649
@@ -202,7 +202,7 @@ class AdaLoraModel(LoraModel):
|
||||
}
|
||||
)
|
||||
new_module = SVDLinear8bitLt(target.in_features, target.out_features, bias=bias, **kwargs)
|
||||
elif isinstance(target, torch.nn.Linear) and self.peft_config.enable_lora is None:
|
||||
elif isinstance(target, torch.nn.Linear):
|
||||
new_module = SVDLinear(target.in_features, target.out_features, bias=bias, **kwargs)
|
||||
new_module = new_module.to(target.weight.device)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user