Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
iMountTai committed Sep 5, 2023
1 parent 019b04a commit 5c3e0e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/training/peft/peft_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def __getattr__(self, name: str):
except AttributeError:
return getattr(self.base_model, name)

def forward(self, *args, **kwargs):
def forward(self, *args, **kwargs): # pylint: disable=E0202
"""
Forward pass of the model.
"""
Expand Down Expand Up @@ -355,7 +355,7 @@ def __init__(self, model, peft_config: PeftConfig):
# to make sure classifier layer is trainable
_set_trainable(self)

def forward(
def forward( # pylint: disable=W0221
self,
input_ids=None,
attention_mask=None,
Expand Down
2 changes: 1 addition & 1 deletion scripts/training/peft/tuners/lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def forward(self, x: torch.Tensor):

class MergedLinear(nn.Linear, LoraLayer):
# Lora implemented in a dense layer
def __init__(
def __init__( # pylint: disable=W0102
self,
in_features: int,
out_features: int,
Expand Down

0 comments on commit 5c3e0e2

Please sign in to comment.