Skip to content

Commit

Permalink
Force lowercase when checking for normalization type.
Browse files Browse the repository at this point in the history
  • Loading branch information
akoumpa committed Jan 17, 2024
1 parent 75e3635 commit e37328e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@ def build_transformer_config(self) -> TransformerConfig:
For attributes in TransformerConfig that are not in the nemo model config, we add custom logic.
"""

normalization = self.cfg.get('normalization', 'layernorm')
normalization = self.cfg.get('normalization', 'layernorm').lower()
layernorm_zero_centered_gamma = self.cfg.get('normalization', 'layernorm') == 'layernorm1p'
if normalization == 'layernorm':
normalization = 'LayerNorm'
Expand Down

0 comments on commit e37328e

Please sign in to comment.