Skip to content

Commit

Permalink
fix duplicate-code warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Saunders committed Dec 23, 2024
1 parent c6def27 commit 7d9ec2c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def __init__(self, config: LlamaDifferentialConfig):
)
self.norm = LlamaRMSNorm(config.hidden_size, eps=config.rms_norm_eps)

# pylint: disable=duplicate-code
def forward(
self,
input_ids: Optional[torch.LongTensor] = None,
Expand Down Expand Up @@ -322,6 +323,7 @@ def __init__(
config.hidden_size, eps=config.rms_norm_eps
)

# pylint: disable=duplicate-code
def forward(
self,
hidden_states: torch.Tensor,
Expand Down

0 comments on commit 7d9ec2c

Please sign in to comment.