mirror of
https://github.com/wassname/peft.git
synced 2026-09-09 11:28:32 +08:00
revert
This commit is contained in:
@@ -81,7 +81,6 @@ class PeftModel(PushToHubMixin, torch.nn.Module):
|
||||
self.modules_to_save = self.peft_config.modules_to_save
|
||||
_set_trainable(self)
|
||||
self.device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
||||
self.forward.__func__.__signature__ = inspect.signature(self.base_model.forward)
|
||||
|
||||
def save_pretrained(self, save_directory, **kwargs):
|
||||
r"""
|
||||
|
||||
Reference in New Issue
Block a user