Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Cui <chcui@nvidia.com>
  • Loading branch information
cuichenx authored Aug 15, 2024
1 parent a879e9f commit ff29c45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def get_specs(spec_name, transformer_config=None, use_te=True, hyena_cfg: Dict =
def mcore_model_customize(cfg, model):
if cfg.get("apply_embedding_scaling", False) and parallel_state.is_pipeline_first_stage():
extend_instance(model.embedding, EmbeddingScalingMixin)
if self.cfg.get('scale_positional_embedding', False):
if cfg.get('scale_positional_embedding', False):
model.rotary_pos_emb.inv_freq = apply_rope_scaling(model.rotary_pos_emb.inv_freq)
if cfg.get("mcore_customization_config", {}).get("final_logit_softcapping", 0):
from nemo.collections.nlp.models.language_modeling.megatron.gemma2.gemma2_modules import Gemma2OutputLayer
Expand Down

0 comments on commit ff29c45

Please sign in to comment.