Apply suggestions from code review

Co-authored-by: Sourab Mangrulkar <13534540+pacman100@users.noreply.github.com>
This commit is contained in:
Younes Belkada
2023-01-29 11:41:38 +01:00
committed by GitHub
co-authored by Sourab Mangrulkar
parent ad69958e52
commit 16182ea972
2 changed files with 1 additions and 3 deletions
-3
View File
@@ -255,9 +255,6 @@ class LoraModel(PushToHubMixin, torch.nn.Module):
return model
def forward(self, *args, **kwargs):
return self.model(*args, **kwargs)
def __getattr__(self, name: str):
"""Forward missing attributes to the wrapped module."""
try:
+1
View File
@@ -124,6 +124,7 @@ class PeftConfigMixin(PushToHubMixin):
return json_object
@dataclass
class PeftConfig(PeftConfigMixin):
"""
This is the base configuration class to store the configuration of a :class:`~peft.PeftModel`.