Skip to content

Commit

Permalink
fix3
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandros Koumparoulis <[email protected]>
  • Loading branch information
akoumpa committed Sep 24, 2024
1 parent 5e83458 commit 80e1578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nemo/collections/nlp/modules/common/lm_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
get_huggingface_lm_model,
get_huggingface_pretrained_lm_models_list,
)
from .megatron.megatron_utils import get_megatron_pretrained_bert_models
from .transformer.transformer import NeMoTransformerConfig
from .transformer.transformer_utils import (
get_huggingface_transformer,
Expand Down Expand Up @@ -102,6 +101,7 @@ def get_lm_model(
pretrain_model_name = ''
if cfg.get('language_model') and cfg.language_model.get('pretrained_model_name', ''):
pretrain_model_name = cfg.language_model.get('pretrained_model_name', '')
from .megatron.megatron_utils import get_megatron_pretrained_bert_models
all_pretrained_megatron_bert_models = get_megatron_pretrained_bert_models()
if (
cfg.tokenizer is not None
Expand Down

0 comments on commit 80e1578

Please sign in to comment.