Skip to content

Commit

Permalink
linting - add raises NotImplError
Browse files Browse the repository at this point in the history
  • Loading branch information
lessw2020 committed Feb 26, 2024
1 parent 508c73c commit ae59079
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions torchtrain/models/llama/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,9 @@ class TransformerBlock(nn.Module):
attention_norm (RMSNorm): Layer normalization for attention output.
ffn_norm (RMSNorm): Layer normalization for feedforward output.
Raises:
NotImplementedError: If norm_type is not rmsnorm or fastlayernorm.
"""

def __init__(self, layer_id: int, model_args: ModelArgs):
Expand Down

0 comments on commit ae59079

Please sign in to comment.