Skip to content

Commit

Permalink
read norm_type
Browse files Browse the repository at this point in the history
  • Loading branch information
grimoire committed Dec 4, 2024
1 parent ae7015a commit c746fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lmdeploy/pytorch/models/internvl.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def __init__(self,
self.config = config
self.embed_dim = config.hidden_size
self.intermediate_size = config.intermediate_size
self.norm_type = config.norm_type
self.norm_type = getattr(config, 'norm_type', 'rms_norm')

self.attn = InternAttention(config, dtype=dtype, device=device)
self.mlp = InternMLP(config, dtype=dtype, device=device)
Expand Down

0 comments on commit c746fd3

Please sign in to comment.